zoukankan      html  css  js  c++  java
  • Test Android with QTP

     

    I have recently come across a plug-in to QTP that enables to automate tests on Android. The plug-in is used to define the tests and then has code export to QTP, so that the actual work is mainly done in the QTP framework.

    We will write more about SeeTest Plugin in the coming weeks, and might even offer exclusive deals for our users. As this plugin uses very advanced image processing automation, it can be adapted to extend QTP abilities in automating SilverLight, Flex, Flash, MFC custom controls, and more.

    The pre-requisites for testing Android are:

    (1) Rooted Android device

    (2) Download the plug-in – called SeeTest (http://experitest.com/download/)

    You can then easily follow the connect instructions.

    Once the device is connected, the plug-in works by capturing a screenshot of the application – here the Android screen – and extracting graphical elements that are then used to write the script.

    clip_image002

    Then extract a graphical element – say the call-log icon – and give it a textual name (in our example “CallLog”).

    clip_image004

    Now you switch to the Script Tab, and can write a command. Simply select a command from the drop down list – such as Click(Element) – and insert the Element name “CallLog”.

    clip_image006

    That’s it. You can now run the test by clicking on Play button, see a report by clicking on Report button and – most importantly – export the code to QTP and run the test from within QTP by clicking on Export Code button and copy-paste the code that appears into QTP (see below).

    clip_image008

  • 相关阅读:
    三级菜单打怪升级,young -> plus -> pro
    Python注释是什么东东
    腾讯云中的mysql镜像数据定时同步到本机数据库
    linux重复命令的简洁化
    快速查询mysql中每个表的数据量
    MGR与MHA
    mysql基础练习
    mongo日常操作备忘
    MongoDB:删除操作
    MongoDB插入数据的3种方法
  • 原文地址:https://www.cnblogs.com/ITGirl00/p/4185525.html
Copyright © 2011-2022 走看看