how to write the descriptive programming in QTP for
loginwindow.without using Step generator,object repository
for referecnes

Answers were Sorted based on User's Feedback



how to write the descriptive programming in QTP for loginwindow.without using Step generator,objec..

Answer / shyam.meghansh

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 ?    17 Yes 1 No

how to write the descriptive programming in QTP for loginwindow.without using Step generator,objec..

Answer / kishorekumar.byreddy

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 ?    6 Yes 3 No

how to write the descriptive programming in QTP for loginwindow.without using Step generator,objec..

Answer / srinu

plz tel me how to write Descriptive on WEB application?

Is This Answer Correct ?    1 Yes 0 No

how to write the descriptive programming in QTP for loginwindow.without using Step generator,objec..

Answer / grsmrc2118@yahoo.com

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 ?    4 Yes 9 No

Post New Answer

More QTP Interview Questions

what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,


what is the long form of QTP ?

2 Answers  


How to use regular expression in descriptive programming?

0 Answers  


How to attach a file to TD?

0 Answers  


How to import excel sheet to QC?

1 Answers  






Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?

2 Answers  


how to retrieve the column headers in database using vbscript statement in QTP

1 Answers  


What are default add-ins in qtp?

14 Answers   Semantic Space,


How many ways we can parameterize data in QTP?

2 Answers  


How to get the column count and column name from the resultset in the database connection program?

5 Answers   TCS,


I have two actions in my QTP test and two iterations in my DataSheet. I want to execute the Action 1 for the two iterations only after which i want to exceute the next Action2. How is this possible?

4 Answers  


What is the diffrence bettween QTP 9.0 and QTP 9.1?

1 Answers  


Categories