Fanfare Home | Community Home | Contact Us  

16540 -- Procedure calls allow incorrect order of arguments

Space Search
Searching iTest 3.4 Release Notes
Table of Contents

Earlier versions of iTest allowed numbered (un-named) args to appear before named args. iTest 3.4.2 fixes this inconsistency.

The documentation for procedure calls (both for the call action and for CallProcedure events) did not make the following requirement explicitly:

  • In a procedure call, any named arguments must appear before any numbered arguments

Procedure call syntax

procedureName [-namedArg1 arg1Value -namedArg2 arg2Value ...] [numberedArg1 numberedArg2 ...]

-- Arguments are optional

-- Any named arguments must appear before any numbered arguments

Example

This example call to the ExercisePorts procedure includes two named arguments and one numbered argument. Here is the form of the procedure call:

procedureName -slot slotNumber -port portNumber numberOfRepetitions

Here is the actual text that appears in the Description cell for the call step (the value of the port argument is determined dynamically by the return value of a param command).

ExercisePorts -slot 3 -port [param portInUse] 75

Labels

3_4 3_4 Delete
3_4_1 3_4_1 Delete
fixed_in_3_4_2 fixed_in_3_4_2 Delete
doc doc Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.