Apidog Docs
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
HomeLearning CenterSupport CenterAPI References
HomeLearning CenterSupport CenterAPI References
Discord Community
Slack Community
X / Twitter
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
  1. Run test scenarios
  • Apidog Learning Center
  • Get started
    • Introduce Apidog
    • Basic concepts in Apidog
    • Navigating Apidog
    • Quick Start
      • Overview
      • Specify a new endpoint
      • Make a request to the endpoint
      • Add an assertion
      • Create a test scenario
      • Share your API documentation
      • Explore more
      • Send a request and save as an endpoint
    • Migration
      • Overview
      • Manual import
      • Scheduled import
      • Import options
      • Export data
      • Import from...
        • Import from Postman
        • Import OpenAPI (Swagger) spec
        • Import cURL
        • Import Markdowns
        • Import from Insomnia
        • Import from apiDoc
        • Import .har file
        • Import WSDL
  • Design APIs
    • Overview
    • Create a new API project
    • Endpoint basics
    • Components
    • Common fields
    • Global parameters
    • Endpoint change history
    • Batch endpoint management
    • Configure multiple request body examples
    • Schemas
      • Overview
      • Create a new schema
      • Build a schema
      • Generate Schemas from JSON etc.
    • Security schemes
      • Overview
      • Create a security scheme
      • Use the security scheme
      • Security scheme in online documentation
    • Advanced features
      • Custom endpoint fields
      • Import endpoints as test steps
      • Endpoint status
      • Appearance of parameter lists
      • Endpoint unique idenfication
  • Develop and Debug APIs
    • Overview
    • Generate requests
    • Send requests
    • Endpoint cases
    • Dynamic values
    • Validate responses
    • Design-first Mode & Request-first Mode
    • Generate code
    • Environments & variables
      • Overview
      • Using variables
      • Environments & services
    • Vault secrets
      • Overview
      • HashiCorp Vault
      • Azure Key Vault
      • AWS Secrets Manager
    • Pre/Post processors
      • Overview
      • Assertion
      • Extract variable
      • Wait
      • Database operations
        • Overview
        • MongoDB
        • Redis
        • Oracle Client
      • Using scripts
        • Overview
        • Postman scripts reference
        • Pre processor scripts
        • Post processor scripts
        • Public scripts
        • Calling other programming languages
        • Using JS libraries
        • Visualizing responses
        • Script examples
          • Assertion scripts
          • Using variables in scripts
          • Using scripts to modify request messages
          • Other examples
    • Dynamic values Modules
  • Mock API data
    • Overview
    • Smart mock
    • Custom mock
    • Mock priority sequence
    • Mock scripts
    • Cloud mock
    • Self-hosted runner mock
    • Mock language (Locales)
  • Automated tests
    • Overview
    • Test reports
    • Test scenarios
      • Create a test scenario
      • Pass data between requests
      • Flow control conditions
      • Import endpoints/endpoint cases from other projects
      • Sync data from endpoints/endpoint cases
      • Export test scenarios
    • Run test scenarios
      • Run a test scenario
      • Data-driven testing
      • Run test scenarios in batch
      • Scheduled tasks
      • Manage the runtime environment of APIs from other projects
    • Test APIs
      • Integration testing
      • Performance testing
      • End-to-end testing
      • Regression testing
    • Apidog CLI
      • Overview
      • Installing and running Apidog CLI
      • Apidog CLI Options
    • CI/CD
      • Overview
      • Integrate with Jenkins
      • Integration with Gitlab
  • Publish API Docs
    • Overview
    • API Technologies Supported
    • Quick share
    • View the API documentation
    • Publish docs sites
    • Folder tree settings
    • Custom layouts
    • Visibility settings
    • Endpoint SEO settings
    • Custom domain
    • Embedding values in document URLs
    • Documentation Search
    • Integrating Google Analytics with Doc Sites
    • CORS Proxy
    • API Versions
      • Overview
      • Create API versions
      • Publish API versions
      • Share endpoints with API versions
  • Send requests
    • Overview
    • gRPC
    • Use request proxy agents for debugging
    • SOAP/WebService
    • GraphQL
    • WebSocket
    • Socket.IO
    • SSE debugging
    • Create requests
      • Request History
      • Request basics
      • Parameters and body
      • Request headers
      • Request settings
      • HTTP/2
    • Authentication and authorization
      • Overview
      • CA and client certificates
      • Authorization types supported by Apidog
      • Digest Auth
      • OAuth 1.0
      • OAuth 2.0
      • Hawk Authentication
      • Kerberos
      • NTLM
      • Akamai EdgeGrid
    • Response and cookies
      • Overview
      • API response in Apidog
      • Create and send cookies
      • Debug requests
      • Save the request as an endpoint
  • Branches
    • Overview
    • Create a new sprint branch
    • Test APIs in a branch
    • Design API in a branch
    • Merge sprint branches
    • Manage sprint branches
  • Apidog MCP Server
    • Overview
    • Conntect API Specification within Apidog Project to AI via Apidog MCP Server
    • Conntect Online API Documentation Published by Apidog to AI via Apidog MCP Server
    • Conntect OpenAPI Files to AI via Apidog MCP Server
  • Best practices
    • How to handle API signatures
    • How to access OAuth 2.0 protected APIs
    • Apidog collaboration workflow
    • Managing authentication state in Apidog
  • Administration
    • Onboarding Checklist
      • Basic Concepts
      • Onboarding Guide
    • Managing Teams
      • Managing Teams
      • Managing Team Members
      • Member Roles & Permission Settings
      • Team Activities
      • Team Resources
        • General Runner
        • Team Variables
        • Request Proxy Agent
      • Real-time Collaborations
        • Team Collaboration
    • Managing Projects
      • Managing Projects
      • Managing Project Members
      • Notification Settings
      • Project Resources
        • Database Connection
    • Managing Organizations
      • Single Sign-On (SSO)
        • SSO Overview
        • Configure Microsoft Entra ID
        • Configure Okta
        • Configure SSO for an Organization
        • Managing user accounts
        • Mapping Groups to Teams
      • SCIM Provisioning
        • Intro to SCIM Provisioning
        • Microsoft Entra ID
        • Okta
      • Organization Resources
        • Self-hosted Runner
  • Billing
    • Overview
    • Credits
    • Unable to use credit cards?
    • Managing subscriptions
    • Upgrade plan
  • Data & Security
    • Where is Apidog's data stored, and how is data security ensured?
    • How is user data stored? Will this data be public? Or will it be private? Will all data be stored in the cloud?
    • When sending requests, do they go through the Apidog server? Is data security ensured?
  • Add-ons
    • API Hub
    • Apidog Intellij IDEA plugin
    • Browser Extension
      • Chrome
      • Microsoft Edge
    • Request Proxy
      • Request proxy in Apidog web
      • Request proxy in shared docs
      • Request proxy in Apidog client
  • Account & preferences
    • Language settings
    • Data backup
    • Network proxy configuration
    • Hot keys
    • Updating Apidog
    • Generate OpenAPI access token
    • Deleting account
    • Account settings
  • References
    • API-Design First Approach
    • Apidog OpenAPI/Swagger Specificaiton Extensions
    • JSONPath
    • XPath
    • Regular Expressions
    • JSON Schema
    • CSV File Format
    • Install Java Environment
    • Runner deployment environment
    • Apidog flavored Markdown
  • Apidog Europe
    • Apidog Europe
  • Support Center
  1. Run test scenarios

