Skip to content

Commit

Permalink
readme text update
Browse files Browse the repository at this point in the history
  • Loading branch information
Naresh Sekar committed Jul 20, 2020
1 parent 867cb8d commit 9dbb74a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ npm run clean-report
```

## Jenkins Integration with Docker images
Get any of the linux with cypress docker image as the slaves in jenkins and use the same for executing the UI automation with this framework (Sample docker image - `https://hub.docker.com/r/postman/newman/`). From the jenkins bash Execute the following to get the testcases to run,
Get any of the linux with cypress docker image as the slaves in jenkins and use the same for executing the UI automation with this framework (Sample docker image - `https://hub.docker.com/r/postman/newman/`). From the jenkins bash Execute the following to get the testcases to run (Provided newman-run is added to the package.json dependencies),
```
#!/bin/bash -l
npm list
ls
cd <path_to_the_project>
npm install
npm run test -- <feed_file> <or custom run option>
newman-run -f <./feed/<feed_file.json>
```

In Jenkins pipeline, try to add the following snippet to execute the tests,
Expand All @@ -208,7 +208,7 @@ pipeline {
steps {
sh 'cd project/'
sh 'npm install'
sh 'npm run test -- <feed_file>' # or custom methods
sh 'newman-run -f <./feed/<feed_file.json>' # or different files
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newman-run",
"version": "1.0.2",
"version": "1.1.0",
"description": "Run multiple postman collections along with predefined configs using single feed file. Reduces commandline arguments since reporting (allure, json, cli and html) is embeded internally",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 9dbb74a

Please sign in to comment.