Setups and Teardowns

Multiple setups and teardowns

You can put setups and teardowns as many as you want, as long as the setups are before the request and the teardowns are after the request.

Example

# List Products

* [Sign in](../executables/auth.md)
* [Create data session](../executables/create_session.md)

```http
GET https://fakestoreapi.com/products HTTP/1.1
Authorization: Bearer 
```

* `Body.0.id`==`1`

* [Release data session](../executables/release_session.md)
* [Sign out](../executables/auth.md)

Base Directory

All relative links in Setups and Teardowns are referenced from test path argument.

You can redefine base directory via command line option -b.

Nested Setups and Teardowns

Setups and teardowns cannot be nested. That means in setup and teardown files, declaration of nested setups and teardowns will be ignored.