1.0.0 • Published 2 years ago

zerxes v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

Zerxes

Zerxes is a CLI tool that helps with automation testing of HTTP redirects.

Usage

From any directory, you can run:

$ npx @zerxes [args]

Options

You can specify options through the command line (CLI).

CLIDescriptionDefault ValueExample
inInput file with valid test cases --in=./test-cases.xlsx
outOutput file with test results --out=./output.xlsx
maxHopsMaximum HTTP hops before failure10--maxHops=10
concurrencyMaximum concurrent tests20--concurrency=20

Input Formats

Zerxes currently currently only supports CSV and XLSX files for input.

XLSX

When receiving an XLSX file as input, the input file should be structured as follows (without headers):

  • Column 1: The URL to start from (ex: http://google.com)
  • Column 2: The expected URL to be redirected to (ex: http://www.google.com)
  • Column 3: The maximum hop count for the redirect (ex: 2). Optional, leave blank to use default value.

Example:

   
http://google.comhttp://www.google.com
http://yahoo.comhttps://www.yahoo.com5

CSV

When receiving an CSV file as input, the input file should be structured as follows (without headers):

  • Column 1: The URL to start from (ex: http://google.com)
  • Column 2: The expected URL to be redirected to (ex: http://www.google.com)
  • Column 3: The maximum hop count for the redirect (ex: 2). Optional, leave blank to use default value.

Example:

http://www.google.com,http://www.google.com
http://www.yahoo.com,https://www.yahoo.com,5

Output Formats

Zerxes currently currently only supports CSV and XLSX files for output. Both formats will display the following table:

maxHopsurlexpectedRedirectsuccesshops
10http://google.comhttp://www.google.comTRUE1
5http://yahoo.comhttps://www.yahoo.comTRUE1

Examples

Call from CLI:

npx zerxes --in=./test/data/test.csv --out=./output.csv --maxHops=5
node index.js --in=./test/data/test.csv --out=./output.csv --maxHops=5

Install globally and run:

npm i -g zerxes
zerxes --in=./test/data/test.csv --out=./output.csv --maxHops=5
1.0.0

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago