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
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.
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))
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What do you to script when objects are removed from application?
What are the differences between qtp and winrunner?
can any body give the banking domain concepts/links
When do go for loop condition in test?
How many types of trigger events are there in qtp?
How to use actions in qtp ?
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
Can we record an application running on a remote machine using qtp?
How do you convert manual test cases to automated test cases?
Differences between text and test area checkpoints?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
What are the check points can be inserted without recording?