Script Building¶
How to build a test script in Testware Framework Manager
Overview¶
The Script Builder generates a scaffolded test script in the Testware Framework Manager solution and is aimed to be used for creating custom end-to-end tests.
A test script is quickly composed of methods from the underlying framework API and will appear as a clear recipe for a User Story.
Once a test script has been generated it will be ready for test execution or a final touch of adaptions to meet the specified testcase requirements.
The preview window next to the Script Builder dialog will visualize the currently selected page object and a filtered list of possible methods will be shown in the section of actionwords.
Selecting an actionword method will add an entry into the steps section.
A test script would finally have a list of selected steps representing a setup following by one or more asserts for validating the testcase requirements.
The example below shows an example of the Script Builder...
The Script Builder dialog operates with six properties...
- Id - Specifies a unique testcase Id for the test script...
- Name - Specifies a custom file name for the test script...
- Description - Specifies a description for the test script...
- Category - Specifies a required category for the test script...
- Steps - Specifies the steps to be executed in the test script...
- Actionwords - Specifies a list of possible page object methods...
The properties Name and Category are madatory for creating a test script.
Creating a Test Script
- Choose the Edit->Script Builder entry from the file menu to open the dialog...
- For each step filter the keywords the Action control and press Enter to select...
- Finally press OK in the dialog to complete the Script Building session...
A new test script has now been created and added in the solution...
The Video Guide¶