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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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 to write the descriptive programming in QTP for 
loginwindow.without using Step generator,object repository 
for referecnes
 Question Submitted By :: Manjula
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes
Answer
# 1
hi you can write it by taking assistance from objectspy and 
looking at methods and properties
dialog("text:=login).activate
dialog("text:=login).winedit("attachedtext:=agent 
name:").set "mayur"
dialog("text:=login).winedit
("attachedtext:=password").setsecure "*********************"
dialog("text:=login").winbutton("text:=OK").click

but the better answer in interviews is explain that it is 
hard to remember all the methods so by taking assistance 
from object spy we are going to write
regards
naidu
 
Is This Answer Correct ?    1 Yes 1 No
Grsmrc2118@yahoo.com
[Neudesic]
 
  Re: how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes
Answer
# 2
how to write the descriptive programming in QTP for 
loginwindow.without using Step generator,object repository 
for referecnes



V can write Descriptive program in two different ways 

Type 1:

SystemUtil.Run "C:\Program Files\Mercury 
Interactive\QuickTest 
Professional\samples\flight\app\flight4a.exe","","C:\Program
 Files\Mercury Interactive\QuickTest 
Professional\samples\flight\app\","open"

Dialog("Text:=Login").WinEdit("Attached text:=Agent 
Name:").set "shyam"
Dialog("Text:=Login").WinEdit("Attached 
text:=Password:").set "mercury"
Dialog("Text:=Login").WinButton("text:=OK").click



Type 2:

SystemUtil.Run "C:\Program Files\Mercury 
Interactive\QuickTest 
Professional\samples\flight\app\flight4a.exe","","C:\Program
 Files\Mercury Interactive\QuickTest 
Professional\samples\flight\app\","open"

Set login=Description.Create()
login("text").value="login"

Set agentname=Description.Create()
agentname("Attached text").value="Agent Name:"

Set password=description.Create()
password("Attached text").value="Password:"

Set ok=Description.Create()
ok("text").value="OK"

Dialog(login).winedit(agentname).set "shyam"
Dialog(login).winedit(password).set "mercury"
dialog(login).winbutton(ok).click



If any other questions mail me

testingwithshyam@gmail.com
 
Is This Answer Correct ?    6 Yes 0 No
Shyam.meghansh
[Hydus Technologies (INIDA) Pvt Ltd]
 
 
 
  Re: how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes
Answer
# 3
Dim lg,an,pwd,ok
set lg=decription.create() 
set an=decription.create() 
set pwd=decription.create() 
set ok=decription.create() 
lg("text").value="LOGIN"
an("attached text").value="AGENT NAME:"
pwd("attached text").value="PASSWORD:"
ok("text").value="OK"
Dialog(lg).activate
Dialog(lg).winedit(an).set"kishore"
Dialog(lg).winedit(pwd).setsecure"mercury"
Dialog(lg).winbutton(ok).click


i think this is the perfect to login descriptive 2nd method
this is very importent, every company prefer to this method 
in realtime also, so please carefull 


any queries on this please send  to this 
mail  "kishorekumarbyreddy@gmail.com"

and this my num: 09811244850
 
Is This Answer Correct ?    2 Yes 1 No
Kishorekumar.byreddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)  1
normally by going through the object properties in object spy we write descriptive programming(correct me if i am wrong). But how or from where can we get the object properties in the object spy?plzzzzzz do answer  2
how can i do QTP Certification can any 1 tell me . How 1 approch and who to approch Hydus6
How to retrieve the property of an object in QTP?  4
How to find the number the number of Links, Brolken Links in a webpage? Ordain-Solutions3
What is positive test case and Negative Test case? What is the meaning of Real World Scenario's?  1
can we install qtp in windows vista  1
Hi, It is HR question. What are the qualities you like and dislike in your Project Manager? TCS2
Hi,How to write regular expression for inbox(10) {here 10 is changing while playback}.tell me the pettern.  4
Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"  1
What is the DIFF Between PROJECT AND PRODUCT?When Company will need Product?  3
what is main diff of qtp8.2 and qtp9.0? Covansys1
How do you start automating/ writing your QTP scripts ? Keane-India-Ltd3
What is the difference between functions and actions in QTP? Verizon3
How to Import the data from MS-Access in QTP?  1
what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".  2
actually how many hours per one day we will work on automation (qtp) in real time Synechron1
Suppose U change the script whether it affect the object properties of the object in the object repository IBM3
How you test the object which is dynamically changes its location? Wipro6
how to test background color and dynamic images during runtime Accenture2
 
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