-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…0891) ### Proposed Changes * Update jmeter to be able to pass a non default password for testing against remote instances When connecting to an external instance, to prevent the need to add the password to the command line, the password can be added to the environment variable JMETER_ADMIN_PASSWORD. To prevent unexpected use of this you must add the property -Djmeter.env.password=true or set the profile -Pjmeter.env.password ```bash export JMETER_ADMIN_PASSWORD=mysecretpassword ./mvnw verify -Djmeter.test.skip=false -pl :dotcms-test-jmeter -Djmeter.host=myhost -Djmeter.env.password=true ```
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,11 @@ | |
<stringProp name="Argument.value">${__P(test.duration,60)}</stringProp> | ||
<stringProp name="Argument.metadata">=</stringProp> | ||
</elementProp> | ||
<elementProp name="host" elementType="Argument"> | ||
<stringProp name="Argument.name">admin.password</stringProp> | ||
<stringProp name="Argument.value">${__P(admin.password,admin)}</stringProp> | ||
<stringProp name="Argument.metadata">=</stringProp> | ||
</elementProp> | ||
</collectionProp> | ||
</Arguments> | ||
<hashTree/> | ||
|
@@ -227,7 +232,7 @@ | |
<collectionProp name="Arguments.arguments"> | ||
<elementProp name="" elementType="HTTPArgument"> | ||
<boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
<stringProp name="Argument.value">{"userId":"[email protected]","password":"admin","rememberMe":false,"language":"en","country":"US","backEndLogin":true}</stringProp> | ||
<stringProp name="Argument.value">{"userId":"[email protected]","password":"${admin.password}","rememberMe":false,"language":"en","country":"US","backEndLogin":true}</stringProp> | ||
<stringProp name="Argument.metadata">=</stringProp> | ||
</elementProp> | ||
</collectionProp> | ||
|