It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Run UI Automation Testing

The flow that I am thinking is that

 

  1. Check out source code
  2. Install dependencies  - bower
  3. Run the server in the agent (mvn tomcut:run)
  4. Run the Selenium test
  5. Turn off the server

But looking at the mvn tomcut:run, the CI will not stop as it feels like it runs the server on it self and we cannot proceed with the step 4. 

 

What's the best practice here?

 

 

2 answers

I think mvn tomcat:run will wait for return code in order to pass or fail the build. You can try creating  a .bat and return some code. Even I faced this issue but couldn't work on it.

So based in this code, Does this mean it will just execute the mvn tomcat:run in the background and execute next the exit?

mvn tomcat:run
exit /b 0

I think setting maven.tomcat.fork to true lets you keep executing in maven after starting the tomcat - see https://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/run-mojo.html

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

129 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you