Skip to content

Commit 715b1c2

Browse files
author
admin
committed
added websudo jmeter confluence
1 parent 4652cff commit 715b1c2

File tree

1 file changed

+75
-23
lines changed

1 file changed

+75
-23
lines changed

app/jmeter/confluence.jmx

Lines changed: 75 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ if ( sleep_time > 0 ) {
17801780
<hashTree/>
17811781
</hashTree>
17821782
</hashTree>
1783-
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="create_blog" enabled="true">
1783+
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="create_blog">
17841784
<intProp name="ThroughputController.style">1</intProp>
17851785
<boolProp name="ThroughputController.perThread">false</boolProp>
17861786
<intProp name="ThroughputController.maxThroughput">1</intProp>
@@ -2032,7 +2032,7 @@ if ( sleep_time &gt; 0 ) {
20322032
<boolProp name="TransactionController.includeTimers">false</boolProp>
20332033
</TransactionController>
20342034
<hashTree>
2035-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="190 rest/api/content/${ajs-content-id}?status=draft" enabled="true">
2035+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="190 rest/api/content/${ajs-content-id}?status=draft">
20362036
<stringProp name="HTTPSampler.contentEncoding">utf-8</stringProp>
20372037
<stringProp name="HTTPSampler.path">${application.postfix}/rest/api/content/${ajs-content-id}?status=draft</stringProp>
20382038
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
@@ -2098,7 +2098,7 @@ if ( sleep_time &gt; 0 ) {
20982098
</ResponseAssertion>
20992099
<hashTree/>
21002100
</hashTree>
2101-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="200 ${x_new_title_blog}" enabled="true">
2101+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="200 ${x_new_title_blog}">
21022102
<stringProp name="HTTPSampler.path">${application.postfix}/${x_new_title_blog}</stringProp>
21032103
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
21042104
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -2141,7 +2141,7 @@ if ( sleep_time &gt; 0 ) {
21412141
</ResponseAssertion>
21422142
<hashTree/>
21432143
</hashTree>
2144-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="210 rest/likes/1.0/content/${x_content_id}/likes" enabled="true">
2144+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="210 rest/likes/1.0/content/${x_content_id}/likes">
21452145
<stringProp name="HTTPSampler.path">${application.postfix}/rest/likes/1.0/content/${ajs-content-id}/likes</stringProp>
21462146
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
21472147
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -2189,7 +2189,7 @@ if ( sleep_time &gt; 0 ) {
21892189
</HeaderManager>
21902190
<hashTree/>
21912191
</hashTree>
2192-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="220 rest/inlinecomments/1.0/comments" enabled="true">
2192+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="220 rest/inlinecomments/1.0/comments">
21932193
<stringProp name="HTTPSampler.path">${application.postfix}/rest/inlinecomments/1.0/comments</stringProp>
21942194
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
21952195
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -2237,7 +2237,7 @@ if ( sleep_time &gt; 0 ) {
22372237
</HeaderManager>
22382238
<hashTree/>
22392239
</hashTree>
2240-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="230 plugins/editor-loader/editor.action" enabled="true">
2240+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="230 plugins/editor-loader/editor.action">
22412241
<stringProp name="HTTPSampler.path">${application.postfix}/plugins/editor-loader/editor.action</stringProp>
22422242
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
22432243
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -2356,7 +2356,7 @@ if ( sleep_time &gt; 0 ) {
23562356
<hashTree/>
23572357
</hashTree>
23582358
</hashTree>
2359-
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="create_and_edit_page" enabled="true">
2359+
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="create_and_edit_page">
23602360
<intProp name="ThroughputController.style">1</intProp>
23612361
<boolProp name="ThroughputController.perThread">false</boolProp>
23622362
<intProp name="ThroughputController.maxThroughput">1</intProp>
@@ -2384,7 +2384,7 @@ if ( sleep_time &gt; 0 ) {
23842384
<boolProp name="TransactionController.includeTimers">false</boolProp>
23852385
</TransactionController>
23862386
<hashTree>
2387-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="240 pages/createpage.action" enabled="true">
2387+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="240 pages/createpage.action">
23882388
<stringProp name="HTTPSampler.path">${application.postfix}/pages/createpage.action</stringProp>
23892389
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
23902390
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -2575,7 +2575,7 @@ if (isFail) {
25752575
<boolProp name="TransactionController.includeTimers">false</boolProp>
25762576
</TransactionController>
25772577
<hashTree>
2578-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="250 rest/api/content/${ajs-content-id}?status=draft" enabled="true">
2578+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="250 rest/api/content/${ajs-content-id}?status=draft">
25792579
<stringProp name="HTTPSampler.path">${application.postfix}/rest/api/content/${ajs-content-id}?status=draft</stringProp>
25802580
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
25812581
<stringProp name="HTTPSampler.method">PUT</stringProp>
@@ -4960,7 +4960,7 @@ if ( sleep_time &gt; 0 ) {
49604960
<hashTree/>
49614961
</hashTree>
49624962
</hashTree>
4963-
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="like_page" enabled="true">
4963+
<ThroughputController guiclass="ThroughputControllerGui" testclass="ThroughputController" testname="like_page">
49644964
<intProp name="ThroughputController.style">1</intProp>
49654965
<boolProp name="ThroughputController.perThread">false</boolProp>
49664966
<intProp name="ThroughputController.maxThroughput">1</intProp>
@@ -4989,7 +4989,7 @@ if ( sleep_time &gt; 0 ) {
49894989
<boolProp name="TransactionController.includeTimers">false</boolProp>
49904990
</TransactionController>
49914991
<hashTree>
4992-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="470 rest/likes/1.0/content/&lt;page_id&gt;/likes" enabled="true">
4992+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="470 rest/likes/1.0/content/&lt;page_id&gt;/likes">
49934993
<stringProp name="HTTPSampler.path">${application.postfix}/rest/likes/1.0/content/${page_id}/likes</stringProp>
49944994
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
49954995
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -5054,7 +5054,7 @@ if ( sleep_time &gt; 0 ) {
50545054
<boolProp name="IfController.useExpression">true</boolProp>
50555055
</IfController>
50565056
<hashTree>
5057-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="480 rest/likes/1.0/content/${page_id}/likes" enabled="true">
5057+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="480 rest/likes/1.0/content/${page_id}/likes">
50585058
<stringProp name="HTTPSampler.path">${application.postfix}/rest/likes/1.0/content/${page_id}/likes</stringProp>
50595059
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
50605060
<stringProp name="HTTPSampler.method">DELETE</stringProp>
@@ -5098,7 +5098,7 @@ if ( sleep_time &gt; 0 ) {
50985098
<boolProp name="IfController.useExpression">true</boolProp>
50995099
</IfController>
51005100
<hashTree>
5101-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="490 rest/likes/1.0/content/${page_id}/likes" enabled="true">
5101+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="490 rest/likes/1.0/content/${page_id}/likes">
51025102
<stringProp name="HTTPSampler.path">${application.postfix}/rest/likes/1.0/content/${page_id}/likes</stringProp>
51035103
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
51045104
<stringProp name="HTTPSampler.method">POST</stringProp>
@@ -5485,7 +5485,7 @@ if ( sleep_time &gt; 0 ) {
54855485
</hashTree>
54865486
<GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="login_as_specific_user" enabled="false"/>
54875487
<hashTree>
5488-
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="username:password" enabled="true">
5488+
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="username:password">
54895489
<collectionProp name="Arguments.arguments">
54905490
<elementProp name="app_specific_username" elementType="Argument">
54915491
<stringProp name="Argument.name">app_specific_username</stringProp>
@@ -5564,13 +5564,13 @@ if ( sleep_time &gt; 0 ) {
55645564
<hashTree/>
55655565
</hashTree>
55665566
</hashTree>
5567-
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If legacy login flow" enabled="true">
5567+
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If legacy login flow">
55685568
<stringProp name="IfController.condition">${__groovy(vars.get(&quot;legacy_login_form&quot;) == &apos;true&apos;)}</stringProp>
55695569
<boolProp name="IfController.evaluateAll">false</boolProp>
55705570
<boolProp name="IfController.useExpression">true</boolProp>
55715571
</IfController>
55725572
<hashTree>
5573-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="992 login_as_specific_user legacy flow" enabled="true">
5573+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="992 login_as_specific_user legacy flow">
55745574
<stringProp name="TestPlan.comments">Detected the start of a redirect chain</stringProp>
55755575
<stringProp name="HTTPSampler.path">${application.postfix}/dologin.action</stringProp>
55765576
<stringProp name="HTTPSampler.method">POST</stringProp>
@@ -5652,7 +5652,7 @@ if ( sleep_time &gt; 0 ) {
56525652
<intProp name="Assertion.test_type">2</intProp>
56535653
</ResponseAssertion>
56545654
<hashTree/>
5655-
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="set variable run_as_specific_user" enabled="true">
5655+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="set variable run_as_specific_user">
56565656
<stringProp name="scriptLanguage">groovy</stringProp>
56575657
<stringProp name="parameters"></stringProp>
56585658
<stringProp name="filename"></stringProp>
@@ -5670,7 +5670,7 @@ if ( sleep_time &gt; 0 ) {
56705670
<hashTree/>
56715671
</hashTree>
56725672
</hashTree>
5673-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="check_logged_in_as_specific_user" enabled="true">
5673+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="check_logged_in_as_specific_user">
56745674
<stringProp name="HTTPSampler.path">${application.postfix}/rest/api/user/current</stringProp>
56755675
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
56765676
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -5681,7 +5681,7 @@ if ( sleep_time &gt; 0 ) {
56815681
</elementProp>
56825682
</HTTPSamplerProxy>
56835683
<hashTree>
5684-
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="check_current_user" enabled="true">
5684+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="check_current_user">
56855685
<stringProp name="scriptLanguage">groovy</stringProp>
56865686
<stringProp name="parameters"></stringProp>
56875687
<stringProp name="filename"></stringProp>
@@ -5704,7 +5704,7 @@ if (response_data.username != vars.get(&quot;app_specific_username&quot;)) {
57045704
</JSR223PostProcessor>
57055705
<hashTree/>
57065706
</hashTree>
5707-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="update_tokens_as_app_specific_user" enabled="true">
5707+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="update_tokens_as_app_specific_user">
57085708
<stringProp name="HTTPSampler.path">${application.postfix}/</stringProp>
57095709
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
57105710
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -5781,7 +5781,59 @@ if (response_data.username != vars.get(&quot;app_specific_username&quot;)) {
57815781
<boolProp name="RegexExtractor.default_empty_value">true</boolProp>
57825782
</RegexExtractor>
57835783
<hashTree/>
5784-
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Logger" enabled="true">
5784+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Logger">
5785+
<stringProp name="scriptLanguage">groovy</stringProp>
5786+
<stringProp name="parameters"></stringProp>
5787+
<stringProp name="filename"></stringProp>
5788+
<stringProp name="cacheKey">true</stringProp>
5789+
<stringProp name="script">prev.setIgnore()</stringProp>
5790+
</JSR223PostProcessor>
5791+
<hashTree/>
5792+
</hashTree>
5793+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="do_websudo" enabled="false">
5794+
<stringProp name="TestPlan.comments">Works only with admin permissions</stringProp>
5795+
<stringProp name="HTTPSampler.path">${application.postfix}/doauthenticate.action</stringProp>
5796+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5797+
<stringProp name="HTTPSampler.method">POST</stringProp>
5798+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5799+
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
5800+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
5801+
<collectionProp name="Arguments.arguments">
5802+
<elementProp name="authenticate" elementType="HTTPArgument">
5803+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
5804+
<stringProp name="Argument.value">Confirm</stringProp>
5805+
<stringProp name="Argument.metadata">=</stringProp>
5806+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
5807+
<stringProp name="Argument.name">authenticate</stringProp>
5808+
</elementProp>
5809+
<elementProp name="destination" elementType="HTTPArgument">
5810+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
5811+
<stringProp name="Argument.value">/admin/systeminfo.action</stringProp>
5812+
<stringProp name="Argument.metadata">=</stringProp>
5813+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
5814+
<stringProp name="Argument.name">destination</stringProp>
5815+
</elementProp>
5816+
<elementProp name="password" elementType="HTTPArgument">
5817+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
5818+
<stringProp name="Argument.value">${app_specific_password}</stringProp>
5819+
<stringProp name="Argument.metadata">=</stringProp>
5820+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
5821+
<stringProp name="Argument.name">password</stringProp>
5822+
</elementProp>
5823+
</collectionProp>
5824+
</elementProp>
5825+
</HTTPSamplerProxy>
5826+
<hashTree>
5827+
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager">
5828+
<collectionProp name="HeaderManager.headers">
5829+
<elementProp name="" elementType="Header">
5830+
<stringProp name="Header.name">X-Atlassian-Token</stringProp>
5831+
<stringProp name="Header.value">no-check</stringProp>
5832+
</elementProp>
5833+
</collectionProp>
5834+
</HeaderManager>
5835+
<hashTree/>
5836+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Logger">
57855837
<stringProp name="scriptLanguage">groovy</stringProp>
57865838
<stringProp name="parameters"></stringProp>
57875839
<stringProp name="filename"></stringProp>
@@ -5791,7 +5843,7 @@ if (response_data.username != vars.get(&quot;app_specific_username&quot;)) {
57915843
<hashTree/>
57925844
</hashTree>
57935845
</hashTree>
5794-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="jmeter_app_specific_action" enabled="true">
5846+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="jmeter_app_specific_action">
57955847
<boolProp name="TransactionController.parent">true</boolProp>
57965848
<boolProp name="TransactionController.includeTimers">false</boolProp>
57975849
</TransactionController>
@@ -5877,7 +5929,7 @@ if (response_data.username != vars.get(&quot;app_specific_username&quot;)) {
58775929
<hashTree/>
58785930
</hashTree>
58795931
</hashTree>
5880-
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="login_as_default_user_if_specific_user_was_loggedin" enabled="true">
5932+
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="login_as_default_user_if_specific_user_was_loggedin">
58815933
<stringProp name="IfController.condition">${run_as_specific_user}</stringProp>
58825934
<boolProp name="IfController.evaluateAll">false</boolProp>
58835935
<boolProp name="IfController.useExpression">true</boolProp>

0 commit comments

Comments
 (0)