When recovery scenario gets activated call the function to export the data
table.
Or you can export the data table after specific iteration, when there is lot
of data in datatable.
Dim Afteri
Afteri=0
Function SaveDataTable(PathName,AfterIteration)
Afteri=Afteri+1
Dim FSO
FSO=createobject("Scripting.fileSystemObject")
If FSO.fileExists(PathName) Then
FSO.deletefile PathName
End If
If Afteri>= AfterIteration Then
datatable.Export pathName
End If
End Function
On Thu, Oct 22, 2009 at 12:40 PM, Joy <[email protected]> wrote:
>
> Hello all,
>
> I want to write a recovery scenario function which will save all data
> in datasheet to external excel file. so that on any Test run error
> this recovery scenario will get activate and save all data present in
> datasheet at that instance to external excelfile.
> Any idea how to write a function for recovery scenario. i tried normal
> function and save it as .vbs file and add in recovery scenario
> manager, but it does not identify this function.
> Pls tell me how to write a function for recovery scenario. are we need
> to pass specific parameters with it?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---