When using Test Studio, follow these best practices:
Determine which test cases should be automated
It’s impractical to completely rely on test automation. Manual testing should be performed in addition to test automation, particularly for new features
Tests best suited to automation are:
- Repetitive tests
- High business impact functionality tests
- Features that are stable and not undergoing significant change
- Features that require multiple data sets
- Manual testing that takes significant time and effort
Keep test cases small
Avoid large test cases. Instead divide them into multiple smaller test cases with each testing a specific feature or item of functionality in the app. A failed assertion in a large test case might cause other functionality to remain untested. Using multiple test cases allows other functionality to get tested regardless of whether a previous test case failed making it easier to isolate test failures
Keep expressions to a single test action
A test action can contain multiple expressions. Large multi-action test expressions for a single step might impact your ability to debug and isolate any test failures. Divide a test step with multiple actions into more test steps of single actions to identify issues faster
Every test case should have an expected result
Each test case should have one or more expected results. Test assertions should be used to validate the expected outcomes of your test against the actual outcomes. Multiple assertions can be written for a single test case.
Use test suites.
Group or categorize similar test cases together with a description for the purpose and expected results