Skip to content

Commit 7e418b8

Browse files
authored
Update 06_jmeter_test.md
refresh images involved.
1 parent a7ae966 commit 7e418b8

File tree

1 file changed

+15
-15
lines changed
  • docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database

1 file changed

+15
-15
lines changed

docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ JMeter can run in the CLI or on the GUI. This section describes how to use JMete
5151

5252
Run the `sh jmeter` command in the `apache-jmeter-xxx/bin/` directory to go to the GUI of JMeter. On the page shown in the following figure, create a test plan named `Oceanbase Test Plan`.
5353

54-
![Create a test plan](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/001.png)
54+
![Create a test plan](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/1.png)
5555

5656
In the left-side navigation pane, click **Oceanbase Test Plan** and choose **Add** > **Threads(Users)** > **Thread Group** to create a thread group. You can configure a variety of parameters when you use JMeter for testing. For more information about the parameters, see [Elements of a Test Plan](https://jmeter.apache.org/usermanual/test_plan.html) in JMeter Documentation.
5757

58-
![Create a thread group](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/002.png)
58+
![Create a thread group](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/1.png)
5959

6060
### Add a JDBC connection
6161

6262
Click **Thread Group** and choose **Add** > **Config Element** > **JDBC Connection Configuration** to create a JDBC configuration file.
6363

64-
![Add a JDBC connection](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/003.png)
64+
![Add a JDBC connection](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/3.png)
6565

6666
The attributes shown in the preceding figure are common parameters of a connection pool. For more information, see the experience in configuring Java connection pools shared on the Internet.
6767

@@ -87,37 +87,37 @@ Click **Thread Group** and choose **Add** > **Logic Controller** > **Transaction
8787

8888
Click **Transaction Controller** and choose **Add** > **Pre Processors** > **User Parameters** to add variables as needed. This test involves three variables: `credit_id` (account A), `debit_id` (account B), and `trans_amount` (transferred amount). The account parameters and amounts are set to random numbers within the actual ranges of test data.
8989

90-
![Configure transaction variables](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/004.png)
90+
![Configure transaction variables](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/4.png)
9191

9292
* Start a transaction
9393

9494
Click **Transaction Controller** and choose **Add** > **Sampler** > **JDBC Request** to create a JDBC request. Set **Query Type** to `AutoCommit(false)` to enable explicit transactions.
9595

96-
![Start a transaction](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/005.png)
96+
![Start a transaction](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/5.png)
9797

9898
* Create a JDBC request to deduct the transferred amount from the balance of account A
9999

100100
Click **Transaction Controller** and choose **Add** > **Sampler** > **JDBC Request**, to create a JDBC request named `JDBC update credit account`. Then, add an SQL request to deduct the transferred amount from the balance of account A.
101101

102-
![Deduct the transferred amount from the balance of account A](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/006.png)
102+
![Deduct the transferred amount from the balance of account A](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/6.png)
103103

104104
* Add Post logic to obtain the return value of the JDBC request that deducts the transferred amount from the balance of account A
105105

106106
Click **JDBC update credit account** and choose **Add** > **Post Processors** > **Regular Expression Extractor** to add Post logic to obtain the return value of the JDBC request that deducts the transferred amount from the balance of account A.
107107

108-
![Processing logic for account A](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/007.png)
108+
![Processing logic for account A](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/7.png)
109109

110110
* Create a JDBC request to increase the balance of account B
111111

112112
Click **Transaction Controller** and choose **Add** > **Sampler** > **JDBC Request** to create a JDBC request named `JDBC update debit account`. Then, add an SQL request to increase the balance of account B.
113113

114-
![Increase the balance of account B](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/008.png)
114+
![Increase the balance of account B](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/8.png)
115115

116116
* Add Post logic to obtain the return value of the JDBC request that increases the balance of account B
117117

118118
Click **JDBC update debit account** and choose **Add** > **Post Processors** > **Regular Expression Extractor** to add Post logic to obtain the return result of the JDBC request that increases the balance of account B.
119119

120-
![Processing logic for account B](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/009.png)
120+
![Processing logic for account B](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/9.png)
121121

122122
### Judgment logic - process succeeded
123123

@@ -127,13 +127,13 @@ If the updates for both accounts are successful, the transaction is committed.
127127

128128
Click **Transaction Controller** and choose **Add** > **Logic Controller** > **If Controller** to add an IF controller named `If success`. Then, add judgment conditions.
129129

130-
![Add an IF controller](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/010.png)
130+
![Add an IF controller](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/10.png)
131131

132132
* Add a commit action upon update success
133133

134134
Click **If success** and choose **Add** > **Sampler** > **JDBC Request** to create a JDBC request. Set **Query Type** to `Commit`.
135135

136-
![Commit a transaction](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/011.png)
136+
![Commit a transaction](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/11.png)
137137

138138
### Judgment logic - process failed
139139

@@ -143,20 +143,20 @@ If the update for either account fails, the transaction is rolled back.
143143

144144
Click **Transaction Controller** and choose **Add** > **Logic Controller** > **If Controller** to create an IF controller named `If fail`. Then, add judgment conditions.
145145

146-
![Add an IF controller](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/012.png)
146+
![Add an IF controller](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/12.png)
147147

148148
* Add a commit action upon update failure
149149

150150
Click **If fail** and choose **Add** > **Sampler** > **JDBC Request** to create a JDBC request. Set **Query Type** to `Rollback`.
151151

152-
![Roll back a transaction](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/013.png)
152+
![Roll back a transaction](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/13.png)
153153

154154
### View the results
155155

156156
Click **Thread-Group** and choose **Add** > **Listener** > **View Results Tree** to create a result tree file to view the test results.
157157

158-
![View the results](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/014.png)
158+
![View the results](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/14.png)
159159

160160
Click **Thread Group** and choose **Add** > **Listener** > **Aggregate Report** to create an aggregated report that aggregates the results.
161161

162-
![View the report](/img/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/06_jmeter_test/015.png)
162+
![View the report](/docs/user_manual/quick_starts/en-US/chapter_03_test_oceanbase_database/15.png)

0 commit comments

Comments
 (0)