Screenshot after test execution
Asked by
Leonardo Carvalho Sobral dos Santos
Hi,
I'd like to know, how can I do to after each test execution, sikuli take a Screenshot.
For example;
actually I'm doing like this;
testOk = 0;
testNok = 0;
try:
.
.
.
monthView()
print("Test 11 - Passed")
testOk = testOk +1;
except:
print("Test 11 Failed")
testNok = testNok +1;
.
.
.
print ("Test OK",testOk)
print ("Test Not OK",testNok)
what command should I add to if test pass or fail, application take a Screenshot of page?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Leonardo Carvalho Sobral dos Santos
- Solved:
- Last query:
- Last reply:
To post a message you must log in.