Skip to main content

Import APIs / API Cases From Other Projects to Test Steps

The test scenario supports cross-project importing of APIs and API casess. This means that in addition to being able to reference APIs within the current project and import them as steps, it also supports importing APIs from other projects as steps to form a complete business process. This is very important for systems or architectures with complex business processes.

Importing APIs

Click on the project name and select an API from another project to import. When importing APIs from other projects, only the "Manual" mode is supported, and it does not affect the API cases data in the original project.

For the difference between the "Manual" and "Automated" modes, please refer to here.

When you select another project and import data from that project as test steps for the first time, to ensure that these steps can run normally and avoid unexpected issues with using the wrong service (base URL), the product page will guide you to perform an "Environment association" setting, associating the environment of that other project with the environment of the current project. For details, please refer to Manage the Runtime Environment of APIs for Other Projects.

When importing from other projects, or when running test scenarios containing APIs from other projects, you must have at least read-only access to that project. For more details about project permissions, please refer to member permissions settings.

Importing API Cases

Click on the project name and select an API cases from another project to import. When importing API casess from other projects, only the "Reference" mode is supported. In other words, it is a one-way import and does not affect the API cases data in the original project.

  • Reference

    The API cases will be imported in the "Reference" mode. The parameter names and parameter values in the API cases will be copied to the test steps, and the data will be completely independent from the API casess in the original project. Any changes made on either side will not affect the other. If you want to associate the test steps with the API documentation in the original project, you can click the "Sync Now" button to sync the parameter names from the API documentation.

To ensure data stability and independence, these APIs and API casess imported from external projects only support the "Manual" mode for synchronizing data with the API documentation in the original project.