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 / pravati

Browser().page().webedit().set "mailid"
Browser().page().webedit().set "password"
Browser().page().webbutton().click
if
Browser().Page().Link("Home").Click exist
then
msgbox "login pass"
else msgbox "login fail"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the synchronization point in qtp?

781


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1722


Is it possible to merge two object repository files in qtp?

855


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3735


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2408


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

2172


How to check which add-ins are associated with a test in qtp?

857


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1788


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2516


How to start recording using quicktest professional (qtp)?

821


What the differences are and best practical application of Object Repository?

849


Hi All, I need code for how to execute qtp scripts from excell sheet

1696


How to use parameterization in qtp?

854


What is checkpoints for quicktest professional?

799


What are the benefits of quick test pro(qtp)?

774