give me descriptive programing code sample flight
application in qtp?
Answer Posted / srikanth
Dialog("text:=Login").WinEdit("name:=Agent
name").set "srikanth"
Dialog("text:=Login").WinEdit
("name:=Password").set "mercury"
Dialog("text:=Login").WinButton("name:=OK").click
If Window("text:=Flight Reservation") Exists
Then
Window("text:=Flight Reservation").close
Else
Dialog("text:=Login").Dialog("text:=Flight
Reservation").Winbutton("name:=OK").click
Dialog("text:=Login").Winbutton("name:=CANCEL").click
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
How to handle Java tree in QTP?
What is contained in the object repository?
How to check bitmap output value?
Can we Test Welcome Screens and Process Images with QTP
Explain how you can find length of array in qtp?
How did you use regular expressions in QTP and also in WR?
what is output value in QTP and how it can be used in automation testing
What is the short cut keys for the following?
Without using gui map editor we can recognize the application in winrunner ?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Can U Explain about QTP tool from older version to latest version also its differences?
What are the features of quick test pro(qtp)?
What are the ways you can synchronize?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
If I change the property value at runtime is it effect is object repository?