For the below written code , i want to be stop the loop
(ex:10 times), but it is focusing to first line of the code
& generating error.
vbwindow("vbname:=frmMain").Type micAltDwn + "6" + "2" + "D"
+micAltUp 'wiil open the particular window in application
vbwindow("vbname:=frmDeduction").vbbutton("vbname:=cmdNew").Click
DataTable.ImportSheet"F:\QTP VBScript\Form
26-1.xls","Deduction",Global
RowCount = DataTable.GetSheet("Global").GetRowCount
i=RowCount
For j =1 to i
'vbwindow("vbname:=frmDeduction").WinObject("nativeclass:=DataComboWndClass","abs_y:=
187").Type DataTable("Name", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
187").Type DataTable("Name", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
187").Type micF4
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
187").Type micTab
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
216").Type micF4
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
216").Type DataTable("Section", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
216").Type micTab
vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtOfPay").Set
DataTable("Amount_of_Payment", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Set
DataTable("Amount_PaidCredited_Date", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Type
micTab
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
316").Type micF4
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
316").Type DataTable("Deduction_is", dtGlobalSheet)
vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:=
316").Type micTab
vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdSave").Click
DataTable.SetNextRow
Next
vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdClose").Click
No Answer is Posted For this Question
Be the First to Post Answer
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script
What is the main disadvantage of using low level and Analog modes?
What exactly a frame Work means?what are the different type of frameworks done in QTP?why the caption for QTP given as advanced keyword driven?
How to create a Runtime property for an object in QTP?
what is the process to follow between writing the test cases & then atomating it?
after click on compose mail how can we attached a file in qtp with vbscript code
Explain script generated at the time of setting runtime property?
How can we open an Excel sheet through the script
WHY U CHOOSE TESTING FIELD?
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()
A web table is having 3 columns(name, salary and checkbox) in qtp How to select a checkbox based on the highest salary of an employee in a webtable.