Writing Tests and Defects Standards
Writing Tests and Defects Standards
Writing tests and defects need to comply with the following naming and writing conventions
Tests are an important part of any project and should be written to the same standards. We will cover how you can use a test naming convention
to help keep your test names clear and easy to understand.
Having all this information provided in the test names prevents you and other project members from having to read through the test to determine
what is being tested.
Test cases have a few integral parts that should always be present in fields. However, every test case can be broken down into 8 basic steps.
Test cases should all bear unique IDs to represent them. In most cases, following a convention for this naming ID helps with organization, clarity,
and understanding.
This description should detail what unit, feature, or function is being tested or what is being verified.
This relates to the variables and their values in the test case. In the example of an email login, it would be the username and password for the
account.
These should be easily repeatable steps as executed from the end user’s perspective.
This indicates the result expected after the test case step execution. Upon entering the right login information, the expected result would be a
successful login.
As compared to the expected result, we can determine the status of the test case. In the case of the email login, the user would either be
successfully logged in or not. The post-condition is what happens as a result of the step execution such as being redirected to the email inbox.
Step 8: Pass/Fail
Determining the pass/fail status depends on how the expected result and the actual result compare to each other.
Defect Format
Defect naming format: [Functionality being tested - User type/Environment]: Problem detected described in clear and concise words
Eg. [Registration - Web 2 User]: User is unable to register a new account using a new email
Research to narrow down the root cause and get beyond the defect symptom
Retest until you have the exact steps in the correct order to reproduce the defect
Define the who, what, where, when, and how you found the defect
Execute database queries if applicable
Scan error logs
If the defect is intermittent, say so
Screenshots
Video
Step recording files
Error log data
Database query results