Monday, 19 August 2013

General Standards to be followed in Test scripts

- Indent the code to make it readable and understandable for others.
- Avoid hard coding system specific values like folder locations, instead set it relatively with
respect to the Main/Startup script.
- Use synchronization functions instead of wait () function.
- Use GUI checkpoints for all static links, buttons and edit fields in every page (optional)
- Use parameterization instead of using hard coded data to populate the AUT.
- All references returned by the AUT must be written to the data table and verified later. These
references must be written to the test report as well.
- All automation steps should be properly commented.
- All Logic should be commented and explained.
- The Global data sheet should not be used for importing any test data.
- The Global sheet should be used only when there are any parameters to be passed in between
actions or when certain data has to be maintained through out the test.
- Use the local sheet to import any test data.
- All actions except the main calling action are to be reusable action.
- Declare all variables used in the action in the start of the action itself. While using condition
statements to control flow, indent the line, for easy readability.

No comments:

Post a Comment