What are the best practices that need to be followed for writing test cases?
Answer»
We need to write test cases that correspond with the perspective of end-users.
Steps defined in the test cases needs to be simple so that anyone can replicate the steps.
Ensure that the test cases are reusable.
Define and set the priority of test cases.
Provide a valid description, test input parameters, test DATA, EXPECTED outcome after running the test cases so that we can COMPARE the ACTUAL outcomes of the test cases with the expected ones.
Make sure to develop test cases that cover negative test scenarios too.
Naming conventions need to be properly FOLLOWED while developing test cases.
Review them regularly and update them as and when the functionality gets updated.