Synapse QA

Test Case Authoring Tips

Test Case: set of input values, pre-conditions of execution, expected results and post-conditions of execution, developed for a specific objective or test condition.” (IEEE 610)

Test Case shows the paths taken by a module, Use Case or functionality within the project. It serves as a basis for testers to run tests manually, but it can be created, too, in order to automate tests. In addition, Test Cases should cover as many situations as possible. 

In short, a Test Case is a set of actions and the expected results for them.

What should you do?? -> Actions

The actions are the steps that will be performed by the tester/who run the test cases. These actions should lead to an expected result. They must always start with an infinitive verb – fill, validate, click, trigger – or imperative – fill, validate, check. Examples:

– Validate the “Password” field mask

– Check if the record has been saved in the database.

– Click on the “Back” button.

– Access Admin > Settings menu.

What did you expect?? -> Expected Results

The expected results are the responses to the actions taken by the user. Each action should have an expected result. 

Examples:

What else you need to start writing the test cases?

Characteristics of a good test case..

1. Have a clear, objective, traceable and self-explanatory title : the title of the Test Case must allow it to be easily found and recognized, it must make clear what it’s purpose is.

2. Follow a pattern: Following a writing pattern is ideal, especially when there is one more Test Analyst on the team. Example: always put the menu in square brackets in the title of the Test Case, put fields and messages in quotes.

3. Be objective and not exhaustive: always avoid Test Cases with many steps (more than 20, for example). This is not always possible, but a very extensive Test Case becomes exhausting and can cause you not to pay attention to every step.

4. Make failure situations evident: the purpose of the Test Case is to find bugs, so it is necessary that the expected result is clear. In this way, the tester will know exactly the answer that the system should give, leaving the flaws evident.

5. Be self-sufficient: all the information needed to perform the test must be within the Test Case, whether the prerequisites, possible templates, etc.

6. Achieve the greatest possible coverage: Test Cases must cover as many scenarios as possible, that is, there must be a Test Case for each documented flow.

7. Always be up to date: an outdated Test Case will confuse whoever is testing it, as the expected results will no longer be in accordance with the documented.

8. Be reusable:  Ideally, Test Cases should be written to be updated and reused, either in the following Sprints or in the system integration / approval phases.

Some Extra Tips for Authoring 🙂

Happy Writing 🙂

References:

Guidelines : Test Case

Artifact: Use Case

Exit mobile version