Test cases, generated with the ecFeed software, can be exported and stored in various common standards, such as: CSV, XML, and Gherkin. Of course, the above-mentioned list does not define the limit of possible uses. The export template can be fully customized (or designed from scratch) to meet the needs of any real-world scenario.
To export test cases, create a test suite. Their list can be accessed by selecting the method node and navigating to the Test cases section, which is localized at the bottom of the screen.
Next, select the test suite and click Export selected. A pop-up window should appear. The template can be designed from scratch or adapted from one of the predefined schemas. Regardless of the choice, the window consists of two sections. The upper one defines the active template and the lower one provides a preview in which the number of test cases is limited. After customizing the template, the Update preview button must be clicked for changes to propagate and take effect.
Alternatively, test cases can be exported by clicking on the method node and selecting Export online. Next, to access the template pop-up window, click on the Advanced button in the Export template section.
Each template consists of three main sections:
- [Header] - the beginning of the file.
- [Footer] - the end of the file.
- [TestCase] - the schema for all test cases.
The following expressions can be used to customize the output. Apart from them, any text can written in the template - it does not affect the parsing procedure. Note, that expressions associated with distinct test cases can be used in the [TestCase] section only.
Expressions associated with test suites:
- %package - the enclosing package.
- %class - the enclosing class.
- %method - the method associated with the test suite.
- %suite - the name of the test suite.
- %index - the index of the test suite.
Expressions associated with arguments/choices (where x stands for the ordinal number):
- $x.name - the name of the argument.
- $x.choice - the name of the choice.
- $x.full_choice - the full name of the choice.
- $x.value - the value of the choice.
- $x.type - the type of the choice.
The text formatting can be done as follows: (block).min_width(width, justifyType), where block can consist of any text and/or expression and width is the minimum number of characters. Finally, justifyType defines the block position, namely: LEFT, RIGHT, CENTER.
To see an example of the template, please open one of the predefined schemas.
Default template schemas are provided to speed up the test suite generation process. They are ready to use and do not need to be modified. However, the user is encouraged to do so to adapt them to his own, personal needs.
Export test cases in the CSV format.
Export test cases in the XML format.
Export test cases in the Gherkin format.
Export test cases in the JSON format.