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 are the types of properties that quick test learns while recording?

508


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1808


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1417


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

2420


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1518






can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1376


What are the different types of qtp test assets and their extensions?

562


How would you directly trigger javascript in a test?

1448


How to export quicktest professional (qtp) results to an .xls file?

577


what function you write to do database testing with the help of qtp?

1334


Can we use index on view?

1578


when u script reveiwing in which area u more concentrates?

1392


What is the difference between the keyword view and expert view?

511


How the exception handling can be done using quicktest professional?

518


What do you to script when objects are removed from application?

588