QTP

QTP Cannot Create ActiveX Object

北慕城南 提交于 2019-12-06 00:13:55
While working on script, I am facing this issue. I can't post the whole code but this is a sample that does the samething that I wrote myself; Dim qtpApp Set qtpApp = createObject("QuickTest.Application") qtpApp.Launch I have also tried this: Set qtpApp = createObject("QuickTest.application") And This: Set qtpApp = createObject("Quick Test.Application") But I Keep Getting "Active X Component cant create object. on Line x: "Set qtpApp = createObject("QuickTest.Application")" Any help appreciated. Thanks. The correct prog-id is the one you tried first "QuickTest.Application" . The probable cause

QuickTest Pro automated testing

纵然是瞬间 提交于 2019-12-05 12:18:41
I have three easy questions. Does anybody use QuickTest Pro for automated testing? Any other automated testing applications that you recommend? Is automated testing a good idea? Thanks Patrick Cuff There are several threads on SO concerning test automation: Which is better for web testing? Record-Play automation or coding? User Interface Testing Automated testing of GUI I've never used Quick Test Pro, but I've been on several projects that have used different automated test tools; Silk Test, Rational Robot, WinRunner. The most successful of these efforts was the one that used Rational Robot

Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

牧云@^-^@ 提交于 2019-12-05 06:01:55
I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library. If I access this virtual machine using my laptop (using Remote Desktop), everything works fine, the script completes without a problem. My laptop runs XP, with Windows Classic theme. If I access this virtual machine using another machine (using Remote Desktop), the script starts fine, but stops halfway through, without no error message from QTP, nothing. This machine runs XP, with Windows Classic theme. One difference

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

ε祈祈猫儿з 提交于 2019-12-05 02:53:05
问题 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

Launching UFT ( QTP ) Tests remotely through a batch file.

我的未来我决定 提交于 2019-12-05 01:50:00
问题 I have created a bunch of UFT 12 (ex QTP) tests and I have also created a batch file in order to run theses tests. When I run the batch file in local the tests are running fine. Here is the script I use : Set qtpApp = CreateObject("QuickTest.Application") Set fsObj = CreateObject("Scripting.FileSystemObject") Set qtpResObj = CreateObject ("QuickTest.RunResultsOptions") qtpApp.Launch qtpApp.Visible= true sfolderPath = "C:\QA\ManagerForOracleDB" Set mainFolderObj = fsObj.GetFolder (sfolderPath)

How does QTP wait till the page loads dynamic data?

半世苍凉 提交于 2019-12-05 00:17:34
问题 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

How to reference the mail which triggered the outlook macro?

老子叫甜甜 提交于 2019-12-04 20:43:05
I am designing a QTP framework which in which the automation engineer sends an email in order to start the test suite execution (The email can be scheduled using MS Outlook) As soon as the trigger mail is received, the attachment should be downloaded and QTP should be launched (automatically) using appropriate settings by the Outlook Macro But in the above scenario I want to download the attachment of the mail and move the mail to a different folder which triggered the macro. Is there any way to reference the mail which triggered the macro? Currently this is what I am doing. Sub

UFT11.50 - Service Test - How can I obtain the data from the response body

走远了吗. 提交于 2019-12-04 20:19:30
{ "Id": 456, "Type": null, "Name": "Store112", "Root": "\\\\server\\ShareFolder", "Username": "alm", "Password": null } This is a JSON file response body from a HTTP Request, how can I get the value of 'ID' property? Does UFT or QTP has a function to support this? In order to use a specific JSON property from the response you should do the following. Select the HTTP tab in the properties pane In the Response Body section select JSON from the drop down list Load a sample of the expected JSON response Then in the activity you want to use the value, click the link icon for the input parameter,

How to save workbook and handle TITUS (or any other document classification add-in) popup?

随声附和 提交于 2019-12-04 15:01:25
I'm creating a script in HP UFT 12 which performs grid data validation against a CSV file and saves the results in a Excel file with two worksheets. I'm using Excel for this because it is much more clear for the user, as it allows cell formatting, is easier to compare the data and so forth. My code works in my machine, but my client has TITUS document classification add-in installed, so every time they run my script, it hangs because of the TITUS pop-up message that asks user to classify the document upon saving. The message is not displayed to the user, probably because of objExcel

How do you simulate a keyboard enter event in UFT

纵然是瞬间 提交于 2019-12-04 15:01:07
I have a web application that I am testing with HP's UFT software. Within my application, there is a text field with an onkeydown attribute. When a key is pressed within the text field, a function is called which triggers different actions depending on what key was pressed. I am interested in the enter key. When the enter key is pressed, rows are created within the form. How can I simulate the enter key being pressed within the field? I have tried field1.Set Chr(13) field1.FireEvent "onkeydown" but it doesn't trigger the event. I am trying aviod using the SendKeys command. Motti If you use