Friday, 24 August 2012

L17 - Text Area Output Value


It reads the TEXT from any object and place the value in data table run time dynamically.

Application used: Flight reservation

Step 1
Record -> Insert -> Output Value -> Text Area Output Value
The cursor will change to MARKER -> Select the text from the object from where text value needs to be retrieved run time.

Step 2
“Object selection – Text Output value” window will come -> Press Ok.

Step 3
Text Output Value properties window will come.
We can modify the Output text here, Press Ok.
Code as below will get generated automatically and a column will be inserted in datatable.
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Output CheckPoint("From")
To read the value from Datatable, write the code as below.
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Output CheckPoint("From")
x=datatable.Value("FromOutput_Text_out", dtgglobalsheet)
msgbox x

Step 4
Run the test, it will show the output value whatever is there during run time in Message Box.