Trying to "sleep" or Pause a script run.
I want to pause my etester script. I was trying to do something like the following... any ideas?
Private Sub RSWVBAPage_beforeAction(ByVal actionObj As RswIprogs.IProgAction)
'Assume # in milliseconds
Looks like VBA does not know about any Sleep API since I get an error when I try to run this code...
Sub or Function not defined.
Re: Trying to "sleep" or Pause a script run.
Saw this in the Empirix Kbase ... sounds like what you need:
Before inserting the delay
Goto Start -> Run, and type:
Instructions on how to add the RSWWait reference in VBA
Open the e-Test script.
Identify the page you wish to insert the time delay and double-click on the 'Custom Page Programmability' node to open Visual Basic.
Click on the Tools menu and select References.
Place a checkmark next to the 'RSWWait' reference. Click OK to close this window.
To write the code, follow these instructions:
Dim a variable. In the example below, the variable name is 'sleeper' and its type is RSWWait.clsSleep
Set the variable equal to 'New RSWWait.clsSleep'
Determine the amount of time you want e-Tester to wait. This is measured in milliseconds. In the example below, the wait time is 2000 milliseconds which is 2 seconds.
Private Sub RSWVBAPage_beforePlay()
Dim sleeper As RSWWait.clsSleep
Set sleeper = New RSWWait.clsSleep