Micro Focus QTP (UFT) Forums
Input Box - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Input Box (/Thread-Input-Box)



Input Box - QTPVV - 02-19-2008

Hi,

Do we have option in QTP to have input box which will have radio buttons so that users can select one of the radio button. Unlike as now with Inputbox user has to type in value.


RE: Input Box - Ankur - 02-19-2008

inputbox is generally used to test whether your automated script is working fine or not, then data is taken from datatable.

What purpose will it solve if you have a radio button to take your data... moreover why do you want to restrict yourself with the limited no of values(test data) which can be used by the radio buttons,unless of course you make a big list.


RE: Input Box - Anshoo Arora - 05-11-2008

Ankur Wrote:inputbox is generally used to test whether your automated script is working fine or not, then data is taken from datatable.
Well, all it does is take a value from the user and assigns it to a variable.

QTPVV Wrote:Do we have option in QTP to have input box which will have radio buttons so that users can select one of the radio button. Unlike as now with Inputbox user has to type in value.
Technically, this is possible. But here, you will have to feed the property of the RadioButton that you want the value to be set in. Something like this:

Code:
SystemUtil.Run "iexplore.exe", "www.hotmail.com"
sName = InputBox("Enter WebEdit name")
Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("name:=" & sName).Set "userName"

When the InputBox pops up, enter "login" (without quotes). Login is name description of the WebEdit.

However, this method is not recommend. It is for informational purposes only. Smile