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
Brief the process of testing with UFT?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
How will you check that your test cases covered all the requirements?
When you open QTP, how many sheets you can see?
How many types of actions are there in quicktest professional?
what is error and fault in terms of software quality?
Is it possible to split an action? How?
How software automation specialist enter steps in the Expert View?
Did QTP prove efficient for your project? Yes or No, explain?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
Is it possible to call win runner script in qtp?
If created one virtual object? Next time I changed the window position will it work?
What are the data types in qtp?
What is the meaning Work bench?
Can I change properties of a test object?