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


Please Help Members By Posting Answers For Below Questions

Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1748


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1886


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1648


What do you to script when objects are removed from application?

836


What are the differences between qtp and winrunner?

748


can any body give the banking domain concepts/links

3850


When do go for loop condition in test?

866


How many types of trigger events are there in qtp?

775


How to use actions in qtp ?

791


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1637


Can we record an application running on a remote machine using qtp?

933


How do you convert manual test cases to automated test cases?

808


Differences between text and test area checkpoints?

823


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1746


What are the check points can be inserted without recording?

836