I want to add a recovery scenario stored in a vbs function.
I added my vbd library but was unable to find the function
searched the qtp help and found that the function should comply to the below syntax :
[ QUOTE ]
Select function. Choose an existing function from the function library you selected.
Note: Only functions that match the prototype syntax for the trigger type selected in the Select Trigger Event Screen are displayed. Following is the prototype for each trigger type:
Test run error trigger
[in] Object as Object: The object of the current step.
[in] Method as String: The method of the current step.
[in] Arguments as Array: The actual method's arguments.
[in] Result as Integer: The actual method's result.
Pop-up window and Object state triggers
[in] Object as Object: The detected object.
Application crash trigger
[in] ProcessName as String: The detected process's Name.
[in] ProcessId as Integer: The detected process' ID.
[/ QUOTE ]
can any one show me the function syntax that matches any of the above prototype ? I just need an example.
You need to go through the Recovery scenario wizard and selct function call as recovery operation(3 rd step in recovery scenario creation), that will create a recovery function as you are looking. Recovery scenario file will be saved as .qrs and it can make recovery function calls.