diff --git a/modules/swagger-codegen/src/main/resources/JMeter/api.mustache b/modules/swagger-codegen/src/main/resources/JMeter/api.mustache index f0c67670e5d4..d421423b0617 100644 --- a/modules/swagger-codegen/src/main/resources/JMeter/api.mustache +++ b/modules/swagger-codegen/src/main/resources/JMeter/api.mustache @@ -6,24 +6,28 @@ false false - - - host - localhost - = - - - port - 8080 - = - - + + + threads + ${__P(threads,1)} + = + + + rampup + ${__P(rampup,1)} + = + + + duration + ${__P(duration,1)} + = + testCases ${__P(testCases,10)} @@ -67,13 +71,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -109,7 +113,7 @@ false true false - HttpClient3.1 + false {{summary}} {{notes}} @@ -121,9 +125,10 @@ ${testData.{{operationId}}File} true true - shareMode.all + shareMode.group false + true diff --git a/samples/client/petstore/jmeter/PetApi.jmx b/samples/client/petstore/jmeter/PetApi.jmx index c61a96b600ee..8e36592e32c5 100644 --- a/samples/client/petstore/jmeter/PetApi.jmx +++ b/samples/client/petstore/jmeter/PetApi.jmx @@ -6,24 +6,28 @@ false false - - - host - localhost - = - - - port - 8080 - = - - + + + threads + ${__P(threads,1)} + = + + + rampup + ${__P(rampup,1)} + = + + + duration + ${__P(duration,1)} + = + testCases ${__P(testCases,10)} @@ -102,13 +106,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -133,7 +137,7 @@ false true false - HttpClient3.1 + false Add a new pet to the store @@ -145,9 +149,10 @@ ${testData.addPetFile} true true - shareMode.all + shareMode.group false + true @@ -167,13 +172,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -202,7 +207,7 @@ false true false - HttpClient3.1 + false Deletes a pet @@ -214,9 +219,10 @@ ${testData.deletePetFile} true true - shareMode.all + shareMode.group false + true @@ -236,13 +242,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -274,7 +280,7 @@ false true false - HttpClient3.1 + false Finds Pets by status Multiple status values can be provided with comma separated strings @@ -286,9 +292,10 @@ ${testData.findPetsByStatusFile} true true - shareMode.all + shareMode.group false + true @@ -308,13 +315,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -346,7 +353,7 @@ false true false - HttpClient3.1 + false Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -358,9 +365,10 @@ ${testData.findPetsByTagsFile} true true - shareMode.all + shareMode.group false + true @@ -380,13 +388,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -411,7 +419,7 @@ false true false - HttpClient3.1 + false Find pet by ID Returns a single pet @@ -423,9 +431,10 @@ ${testData.getPetByIdFile} true true - shareMode.all + shareMode.group false + true @@ -445,13 +454,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -476,7 +485,7 @@ false true false - HttpClient3.1 + false Update an existing pet @@ -488,9 +497,10 @@ ${testData.updatePetFile} true true - shareMode.all + shareMode.group false + true @@ -510,13 +520,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -541,7 +551,7 @@ false true false - HttpClient3.1 + false Updates a pet in the store with form data @@ -553,9 +563,10 @@ ${testData.updatePetWithFormFile} true true - shareMode.all + shareMode.group false + true @@ -575,13 +586,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -606,7 +617,7 @@ false true false - HttpClient3.1 + false uploads an image @@ -618,9 +629,10 @@ ${testData.uploadFileFile} true true - shareMode.all + shareMode.group false + true diff --git a/samples/client/petstore/jmeter/StoreApi.jmx b/samples/client/petstore/jmeter/StoreApi.jmx index 07003622bba3..21eb7f3059d7 100644 --- a/samples/client/petstore/jmeter/StoreApi.jmx +++ b/samples/client/petstore/jmeter/StoreApi.jmx @@ -6,24 +6,28 @@ false false - - - host - localhost - = - - - port - 8080 - = - - + + + threads + ${__P(threads,1)} + = + + + rampup + ${__P(rampup,1)} + = + + + duration + ${__P(duration,1)} + = + testCases ${__P(testCases,10)} @@ -82,13 +86,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -113,7 +117,7 @@ false true false - HttpClient3.1 + false Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -125,9 +129,10 @@ ${testData.deleteOrderFile} true true - shareMode.all + shareMode.group false + true @@ -147,13 +152,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -178,7 +183,7 @@ false true false - HttpClient3.1 + false Returns pet inventories by status Returns a map of status codes to quantities @@ -190,9 +195,10 @@ ${testData.getInventoryFile} true true - shareMode.all + shareMode.group false + true @@ -212,13 +218,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -243,7 +249,7 @@ false true false - HttpClient3.1 + false Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -255,9 +261,10 @@ ${testData.getOrderByIdFile} true true - shareMode.all + shareMode.group false + true @@ -277,13 +284,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -308,7 +315,7 @@ false true false - HttpClient3.1 + false Place an order for a pet @@ -320,9 +327,10 @@ ${testData.placeOrderFile} true true - shareMode.all + shareMode.group false + true diff --git a/samples/client/petstore/jmeter/UserApi.jmx b/samples/client/petstore/jmeter/UserApi.jmx index 5375a419a053..2dd7aee906e2 100644 --- a/samples/client/petstore/jmeter/UserApi.jmx +++ b/samples/client/petstore/jmeter/UserApi.jmx @@ -6,24 +6,28 @@ false false - - - host - localhost - = - - - port - 8080 - = - - + + + threads + ${__P(threads,1)} + = + + + rampup + ${__P(rampup,1)} + = + + + duration + ${__P(duration,1)} + = + testCases ${__P(testCases,10)} @@ -102,13 +106,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -133,7 +137,7 @@ false true false - HttpClient3.1 + false Create user This can only be done by the logged in user. @@ -145,9 +149,10 @@ ${testData.createUserFile} true true - shareMode.all + shareMode.group false + true @@ -167,13 +172,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -198,7 +203,7 @@ false true false - HttpClient3.1 + false Creates list of users with given input array @@ -210,9 +215,10 @@ ${testData.createUsersWithArrayInputFile} true true - shareMode.all + shareMode.group false + true @@ -232,13 +238,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -263,7 +269,7 @@ false true false - HttpClient3.1 + false Creates list of users with given input array @@ -275,9 +281,10 @@ ${testData.createUsersWithListInputFile} true true - shareMode.all + shareMode.group false + true @@ -297,13 +304,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -328,7 +335,7 @@ false true false - HttpClient3.1 + false Delete user This can only be done by the logged in user. @@ -340,9 +347,10 @@ ${testData.deleteUserFile} true true - shareMode.all + shareMode.group false + true @@ -362,13 +370,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -393,7 +401,7 @@ false true false - HttpClient3.1 + false Get user by user name @@ -405,9 +413,10 @@ ${testData.getUserByNameFile} true true - shareMode.all + shareMode.group false + true @@ -427,13 +436,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -472,7 +481,7 @@ false true false - HttpClient3.1 + false Logs user into the system @@ -484,9 +493,10 @@ ${testData.loginUserFile} true true - shareMode.all + shareMode.group false + true @@ -506,13 +516,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -537,7 +547,7 @@ false true false - HttpClient3.1 + false Logs out current logged in user session @@ -549,9 +559,10 @@ ${testData.logoutUserFile} true true - shareMode.all + shareMode.group false + true @@ -571,13 +582,13 @@ false ${testCases} - 1 - 1 + ${threads} + ${rampup} 1448391617000 1448391617000 - false - - + true + ${duration} + 5 @@ -602,7 +613,7 @@ false true false - HttpClient3.1 + false Updated user This can only be done by the logged in user. @@ -614,9 +625,10 @@ ${testData.updateUserFile} true true - shareMode.all + shareMode.group false + true