01-03-2010, 06:23 PM
Hi Friends.
In QTP Windows testing i am trying with it's Flights Application.
a. Login.
b. Create New Order.
c. Click Insert Order Button.
d. After Few seconds, there is a disabled text box that displays the order number, i want to capture that order number into the global data sheet. however i am not able to do so. i tried to create a function and tried to display the value of order number generated in msgbox. see code below.
Question 1: Can you help me in using order number to be capture as an output value of my action into the global sheet of the parent action.
Question 2: Please let me know what is wrong with this code below?
Regards
Nikhil
In QTP Windows testing i am trying with it's Flights Application.
a. Login.
b. Create New Order.
c. Click Insert Order Button.
d. After Few seconds, there is a disabled text box that displays the order number, i want to capture that order number into the global data sheet. however i am not able to do so. i tried to create a function and tried to display the value of order number generated in msgbox. see code below.
Question 1: Can you help me in using order number to be capture as an output value of my action into the global sheet of the parent action.
Question 2: Please let me know what is wrong with this code below?
Code:
Window("Flight Reservation").WinButton("Insert Order").Click
wait(10)
Sub GetOrderNumber()
value = Window("Flight Reservation").WinEdit("Order No:").GetROProperty(text)
msgbox(value)
End Sub
Regards
Nikhil