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 have a window , initial its name is "NEW CUSTOMER"
i have to enter the details of customer in the test object 
fields and after saving the window name is automatically 
changing with  the customer name .
so how to identify that window after saving.
(i am using descriptive programming.)
 Question Submitted By :: Kiran.b
I also faced this Question!!     Rank Answer Posted By  
 
  Re: i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)
Answer
# 1
First u take the window name into variable. in the script u 
replace the property value with the variable. we can do 
this in DP. a variable name (i.e. the property value, which 
is changing dynamically, will be in the variable) can be 
given as the property value of a property. ex : 

browser(xxxx).page("title:=" &variablename).xxxxxx

now it takes what ever the window name/page name is.
i have not written the script properly. i said a way how we 
can do this. so analize this n get better solution. i m not 
100% clear with this solution ,but in this way we can do 
this.  correct me if i m wrong.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)
Answer
# 2
When u Entered the Details of the customer in New Customer 
Window when u press submit button\else to procced then it 
can opens the window as customer names window right
 means u can retrive the name of customer 
var=browser(****).page(***).winedit("cuname").GetRoProperty
("text")

now compare the retrived value with window name.
 
Is This Answer Correct ?    0 Yes 0 No
Mahesh_sqa
 
 
 
  Re: i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)
Answer
# 3
The Answer given by "Guest" is acceptable...
The scenario is- the window name is dynamically getting 
changed, solution could be
you can use "Regular expression" method....
First you open the Repository and check the window property 
as "Type" and for that "type" property value-chenge the 
constant to a regular expression. I think you know the 
process......if not follow this, at the bottom of the 
repository window
you find two edit boxes namely...CONSTANT and PARAMETER.
right beside at the CONSTANT Edit box you find a small Icon 
kind of thing and click that, set the regular expression 
check box on (tick on that).

if it doesn't work...
then go to the ADD/REMMOVE OBJECTS, where you can look for 
a property called "href" then give the property value as 
the window URL (http:/********) then try..
if this also doesn't work...
you can go for another method to make the QTP to identify 
the destination page rather than the window..
I can not type all that 
u just try these two methods they don't-then mail me at
sivaprasadnunna79@yahoo.co.in I will help you
all the best.
 
Is This Answer Correct ?    0 Yes 0 No
Siva
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
The Senario is Steps to do 1.Entered userid in textbox 2.saved with details 3.i want to open user which i have created its in hurry.....  1
Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me  1
what are the different Frame Works in Quick Test Proffessional testing Wipro4
What is throw object? AZTEC1
can any body clearly explain about hybridframework with the explanation for files what ever we come acros in this frame work? Wipro3
What is the Limitations of Testing ? TCS3
what is Compile Module in QTP? what exactly it contains Functions or Actions? GE2
4. How u will open the build automatically in QTP except using Systemutil.run command  3
What is the difference between Normal mode and Fast mode ? AZTEC1
How will you send values to a cell in a webtable using QTP?  2
what are the mandatory and assistive properties of objects in QTP?What is attached text?Plz assist me with proper answer. MBT5
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?  3
what we do after completion of functional and regression testing  2
What is the method for maximize the application while we using Decriptive programming in QTP?  2
Is it possible to convert QTP scripts to Silk scripts? Sierra-Atlantica2
How to connect to the Database from QTP? Thatavarti-Technologies7
write a qtp script to see time in windows command prompt? its urgent.... BSL9
is it possible to operate(on/off)the capslock using qtp  2
In QTP for .net application which plug in is used? For Java Application which plug in is used ? AppLabs2
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?  6
 
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