ShellExecute function in RoutineBot

Syntax
ShellExecute( Path:String, Params:String [optional], WaitBeforeClose:Integer [optional] )

Parameters

Path:String

string that specifies the file to execute. File can be executable file or some document.

Params:String [optional]

string that specifies parameters to be passed to the application.

WaitBeforeClose:Integer [optional]

if this parameter is 1, then interpreter wait, before application is running or file is opened. Otherwise, if this parameter is 0, function does not wait, before application(file) is running. If this parameter is 0 this function is equal to function Execute.

Return value

If file exists function return 1, otherwise function return 0.

Remarks

If WaitBeforeClose = 1 then function waits, before application will be closed.

Example
ShellExecute('C:\WINDOWS\notepad.exe','',1);
This example runs notepad.exe and waits until notepad is running.
Download example Shellexecute.

Reference
Execute function

Posted in Articles
Tags: ,

Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.

Email: