Add the feature of take screenshoot when a test case fail.