Hoe can we do retesting using functions please give the
code for it using login page
Answer / Lovely Vishvkarma
Here's a QTP example to perform retesting of a login page by using functions:n
1. Create a function to enter the username and password, e.g., `function Login(username, password):`.
2. Inside the function, use `WinEdit("Username").Type(username)` and `WinEdit("Password").Type(password)` to enter the credentials.
3. Add a function to click the login button, e.g., `function ClickLoginButton():`.
4. Inside the function, use `Button("Login Button").Click()` to click the login button.
5. Create another function to verify if the user is logged in successfully.
6. In your test script, call these functions in the correct order to perform the retest.
| Is This Answer Correct ? | 0 Yes | 0 No |
Any one please tell me how to create framework in QTP (in detail). Is there any website for reference?
How To clear the AutoComplete?
what is the Descriptive Progarmming? how it is help to testers in QTP?
What is the Difference between Environment variable and Globle variable,.. anybody can give me answer..Thanks in advance...
What is an optional step in qtp ?
In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?
how to parameterise a test with data base table or excel sheet?
What is the difference between QTP 8.2 and QTP 9.2
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
does QTP provides any tools for parametrisation?