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

  • 相关阅读:
    MySQL递归查询树状表的子节点、父节点
    ajax传递参数给springmvc总结[转]
    转:Java中String与byte[]的转换
    easymock的用法
    java的反射
    spring的依赖注入
    等页面加载完
    ajax请求
    对象的复制
    springJDBC
  • 原文地址:https://www.cnblogs.com/ITGirl00/p/4185525.html
Copyright © 2011-2022 走看看