ayd-web-scenario-plugin

command module
v0.0.0-...-31cc94f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 8 Imported by: 0

README

Ayd Web-Scenario plugin

A headless browser controller for Ayd status monitoring tool.

Quick Start

1. Install

Download a plugin binary from release page. (pre built binary is not yet released) And place binary to some directory that is included in PATH environment variable.

2. Make a scenario

A scenario is a script to control headless browser, written in Lua.

A scenario looks lie above.

t = tab.new("https://your-service.example.com")

t("input[name=username]"):sendKeys("test-id")
t("input[name=password]"):sendKeys("test-password")
t("input[type=submit]"):click()

assert.eq(t("h1").text, "welcome test-id!")

Please see also reference for more information about features you can use in the scenario.

3. Test scenario
$ ayd-web-scenario --debug /path/to/scenario.lua
4. Schedule using Ayd
$ ayd web-scenario:/path/to/scenario.lua

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL