Skip to main content

Self-hosted Runner Mock

The Runner Mock is designed for scenarios where an intranet or private network requires the ability to provide Mock services. Actual requests are sent to the server where the Runner is located, and then the Runner returns Mock results by providing Mock services.

It is recommended that team or project admins follow these steps after deploying the Runner:

1. Configure the Server Host

Go to "Team Resources -> General Runner" and configure the IP or domain name of the server where the Runner is hosted within the deployed Runner service. Make sure to include the protocol (http/https) and the port number (the default one is 4524) in the host configuration. For example:

https://runner.example.com:443

http://127.0.0.1:80

configure server host for self-hosted runner

2. Check the Runner Mock Environment

In the project's environment management section, you can verify whether the Runner Mock environment has been configured. If configured, it will appear in the environment list.

checking the runner mock environment

3. Use the Runner Mock Environment

When making an API request, select the newly created Runner Mock environment to send the request and receive Mock results returned by the Runner server.

Using the runner mock environment