51Testing软件测试论坛

标题: QTP 92 做flex app test问题 [打印本页]

作者: szk9527    时间: 2007-8-9 10:02
标题: QTP 92 做flex app test问题
各位大虾好,小弟安装完QTP 9.2(包括QTP flex插件,ie flash都装上了),并且在进QTP是也可以选择flex(我选择的是web和flex)项目,但始终不能录制flex里面的object,始终把它们记录成winobject class类型,这是怎么回事啊。是不是qtp里还需要设置什么?我是新人,希望好心高手指点下,不胜感激。。。。。。。
作者: xiaonan    时间: 2007-8-9 10:11
你这个对象是标准的对象嘛?
作者: szk9527    时间: 2007-8-9 10:13
我是直接访问flex web server来记录的,不晓得你说的标准对象是什么意思?
作者: szk9527    时间: 2007-8-9 10:35
没人顶sdlkfj7
高手来求救啊
作者: FLY000    时间: 2007-8-9 14:22
楼主,我们做的项目也是FLEX,碰到和你一样的问题。
希望可以交流一下。
作者: szk9527    时间: 2007-8-9 16:02
希望有高手碰到过的,给我们讲下咯。。。。。
作者: FLY000    时间: 2007-8-10 13:34
Tips for configuring QTP with flex 2.0.1

Key info:

1. must have QTP 9.1, flex 2.0.1, IE 6+, and install the QTP plug-in.

2. must recomiple the app in flex 2.0.1 with automation testing libraries.

3. must put the swf and html file to the QTP machine.

4. When testing, access the html(not the swf) file from a browser via web server. don't open the html from the file system.
作者: FLY000    时间: 2007-8-10 13:34
*  Before you start to test your flex app with QTP, you have to make sure you have all the necessary software installed and configured correctly.

   1. Make sure you installed QTP 9.1, not 9.0.
   2. Make sure you installed flex 2.0.1 , and your flex app should be recompiled using flex 2.0.1.
   3. Make sure you have installed the QTP plug-in. You can download it from our website. You will need to register to login the page first. After you login into the page, scroll down and you will see "Flex Automation Package". From there you can download Flex_Automation.zip. After you unzip the zip file, you can see QTP_Plugin_Installer.exe. Run that exe file and that will install the plugin. Note, To verify if you have installed the plug-in or not, go to your registry, and search for entry of TEAPluginIE.dll and TEAPluginQTP.dll. If those dlls are not in the registry, then your plug-in has not been installed correctly.
作者: FLY000    时间: 2007-8-10 13:34
*   If you have above installation and configuration, but the QTP does not record the flex app, then check the following:

   1. QTP plug-in is only supported on IE 6+, you need to make sure your browser is using IE 6 or higher version. And your flash player must be version 9.0.28. or higher. To verify your flash player version, request the following link from your testing browser: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15507
   2. The flex app you are going to test with QTP must be prepared for automation. You need compile your app with automation testing libraries, such as automation.swc, automation_agent.swc, and qtp.swc, etc. You can compile this via Command-line compiler or flex builder. If you have compiled your flex app in flex 2.0.1 already, and want to Test run-time loading, then you can compile RunTimeLoading. Please follow the instruction step by step described here.
   3. If you request your flex app from a browser, you have to use the html wrapper file. Do not accessing the swf directly, it needs to be loaded from an object tag with an ID. You can open the wrapper or the SWF file from the file system, but it is not a recommended practice. You should try to deploy the SWF file to a web server and request the html wrapper through HTTP from the server. See page 13 of Testing Flex Applications with Mercury QuickTest Professional for more details.
作者: FLY000    时间: 2007-8-10 13:35
*   If you still have trouble getting up and running with Flex QTP plugin, you can create a log by following the steps below:

   1. Go to the mercury installation/bin directory say: "C:\Program Files\Mercury Interactive\QuickTest Professional\bin" and run MicLogSetting.exe .
   2. Select the log settings as: Level: MicLogLevelDebug2 Folder:C:\Program Files\Mercury Interactive\QuickTest Professional\ Selected Categories:LogCatPackTEA
   3. Run QTP and record a flex application say flexstore.html
   4. A log file would have been generated like C:\Program Files\Mercury Interactive\QuickTest Professional\MicLogFile_QTPro_pid1912_11_32_32.html
   5. Check whether you are seeing the following in the log: "Read Flex environment and matching ProgId TEAPluginQTP.TEAFlexAgentQTP.
作者: walker1020    时间: 2007-8-11 17:44
非常感谢  FLY000  提供了这些不错的资料,不知道楼主的问题解决了没有?
作者: FLY000    时间: 2007-8-14 10:20
奇怪,我装了QTP flex插件,但是在进QTP时没有出现Flex QTP plugin,只有原来的ACTIVEX,VISUAL BASIC 和WEB 这三个插件。

在ADD/REMOVE PROGRAM里可以看到 Adobe Flex 2 Plug-in for Murcury QuickTestPor.应该是装上了吧。
作者: bobile    时间: 2007-8-14 10:38
呵呵,楼上的解释的很清楚麻
作者: bobile    时间: 2007-8-14 10:39
很佩服他们哦
作者: FLY000    时间: 2007-8-19 16:16
救命啊。。请问楼主是怎么装上QTP flex插件的?
作者: chooseyou123    时间: 2009-10-5 23:32
这个必须要Flex Builder 编译的




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2