Skip to content

Commit 40e00cc

Browse files
committed
fix: parametrize
1 parent 948318b commit 40e00cc

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

integration/002_lnurl_live.jmx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<stringProp name="Argument.value">${__BeanShell(import org.apache.jmeter.services.FileServer; FileServer.getFileServer().getBaseDir();)}</stringProp>
3939
<stringProp name="Argument.metadata">=</stringProp>
4040
</elementProp>
41+
<elementProp name="lnurlLinkId" elementType="Argument">
42+
<stringProp name="Argument.name">lnurlLinkId</stringProp>
43+
<stringProp name="Argument.value">KJPijT</stringProp>
44+
<stringProp name="Argument.metadata">=</stringProp>
45+
</elementProp>
4146
</collectionProp>
4247
</Arguments>
4348
<hashTree/>
@@ -56,8 +61,8 @@
5661
</ConfigTestElement>
5762
<hashTree/>
5863
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
59-
<stringProp name="ThreadGroup.num_threads">20</stringProp>
60-
<stringProp name="ThreadGroup.ramp_time">100</stringProp>
64+
<stringProp name="ThreadGroup.num_threads">1</stringProp>
65+
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
6166
<boolProp name="ThreadGroup.same_user_on_next_iteration">false</boolProp>
6267
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
6368
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
@@ -103,7 +108,7 @@
103108
<stringProp name="Argument.value">{&#xd;
104109
&quot;res&quot;: {&#xd;
105110
&quot;tag&quot;: &quot;payRequest&quot;,&#xd;
106-
&quot;callback&quot;: &quot;https://guiltyeland1.lnbits.com/lnurlp/api/v1/lnurl/cb/KJPijT&quot;,&#xd;
111+
&quot;callback&quot;: &quot;${scheme}://${host}/lnurlp/api/v1/lnurl/cb/${lnurlLinkId}&quot;,&#xd;
107112
&quot;minSendable&quot;: 10000,&#xd;
108113
&quot;maxSendable&quot;: 100000,&#xd;
109114
&quot;metadata&quot;: &quot;[[\&quot;text/plain\&quot;, \&quot;test many payments\&quot;]]&quot;&#xd;
@@ -205,7 +210,7 @@
205210
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
206211
<collectionProp name="Arguments.arguments"/>
207212
</elementProp>
208-
<stringProp name="HTTPSampler.domain">guiltyeland1.lnbits.com</stringProp>
213+
<stringProp name="HTTPSampler.domain">${host}</stringProp>
209214
<stringProp name="HTTPSampler.port"></stringProp>
210215
<stringProp name="HTTPSampler.protocol">https</stringProp>
211216
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
@@ -273,14 +278,15 @@
273278
</TransactionController>
274279
<hashTree>
275280
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="[lnurlp] Pay LNURLp from demo wallet" enabled="true">
281+
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
276282
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
277283
<collectionProp name="Arguments.arguments">
278284
<elementProp name="" elementType="HTTPArgument">
279285
<boolProp name="HTTPArgument.always_encode">false</boolProp>
280286
<stringProp name="Argument.value">{&#xd;
281287
&quot;res&quot;: {&#xd;
282288
&quot;tag&quot;: &quot;payRequest&quot;,&#xd;
283-
&quot;callback&quot;: &quot;https://guiltyeland1.lnbits.com/lnurlp/api/v1/lnurl/cb/KJPijT&quot;,&#xd;
289+
&quot;callback&quot;: &quot;${scheme}://${host}/lnurlp/api/v1/lnurl/cb/${lnurlLinkId}&quot;,&#xd;
284290
&quot;minSendable&quot;: 10000,&#xd;
285291
&quot;maxSendable&quot;: 100000,&#xd;
286292
&quot;metadata&quot;: &quot;[[\&quot;text/plain\&quot;, \&quot;test many payments\&quot;]]&quot;&#xd;
@@ -295,7 +301,6 @@
295301
</elementProp>
296302
</collectionProp>
297303
</elementProp>
298-
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
299304
<stringProp name="HTTPSampler.domain">demo.lnbits.com</stringProp>
300305
<stringProp name="HTTPSampler.port"></stringProp>
301306
<stringProp name="HTTPSampler.protocol">https</stringProp>
@@ -372,7 +377,7 @@
372377
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
373378
<collectionProp name="Arguments.arguments"/>
374379
</elementProp>
375-
<stringProp name="HTTPSampler.domain">guiltyeland1.lnbits.com</stringProp>
380+
<stringProp name="HTTPSampler.domain">${host}</stringProp>
376381
<stringProp name="HTTPSampler.port"></stringProp>
377382
<stringProp name="HTTPSampler.protocol">https</stringProp>
378383
<stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
@@ -463,7 +468,7 @@
463468
</elementProp>
464469
</collectionProp>
465470
</elementProp>
466-
<stringProp name="HTTPSampler.domain">guiltyeland1.lnbits.com</stringProp>
471+
<stringProp name="HTTPSampler.domain">${host}</stringProp>
467472
<stringProp name="HTTPSampler.port"></stringProp>
468473
<stringProp name="HTTPSampler.protocol">https</stringProp>
469474
<stringProp name="HTTPSampler.contentEncoding">utf-8</stringProp>

0 commit comments

Comments
 (0)