sikuli - C++

Asked by Leticia Bermond

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Leticia Bermond (leticiabermond) said :
#2

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

Revision history for this message
Launchpad Janitor (janitor) said :
#3

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