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

What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

577


Explain advantages and disadvantages of ddf?

583


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

907


Suggest and Define a solution for an application whose objects are not recognized by UFT?

656


What are parameterizing tests?

537






www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1718


whow much strong on VB and C?

1469


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

556


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

1444


What are the general steps involved in the data driven framework?

541


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1612


what is the difference btn risks & Therads in the Test plan documentation?

1572


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1494


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1506


What are the 3 main stages involved in testing with qtp?

543