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 / saroj
You have to use regular expression on the repository for
the browser property ( which is keep changing ).
In your case the property "title" is keep changing so use
regular expression for the title property in the object
repository.
ex: title = "Bureau of Labor Statistic.*"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
What is difference between Recording time object identification and Run time (Execution) time.
Explain the concept of object repository and how qtp recognises objects?
What test cases can you automate using QTP?
Explain the features and benefits of quick test pro(qtp)?
How to start recording using quicktest professional (qtp)?
What are the different attributes used with regular expression?
what is profile tool?
What are the different kinds of test steps?
How to use output values in qtp ?
How do you perform Regreession Testing?
What are the features of quick test pro(qtp)?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
How to save your test using quicktest professional (qtp)?
Discuss quicktest professional environment?