Skip to content

Latest commit

History

History
80 lines (56 loc) 路 2.38 KB

importing-tests-definition.mdx

File metadata and controls

80 lines (56 loc) 路 2.38 KB
id title description hide_table_of_contents keywords image
importing-tests-definition
Importing Tests from a Tracetest Definition
Tracetest enables importing tests from a Tracetest Definition visually in the Tracetest Web UI.
false
tracetest
trace-based testing
observability
distributed tracing
testing
definition
import
importing

馃憠 Join our shared Pokeshop API Demo environment and try importing a Test yourself!

Main Screen

Click the Import button:

Import a Test Button

The "Import a Test" dialog appears:

Import a Test

The option to choose the import method is presented:

  • Definition - Use a Tracetest Definition file as a starting point.
  • Postman - Define your HTTP request via a Postman collection.
  • CURL Command - Define your HTTP test via a cURL command.

Choose Definition to display the import options:

Choose Import Method

Input a valid Tracetest Definition using JSON or YAML:

Paste Definition

YAML Definition used for this example:

type: Test
spec:
  id: py5M-hHIR
  name: Pokeshop - Import
  trigger:
    type: http
    httpRequest:
      method: POST
      url: http://demo-pokeshop/pokemon/import
      body: "{\"id\":52}"
      headers:
      - key: Content-Type
        value: application/json

Click Import:

After Import Definition

From the Create Test Page add any additional information and click Run:

Create Test

The test will start:

Awaiting Trace

When the test is finished, you will get the following results:

Finished Trace

Please visit the Test Results document for an explanation of viewing the results of a test.

馃憠 Join our shared Pokeshop API Demo environment and try importing a Test yourself!