Steps to include in the test
To write an efficient test, certain steps should be followed, based on the AAA pattern discussed earlier:
- Configure and start the application (Arrange): We need not write this step because that part is already taken care of in the
BeforeEachTest()
method:

- Perform an interaction with some element on the screen (Act): We'll have to write code to enter text or tap on the
CALL
button - Verify the desired output (Assert): We need code to verify the interaction gives us the desired output
As we can see, the first step of the test is already done, and now we need to write the next steps, which include performing interaction with the CALL
button and then verifying the desired output.
Writing your first UITest
It's time to finally write our new UITest, inside Tests.cs
under the UITest
project, to test the test case described earlier:
- Write a new method under the
Tests.cs
class with an annotation[Test]
, as described earlier:

- Write code to take a screenshot of the application once...