sikuli unit test can not run

Asked by Janet

Hello,
I couldn't run any unit tests either in the window xp?
The IDE is functional. I write the simple example unit test script in the editor, as follow:

def testHelloWorld(self):
   print("Hello World!")

but no test shows up in the unit test window. When clicking the Run button of the Unit test pane, nothing happens, and the IDE window dissappears, there is no way to get back to it other than restarting the IDE.

It had stucked me for several days, that would be preciate if anyone can help me solve this problem!

Thank you very much.

Janet

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
Tsung-Hsiang Chang (vgod) said :
#1

It's a known bug. The fix will be included in the next release.

Revision history for this message
Janet (wangyupep) said :
#2

the sikuli 0.10.1 has released, but how can i use the unit test window? Should i click the run button?But when i clicked it ,the same problem just appeared(sikuli IDE disappeared)......The bug seems not to be fixed!!!!!!!

Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#3

After you click the "run" button in the unit testing panel, did you see a small window showing the status of testing?

Revision history for this message
Janet (wangyupep) said :
#4

Yes, i pressed the "run" button ,a small window just appeared, but then no response. At the same time, the sikuli IDE window disappeared. If i closed the small window, then nothing......

I needed to restart a new sikuli IDE.However, the prior process(the sikuli IDE)was runing at the background. I should kill this process by Windows Task Manager......

I don not konw where i can upload a image.Then I can show this problem with the pictures.

Can you help me solve this problem?

Revision history for this message
dnyaneshwari (dnyaneshwari-chandarana) said :
#5

Hi Same thing happend with me.

It would be great if any one could tell how unit tesitng could be used in sikuli I am using version 0.10.1.

I have tries all possible option in order to genrate the test report any help would be appreciated

Revision history for this message
dnyaneshwari (dnyaneshwari-chandarana) said :
#6

Hi,
I figured out the anwer for this

1) ur function shud start lik this
def test(self):
      do something

2)save it evrytime u make a change

3) run using unit test

Revision history for this message
victorglt (victorglt) said :
#7

The unit test feature still does not work with Sikuli 1.0RC1 on Ubuntu 10.10. Clicking on run will cause the unit testing panel to freeze.

Can you help with this problem?

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

To post a message you must log in.