1.5.2 • Published 10 years ago

httptester v1.5.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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

10 years ago

1.5.1

10 years ago

1.5.0

10 years ago

1.4.5

10 years ago

1.4.4

10 years ago

1.4.3

10 years ago

1.4.0

10 years ago

1.3.9

10 years ago

1.3.8

10 years ago

1.3.7

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.9

10 years ago

1.1.8

10 years ago

1.1.7

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago