Should I use class methods or classes to do the same as sikuli scripts on a given environement?

Asked by Uwin Adri

Hello there again,
I m currently working on a project of automation of tests of a User Interface, and I am using the sikuli-script.jar.
About the design: I ve been using a wrapper (in Jython) in order to call sikuli scripts (written in different files) on my environnement, now my project (the one i m working on) concerns of re-writing the same wrapper in Java. And my question is:
Is it smart to use class methods (one method being a test) to do actions on my environnement or should I use classes (one class consisting on one test on the environnement)?
Which design would feet to my project?

An environnement consists of an application or a set of applications.

Your help will be highly apreciated!

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

in all cases, it is the best choice, to use some testing framework:

--- module unittest in Jython (see faq 1804)

--- JUnit in Java

This gives you all organizational, runtime and reporting options you need.

Can you help with this problem?

Provide an answer of your own, or ask Uwin Adri for more information if necessary.

To post a message you must log in.