running unit tests from win7 command line - 173217 - solved?

Asked by Ken Rubin

I'm having the same problem as J. Simmons in 173217. The status is listed as "Solved", but the solution that seems to be posted is to use fully qualified path names for image files. Although this may technically allow a command line unit test to work, it isn't practical for us to edit the large number of file references in our tests. Is there an actual fix for the problem, or an estimated time for such a fix? We haven't yet jumped into looking at Sikuli internals, but may if there's no one addressing this in the near term.

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
Ken Rubin (krubin) said :
#1

Some additional info from our testing: it looks to us like 1 parent directory above the sikuli directory is acceptable, but more than one is not. Namely, a sikuli test located here:

c:\a\test.sikuli

will work, but a test located here:

c:\a\b\test.sikuli

won't.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

The mentioned question was set to solved, since a bug was reported with reference to this question.

The situation as such is not solved at all. The Sikuli IDE unit test feature is still buggy in many areas and still on the toy level.

--- recommendation

If you want to make more sophisticated things in a unit test, step away from the unit test feature in the IDE: it still is some nice toy, but lacks many options you have in normal scripting.
Everyone who seriously does testing with Sikuli either uses Jython/Python unit test or makes it in Java directly using Sikuli's Java API.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Your other observation according script path's seems to be a general problem, that affects imports too.

I am doing some testing currently, to report a bug.

Can you help with this problem?

Provide an answer of your own, or ask Ken Rubin for more information if necessary.

To post a message you must log in.