Hi,
I want to learn QTP. I am new to qtp. How to get input from the user in QTP.
I want to learn QTP. I am new to qtp. How to get input from the user in QTP.
How to get input from the user in QTP?
|
Hi,
I want to learn QTP. I am new to qtp. How to get input from the user in QTP.
Do parameterization.
use input box
What type of input you are trying to get from user. If you want test data for different iterations of a test then use parameterization.
I want to get the username and password from user.
Enter username and password in the data table and refer them to your script.
In place of username write datatable("Column name",Global) for password write datatable("Column name",Global)
Try this code -----
Code: Dim Username,Password
I sometimes wonder, if in automation you want to have a user enter the values through inputbox? Doesnt it defeat the whole purpose of automation?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
What you are saying is correct. But as a language VB has provided the Inputbbox method to accept user inputs
You can use the below code to get the input from the user
Code: A=INPUTBOX("Enter first value") |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Need to input Japanese Character through UFT | Alaguraja | 0 | 982 |
07-01-2020, 11:32 AM Last Post: Alaguraja |
|
Set user control property | Ranu | 0 | 2,088 |
11-09-2013, 12:44 AM Last Post: Ranu |
|
Problem in Input from keyboard:sendkeys | Rachna | 1 | 5,085 |
10-14-2013, 06:07 PM Last Post: anil2u |
|
QTP user guide and tutorial | katma123 | 4 | 9,559 |
05-31-2013, 11:40 AM Last Post: rajivjoshi |
|
How to Pass Output value as input from one IE windoe to another IE window | newqtp | 0 | 2,482 |
01-24-2013, 08:36 AM Last Post: newqtp |