🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@walrusai/cli

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walrusai/cli

walrus.ai command line tool

npmnpm
Version
0.0.11
Version published
Weekly downloads
38
-5%
Maintainers
2
Weekly downloads
 
Created
Source

walrus.ai

walrus is the command line tool for walrus.ai.

Installation

You can install walrus via npm.

npm install -g @walrusai/cli

Usage

Once you install walrus, you are ready to run your first test. You will need an API key, the url to a web application you want to test, and a list of plain english test instructions. You can get an API key for free by signing up here.

walrus -n 'test-name' -u https://amazon.com -a YOUR_API_KEY -i \
  'Login' \
  'Add an item to your cart' \
  'Make sure the item is in your cart'

Configuration

Generally, each walrus.ai test requires an url, and instructions. These can be specified in line (as in the example above), or as files.

You can optionally provide a test name, and variables which are interpolated into the instructions.

Files are written in YAML as per the example below:

---
name: 'test-name'
url: 'https://amazon.com'
instructions:
  - 'Login with :username: and :password:'
  - 'Add an item to your cart'
  - 'Make sure the item is in your cart'
variables:
  username: 'walrus@walrus.ai'
  password: 'hunter2'

You can then specify either a single test to the walrus program, or a directory of tests.

walrus -a YOUR_API_KEY -f test-case-1.yml

# OR

walrus -a YOUR_API_KEY -f test-cases/

FAQs

Package last updated on 16 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts