Skip to content
Permalink
Browse files
hostname override only via system prop
  • Loading branch information
shawnmckinney committed Oct 24, 2020
1 parent 5744208 commit cd0dab9b1861e3f3d21de0380dc7c27197278dc2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
@@ -835,6 +835,11 @@ ________________________________________________________________________________
mvn -Ploadtest-fortress-adduser jmeter:jmeter
```

G. Delete Users:
```
mvn -Ploadtest-fortress-deluser jmeter:jmeter
```

The tests will run and produce measurements for throughput and latency.

___________________________________________________________________________________
@@ -117,12 +117,12 @@ public void setupTest( JavaSamplerContext samplerContext )

private void init( JavaSamplerContext samplerContext )
{
// Can override hostname via system property:
hostname = System.getProperty( "hostname" );
if (StringUtils.isEmpty( hostname ))
if (! StringUtils.isEmpty( hostname ))
{
hostname = samplerContext.getParameter( "hostname" );
System.setProperty( "fortress.host", hostname );
}
System.setProperty( "fortress.host", hostname );
qualifier = System.getProperty( "qualifier" );
if (StringUtils.isEmpty( qualifier ))
{
@@ -57,11 +57,6 @@
<JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Fortress CheckAccess" enabled="true">
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="hostname" elementType="Argument">
<stringProp name="Argument.name">hostname</stringProp>
<stringProp name="Argument.value">uk03</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="qualifier" elementType="Argument">
<stringProp name="Argument.name">qualifier</stringProp>
<stringProp name="Argument.value">Z</stringProp>
@@ -57,11 +57,6 @@
<JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Fortress CheckAccess" enabled="true">
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="hostname" elementType="Argument">
<stringProp name="Argument.name">hostname</stringProp>
<stringProp name="Argument.value">uk03</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="qualifier" elementType="Argument">
<stringProp name="Argument.name">qualifier</stringProp>
<stringProp name="Argument.value">A</stringProp>

0 comments on commit cd0dab9

Please sign in to comment.