Help Center/
CodeArts PerfTest/
User Guide/
PerfTest Case Management/
Configuring a Test Case (Scalable Test Projects)/
Action Word Library Management
Updated on 2024-04-08 GMT+08:00
Action Word Library Management
Action Word Lib is used to manage APIs generated by importing files. After keywords are set for API files, you can quickly invoke APIs in test cases by searching for the keywords.
Importing an Interface File
- Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
- Click the name of the desired PerfTest project to go to the details page.
- Choose the Cases tab, and on the Action Word Lib page on the right, click Import API tab. You can also click on the right of the Keyword.
- In the displayed window, add the Swagger file and click OK.
- After the API file is successfully imported, a directory named after the file is automatically generated in the Keyword.
Adding a Keyword Directory Group
- Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
- Click the name of the desired PerfTest project to go to the details page.
- Choose the Cases tab, and on the Action Word Lib page on the right, click on the right of the Keyword.
- Enter the directory name of the new group and click another position no the page. The directory name is automatically saved.
Invoking the Keyword Directory API
- Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
- Click the name of the desired PerfTest project to go to the details page.
- On the Cases tab, select the desired test case in the case list on the left.
- Drag the API card to be invoked from Action Word Lib on the right to the Test Procedure of Case Script.
Figure 1 Invoking an API
- Configure the test procedure in the invoked API template based on the service requirements.
- When the configuration is complete, click Save.
Parent topic: Configuring a Test Case (Scalable Test Projects)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot