i am new to qtp i do not know how to write script
how to write the code to login if it fails how to able
error messages

Answer Posted / nanda

HI...What Satya..we dont need add objects to repository for
descriptive programming.

come to scenario....

dialog("login").winedit("Agent Name:").set datatable.value(1)
dialog("login").winedit("Password:").setsecure
crypt.encrypt(datatable.value(2))
dialog("login").winbutton("OK").click

If dialog("Login").dialog("text:=Flight Reservations").exist
then
dialog("Login").dialog("text:=Flight
Reservations").winbutton("text:=OK").click
dialog("Login").WinButton("Cancel").click
Else
window("Flight reservation").close
end if

like this we can handle pop up messages...

If any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add verification steps to tests?

9436


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

891


In qtp, how you can exit for loop?

728


What are the five challenges you faced in QTP?

2959


assume i have few url link how will i dynamically call then using descriptive programming?

1799


Differences between text and test area checkpoints?

809


What are the views available in quicktest professional?

787


Explain the concept of object repository and how quicktest professional recognises objects?

770


Explain the types of properties that quick test learns while recording?

782


what is the advantages and disadvantages of using functions instead of re usable actions

1661


How do you check ticket cost and ticket number in flight application?

816


What is the syntax to call one action in another?

768


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

1789


What do you mean by checkpoints in qtp?

776


What is the default object synchronization timeout in qtp?

887