Setting what wight-api you want to use is as easy as doing wight target-set <url>
. This is required to start using wight.
An user account is required to use wight. To create your account (and subsequently to authenticate) you should use wight login
.
All projects being managed by wight must belong to a team. To create a project, schedule jobs, and many other actions, users need to belong to teams. Look for commands that end in "-team" for team management. To create a new team just use wight create-team <team-name>
.
After the team is created, to add users to it, just use wight adduser-team <team-name> <user-email>
.
To schedule a test you need a project. Creating one is simple, once you have a team. Just use wight project-create --team=<team-name> --project_name=<project-name> --repo=<git-repository>
.
Wight uses the git repository for the given project to clone it and run your tests.
Optional arguments for all commands:
--conf path configuration file path -h, --help show this help message and exit --debug toggle debug output --quiet suppress all output
Gets the target api wight is currently using.
- target <api-target-url>
positional
required
Sets target api use with wight.
Log-in to wight (or register if user not found).
- team <team-name>
positional
required
Create a team.
- team <team-name>
positional
required
Show the registered team information. The information include the projects registered for the team.
- team <actual-team-name>
positional
required
- new-team <new-team-name>
positional
required
Updates a team to change it name.
- team <team-name>
positional
required
Delete a team.
Shows the defined default team and/or project:
- --team <team-name>
not required
- --project <project-name>
not required
Define default team and/or project to be used in subsequent commands.
- project <project-name>
positional
,required
- --team <team-name>
not required
if has a default team set withwight default-set
command. Otherwise isrequired
. - --repo <git-repository>
required
Creates a project to a team in the current target.
- --project_name <new-project-name>
not required
- --repo <new-git-repository>
required
- --team <team-name>
not required
if has a default team set withwight default-set
command. Otherwise isrequired
. - --project <project-name>
not required
if has a default project set withwight default-set
command. Otherwise isrequired
.
Updates a project to change its repository.
- project <project-name> -
positional
required
- --team <team-name>
not required
if has a default team set withwight default-set
command. Otherwise isrequired
.
Deletes a project.
- url <load-test-target-url>
positional
required
- --team <team-name>
not required
if has a default team set withwight default-set
command. Otherwise isrequired
. - --project <project-name>
not required
if has a default project set withwight default-set
command. Otherwise isrequired
.
Schedules a new load test.
- --team <team-name> -
required
if you pass --project, otherwisenot-required
- --project <project-name> -
not-required
List the last 3 load tests and its status (Scheduled, Running, Finished or Failure). With --team will be listed the last 5 load test for each project of that team. With --team and --project will be listed the las 20 load test for the project.
- load_test_uuid <uuid>
positional
required
- --track
not required
Show a specific load test and it status (Scheduled, Running, Finished or Failure). If you pass --track, the command you run, each 5 sec, in loop to keep track for changes. If the test finished or fail, the command will stop.
- load_test_uuid <uuid>
positional
required
Show a load test result. Will have some data for the test result and a URL to access the report web page for the result.
- user <user-email>
positional
required
- --team <team-name>
required
(default team not implemented yet)
Adds a user to a team. You need to be the team owner or a team member to add another user to the team.
- user <user-email>
positional
required
- --team <team-name>
required
(default team not implemented yet)
Removes a user from a team. You need to be the team owner or a team member to remover another user to the team.
- user <user-email>
positional
required
Shows user info.
Change user password.