Confirmed users
9,511
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Here be some Selenium guidelines (mostly for writing, but include running here too). | Here be some Selenium guidelines (mostly for writing, but include running here too). | ||
= Pre-checkin requirements = | |||
# Testcase/suite naming structure: | |||
## Give meaningful names to testcases | |||
## Don't use hyphens | |||
## Testcase: e.g.: collections_addNewCollection.py | |||
## Suite: suitename_Collections.py | |||
# Have the testcase reviewed by a peer, following these requirements | |||
# Comment briefly about the flow and aim of the testcase | |||
= Some good practices = | = Some good practices = | ||
*** No spaces, no underscores, and prefix with the test area | *** No spaces, no underscores, and prefix with the test area | ||
*Give meaningful names to variables. This will make it easier to maintain the test case in the longer run. | * Give meaningful names to variables. This will make it easier to maintain the test case in the longer run. | ||
*It's best to check if you are logged in at the beginning of every test case. At the end of the test case, always logout. | * It's best to check if you are logged in at the beginning of every test case. At the end of the test case, always logout. | ||
Example: StoreElementpresent link=log in not_logged_in | Example: StoreElementpresent link=log in not_logged_in | ||