Test Development Cycle Cheat Sheet

A cheat sheet in English by Splinter
8,034 views 1,734 downloads 27 Jan 2020 History
3.7 avg · 0 ratings

Starting a Test

✔ Update DA Portal status (in dev)
✔ Create Branch (master ➡ [testId])
✔ Create test Folder:🧨
tests folder/[fisc­alY­ear­]/[­tes­tId]/files
✔ Create HTML Files (copy the offers­' names) 🧨🎯🧙‍♂️
✔ Create readme 🧨🧙‍♂️
✔ Create Dynamite json file 🧨🧙‍♂️
✔ Publish your branch ([testId]: scaffo­lding)

During a test

Make sure Dynamite is running
Check Dynamite for errors at every save
Keep your code organized, clean, and documented
Use compre­hensive variable and method names
Give methods a Single Respon­sib­ility
Turn repeated code into specia­lized functions
Prefer CSS and HTML over JS
Keep an eye on PR Recomm­end­ations

PR Recomm­end­ations

Use the latest version of the template
Code must pass JSHint validation
Check for errors and warnings on the console
Code cannot bailout
Use waitFor mehotds only when the element is always going to be present
waitFor the closest parent or the element itself
Use CSS vendor prefixes
Use valid semantic HTML
Test must remain as defined when viewport changes
Remove console messages and commented out code
Cache variables used more than once
Check if perfor­mance is not compro­mised
Only use Interc­eptAjax on specific calls, not open ones
Don't create custom functions for things that exist on the tntlib
jQuery ajax or get methods must have an error handling function
$variables that hold jQuery objects must start with $
Add the t[testId]_ prefix when naming cookies (e.g. t1234_)

Validate Recipes

Check the following items for all supported browsers (Chrome, Firefox, Edge, IE11)
Styles must correspond to TED
Logic must correspond to TED
Check metrics
Check experience on applicable viewports
If the test doesn't run on all viewports, make sure to include the viewports array
Check code docume­ntation and readab­ility
Review your code, checking PR Recomm­end­ations

Finishing a test

✔ Add metrics to readme (e.g. 1234_m­yMetric)
✔ Check if there's no inform­ation missing in the readme
✔ Create a Merge Request
✔ Paste metrics table into DA Portal (Setup Details > Custom Metrics)
✔ Update DA Portal status (Pre-QA)
✔ Submit a TED Review

Labels

🎯
The info is in the Target Portal
🧙‍♂️
There are TnT Snippets for this task
🧨
Dynamite can automate this task

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.