uabot

command module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

README

uabot Build Status Go Report Card license

Bot to send "intelligent" random usage analytics to simulate visits, queries and clicks on a site. Works with a configuration file using json format. Check the /Scenarios folder for examples.

Usage documentation

Code documentation

Supports

  • Search events
  • Click events
  • Custom events
  • Facet events
  • View events
  • TabChange events

Environment variables

Needs 3 environment variables to function :

Variable Usage
SEARCHTOKEN API key to search
UATOKEN API key to send events to UA
SCENARIOSURL Url to the scenario JSON file to randomize
LOCAL true for local (otherwise don't use)
GO15VENDOREXPERIMENT Use this for go version < 1.6
On windows
set SEARCHTOKEN=value
set UATOKEN=value
set SCENARIOSURL=value
set LOCAL=true #if scenariosurl is a local path
set GO15VENDOREXPERIMENT=1 #if golang version < 1.6
go run main.go
On MAC
export SEARCHTOKEN = value
export UATOKEN = value
export SCENARIOSURL = value
export LOCAL=true #if scenariosurl is a local path
export GO15VENDOREXPERIMENT=1 #if golang version < 1.6
go run main.go

To trigger a Docker rebuild, push with latesttag

1. Commit your changes
# We need to use the -f option here because tag latest already exists
2. git tag -f -a latest -m "Rebuild reason here"
# Push changes to branch + push changes to tag, you will need to supply credentials twice.
3. git push && git push -f --tags

forthebadge

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint
Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint Package scenariolib handles everything need to execute a scenario and send all information to the usage analytics endpoint

Jump to

Keyboard shortcuts

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