Skip to content

Commit

Permalink
test(chore): Add Automatic Screenshots on Test Failures and Errors
Browse files Browse the repository at this point in the history
Set `logScreenshotOnFail` property.

Forced a failure in login scenario.

Closes #8330
  • Loading branch information
noeliaSD committed Nov 21, 2022
1 parent 7de8961 commit 05d814d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/ui-test/testSuites/global_shared/steps/startupSteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
_scenario_name = "scenario_name"

def context_init(context):
# With this property it is enabled that every test failure will cause Squish to take a screenshot of the desktop when the failure occurred
testSettings.logScreenshotOnFail = True

filesMngr.erase_directory(_status_qt_path)
context.userData = {}
context.userData[_aut_name] = _status_desktop_app_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: Status Desktop login
And the user signs up with username "<username>" and password "<password>"
And the user lands on the signed in app
When the user restarts the app
And the user "<username>" logs in with password "<password>"
And the user "<username>" logs in with password "TesTEr16843/!@11"
Then the user lands on the signed in app

Examples:
Expand Down

0 comments on commit 05d814d

Please sign in to comment.