ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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.
 Question Submitted By :: Sbbceo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
For the above problem use the Dscripive programming 
with Regular expression
 
Is This Answer Correct ?    0 Yes 0 No
Karunesh
 
  Re: 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
# 2
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
Bharathi
 
 
 
  Re: 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
# 3
I re-record the scripts again and saved them and made sure 
the Objects in the Repository were correct and I even 
played them back a day later and they worked fine but I 
went to replay them yesterday and now all of them stopped 
working again. The Browser line has changed again so it 
doesn't match whats in the Repository so now all these 
scripts I record are No good again.  What causes the 
Broswer line to change? I'm using QTP 9.5 on IE7 on a Java 
Web Based Application. Do you think it's the developers 
making changes or is it something QTP is doing each time it 
opens up a new browser to play the scripts back. Please 
help because this is the 3rd time I've had to RE-Record 
these scripts.
 
Is This Answer Correct ?    0 Yes 0 No
Sbbceo
[SA]
 
  Re: 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
# 4
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 ?    0 Yes 0 No
Saroj
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
can any one tell me how to select some text.i need the script for that  1
please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing. BSL1
Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"  1
hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus  1
What is Expert view?  3
when i perametarization of the test through outputcheckpoint,i have seen run time error i.e outputcheckpoint mismatch .Plz tell anybody to me(qtp).How to clear that?  1
what is difference betweein qtp 9.0 and 9.2  1
I would like to do some certifications in QTP. please suggese what kind of certifications can i do. I am currently put up at chennai. So please suggest some reputed centres where these courses are offered.  1
WHAT IS OBJECT REPROSITORY? BirlaSoft3
HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST  6
How to Set the Global Sync Timeouts in QTP?  1
how we connect oracle or sql data server database to qtp Tanla-Solutions2
can we test an windows application using qtp  1
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?  3
IF we use batch testing.the result shown for last action only.in that how can i get result for every action.  2
How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private  1
does QTP provides any tools for parametrisation?  3
4. what is the use of Text output value in Qtp? Wipro1
What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements? Infosys1
While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to call a function. Can u tell me that function. Ordain-Solutions4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com