1.2.4 • Published 3 years ago

http-requests-tester v1.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

HTTP requests tester

It's a CLI HTTP tester based on HTTP client and HTTP tests implemented in PHPStorm.

Github repo: https://github.com/nitool/http-requests-tester

NPM package: https://www.npmjs.com/package/http-requests-tester

Installation and usage

Install:

npm install -g http-requests-tester

Usage:

npx http-requests-tester --selected-client clientName --client-file rest-client.env.json test_file.http 

Test file example:

# Example test
GET http://httpbin.org/status/200
Accept: text/plain

> {%
    client.test('example test set', function () {
        client.log('example log')
        client.assert(response.status === 200, 'it does not work')
    })
%}

Status:

It works but work is still in progress. Package needs refactor and unit tests.

Resources:

Options:

--client-file=path_to_file.json - config file with possible clients
--selected-client='name' - each client file can contain multiple clients, this options is required and selects config to use while making request
--help|-h - shows help message
--verbose|-v - show logs, by default only errors are printed out
--autolog-response - logs every received response when verbose is enabled
1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.2.1

4 years ago

1.0.19

4 years ago

1.1.0

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago