3.7.Semi Automated Tests
It is not possible to automate all test scenarios in any given test project. There are always tests that need manual intervention and subjective validation. It is still possible to use automation for simplify these tests.
MarathonITE facilitates such Semi Automated tests through checklists. You record a normal test. When the application reaches a point where you need a manual validation, insert a check list. You can continue recording the test. You can also add more than one checklist per test script.
These tests are also executed as normal tests. When the point of execution reaches a inserted checklist, MarathonITE pauses. MarathonITE displays the checklist. Once you fill the checklist - the execution of the test continues.
1. Use Cases for Semi Automatic Tests
The following are some cases where semi automatic tests will be very useful.
- To check whether the application is following guidelines for UI
Most organizations have user interface guidelines. Checking whether the application follows all guidelines is a monotonous job. Over a period of time it becomes tedious. Semi automatic tests can help you simplify this process of verification. Start with converting the guidelines into a checklist. For each of the application screen, create a script that opens up that screen. Insert the guidelines checklist into the script.
When executing these tests, Marathonite performs actions as with regular scripts. When the application reaches the screen, Marathonite displays the checklist. The tester can verify each field for confirming to the guideline. In case of an issue, the tester can mark the test as failed. He/She can also capture a screenshot and annotate it.
- To check the validation criteria of fields
Automating tests for field validations is tedious and in some cases impossible. Some field validations do not allow the application to proceed further. Some others may not even allow submitting a form.
We designed semi automatic tests to handle these cases. Create field validation checklist for each of the screens and attach them into a test script.
2. Creating a Semi Automated Test
You create a Semi Automatic test by following the same recording procedure as it is for a normal test. Reach the point in application where you need manual intervention. Insert a checklist by clicking on the insert checklist button. MarathonITE shows a Select a Checklist dialog.
Select a checklist from the available checklists and click on Insert button. MarathonITE adds the checklist to the script using
If required, perform more operations and insert checklists at the points you desire. At the end, stop the recording using the stop button.
3. Running Semi Automated Tests
By default, Marathonite ignores the
accept_checklist commands in a test script. For running tests that accept checklists, enable the option Enable Checklists from the Marathon menu.
You can execute the semi automated tests either from the editor, the test runner view or using batch mode.
Marathon pauses the script and displays the checklist when it reaches the
accept_checklist command. once you fill the checklist and save it, the script continues. The report displays the information you enter in the checklists.