Run integration Camunda 7 QA module

Hello,
I am able to build tests with skipping integration tests building Camunda BPM platform.

However, I am not able to run integration tests. I am following this readme file and followed commands that are in the file. I am not able to build it succesfully in my intelliJ. camunda-bpm-platform/qa/README.md at 58a68573bae5053b88a0a3b89c82dca7a459a2a5 · camunda/camunda-bpm-platform · GitHub

Any ideas?

Hi @prajwol123,

Which integration tests do you want to execute? For example, which server and database? Which maven profiles do you enable?
As an alternative, you can use a maven to build it from a command line, to make sure you pass the needed profile.
If that doesn’t help, please share the error that you observe.

Best,
Yana

I ran this command under /qa module.

mvn clean install -Pengine-integration,tomcat,h2

Do I need to do anything else before running the test? I am using IntelliJ as as IDE.

No, that should be sufficient. What do you observe? Does the build fail?

I am getting this error. I see other errors similar to this.

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.744 s <<< FAILURE! - in org.camunda.bpm.integrationtest.functional.spring.SpringExpressionResolvingTest
[ERROR] org.camunda.bpm.integrationtest.functional.spring.SpringExpressionResolvingTest  Time elapsed: 6.744 s  <<< ERROR!
java.lang.RuntimeException: The server command (/text/deploy?path=%2Fclient) failed with content (FAIL - Deployed application at context path [/client] but context failed to start).```

@Yana any suggestions ?

Which Maven, Java version do you use?
Please try out with Maven 3.8 and Java 11.
If that doesn’t work, you can try to look at the server log.

I have maven 3.8 and java 17. I am using master branch. Doesn’t it require java 17 for that?

Do you recommended any other branch?

Are there any configurations/settings I need to change locally in order to run those tests ? It should run out of the box right?

For Tomcat 9 tests, please switch to Java 11. I think tests must be adjusted to work with Java 17.

Got it. Thank You @Yana

@Yana with java 11, this command works → mvn clean install -Pengine-integration,tomcat,h2 but looks like there are no tests. Does it have any tests for engine-integration? However, I could run tests for web apps → mvn clean install -Pwebapps-integration,tomcat,h2

In meantime, we merged changes for Tomcat 10 and I guess you pulled the latest changes. The profiles now are different:

  • Tomcat 9 - mvn clean install -Pengine-integration,tomcat9,h2 with JDK 11
  • Tomcat 10 - mvn clean install -Pengine-integration-jakarta,tomcat,h2 with JDK 17

I hope that helps.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.