i have a window , initial its name is "NEW CUSTOMER"
i have to enter the details of customer in the test object
fields and after saving the window name is automatically
changing with the customer name .
so how to identify that window after saving.
(i am using descriptive programming.)

Answer Posted / guest

First u take the window name into variable. in the script u
replace the property value with the variable. we can do
this in DP. a variable name (i.e. the property value, which
is changing dynamically, will be in the variable) can be
given as the property value of a property. ex :

browser(xxxx).page("title:=" &variablename).xxxxxx

now it takes what ever the window name/page name is.
i have not written the script properly. i said a way how we
can do this. so analize this n get better solution. i m not
100% clear with this solution ,but in this way we can do
this. correct me if i m wrong.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between data driven testing and parameterization ?

592


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1911


What is checkpoints for quicktest professional (qtp)?

583


What is a data driven test in qtp?

591


How many types of recording modes are there?

600






Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

2325


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2427


Discuss quicktest professional environment?

595


Explain runtime dynamic settings?

2030


How QTP identify the system time that's changes every seconds?

600


Explain the types of object repositorys in qtp?

581


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1633


How many types of recording modes in qtp?

594


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

575


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1456