Currently, there is no user interface for creating a schedule. This has to be done by writing an XML file, putting it inthe right place relative to the testsuite to be executed. This small tutorial is describing in detail what todo.
Organizing your test suites
Creating a schedule is easy if the testsuites to be collected in a schedule are organized appropriately in a directory structure. This can be done the following way.
- Choose a base directory
- Put all testsuites below this base directory. If needed, you can put the testsuites in subdirectories as well
The following Example assumes, the base directory is named basedir and created directly in the C:\ drive. But this can be changed as you want. All pathes in the schedule file will be relative to the base directory, so the name and location of this directory doesn't matter.
C:\basedir
|- CommenTests.xml
|- EntryPages\
| |-MainPageTests.xml
| |-LangingPageTests.xml
|- SubFlows\
|- BasicFlowTests.xml
|- ExeptionalFlowTests.xml
Creating a schedule
Directly inside the base directory, create a file with the extension *.xml, for example: schedule.xml
This file will have a root element named schedule. For non XML gurus, an empty schedule will look like this:
For each testsuite to be executed in the schedule a new line has to placed between the two lines shown above. Such a line has to follow the following pattern:
<suite uri="CommonTest.xml"/>
The value of the uri, the string between the quotation marks, is the path of the testsuite to be added. The path will be written down without the base directory path, as a relative path.
The uri has to be written with path separators beeing '/' (forward slashes) as done in the URL bar in your browser, regardless of the operating system you are using.
If we're putting this together for all testsuites in the example above, our schedule will look like this:
<schedule>
<suite uri="CommonTest.xml"/>
<suite uri="EntryPages/MainPageTests.xml"/>
<suite uri="EntryPages/LangingPageTests.xml"/>
<suite uri="SubFlows/BasicFlowTests.xml"/>
<suite uri="SubFlows/ExeptionalFlowTests.xml"/>
</schedule>
Please remember: The schedule file has to be saved directly into the base directory.
Executing the schedule
- Open Molybdenum
- Choose Menu: File --> Open Schedule
- Choose the schedule.xml file from the base directory
All testsuites will be loaded into Molybdenum and can be executed at once.
Alternativly, the schedule can be executed from commandline
Future plans
MOLYB-328 holds the task to build a ui for schedule creation.