Hi Pls let me know the solution for the below problem.In QTP Flight application, when we create a new order, always an new order number is generated. i have inserted a synchronization point for Insert done and text output value to the order number field and i am getting the order number in the datatable sheet.But the Problem is when i run the script for multiple number of times, the order number in the datable is over written always.How can i get the list of all the order numbers for the script i execute.Still more precisely, the order number for the first order which is written in the data table sheet should not get over written when the creating second order is created.Thanks and RegardsBindu Dey.

Questions by Bindu Dey   answers by Bindu Dey

Showing Answers 1 - 21 of 21 Answers

msusmitha

  • Feb 6th, 2007
 

hi this susmitha, whenever inserting mre number of orders first generate the basic script fr single order then parameterise that number for the datatable values.u definitely get result in the run time data table.i think u understand madhav_sus@yahoo.co.in

  Was this answer useful?  Yes

Hi SusmithaThnx for the reply, i think we cannot parameterise the Order number bcoz it is a non editable field and the data in that is not captured while recording. We can only do a "Insert Ouptput value" in the Active screen, but the property of this is that it always over writes the order number in the data table, it does not increments the row number.If u have QTP installed in u r system u can open the Flight sample application and record the sequence for creating an order, after recording is done u vl find Order Number generated in the Order Number field in the bottom of the screen right-corner. Pls let me know if u have any solution :-)Thnx and RegardsBindu Dey.

  Was this answer useful?  Yes

Bhamini

  • Feb 10th, 2007
 

Hi Bindu,
One option to capture the order number is by inserting an output value. when you configure that, make sure that you have selected to store that value in the localsheet and not the global sheet.
it is very important that you understand the difference between the 2.
another alternative is to use GetROProperty method.
for ex: if say you want to store the order no in a parameter "Order_No" in your local sheet (for the action), then use this method.
DataTable("Order_No", dtLocalSheet) = Window("Flight Reservation").WinEdit("Order No.").GetROProperty("value")
this method will return the run time property value for the edit box and store it in the data table.
let me know if this helps.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions