I see 2 possibilities:

- in your crashing test with the Screen class, before Screen is touched
check the class path content

- run the crashing test in Debug mode (if possible ???) to find out,
where it crashes

Another option is, to try with the fat SikuliX IDE jar, that contains
all dependencies including SikuliX API.

Hope it helps

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1962734

Title:
  [2.0.4] Java API: Screen class: maven surefire plugin exception
  running the test from TeamCity

Status in SikuliX:
  Incomplete

Bug description:
  When I run a test with Sikuli Screen class on a local machine or from
  a local machine into a remote server, the test runs without error, but
  when I run the same test from CI (TeamCity), I get this error:

  Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on 
project myProject: There are test failures.
  [ERROR]
  [ERROR] Please refer to /root/work/myProject/target/surefire-reports for the 
individual test results.
  [ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
  [ERROR] There was an error in the forked process
  [ERROR]
  [ERROR] Cannot instantiate class com.bme.test.SikuliExampleTest
  [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There 
was an error in the forked process
  [ERROR]
  [ERROR] Cannot instantiate class com.bme.test.SikuliExampleTest
  [ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:733)
  ...

  Other tests run from TeamCity also work without errors.
  POM:
  <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>3.0.0-M5</version>
   </plugin>

     <dependency>
          <groupId>com.sikulix</groupId>
          <artifactId>sikulixapi</artifactId>
          <version>2.0.4</version>
      </dependency>

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1962734/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to