Skip to content
Permalink
Browse files
enable duplicate test case with system prop only
  • Loading branch information
shawnmckinney committed May 5, 2021
1 parent a1bcd43 commit bf04e5beffabed9baa6a832e213c563d624460ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
@@ -1226,6 +1226,7 @@
<sleep>${sleep}</sleep>
<role>${role}</role>
<ou>${ou}</ou>
<duplicate>${duplicate}</duplicate>
</propertiesSystem>
<jMeterProcessJVMSettings>
<xms>1024</xms>
@@ -1283,6 +1284,7 @@
<verify>${verify}</verify>
<output>${output}</output>
<sleep>${sleep}</sleep>
<duplicate>${duplicate}</duplicate>
</propertiesSystem>
</configuration>
<executions>
@@ -42,7 +42,8 @@ public class DelUser extends UserBase
*/
public SampleResult runTest( JavaSamplerContext samplerContext )
{
String userId = hostname + '-' + qualifier + '-' + getKey();
int count = getKey();
String userId = hostname + '-' + qualifier + '-' + count;
SampleResult sampleResult = new SampleResult();
try
{
@@ -52,6 +53,11 @@ public SampleResult runTest( JavaSamplerContext samplerContext )
user.setUserId( userId );
write( "threadid: " + getThreadId() + ", userId: " + userId );
adminMgr.deleteUser( user );
// This tests replication, ability to handle conflicts:
if ( duplicate > 0 && duplicate % count == 0 )
{
adminMgr.deleteUser( user );
}
if ( verify )
{
assertFalse( verify( userId, Op.DEL ) );

0 comments on commit bf04e5b

Please sign in to comment.