Skip to content
Maciej Laskowski edited this page Sep 7, 2018 · 2 revisions

Web API

Web API for accessing and modifying data stored in AET Database. This API is part of AET System and is the interface between system database, user and application.

Its methods are used by AET Maven Plugin to download reports, HTML Report uses it to load images and to perform rebase action.

Rebase (switching artifacts id of pattern(s)) and adding comments should be done on client side. Web API only consumes whole json representation of suite.

Executor API

The Test Executor module is a part of AET Web API and an entry point of the test suite processing. You may read more about it here

Web API HTTP methods

Get artifact by artifact Id

Get metadata by correlationId

Get metadata by suite name

Get metadata by suite name and version

Update suite metadata
  • URL: /api/metadata
  • HTTP Method: POST
  • Parameters: raw JSON in POST body
  • Example: http://aet.example.com/api/metadata [raw json in post body]
  • Description: This method increments version number before saving to DB and returns updated suite object in json format. Returns status 409 if given suite is locked.

Get correlationIds and versions by suite name

Get lock for suite

Try to set lock
  • URL: /lock
  • HTTP Method: POST
  • Parameters: value - additional info for lock (currently it's correlationId only) "company-project-name" as last part of path
  • Example: http://aet.example.com/lock/cognifide-example-mysimplesuite [value=cognifide-example-mysimplesuite-12312454]
  • Description: This methods sets lock only if there is no lock already set for given suite. Returns status 409 if given suite is already locked.

Update heart beat
  • URL: /lock
  • HTTP Method: PUT
  • Parameters: value - additional info for lock (currently it's correlationId only) "company-project-name" as last part of path
  • Example: http://aet.example.com/lock/cognifide-example-mysimplesuite [value=cognifide-example-mysimplesuite-12312454]
  • Description: This method extends the duration of a lock for given suite.

Gets list of all suites in system
  • URL: /configs/list
  • HTTP Method: GET
  • Example: http://aet.example.com/config/list
  • Description: Returns all suites for all projects in all companies as html list of links to reports and metadata (this method will change or will be removed in near future- for now it stays only for devs and testing purposes).

Get all locked suites

Get communication settings

Get suite xUnit output
Clone this wiki locally