Create Test Runs in PractiTest with results from Jenkins builds.
In jenkins web UI:
- Click on Manage Jenkins in the left menu
- Select Manage Plugins
- Go to Advanced tab
- Scroll to Upload Plugin
- Click the Browse... button
- Select the practitest.hpi file
- Click Upload
In jenkins web UI:
- Click on Manage Jenkins in the left menu
- Click on Configure System
- Scroll down to PractiTest Plugin Settings
- Paste your API Token
If you don't have existing projects create one by slecting New Item in the left menu. Click on the project you want to connect to PractiTest and follow these steps:
- Click Configure in the left menu
- Scroll down to Post-build Actions
- Click on Add post-build action and select PractiTest
- Paste instance URL from PractiTest (e.g. https://prod.practitest.com/p/1/sets/5/instances/59/edit)
- Click Save
Run in console
mvn hpi:run -Pjenkins
And access : http://127.0.0.1:8080/jenkins/
Run in console
mvn hpi:hpi
The practitest.hip file should be in target/ directory.
To run jenkins in docker execute:
docker pull jenkinsci/jenkins:lts
docker run -p 8080:8080 -p 50000:50000 jenkinsci/jenkins:lts
If you are running with docker-machine
access jenkins through docker machine ip (to find out run echo $DOCKER_HOST
) otherwise just access http://localhost:8080 in your browser.