Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input box in QTP Script.
#1
Not Solved
Hi,

I have a requirement in my QTP Script. I need to get an Input box to prompt the end user to enter data in runtime and complete the script.for eg.
At present Iam entering the hardcoded value in the script as follows

Code:
JavaWindow("UserInformationSystem").JavaInternalFrame("Valid Values").JavaTable("Table[]").SetCellData "1","7","20100912"

In place of 20100912, Iwant to get a prompt for entering the userdata

also can we get sysdate in place of the existing date.
Could you please let me know how can we do the above.
Thanks very much in advnce.
Reply
#2
Not Solved
Hi Karraaruna,
This can be done using:
Code:
Dim inputVariable
inputVariable = InputBox("Message to prompt for input", "Window title")
MessageBox inputVariable
Reply
#3
Not Solved
Thanks for the response, But my problem is not solved yet.

I could able to enter date in the input box but it is not assigned into the application whilte running the script..

Here it follows

Code:
Dim inputVariable
inputVariable=InputBox("Please Enter the End Date")
msgbox(inputvariable)

JavaWindow("User Information System").JavaInternalFrame("Valid values for Status").JavaTable("Table[]").SetCellData "1","7",inputVariable

but nothing is assigned to the mentioned column.
could you please tell me how can I do this

thanks very much in advacne.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 908 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,583 08-07-2017, 11:34 PM
Last Post: zunebuggy
  QTP not recognizing the fancy box-item sxavierraj 1 2,418 03-05-2014, 05:26 PM
Last Post: guin.anirban
  Problem in Input from keyboard:sendkeys Rachna 1 4,980 10-14-2013, 06:07 PM
Last Post: anil2u
  How to Pass Output value as input from one IE windoe to another IE window newqtp 0 2,400 01-24-2013, 08:36 AM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 2 Guest(s)