Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qubitproducts/battlesauce
battle test your rest apis with saucelabs
https://github.com/qubitproducts/battlesauce
ceh implement
Last synced: 29 days ago
JSON representation
battle test your rest apis with saucelabs
- Host: GitHub
- URL: https://github.com/qubitproducts/battlesauce
- Owner: QubitProducts
- Created: 2016-08-05T17:20:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-06T16:17:34.000Z (over 8 years ago)
- Last Synced: 2024-08-09T11:45:08.674Z (5 months ago)
- Topics: ceh, implement
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 13
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚔ battlesauce
battle test your rest apis with saucelabs1. define a spec for your api
2. run against a bunch of browsers
3. profit# motivation
useful for catching issues e.g. with incorrect cross domain header configurations or bad JSON formatting# installation
```
npm install -g battlesauce
```# usage
```
export SAUCE_USERNAME='jimbob'
export SAUCE_ACCESS_KEY='123456789'
battletest my-api-spec.json# note: if you omit the sauce credentials the test will just be run against your local chrome instance
```# spec format
```
[{
"describe": "The thing getter API",
"url": "http://echo.jsontest.com/key/value/one/two",
"method": "get",
"data": {},
"response": {
"json": {
"one": "two"
}
}
}, {
"describe": "The thing getter API status endpoint",
"url": "http://echo.jsontest.com/status",
"method": "get",
"data": {},
"response": {
"text": "ok"
}
}]```