Recovery scenarios in Sikuli

Asked by Sahil Dev

Is it possible in Sikuli to define an exception event and the consequent recovery scenario?

An exception event might comprise of either;

A) A non-crash event such as that of a window that pops up during a test run and interrupts the test. Or

B) A crash event

Is it possible in Sikuli to define such exception events and thus the recovery scenarios if such exception events occur?

When I say recovery scenario, I mean, “defining/scripting” how the application being tested should behave when such exception events are encountered?

Thanks,

P.S. I have NOT yet satrted using/evaluating Sikuli.
 Firstly, I'm making a note of my requirements so that based on these requirements, I can test the feature of Sikuli whilst prototyping.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Since you either use scripting (Python, Ruby, JavaScript or other Java-aware languages) or program in Java using the SikuliX features via the API, you can do whatever you want, as long as it is supported by the used scripting/programming environment.

Revision history for this message
Sahil Dev (sahildev80) said :
#2

Thanks, but is there any Sikuli API that does this?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

No you have to script/program everything on your own.

The only feature:
If an image cannot be found, SikuliX can throw a FindFailed exception.
for details see: http://sikulix-2014.readthedocs.org/en/latest/region.html#exception-findfailed

Revision history for this message
Sahil Dev (sahildev80) said :
#4

Ok, yes I have read that.

Does that mean, Sikuli is an "image comparison tool", whatever else we need to achieve we have to script.Right?

Revision history for this message
RaiMan (raimund-hocke) said :
#5

you should have a short glance at the docs starting from http://sikulix.com, to get a rough feeling about the features.

Can you help with this problem?

Provide an answer of your own, or ask Sahil Dev for more information if necessary.

To post a message you must log in.