Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get input from the user in QTP?
#1
Solved: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 Weeks ago
Do parameterization.
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
use input box
Reply
#4
Solved: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 Weeks ago
I want to get the username and password from user.
Reply
#6
Solved: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 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: 10 Years, 8 Months, 3 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 769 07-01-2020, 11:32 AM
Last Post: Alaguraja
  Set user control property Ranu 0 1,935 11-09-2013, 12:44 AM
Last Post: Ranu
  Problem in Input from keyboard:sendkeys Rachna 1 4,762 10-14-2013, 06:07 PM
Last Post: anil2u
  QTP user guide and tutorial katma123 4 9,170 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,288 01-24-2013, 08:36 AM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 1 Guest(s)