I created an Action2, but i am not sure if this helps or hurts my future testing.
My new code in Action2:
My new code in Action2:
Code:
For DLc = 1 to 5
DLcRun= DataTable.GetSheet("Action2").GetParameter("Execute").ValueByRow (DLc)
DocumentsLink = DataTable.GetSheet("Action2").GetParameter("DocumentsLink").ValueByRow (DLc)
GrStart = DataTable.GetSheet("Action2").GetParameter("GrStart").ValueByRow (DLc)
GrEnd = DataTable.GetSheet("Action2").GetParameter("GrEnd").ValueByRow (DLc)
If DLcRun = 1 then
'Check to see if the correct ReportsLink is selected, if not , then change
If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link(DocumentsLink).Exist(1) Then
Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link(DocumentsLink).Click
Reporter.ReportEvent micDone, "ReportsLink was changed: " , " The Image Access reports link in " & ENV & " was changed to: " & ReportsLink & "."
End If
Call CountNumberofReportLinks (GrStart, GrEnd, objExcel, OutputFilePath, rNumber, MrNumber)
Call SaveOrSaveAsExcelSheet (OutputFilePath, objExcel)
Call UseGroupReportDisplaySearchAddFav (GrStart, GrEnd, objExcel, OutputFilePath, MrNumber)
Call SaveOrSaveAsExcelSheet (OutputFilePath, objExcel)
Else
Reporter.ReportEvent micDone, "Documents Link Skipped: " & DocumentsLink , "Execute in Action2 set to 0 for documentklink."
End If
Next