sikuli - C++

Asked by Leticia Bermond on 2012-07-23

Hi,
I need to make unit testing a program written in C + +, is this possible with Sikuli?
Thanks

Question information

Language:
Spanish Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2012-07-24
Last reply:
2012-08-09
RaiMan (raimund-hocke) said : #1

Since Sikuli only looks and acts on the screen, it does not matter, in what language a program is written.

So if it is sufficient for your testing, to check what your program produces on a screen and how it reacts on mouse and keyboard actions: yes you can use Sikuli for that.

Hi,
thanks for you help, but Sikuli allows unit testing as follows:

def setUp(self):
  openApp("AnyRandom.app")
  wait(SCREENSHOT_OF_THE_APP) # wait until the app appears

def tearDown(self):
  closeApp("AnyRandom.app")
  untilNotExist(SCREENSHOT_OF_THE_APP) # wait until the app disappears

def testA(self):
  ....
  assert exists(PICTURE_THAT_SHOULD_BE_THERE)

def testB(self):
  ....
  assert not exists(PICTURE_THAT_SHOULD_NOT_BE_THERE)

Can i do this with any executable? and how I do it?

thanks

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.