diff --git a/tools/jmeter/src/main/kotlin/com/r3/corda/jmeter/Samplers.kt b/tools/jmeter/src/main/kotlin/com/r3/corda/jmeter/Samplers.kt
index 0fc61cf256..ac7e6d9146 100644
--- a/tools/jmeter/src/main/kotlin/com/r3/corda/jmeter/Samplers.kt
+++ b/tools/jmeter/src/main/kotlin/com/r3/corda/jmeter/Samplers.kt
@@ -67,24 +67,27 @@ class CashIssueAndPaySampler : AbstractSampler() {
companion object JMeterProperties {
val otherParty = Argument("otherPartyName", "", "", "The X500 name of the payee.")
val coinSelection = Argument("useCoinSelection", "true", "", "True to use coin selection and false (or anything else) to avoid coin selection.")
+ val anonymousIdentities = Argument("anonymousIdentities", "true", "", "True to use anonymous identities and false (or anything else) to use well known identities.")
}
lateinit var counterParty: Party
var useCoinSelection: Boolean = true
+ var useAnonymousIdentities: Boolean = true
override fun setupTest(rpcProxy: CordaRPCOps, testContext: JavaSamplerContext) {
getNotaryIdentity(rpcProxy,testContext)
counterParty = getIdentity(rpcProxy, testContext, otherParty)
useCoinSelection = testContext.getParameter(coinSelection.name, coinSelection.value).toBoolean()
+ useAnonymousIdentities = testContext.getParameter(anonymousIdentities.name, anonymousIdentities.value).toBoolean()
}
override fun createFlowInvoke(rpcProxy: CordaRPCOps, testContext: JavaSamplerContext): FlowInvoke<*> {
val amount = 2_000_000.POUNDS
if (useCoinSelection) {
- return FlowInvoke(CashIssueAndPaymentFlow::class.java, arrayOf(amount, OpaqueBytes.of(1), counterParty, true, notaryIdentity))
+ return FlowInvoke(CashIssueAndPaymentFlow::class.java, arrayOf(amount, OpaqueBytes.of(1), counterParty, useAnonymousIdentities, notaryIdentity))
} else {
- return FlowInvoke(CashIssueAndPaymentNoSelection::class.java, arrayOf(amount, OpaqueBytes.of(1), counterParty, true, notaryIdentity))
+ return FlowInvoke(CashIssueAndPaymentNoSelection::class.java, arrayOf(amount, OpaqueBytes.of(1), counterParty, useAnonymousIdentities, notaryIdentity))
}
}
@@ -92,7 +95,7 @@ class CashIssueAndPaySampler : AbstractSampler() {
}
override val additionalArgs: Set
- get() = setOf(notary, otherParty, coinSelection)
+ get() = setOf(notary, otherParty, coinSelection, anonymousIdentities)
}
/**
diff --git a/tools/jmeter/src/main/resources/Example Flow Request.jmx b/tools/jmeter/src/main/resources/Example Flow Request.jmx
index 31c0f26355..1f68403d21 100644
--- a/tools/jmeter/src/main/resources/Example Flow Request.jmx
+++ b/tools/jmeter/src/main/resources/Example Flow Request.jmx
@@ -31,7 +31,7 @@
label
- ${___samplerName}
+ ${__samplerName}
=
diff --git a/tools/jmeter/src/main/resources/IssueAndPay Request.jmx b/tools/jmeter/src/main/resources/IssueAndPay Request.jmx
index 3984b7d506..dd61ec442f 100644
--- a/tools/jmeter/src/main/resources/IssueAndPay Request.jmx
+++ b/tools/jmeter/src/main/resources/IssueAndPay Request.jmx
@@ -31,7 +31,7 @@
label
- ${___samplerName}
+ ${__samplerName}
=
diff --git a/tools/jmeter/src/main/resources/LocalBatchNotarise Request.jmx b/tools/jmeter/src/main/resources/LocalBatchNotarise Request.jmx
index 6e02d29e53..9f65a9ec06 100644
--- a/tools/jmeter/src/main/resources/LocalBatchNotarise Request.jmx
+++ b/tools/jmeter/src/main/resources/LocalBatchNotarise Request.jmx
@@ -44,7 +44,7 @@
true
-
+ BatchNotarise2TPS.csv
true
@@ -54,7 +54,7 @@
false
-1
- 3
+ 1
1509455820000
1509455820000
@@ -68,7 +68,7 @@
label
- ${___samplerName}
+ ${__samplerName}
=
@@ -78,32 +78,32 @@
port
- 10004
+ 10003
=
username
- perf
+ default
=
password
- perf
+ default
=
notaryName
- O=Notary Service,L=Zurich,C=CH,CN=corda.notary.simple
+ O=Notary Service,L=Zurich,C=CH
=
numStates
- 100
+ 10
=
numIterations
- 1
+ 10
=
@@ -113,7 +113,7 @@
transactionsPerSecond
- 1.0
+ 2.0
=
@@ -131,7 +131,7 @@
label
-
+ ${__samplerName}
=
@@ -175,7 +175,7 @@
-
+
stopthread
false
@@ -258,7 +258,7 @@
label
-
+ ${__samplerName}
=
diff --git a/tools/jmeter/src/main/resources/LocalIssueAndPay Request.jmx b/tools/jmeter/src/main/resources/LocalIssueAndPay Request.jmx
index ba4c291564..60f087fcf3 100644
--- a/tools/jmeter/src/main/resources/LocalIssueAndPay Request.jmx
+++ b/tools/jmeter/src/main/resources/LocalIssueAndPay Request.jmx
@@ -31,7 +31,7 @@
label
- ${___samplerName}
+ ${__samplerName}
=
@@ -41,22 +41,22 @@
port
- 10004
+ 10003
=
username
- perf
+ default
=
password
- perf
+ default
=
notaryName
- O=Notary Service,L=Zurich,C=CH,CN=corda.notary.simple
+ O=Notary Service,L=Zurich,C=CH
=
diff --git a/tools/jmeter/src/main/resources/Testplans/CashIssuance_40k.jmx b/tools/jmeter/src/main/resources/Testplans/CashIssuance_40k.jmx
index 31b7ba9fbe..dbd2f1435a 100644
--- a/tools/jmeter/src/main/resources/Testplans/CashIssuance_40k.jmx
+++ b/tools/jmeter/src/main/resources/Testplans/CashIssuance_40k.jmx
@@ -31,7 +31,7 @@
label
- ${___samplerName}
+ ${__samplerName}
=