FitNesse Error while executing Sikuli code

Asked by Chavali Muralee

I have integrated Sikuli code for upload a file and following is the Sikuli code for upload:

public void uploadSikiuliCode(String image){

                       String target ="C:/Users/TestQA/Desktop/TextBox.png";
                            Screen s = new Screen();
                            try{
                                            s.click(target,0);
                                            s.type(image, 0);
                                            waitForPageLoad(3);
                                            s.click("C:/Users/TestQA/Desktop/Open.png",0);
                            }
                            catch(Exception e){
                                            e.printStackTrace();
                                            }

}

I have executed and able to upload file using Eclipse IDE I have integrated the same to FitNesse and executed it was working fine till it enters into the Sikuli (upload) method After entering into the method while executing the Screen s = New Screen ()

The following error is displayed

Could not detect death of command line test runner.java.lang.IllegalThreadStateException: process has not exited
    at java.lang.ProcessImpl.exitValue(Native Method)
    at fitnesse.testsystems.CommandRunner.join(CommandRunner.java:86)
    at fitnesse.testsystems.slim.SlimTestSystem.bye(SlimTestSystem.java:117)

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

Cannot see the Sikuli problem.

Might have something to do with how in FitNess such snippets are handled.

Seems it is pushed into a thread, which is not terminated correctly ???

Revision history for this message
markshao (mark-shao) said :
#2

It seems to be the SlimServer try to close the current test process and got the error.

Can you help with this problem?

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

To post a message you must log in.