QTP

QTP datatable operations *extremely* slow (much better under MMDRV batch executor)?

为君一笑 提交于 2019-12-03 20:53:19
Possibly a smashing story -- QTP seems to waste our worktime for no reason: Consider this script, having a datatable of exactly one global row with 26 columns named "A" to "Z" filled with any value: Print "Started" Services.StartTransaction "Simpletest" Set G=DataTable.GetSheet ("Global") For J=1 to 26 For I=1 to 100 Set P=G.GetParameter (Chr (J+64)) If P.Value = "Hi" Then End If Next Next Services.EndTransaction "Simpletest" Print "Ended" Executing this under QTP 10 takes 15.1 seconds on my blaster. (Animated run is off, of course.) Now I execute this using mmdrv.exe from QTP's bin folder,

How to Zoom in or Zoom out in a webpage while using UFT/QTP

▼魔方 西西 提交于 2019-12-03 20:33:53
I would like to control the zoom in and out feature of my webpage of the application under test using UFT. This is required as the zoom level changes dynamically and it becomes difficult to identify the objects. I have found a code but it is useful if you need to change the zoom level at one instance or at the start. below is the code Function ChangeIEZoom Dim intZoomLevel, objIE intZoomLevel = 110 Const OLECMDID_OPTICAL_ZOOM = 63 Const OLECMDEXECOPT_DONTPROMPTUSER = 2 Set objIE = CreateObject("InternetExplorer.Application") objIE.Visible = True objIE.Navigate ("www.google.com") While objIE

QTP vs Selenium - Compare [closed]

爷,独闯天下 提交于 2019-12-03 17:33:33
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may fall into Usability,

How does QTP wait till the page loads dynamic data?

◇◆丶佛笑我妖孽 提交于 2019-12-03 16:01:54
I have a scenario where the browzer status =done but still the page is not loaded. Is there a common procedure where the qtp can wait till the page is fully loaded? I tried with objBrowzer.sync,objPage.Sync,objPage.waitproperty "readyState","completed",50. But it does not work always. I cannot even but a wait statement so that it waits till that object appears.because in different cases different objects are present. Is there any common statement that would work in all scenarios? Thanks in advance. You just discovered that QTP does not offer any explicit support for synchronizing with

Calling C# dll in vbscript

回眸只為那壹抹淺笑 提交于 2019-12-03 13:23:36
问题 I am trying to call a C# dll from QTP (uses vbscript). I have tried a number of things with no success: Visual Studio 2010 Create C# class libary (st.dll) code: using System; using System.Collections.Generic; using System.Text; namespace st { public class Class1 { public static int GetValue() { return 34; } } } regasm /codebase st.dll fails 'because it is not a valid .NET assembly' In QTP/vbscript, I have tried extern.Declare micInteger, "GetValue", "e:\st.dll", "GetValue" Returns message:

QTP: How can I return multiple Values from a Function

强颜欢笑 提交于 2019-12-03 12:19:07
I'm trying to write a function which can return multiple values from a Function which is having 2 arguments. eg: function sample_function(arg1,arg2) ''#Some code................. passenger = list1(0) name1 = list1(1) age1 = list1(2) seatNumber = list1(3) ''#This is an Incomplete function... end function sample_function Here this function named sample_function has 2 argument named arg1, arg2. When i call this function in my Driver Script like value = sample_function(2,Name_person), this function should return me passenger, name1,age1,seatNumber values. How can i achieve this? EDIT (LB): QTP

QTP vs Selenium - Compare [closed]

℡╲_俬逩灬. 提交于 2019-12-03 06:32:36
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may fall into Usability, Performance, etc. As such, 60-70% of the tests to be executed are to verify if the values in the DB are correctly

Automating QA on Flex Application [closed]

[亡魂溺海] 提交于 2019-12-03 06:30:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have a Flex Application that needs to be tested and our QA department is really adament on using some form of automated-testing

QTP UFT Unable to find row count from table

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was not able to find row count of that table and when I spy, Object Respository doesn't show any webtable. Can you please help me on how to find the row count. It was developed in Angular Js framewrok. Attached Object Repsoitory: The DOM 回答1: The elements in the screenshot do not contain a TABLE element (only DIV s). Try running (in the browser's developer tools) document.getElementsByTagName('table') if it returns an empty set then this is the reason UFT isn't showing you a table. UFT does not recognise Angular tables since they are non

QTP 学习笔记 :对象库(基础篇)

匿名 (未验证) 提交于 2019-12-03 00:22:01
阶段要点 :对象模型 一、对象模型 对象库是QTP的核心,正是因为有了对象库,QTP才脱颖而出。 QTP自动化的原理( 重点 ): 对象模型:添加对象到对象库之后,QTP就会自动建立被测对象的对象模型,并且有唯一标识 二、 Object Identification Object Identification 即为以上提出的唯一标识对象的属性列表(以下简称OI) OI属性列表里面有两个区域 : Mandatory Properties 和 Assistive Properties 注: 拓展内容: web对象模型的智能识别 (针对对象模型下的具体对象) 三、对象库的基本操作 注: 添加对象时注意对象库的Action切换,切换到外部的action时只能查看对象。 维护对象库自动更新脚本 ) 外部加载、只读 ) 扩展: 导出本地对象:保存对象库文件到指定文件夹 四、Object Spy 运用 重点 ) :Native Properties 和 Identification Properties切换 捕捉模式切换 重点 ) 对比 合并 注: 自动化测试的对象库维护,首先要进行对象库对比进行分析确定,然后 总结: 文章来源: QTP 学习笔记 :对象库(基础篇)