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   To Refer this Site to Your Friends   Click Here
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
There is one login screen,after accepting valid username 
and apassword, it will show the next screen. In the 2nd 
screen u r having 2 combo boxes, U have to select any item 
from these, and click OK button. After closing that, it 
will show the 3rd screen. If u click CANCEL button from 2nd 
screen it will show the first screen. Write QTP script for 
it???
 Question Submitted By :: Prasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???
Answer
# 1
Hi,

The code looks like below:

browser().page().webedit().set "username"
browser().page().webedit().set "password"
browser().page().weblist().select "SelectItem"
btnName=browser().page().webedit().getROProperty("value")
if btnName="Cancel" then
	check for 2 page itself
	B().P().exists
else
	check for 3rd page
end if
 
Is This Answer Correct ?    0 Yes 1 No
Uday
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to compare the two strings?  2
what is difference betweein qtp 9.0 and 9.2  1
setroproperty and getroproperty difference Ordain-Solutions3
HOW TO DO THE BATCH TESTING USING QTP? Ordain-Solutions2
what is descriptive programming? Ordain-Solutions5
How to add a runtime parameter to a data sheet?  4
can u please explain what r the challenges u faced in ur automation testing Genpact1
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!  4
1)What is the Difference Between WaitTo & Sync? Wipro2
Hi, Can anyone help me in esimating time for an application using QTP tool.. What factors should be considered while calculating the estimation time for QTP... Thanks in advance... Prasad Gali  2
the build is develeped in Java. is possible to write scripting in vb using QTP ?  3
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
why was automation used in the project? Google1
hi testers,one script has three actions , at the of running three actions are running , how to set run only perticular action and what is the use of split the action? when it will be useful? Syntel2
How to export QTP results to an ".xls" file?  3
how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes STC3
dar Sir I am Facing th eProblem in QTP thet ,when I start thrcording inthe QTP for the ASP front end and C# the Coding Language I fing that recording is Done well for the Login screen but at the Time Running the script the QTP is Unable to Identify the Objects On the Objec Onht eLigin screen .Please answer the Question in Description and the Propables reason I might be facing alsp the Popable solution I have to Take thanks and ragards  1
using descriptive programming how to close all opend browsers? Satyam4
What is InStr() Kanbay5
what is the default ordinal identifier.what are the send keys in qTP.  1
 
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