← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #273447]: Existing .sikuli ran in unittest

 

Question #273447 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/273447

Karl posted a new comment:
Here is something that works for this purpose:

    def run_sikuli_test(self,name):
        my_test = str.split(name,".")[2][5:]
        file = self.my_test_sikuli(my_test)
        #x = str.split(subprocess.check_output(['runsikulix', '-r', file]),"\r\n")
        output = str.split(subprocess.check_output(['runsikulix.cmd', '-r', file]),"\r\n")
        output = output[3:-1]
        return output

with the call from the TestCase being:

        self.assertEqual(self.run_sikuli_test(self.id())[0],'Success')

I'll keep the tip in mind as I develop more.

Thank you again.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.