When testing canvas app using Test Studio, consider the following best practices to gain maximum benefits to improve your app quality:
Determine which test cases should be automated.
It’s difficult to automate all tests and we do not recommend that you completely rely on test automation. Manual testing should be performed in addition to test automation. 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.
While a single test case can support testing all functionality in your app, we recommend that you avoid writing a monolithic test case and try to divide it into multiple test cases. Each test case could test a specific feature or functionality in your app. A failed assertion in a large test case may cause other functionality to remain untested. Using multiple test cases contained in test suite allows other functionality to get tested regardless if a previous test case failed. This strategy also makes 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 may impact your ability to debug and isolate any test failures. Consider dividing 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 outcome(s) of your test against the actual outcome(s). Multiple assertions can be written for a single test case.
Use Test suites.
For maintenance, group or categorize similar test cases together and provide descriptions to describe the purpose and expected results of your test.
Admin
apps4rent | o365cloudexperts