In a shared Object Repository in QTP if some object is
changed how can the other script which is using the same
object can be known
Answers were Sorted based on User's Feedback
Answer / rajesh
Here question is regarding object change in shared OR, it
can be interpreted in two ways.
case1: Change in object name.
case2: Change object properties.
-In case1 other scripts referring the object, here the
impact is severe and should be modified manually.
-In case2 other scripts referring the object, here there is
no impact and the scripts will be using the updated
properties.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rana banerjee
One way to figure out the impacted scripts is to do a
search in the script.mts files for the object with the
original object name.
| Is This Answer Correct ? | 1 Yes | 0 No |
If Object name changed, no problem. If Onject properties changed, then go to Object repository -> Import Shared Respository -> Enable editing
click on "Update from application" -> Save
Now all th updated properties will added to shared repository.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pradeep
u can always use the test script wizzard.
this is the tool that is provided in the s/w to
automatically study the GUI and provide the user/test
script creator the correct logical name for the new objects
that it recognizes.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / uday kumar_anem
Here is my answer...
If you change object name in shared OR, then QTP
automatically changes the object name in the script/scripts
that are using the shared OR.
| Is This Answer Correct ? | 1 Yes | 4 No |
How the exception handling can be done using quicktest professional?
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
What is active screen?
What is the difference between Dim And Redim
4 Answers Hotel Jobs, IBM, Microsoft,
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
what is the difference between Table checkpoint and Database checkpoint in QTP
Your roles and responsibilities and daily tasks? (As automation tester)
Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)
How can you handle exceptions in qtp?
write script to read and write data from file ?
How we can test a Frame in a web page?