R. E. Cook
Contact Us 

Dr. Cook

RunningShoes Library for WinRunner 

Custom WinRunner Functions 
and Utilities,
to Your Specs

A Random Collection of WinRunner Solutions

Creating DLLs for WinRunner 
"DLLs Demystified" 
(Mercury Interactive's Worldwide Users Conference 2000)

R. E. Cook Consulting


Want TestDirector to stop at a pause() statement?

Functions: PauseTD(), PauseYesNo(), PauseOK()

WinRunner always ignores user-input statements when run from TestDirector, right? Do you not run a test from TestDirector because the test requires a manual step at some point? Now you can have it your way. RunningShoes has three "pause" statements that won't be ignored in TestDirector. 

Pause with a choice

## Define the message to be displayed.
message = "Insert a blank floppy disk into the drive and ";
message = message & "click OK, or click Cancel to stop.";

## Display the message.

## Continue with the test

Pause without a choice

## Define the message to be displayed.
message = "Insert a blank floppy disk into the drive, then click OK.";

## Display the message.

## Continue with the test

Why three different functions?

The three functions differ only in the buttons they display. PauseTD() displays OK and Cancel buttons, just like the pause() statement. PauseYesNo() displays Yes and No, while PauseOK() displays, of course, an OK button.

Updated 17 January 2005

Top of  This Page | R. E. Cook Home Page

Copyright R. E. Cook Consulting, 2000 - 2011.
All rights reserved.

The site is designed to look best when viewed with Internet Explorer 5.0 - 8.0. Results with other browsers will probably deviate from what is intended.

NOTE: This website refers to registered trademarks and service marks that are owned by other companies, including Mercury Interactive, WinRunner, TestDirector, TSL, Microsoft, Windows.