Skip to content

Commit

Permalink
Add exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
agyen committed Sep 9, 2024
1 parent 724d927 commit 83879ca
Showing 1 changed file with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
if exists("./screenshots/modules"):
click(Pattern("./screenshots/datagrid-button.png").similar(0.69))
chart = wait("./screenshots/open-chart-button.png", 20)
click(chart)
if exists("./screenshots/chart-opened.png"):
click(Pattern("./screenshots/goog-symbol.png").exact())
wait(10)
try:
if exists("./screenshots/modules"):
click(Pattern("./screenshots/datagrid-button.png").similar(0.69))
chart = wait("./screenshots/open-chart-button.png", 30)
click(chart)
if exists("./screenshots/chart-opened.png"):
wait(5)
click(Pattern("./screenshots/goog-symbol.png").exact())
wait(10)
exit(0)
else:
popup("Chart not available to proceed")
exit(1)
else:
popup("Chart not available to proceed")
exit()
else:
popup("Module not found, can't continue")

popup("Module not found, can't continue")
exit(1)
except FindFailed:
popup("test failed")
exit(1)

0 comments on commit 83879ca

Please sign in to comment.