01-25-2010, 06:29 PM
Hi,
I am using the above code, even though i am starting tthe iteration from 4, it does not stop the iteration, it goes on execution again iteration 4.
my script should exit as there are only 4 iterations to be run, and its staring from 4th one.
Any help will be really appreciated
Regards;
vijay
Code:
Set oShell = CreateObject("WScript.Shell")
sCurrDir=oShell.CurrentDirectory
pCurrpath=Split(sCurrDir,"\")
For i=0 to ubound(pCurrpath)-2
sCurrentPath=sCurrentPath & pCurrpath(i) &"\"
Next
'####import the data File
InputXls=sCurrentPath &"\Data\Icentral.xls"
Datatable.AddSheet("Icentral")
Datatable.ImportSheet ""&InputXls&"","Icentral","Icentral"
Public oSheetName
oSheetName="Icentral"
x=Datatable.GetSheet("Icentral").getrowcount
For row=4 to x
pszListDataTableNames="N_NullUserLogin,N_InvalidUserLogin,N_InvalidpassLogin,N_NullUserLogin,N_ValidUserLogin"
pszListDataTableNames=split(szListDataTableNames,",")
For a= 0 to ubound(pszListDataTableNames)
If (pszListDataTableNames(a)=datatable.Value("Scenario_name",oSheetName)) then
x=Datatable.GetSheet("Icentral").getrowcount
datatable.SetCurrentRow(row)
eporter.ReportEvent micDone,"------------End of Scenario------------",row
End If
Next
datatable.SetNextRow
Next
I am using the above code, even though i am starting tthe iteration from 4, it does not stop the iteration, it goes on execution again iteration 4.
my script should exit as there are only 4 iterations to be run, and its staring from 4th one.
Any help will be really appreciated
Regards;
vijay