← Back to team overview

sikuli-driver team mailing list archive

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

 

Thank you for your reply and suggestion.
I have no idea what "class path in the TeamCity context has the sikulixapi jar and all dependencies" means.
I have all dependencies in my project and TeamCity linked to the VersionControl gets the changes and builds the test.
All my changes and tests work fine, except for the test that includes the Screen class.
I'm trying my best to find a solution to the problem but to no avail.
I found the same error posted but it was related to the maven surefire plugin and jdk version on the Docker platform but I don't use Docker I just use Selenium Grid in OS.

-- 
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



References