I recorded a Web based Application running on JAVA and when
I went to play them back a week later they didn't run. I
noticed that the Browser was putting in a (Underscore and a
Number) for each line so i re-recorded and noticed the
Underscore line wasn't the same as what i recorded last
week so any script I record today will not work next week
because the browser settings or how QTP recognizes it keeps
changing.
This is the new line
Browser("Bureau of Labor Statistics_4").Page("Bureau of
Labor Statistics").JavaApplet("SurveyApplet").JavaList
("Select an Area").Select "U.S. city average"
This is the old line
'Browser("Bureau of Labor Statistics_3").Page("Bureau of
Labor Statistics").JavaApplet("SurveyApplet").JavaList
("Select an Area").Select "U.S. city average"
Notice the Burearu of Labor Statistics_3 adn Burearu of
Labor Statistics_4. Why does it change and how do I prevent
it from changing.
Answer Posted / bharathi
It will work you just record the whole script once and save
the Object repository. i am also using the record playback
method if u change anything in middle also it is working
for me.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
How to connect to a database?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
Explain about the test fusion report of quicktest professional?
What is the syntax to call one script from another?
What is the significance of “action 0” in qtp?
What ate the Technologies supported by QTP?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
If the objects hierarchy is changing from build to build, then how you will handle that condition?
What is throw object?
How to remove the associated function library?
What is use of object spy?
Shall we add Local Repository to shared object repository,if yes,how we add
How many types of object repository in qtp?