views:

10

answers:

1

When running WCAT on my windows XP machine via the commandline I get the following error:

error: must specify at least one of the following parameters -run, -update, -terminate, -showclients or -setclients

The command I try to run is:

wcat.wsf -terminate -run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

And is copied directly from the readme.

+1  A: 

The problem exists because of an error in the regex matching in the wcat.wsf file. For some reason the regex:

 var run_regular_expression = /[-\/]run$/;

Will not match the "-run" argument

Changing it to:

 var run_regular_expression = /[\-\/]run$/;

Does match the run argument.

Another option is to change to commandline call to:

wcat.wsf /terminate /run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

using slashes instead of hyphens

wasigh