Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get input from the user in QTP?
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

I want to learn QTP. I am new to qtp. How to get input from the user in QTP.
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Do parameterization.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
use input box
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
I want to get the username and password from user.
Reply
#6
Solved: 11 Years, 4 Months, 4 Weeks ago
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)




Reply
#7
Solved: 11 Years, 4 Months, 4 Weeks ago
Try this code -----


Code:
Dim Username,Password
UserName = inputbox("enter the username")
Password = inputbox("please enter the password")
msgbox Username
msgbox Password
Reply
#8
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply
#9
Solved: 11 Years, 4 Months, 4 Weeks ago
What you are saying is correct. But as a language VB has provided the Inputbbox method to accept user inputs
Reply
#10
Solved: 11 Years, 4 Months, 4 Weeks ago
You can use the below code to get the input from the user

Code:
A=INPUTBOX("Enter first value")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 930 07-01-2020, 11:32 AM
Last Post: Alaguraja
  Set user control property Ranu 0 2,037 11-09-2013, 12:44 AM
Last Post: Ranu
  Problem in Input from keyboard:sendkeys Rachna 1 5,008 10-14-2013, 06:07 PM
Last Post: anil2u
  QTP user guide and tutorial katma123 4 9,465 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,421 01-24-2013, 08:36 AM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 1 Guest(s)