This is an XML-oriented test scenario sampler.
make
- (optional) install [PICT] (https://github.com/Microsoft/pict)
./sss [options] [input]
-c
: resolve<choice>
using external combinatorial test tool (defalt: PICT).-r:<n>
: specifies how many l2-scripts an l3-script expands to (default: 1).-u:<n>
: specifies how many l0-scripts an l1-script expands to (default: 1).
Input is a text mixed with XML elements: an l3-script.
<repeat>
: repetition of the content. Constitutes an l3-script. AttributesminOccurs
andmaxOccurs
specify how often it can be repeated. DefaultminOccurs
is 0. IfmaxOccurs
is omitted, currentlyminOccurs
plus 10 is set. Attributedelim
specifies a deliminator, which will be put in between the repetitions.<choice>
: discrete choice from the child nodes. Constitutes an l2-script.<random>
: random real number. Constitutes an l1-script. Attributesmin
andmax
specify the range.<text>
: Text content.
By ./sss samples/lr.xml
, where lr.xml
is
this is a random walk scenario.
<repeat>Go <choice>
<text>left</text>
<text>right</text>
</choice>.
</repeat>
the output will be, for instance,
this is a random walk scenario.
Go right.
Go left.
Go left.
Go right.
Go left.
Go right.
Go left.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.