Hi all , I am new at QTP I want a sample script to check
validation messages(For java script or VB script) for login
page with for web based application.. Any one can Help. I
have to complete it in two days I need urgent help..
Ex. if I want to check mail.yahoo.com
1 > If user doed not exist it display "Username does not exist"
2> if invalid Uname and password then it display" Invalid
Uname or pass"
3> Loing Sucssessfully.
I want to check this types of application by using data
table to give values of username and password..
Thanks
Answer Posted / amjad
Open()(It is a function to open the application)
Browser("Browser").Page("Gmail: Email from Google").WebEdit
("Email").Set "User id"
Browser("Browser").Page("Gmail: Email from Google").WebEdit
("Passwd").SetSecure "************"
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign in").Click
If Window("gmail").Exist then
reporter.ReportEvent 0,"Checking Login","details given are
correct"
Window("gmail").close
Else
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign in").Click
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign out").Click
reporter.ReportEvent 1,"Checking Login","details given are
not correct"
end if
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
By using QTP can we record any log files written by the application which is in execution?
How do you perform Regreession Testing?
What is the use of Debug Viewer?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
What are the five challenges you faced in QTP?
What is qtpro? What is quick test pro? What is a quick test professional?
Can we create a qtp test from qc?
What is smart identification in QTP?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What is the diff between image and bitmap check point?
How to attach a file to TD?
How to execute a winrunner script in quicktest professional?
What are the different types of checkpoints?
How to run a test using quicktest professional?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also