Scheduled tasks

You can set up "Scheduled Tasks" to automatically run configured automated test scenarios at specified times, obtain task execution results, and meet the requirements for scheduled testing and regression.
Scheduled tasks is in Beta right now.
To run scheduled tasks, you first need to configure a Self-hosted Runner.
The number of times you can run scheduled tasks depends on the plan you have subscribed to. You can find the details on the Apidog pricing page.

Accessing the scheduled tasks#

To access the "Scheduled Tasks", navigate to the Tests module and click on "Scheduled Tasks." Here, you can find that all the scheduled tasks are organized in a clear, structure folder format.
accessing-scheduled-tasks-apidog.png
You can easily create new scheduled tasks or folders to group tasks within the folder tree.
scheduled-tasks-creation-settings.png
Additionally, you can perform actions like editing or deleting specific tasks or folders.
editting-scheduled-tasks.png
Clicking on Scheduled Tasks will display a list of all tasks on the right-hand side. This list includes basic details and management options, providing a more streamlined way to handle your tasks.
checking-all-scheduled-tasks.png

Scheduled task details#

Clicking on an existing scheduled task or creating a new one will open task details on the right.
configuring-scheduled-tasks-settings.png
In the scheduled task details, you can configure the following settings:
Task Name and Description: Used to distinguish the scheduled task and describe its purpose in detail.
Enable/Disable: Use the toggle switch to activate or deactivate the scheduled task as needed.
Test Scenarios: Choose one or more test scenarios for the scheduled task to execute. Each test scenario can be expanded to configure its runtime settings independently.
Environment, test data, iterations, delay, and saving requests/responses are standard runtime configurations. Learn more about these settings here.
Environment/Global Variable Value: Specify the actual values of the environment or global variables used in this test scenario. There are two options, and detailed explanations can be found here. When selecting to use variables saved in the Runner, you will need to further define the variable scope. This helps segment variables based on actual needs and prevents task failures caused by variable conflicts during execution. Once the scope is defined, you can check the current test scenario variables stored in Runner visually in the user interface.
scheduled-tasks-test-scenatrio-settings.png
Here are three options to define the environment/global variable scope:
environment-global-variable-scope.jpg
Environment/Global Variable ScopeRead/Write Environment/Global VariablesDescription
Share only in the current test scenario
  • In the current specified Runner, this test scenario has a dedicated file to store its environment/global variables persistently.
  • Only the current test scenario can read and write variables in this file.
