Creating a schedule for multiple testsuites
In a continuous integration environment, you need multiple testsuites to run in one go. Molybdenums allows you to group arbitrary testsuites to so called schedules. A schedule is a simple XML file referencing test suites via file: or http: protocol, absolute or relative. It looks like this:
If you don't want to maintain your schedules manually, you can assemble them automatically from testcases on your file system. Have a look at ANT Build Schedule Task or Maven Schedule Builder Plugin.
Accessing the label of a schedule
Single testsuites or schedules grouping multiple suites can have a label. Typically you want to create it from your CI server marking a set of testscripts and eventually more (testcases, testdata, config files etc.) as related and referring to a well defined state later on.
A label can be stored in any Variable using the "storeEval" command and accessing "treeView.label" (a javascript expression):
outputs
Tests
testAccessingLabel (19:15:23 - 19:15:23 | 132 ms)
Details
testAccessingLabel (19:15:23 - 19:15:23 | 132 ms)
storeEvaltreeView.labelmyLabel (19:15:23 - 19:15:23 | 81 ms)
echoLabel is: ${myLabel} (19:15:23 - 19:15:23 | 51 ms)
Message
Label is: build_trunk_4711
Resolved variables in target:
myLabel='build_trunk_4711'