when we conduct GUI test, it is not efficient if we take screenshot on each step, it also will produce lots of unusful screenshot files. However if a test failed, we do want to see the screenshot to facilitate bug investigation. How to make the automation code take screenshot ONLY when the test fail? Very … Continue reading Take Screenshot Only When a Test Fail