QA/Execution/Web Testing/Selenium Guidelines: Difference between revisions

no edit summary
No edit summary
Line 26: Line 26:


*Store xpath you use in the testcase in variables at the beginning of the testcase and use the variable whenever you need to use the xpath.This way,if you ever need to change the xpath,you change it only once at the top of the testcase.
*Store xpath you use in the testcase in variables at the beginning of the testcase and use the variable whenever you need to use the xpath.This way,if you ever need to change the xpath,you change it only once at the top of the testcase.
* storeLocation/verifyLocation usage:
** after a storeLocation, verifyLocation by:
*** verifyLocation regexpi:.*/en-US/firefox/admin.* (e.g.)


*Add an echo statement after every assertion.
*Add an echo statement after every assertion.
Confirmed users
9,511

edits