← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162606]: [HowTo] IDE: use sub functions (reusable code) in test cases

 

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

RaiMan posted a new comment:
Uuups, after knowing, that the defined functions in the IDE test are processed in reverse order, I should have discovered this obvious solution:
- put all needed sub def()'s to the end of the script, so they will be known later, when the test cases are processed. Since they are internally packed into a class, they need self as first parameter and have to be called with self.xxxx. 

I will add it to the top.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.