40 / 55 · 19 Linux & Command Line · Bash Scripting for QA← prev⊞ allnext →☰ Read as one page
5.10Hands-On Exercise
- Write a smoke test script that checks 3 URLs and reports pass/fail
- Write a wait-for-service script and use it before running your test suite
- Write a cleanup script that removes test artifacts older than 7 days
- Install
shellcheckand run it on your scripts. Fix any warnings. - Add error handling (trap) to one of your scripts
- Write a script that takes environment name as an argument and runs the appropriate test suite