Skip to content
Discussion options

You must be logged in to vote

Thanks for raising this - it's a good question and comes up quite often when people start working with multiple APIs in the same test suite.

CallAnApi is intentionally configured with a default base URL to reduce configuration noise and repetition across your tests. In most scenarios, you're interacting with a single API, so having a shared base URL keeps your test code concise and easier to maintain.

That said, you're not locked into that base URL.

As described in the docs, you can still send requests to any other endpoint by specifying the full URL explicitly. Here's the example for reference:

import { actorCalled } from '@serenity-js/core'
import { CallAnApi, GetRequest, LastResponse, S…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jan-molak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants