MySQL
Connecting to the Database
On the endpoint page, click "Pre/Post Processors" and select "Database Operation".
Click the "Database Connections" dropdown and choose "Manage Database Connection", then click the "+ New" button at the top right corner.
In the popup window, select "MySQL" as the database type and fill in the connection details including host, port, user name, password, and database name. You can store these details in variables and test the connection.
1.
2.
3.
Operating the Database
SELECT
[
{
"id": 1,
"name": "jack"
}
]
user_id
$[0].id
userList
$
INSERT
DELETE
UPDATE
Usage in Automated Test
Using Dynamic Value Expressions
Using Variables
products_id
) from previous test step:{{variables}}
in SQL for the next test steps:
Using ForEach Loop
4
is the ID of the ForEach step β replace it with the correct ID in your workflow.
FAQs
Modified atΒ 2025-06-11 07:32:15