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
HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me
sample script for this where there is some condition. like
if "text" THEN msgbox()  else   endif
 Question Submitted By :: Deepak Singh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 1
textProp=Browser("").Page().WebEdit().GetROProperties
("text")
If textProp<>"password" Then
msgbox "Enter Proper Password"
End If
 
Is This Answer Correct ?    1 Yes 1 No
Sdf
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 2
x=inputbox("text")
mdgnox x
if (x=true) then 
msgbox "pass"
else 
msgbox "fail"
 
Is This Answer Correct ?    0 Yes 2 No
Ramakrishna
 
 
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 3
Using Object Spy find where u get the value for the 
textbox,  i.e in "text" property or "Value" property...
  
use "text" or "value" accordingly Getroproperty("text") or 
Getroproperty("value")

If u want to chk whether the value in the text box 
is "sunday" then....

a=Browser().page().frame().webedit().getroproperty("value")
if a=="sunday" then
msgbox ("displayed message is sunday")
else
msgbox ("msg is not sunday")
end if
 
Is This Answer Correct ?    0 Yes 1 No
Pooja
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 4
a=inputbox("text")
msgbox a
if (a=true) then 
msgbox "pass"
else 
msgbox "fail"
 
Is This Answer Correct ?    0 Yes 1 No
Gavaskar Reddy
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 5
if it is a windows based application, then it will be in
this way :
x= Window("Windowname").winedit("editboxname").Getvisibletext
msgbox x                (or)

if it is webbased application then :
x =
Browser("Browsername").Page("Pagename").Webedit("Webeditboxname").GetROProperty("value")
msgbox x
 
Is This Answer Correct ?    0 Yes 0 No
Shiva Kumar Dokka
 
  Re: HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif
Answer
# 6
val=window("customer").edit("").GetTOProperty("text")

msgbox val

if (val=true) then 
msgbox "pass"
else 
msgbox "fail"
 
Is This Answer Correct ?    0 Yes 0 No
Sree
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
can anyone explain about the Descriptive programming in detail. I mean how to use in the script.  1
what are recovery management techiniques? BirlaSoft2
What is the current version of QTP?  10
What is the QTP test frame work? IBM1
What is difference between WR and QTP?  2
what is tool interface? ITC-Infotech1
How you automate test scripts Novartis1
Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If  1
Is there any site to download QTP....otherwise tell me the way how to get the QTP sofware??????????????????? Thnx in advance Cegonsoft4
What is the main differece between QTP 9.0 and 9.2 VeriSign1
how to merge object repositories?  3
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?  1
how can i add an action(external action) programmatically? Ordain-Solutions2
What is the difference between Call to Action and Copy Action? Satyam1
can u please explain what r the challenges u faced in ur automation testing Genpact1
What is chaild object method? When we will go for chaild object method? How to use chaild object method?  2
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
how to test background color and dynamic images during runtime  1
How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software  2
How can we close all webbrowsers which are opened in out desctop?  4
 
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