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
What is an other way of "Wait" statement in QTP
I dont want to use wait("Some number").
Can any one tell this please..........
 Question Submitted By :: Rayudu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 1
Use Exist Method.

Ex:
Browser("title:=.*").Page("title:=.*").Link
("name:=OK").Exist(2)

It will wait upto specified time(2sec) when object does not 
exist.
 
Is This Answer Correct ?    2 Yes 2 No
Hemakumar..m
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 2
Increase the defult time... the default time is 20 seconds 
u can increase how much u want..
 
Is This Answer Correct ?    3 Yes 0 No
King
 
 
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 3
Excluding Wait 2 other methods are there.
1.Browser("micclass:=Browser").page("micclass:=Page").Sync
2.Wait Property
Ex:Browser("micclass:=Browser").Page("micclass:=Page").Image
("name:=Pic).WaitProperty "Property Name","Property 
Value",30000
It will wait till in next page That Property Match
 
Is This Answer Correct ?    1 Yes 0 No
Litan
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 4
You can also use Do Until

E.g- There is a particular button in the next page which is 
about to come then you can write like this:

Do Until Browser("...").Page("...").WebButton("...").Exist
    Wait(1)
Loop
 
Is This Answer Correct ?    2 Yes 1 No
Deepak
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 5
It depends upon why you have used wait() in ur code.
Probably you can use the Sync() method.

This method will wait, till the client gets a response from 
server or the Object Synchronization time is not crossed.

Browser().Page().Button().Click
Browser().Page().Sync
 
Is This Answer Correct ?    0 Yes 0 No
Jitendra
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 6
I use a windows application where except wait function and 
wait property i have no other options.
Then how to proceed, as wait function is not a right way of 
coding as I know and wait property cannot be used in case 
as no object is going to change exceot the window gets 
refreshed when RETURN key is clicked.
 
Is This Answer Correct ?    0 Yes 0 No
Prashanth
 
  Re: What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
Answer
# 7
object.WaitProperty "Property Name","Property 
Value",10000
 
Is This Answer Correct ?    1 Yes 0 No
Kajal
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.  3
where the check points are stored ?  2
Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code  1
When we use Object Spy? can we write QTP script before built is came in testing? Impulse2
hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance... HDFC6
How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies Semantic-Space4
Hi, i am rani ,i am putting 1+years of fake exp ,so pls anyone explain how i get project (in real time) ? how it is tested ex: in banking ,test the number of textboxes in one window  3
wht is Driver in Integration testing. Anubody can answers it CTS6
What is keyword driven Testing Framework. Anybody can explain it in details... Pls anybody can give the answer.. Thanks in advance... Navis1
VM1 = "Invalid username or password. Please try again. " VM2 = "Email id is required.Password is required. " VM3 = "Email id is an invalid e-mail address.Password is required. " VM4 = "Password is required. " VM5 = "Email id is required. " VM6 = "Email id is an invalid e-mail address. " 'Rowcount of the Local sheet Rowcount = DataTable.GetSheet("Invalid login transactions").GetRowCount 'Valid emailid and Password Emailid = "test@iteamic.com" Password = "Password0" 'For i = 1 to Rowcount 'Parameterised Email_id Browser("Browser").Page ("Page").WebEdit("emailAddress").Set DataTable("Email_id", dtLocalSheet) EID = Browser("Browser").Page ("Page").WebEdit("emailAddress").GetRoProperty("value") 'Parameterised Password Browser("Browser").Page ("Page").WebEdit("password").Set DataTable("Password", dtLocalSheet) PWD = Browser("Browser").Page ("Page").WebEdit("password").GetROProperty("Value") If EID = Emailid And PWD = Password Then Reporter.ReportEvent micPass, "EID & PWD check", "Email id and Password is correct, One iteration of Invalid login attempts is not being executed" Else Browser("Browser").Page("Page").WebButton ("Sign-In").Click 'Output value exported to the local sheet Browser("Browser").Page ("Page_2").Output CheckPoint("Home page_Sign in") 'Storing the output value in a variable(OUTPUT OUTPUT = Datatable.GetSheet ("Invalid login transactions").Getparameter ("Validation_message_signin").value 'comparing the Variable Output and the Validation message for a given input If OUTPUT = VM1 Then Reporter.ReportEvent micPass, "VM1", "Invalid username or password. Please try again. " else if OUTPUT = VM2 Then Reporter.ReportEvent micPass, "VM2", "Email id is required.Password is required. " else if OUTPUT = VM3 Then Reporter.ReportEvent micPass, "VM3", "Email id is an invalid e-mail address.Password is required. " else if OUTPUT = VM4 Then Reporter.ReportEvent micPass, "VM4", "Password is required. " else if OUTPUT = VM5 Then Reporter.ReportEvent micPass, "VM5", "Email id is required. " else if OUTPUT = VM6 Then Reporter.ReportEvent micPass, "VM6", "Email id is an invalid e-mail address. " else Reporter.ReportEvent micFail, "EID & PWD check_FAIL", "Validation message checkpoint failed. The captured v msg is not required" End if End if I am getting syntax error saying "Expected 'End If'" at the last line, Why is this? Kindly explain...  1
Hi Frriends... I have one Query please give the apropriate ans. when we r working with web based application , the user loggedin page name is changed respect to the username ( Take a exp. Yahoomail.com) .When we use Datadriven test to this scenario ,each time the loggedin page name is changed ...then the script is fail.. at that time wat can do... please give the apropriate ans. Thanx in advance..  3
What are the versions of qtp,What are the differences b/n them? TCS1
Tell about descriptive programing in qtp8.2? GE4
What is source control?  1
what is the diff between Procedure and function iFlex3
HOW DO U CALL A ACTION IN QTP? BirlaSoft2
Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?  1
can we run the scripts of qtp 8.2 in the qtp7.0?  1
How to export QTP results to an .xls file? IBM7
for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b  2
 
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