1.5.2 • Published 8 years ago
httptester v1.5.2
httptester - Application http paths tester
httptester is a simple to use node module to test http/https URLs of your application.
Install and configuration
Install with npm
npm install httptester
Copy /test folder from module to project root Copy /bin folder from module to /test
httptester starts from a config file to run http/https tests.
Generate config.json by running the following command and follow the instructions
bash ./test/bin/genconfig.sh
Config file example
{
"baseUrl": "http://127.0.0.1:3000",
"login" : {
"path" : "/login",
"username" : "YOUR_USERNAME",
"pass" : "YOUR_PASSWORD"
},
"rejectCodes" : [500, 404, 403, 402, 401, 400],
"cases": [
{
"path": "/dashboard",
"method": "GET",
"headers" : {
"X-Access-Token": "DuhgduihsdFHfiudsigsdoigjsDGU659595922"
}
},
{
"path": "/companies?_=1474988489928",
"method": "GET"
}
]
}
Tests launcher example
var tester = require('httptester');
try {
tester.launch('./test/config.json')
} catch(e) {
console.log(e);
}
1.5.2
8 years ago
1.5.1
8 years ago
1.5.0
8 years ago
1.4.5
8 years ago
1.4.4
8 years ago
1.4.3
8 years ago
1.4.0
8 years ago
1.3.9
8 years ago
1.3.8
8 years ago
1.3.7
8 years ago
1.3.5
8 years ago
1.3.4
8 years ago
1.3.3
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.0
8 years ago
1.1.9
8 years ago
1.1.8
8 years ago
1.1.7
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago