Assertions in Junit

Asked by suchitra.k

Hi Raiman,
First of all thanks a lot for all the help thats being provided for using sikuli. I am successful in using the tool to automate most of my scenarios.
I have a quick question . I am using Junit to write sikuli scripts. How can we add assertions ? other than exists and notexists is there any way to add assertions?

Thanks,
Suchitra.k

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

I am not that expert, but as far as I understand unit testing (like JUnit), at the end of a test case you use something like assert(x), where x is either True or False, to trigger the unit test framework, to do it's job.

So if you evaluate anything in your testcase, that can be "converted" to True or False, you are where you want to be.

Can you help with this problem?

Provide an answer of your own, or ask suchitra.k for more information if necessary.

To post a message you must log in.