Wednesday, 29 August 2012

L16 - Text 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 Output Value
The cursor will change to hand icon-> Click the hand icon on 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 in Message Box.