Menu

Parameterisation

Dave Amies

Parameterisation

Parameters are referenced by the parameter name in curly braces ( { and } ) e.g. the parameters created by the 0rand Step can be accessed as {c0RandNum} and {iRandNum}.

The following Step Type can create Parameter values:
- Data
- 0rand
- SaveParam
- FormattedDateTimeString
- MathParam
- PromptParam

Parameterisation is available in all columns of a Step Sequence or Data Set except the ID (first) column.

Parameters can be concatenated to strings and other parameters or even concatenated inside another parameter name.

Example usage:

Given the following datasheet that is stored at \TestingServer\TestingShare\DataSheets\BP23Data.tsv

iID DataCol001 DataCol002 AnotherDataCol
BP23Case001 something Jackson 2010-08-08
BP23Case002 Data ThatFeild BP23Case005
BP23Case003 Framework Franklin Lincon
BP23Case004 震嶽 Stepping
BP23Case005 Col002 Elephant Tiger
iID iSeq cStepType cField cValue cTiming cExpect cOnError
Text001 1 Data BP23Case002 BP23Data \TestingServer\TestingShare\DataSheets
Text001 2 SaveParam MyExample {DataCol001}
Text001 3 SaveParam MyExample2 {AnotherDataCol}
Text001 4 SaveParam MyExample3 {DataCol002}
Text001 5 0rand 1 5
Text001 6 Data BP23Case00{c0RandNum} BP23Data \TestingServer\TestingShare\DataSheets
Text001 7 Data {MyExample2} BP23Data \TestingServer\TestingShare\DataSheets
Text001 8 Text {MyExample2} {{MyExample}{DataCol001}}

In this example Step Sequence, Step 6 Loads a row of data determined by a random number generated in step 5, Likewise the text field identified as "ThatFeild" in the application had the value "Elephant" entered into it.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.