How do I call functions from test_ methods? (NameError: global name 'blah' not defined)

Asked by Terence Cooper

How do I call functions from test_ methods?
JUnit functionality works OK until I try to do this.
When I do, I get messages of the form:

 - NameError: global name 'someName' not defined

where someName is the name of the function I'm trying to call.
I don't want this function to be a test hence its not named test_...

Much appreciated,

Terry.

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

put the called functions to the end of the script.
(the test script is processed in reverse order - a bug).

BTW: import cannot be used in current Sikuli's IDE test feature.

Can you help with this problem?

Provide an answer of your own, or ask Terence Cooper for more information if necessary.

To post a message you must log in.