Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commons/id-repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This folder contains performance test scripts and test data of ID-Repository mod
* All the creation tasks which will happen that will automatically save the tokens created to a file in the bin folder of JMeter which will be used further by our test script for execution.
* For the test execution part we have a script [IDRepo_Test_Script.jmx](https://github.com/mosip/mosip-performance-tests-mt/blob/1.1.5/commons/id-repository/scripts/IDRepo_Test_Script.jmx) which will do all the execution tasks.
* In the test script we have a preparation & execution thread group for all the API's. In preparation group the data preparation part will happen & in the execution group the main test execution will take place.
* The ID Repo module API's which we are considering here are - Retrieve Identity using UIN API, Retrieve Identity using VID API, Add Identity API, Update Identity API,Create VID API, Update VID API & Auth type status API.
* The ID Repo module API's which we are considering here are - Retrieve Identity using UIN API, Retrieve Identity using VID API, Add Identity API, Update Identity API,Create VID API, Update VID API, Auth type status API, Create Draft API, Get Draft API, Update Draft API & Publish Draft API.
* All the thread groups will run in a sequential manner & if we don't want to run all of them we can disable the one which we don't want to run.
* Also for viewing the results or output of our test we have added certain listener test elements at the end of our test script which are - View Results Tree, Aggregate Report, Active Threads Over Time graph, Response Times Percentiles graph, Response Times vs Threads graph & Transaction Throughput vs Threads graph.
* We have a test element named 'User Defined Variables' in both the helper & test scripts where the
Expand Down
1,017 changes: 998 additions & 19 deletions commons/id-repository/scripts/IDRepo_Test_Script.jmx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions commons/packetmanager/scripts/PacketManager_Test_Script.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<stringProp name="shareMode">shareMode.group</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Documents (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Documents (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down Expand Up @@ -160,12 +160,12 @@
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<intProp name="LoopController.loops">-1</intProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">10</stringProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<boolProp name="ThreadGroup.scheduler">true</boolProp>
<stringProp name="ThreadGroup.duration">900</stringProp>
<stringProp name="ThreadGroup.duration">500</stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
</ThreadGroup>
Expand All @@ -181,9 +181,9 @@
&quot;metadata&quot;: {},&#xd;
&quot;request&quot;: {&#xd;
&quot;bypassCache&quot;: false,&#xd;
&quot;id&quot;: &quot;${rid}&quot;,&#xd;
&quot;process&quot;: &quot;${process}&quot;,&#xd;
&quot;source&quot;: &quot;${source}&quot;&#xd;
&quot;id&quot;: &quot;10001100060000120220609095213&quot;,&#xd;
&quot;process&quot;: &quot;RES_UPDATE&quot;,&#xd;
&quot;source&quot;: &quot;RESIDENT&quot;&#xd;
},&#xd;
&quot;requesttime&quot;: &quot;2018-12-10T06:12:52.994Z&quot;,&#xd;
&quot;version&quot;: &quot;string&quot;&#xd;
Expand Down Expand Up @@ -232,7 +232,7 @@
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Search Field (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Search Field (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down Expand Up @@ -321,7 +321,7 @@
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Search Fields (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Search Fields (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down Expand Up @@ -412,7 +412,7 @@
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Biometrics (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Biometrics (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down Expand Up @@ -504,7 +504,7 @@
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Audits (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get Audits (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down Expand Up @@ -580,7 +580,7 @@
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get MetaInfo (Execution)" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Get MetaInfo (Execution)" enabled="false">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
Expand Down
190 changes: 103 additions & 87 deletions id-authentication/scripts/IDA_Helper_script.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</elementProp>
<elementProp name="idaUtilityPortNo" elementType="Argument">
<stringProp name="Argument.name">idaUtilityPortNo</stringProp>
<stringProp name="Argument.value">8082</stringProp>
<stringProp name="Argument.value">8083</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="pmsUser" elementType="Argument">
Expand Down Expand Up @@ -56,7 +56,7 @@
</elementProp>
<elementProp name="idaUtilityserverIP" elementType="Argument">
<stringProp name="Argument.name">idaUtilityserverIP</stringProp>
<stringProp name="Argument.value">cellbox2.mosip.net</stringProp>
<stringProp name="Argument.value">localhost</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="serverPortNo" elementType="Argument">
Expand Down Expand Up @@ -110,7 +110,7 @@
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.num_threads">20</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
Expand Down Expand Up @@ -195,9 +195,9 @@
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">10</stringProp>
<stringProp name="LoopController.loops">1</stringProp>
</elementProp>
<stringProp name="ThreadGroup.num_threads">1</stringProp>
<stringProp name="ThreadGroup.num_threads">20</stringProp>
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
Expand Down Expand Up @@ -230,7 +230,7 @@
</CSVDataSet>
<hashTree/>
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="Load Biometrics Details From File" enabled="true">
<stringProp name="filename">./biometrics.txt</stringProp>
<stringProp name="filename">./biometrics_mb.txt</stringProp>
<stringProp name="fileEncoding"></stringProp>
<stringProp name="variableNames">biometrics</stringProp>
<boolProp name="ignoreFirstLine">false</boolProp>
Expand Down Expand Up @@ -359,8 +359,25 @@
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Generate UIN" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
&quot;id&quot;: &quot;string&quot;,&#xd;
&quot;metadata&quot;: {},&#xd;
&quot;request&quot;: {&#xd;
&quot;clientId&quot;: &quot;mosip-idrepo-client&quot;,&#xd;
&quot;secretKey&quot;: &quot;abc123&quot;,&#xd;
&quot;appId&quot;: &quot;idrepo&quot;&#xd;
},&#xd;
&quot;requesttime&quot;: &quot;${__time(YYYY-MM-dd&apos;T&apos;HH:mm:ss.SSS,)}Z&quot;,&#xd;
&quot;version&quot;: &quot;1.0&quot;&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.domain">${serverIP}</stringProp>
<stringProp name="HTTPSampler.port">${serverPortNo}</stringProp>
Expand Down Expand Up @@ -417,87 +434,86 @@
<elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">{&#xd;
&quot;id&quot;: &quot;mosip.id.create&quot;,&#xd;
&quot;request&quot;: {&#xd;
&quot;registrationId&quot;: &quot;${rid}&quot;,&#xd;
&quot;identity&quot;: {&#xd;
&quot;IDSchemaVersion&quot;: 0.1,&#xd;
&quot;UIN&quot;: &quot;${uin}&quot;,&#xd;
&quot;firstName&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;${firstName}&quot;&#xd;
}],&#xd;
&quot;dateOfBirth&quot;: &quot;${dateOfBirth}&quot;,&#xd;
&quot;pobCountry&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-Country&quot;&#xd;
}],&#xd;
&quot;permanentCountry&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-Country&quot;&#xd;
}],&#xd;
&quot;mobileno&quot;: &quot;${__RandomString(10,1234567890,)}&quot;,&#xd;
&quot;email&quot;: &quot;abc@gmail${__Random(100,999999999999,)}.com&quot;,&#xd;
&quot;presentCountry&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-Country&quot;&#xd;
}],&#xd;
&quot;pobProvince&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-Province1&quot;&#xd;
}],&#xd;
&quot;pobCity&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-City1&quot;&#xd;
}],&#xd;
&quot;gender&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;${gender}&quot;&#xd;
}],&#xd;
&quot;residenceStatus&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;Foreigner&quot;&#xd;
}],&#xd;
&quot;bloodType&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;MOSIP-Country&quot;&#xd;
}],&#xd;
&quot;permanentAddressLine1&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;#991, 47 Street, 6 block&quot;&#xd;
}],&#xd;
&quot;addressCopy&quot;: &quot;#991, 47 Street, 6 block&quot;,&#xd;
&quot;presentAddressLine1&quot;: [{&#xd;
&quot;id&quot;: &quot;mosip.id.create&quot;,&#xd;
&quot;request&quot;: {&#xd;
&quot;registrationId&quot;: &quot;${rid}&quot;,&#xd;
&quot;biometricReferenceId&quot;: &quot;${__RandomString(7,1234567890,)}&quot;,&#xd;
&quot;identity&quot;: {&#xd;
&quot;residenceStatus&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;Foreigner&quot;&#xd;
}&#xd;
],&#xd;
&quot;IDSchemaVersion&quot;: 0.1,&#xd;
&quot;UIN&quot;: &quot;${uin}&quot;,&#xd;
&quot;fullName&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;${firstName}&quot;&#xd;
}&#xd;
],&#xd;
&quot;dateOfBirth&quot;: &quot;${dateOfBirth}&quot;,&#xd;
&quot;gender&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;${gender}&quot;&#xd;
}&#xd;
],&#xd;
&quot;region&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;FR&quot;&#xd;
}&#xd;
],&#xd;
&quot;province&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;FR&quot;&#xd;
}&#xd;
],&#xd;
&quot;city&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;FR&quot;&#xd;
}&#xd;
],&#xd;
&quot;postalCode&quot;: &quot;14022&quot;,&#xd;
&quot;email&quot;: &quot;abc@gmail${__Random(100,999999999999,)}.com&quot;,&#xd;
&quot;phone&quot;: &quot;${__RandomString(10,1234567890,)}&quot;,&#xd;
&quot;zone&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;FR&quot;&#xd;
}&#xd;
],&#xd;
&quot;introducerRID&quot;: &quot;212124324784879&quot;,&#xd;
&quot;introducerUIN&quot;: &quot;212124324784879&quot;,&#xd;
&quot;introducerName&quot;: [&#xd;
{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;FR&quot;&#xd;
}&#xd;
],&#xd;
&quot;addressLine1&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;#991, 47 Street, 6 block&quot;&#xd;
}],&#xd;
&quot;modeOfClaim&quot;: [{&#xd;
&quot;language&quot;: &quot;eng&quot;,&#xd;
&quot;value&quot;: &quot;RSK&quot;&#xd;
}],&#xd;
&quot;proofOfAddress&quot;: {&#xd;
&quot;format&quot;: &quot;pdf&quot;,&#xd;
&quot;type&quot;: &quot;DOC015&quot;,&#xd;
&quot;value&quot;: &quot;proofOfAddress&quot;&#xd;
},&#xd;
&quot;individualBiometrics&quot;: {&#xd;
&quot;format&quot;: &quot;cbeff&quot;,&#xd;
&quot;version&quot;: 1,&#xd;
&quot;value&quot;: &quot;individualBiometrics_bio_CBEFF&quot;&#xd;
}&#xd;
},&#xd;
&quot;documents&quot;: [{&#xd;
&quot;category&quot;: &quot;proofOfAddress&quot;,&#xd;
&quot;value&quot;: &quot;ZGF0YQ&quot;&#xd;
},&#xd;
{&#xd;
&quot;category&quot;: &quot;individualBiometrics&quot;,&#xd;
&quot;value&quot;: &quot;${biometrics}&quot;&#xd;
}&#xd;
]&#xd;
},&#xd;
&quot;requesttime&quot;: &quot;2019-01-28T13:07:13.152Z&quot;,&#xd;
&quot;version&quot;: &quot;v1.0&quot;&#xd;
&quot;individualBiometrics&quot;: {&#xd;
&quot;format&quot;: &quot;cbeff&quot;,&#xd;
&quot;version&quot;: 1,&#xd;
&quot;value&quot;: &quot;fileReferenceID&quot;&#xd;
}&#xd;
},&#xd;
&quot;documents&quot;: [&#xd;
{&#xd;
&quot;value&quot;: &quot;${biometrics}&quot;,&#xd;
&quot;category&quot;: &quot;individualBiometrics&quot;&#xd;
}&#xd;
]&#xd;
},&#xd;
&quot;requesttime&quot;: &quot;2022-06-09T10:55:24.182Z&quot;,&#xd;
&quot;version&quot;: &quot;v1&quot;&#xd;
}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
Expand Down Expand Up @@ -545,7 +561,7 @@
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters"></stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">${__StringToFile(UIN_list.txt,${uin}\n,true,)}</stringProp>
<stringProp name="script">${__StringToFile(UIN_list1.txt,${uin}\n,true,)}</stringProp>
</BeanShellPostProcessor>
<hashTree/>
</hashTree>
Expand Down
Loading