The smallest variable scope with minimal impact. Suitable for cases where the results of the previous run of this test scenario need to be used in the next run.
Share across all test scenarios in the current scheduled task
  • In the current specified Runner, the scheduled task has a file to store environment/global variables that can be used across all its test scenarios.
  • All test scenarios in the current scheduled task can read and write variables in this file.
A recommended variable scope with moderate impact. Suitable for cases where data needs to be shared between different test scenarios within the same scheduled task.
Share across all scheduled tasks in the current scheduled task folder
  • In the current specified Runner, the scheduled task folder has a file to store environment/global variables that can be used across all its schedule tasks and test scenarios.
  • All test scenarios in all scheduled tasks within the current folder can read and write variables in this file.
The largest variable scope with the most significant impact. It is possible that running a certain scheduled task modifies the variable value, leading to the failure of other scheduled tasks. Suitable when data needs to be shared across multiple tasks in the same folder.
TIP
TheKeep variable valuesoption in the test scenario design page must be enabled to ensure that any changing environment/global variables set via pre/post processors during execution are saved to the specified variable scope within the Runner.
Use same execution config: Apply the same runtime configuration to all test scenarios within the task below.
Run Cycle: Set a schedule for the task, such as every Sunday at 11 PM or every 6 hours.
Runs on: Specify where the task will run, such as via Apidog Cloud (coming soon) or a self-hosted Runner. If multiple Runners are deployed within the team, you can choose one.
Notification: Enable notifications to send task results to designated recipients upon completion. Configure notifications to trigger after every run or only in case of failures, minimizing unnecessary alerts. Refer to notification settings for more details.

Executing scheduled tasks#

Once a scheduled task is completed, its results are automatically uploaded from the Runner to the server. You can access all the detailed results of schedule tasks in the "Scheduled Tasks - Run History" within the Apidog client.
run-history-scheduled-tasks.png
TIP
It is recommended to enable notifications for scheduled tasks. This allows you to receive notification messages immediately when the test scenario is completed, ensuring you can promptly review the results.
Previous
Run test scenarios in batch
Next
Manage the runtime environment of APIs from other projects
Built with