Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
order-processing-api
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Balasubrahmanyam Gudavalli
order-processing-api
Commits
91fa5fcb
Commit
91fa5fcb
authored
1 year ago
by
Balasubrahmanyam Gudavalli
Browse files
Options
Downloads
Patches
Plain Diff
chore: Added jmeter jmx script for order creation
parent
7c67492e
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/resources/jmeter-scripts/OrderProcessingAPI.jmx
+263
-0
263 additions, 0 deletions
src/main/resources/jmeter-scripts/OrderProcessingAPI.jmx
with
264 additions
and
1 deletion
pom.xml
+
1
−
1
View file @
91fa5fcb
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.3.0.
BUILD-SNAPSHOT
</version>
<version>
2.3.0.
RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>
com.nisum
</groupId>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/jmeter-scripts/OrderProcessingAPI.jmx
0 → 100644
+
263
−
0
View file @
91fa5fcb
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan
version=
"1.2"
properties=
"5.0"
jmeter=
"5.6.2"
>
<hashTree>
<TestPlan
guiclass=
"TestPlanGui"
testclass=
"TestPlan"
testname=
"OrderProcessingAPI"
enabled=
"true"
>
<boolProp
name=
"TestPlan.functional_mode"
>
false
</boolProp>
<boolProp
name=
"TestPlan.tearDown_on_shutdown"
>
false
</boolProp>
<boolProp
name=
"TestPlan.serialize_threadgroups"
>
false
</boolProp>
<elementProp
name=
"TestPlan.user_defined_variables"
elementType=
"Arguments"
guiclass=
"ArgumentsPanel"
testclass=
"Arguments"
testname=
"User Defined Variables"
enabled=
"true"
>
<collectionProp
name=
"Arguments.arguments"
/>
</elementProp>
</TestPlan>
<hashTree>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"CreateOrderThreadGroup"
enabled=
"true"
>
<stringProp
name=
"ThreadGroup.on_sample_error"
>
continue
</stringProp>
<elementProp
name=
"ThreadGroup.main_controller"
elementType=
"LoopController"
guiclass=
"LoopControlPanel"
testclass=
"LoopController"
testname=
"Loop Controller"
enabled=
"true"
>
<stringProp
name=
"LoopController.loops"
>
1
</stringProp>
<boolProp
name=
"LoopController.continue_forever"
>
false
</boolProp>
</elementProp>
<stringProp
name=
"ThreadGroup.num_threads"
>
1
</stringProp>
<stringProp
name=
"ThreadGroup.ramp_time"
>
1
</stringProp>
<boolProp
name=
"ThreadGroup.delayedStart"
>
false
</boolProp>
<boolProp
name=
"ThreadGroup.scheduler"
>
false
</boolProp>
<stringProp
name=
"ThreadGroup.duration"
></stringProp>
<stringProp
name=
"ThreadGroup.delay"
></stringProp>
<boolProp
name=
"ThreadGroup.same_user_on_next_iteration"
>
true
</boolProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"createOrderMongoDB HTTP Request"
enabled=
"true"
>
<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"
>
{

"
ordersDto
"
: [

{

"
orderId
"
:
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
,

"
purchaseDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
lastUpdateDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
orderStatus
"
:
"
Pending
"
,

"
fulfillmentChannel
"
:
"
SellerFulfilled
"
,

"
numberOfItemsShipped
"
: 0,

"
numberOfItemsUnshipped
"
: 0,

"
paymentMethod
"
:
"
Other
"
,

"
paymentMethodDetails
"
: [

"
CreditCard
"
,

"
GiftCerificate
"
],

"
marketplaceId
"
:
"
ATVPDKIKX0DER
"
,

"
shipmentServiceLevelCategory
"
:
"
Standard
"
,

"
orderType
"
:
"
StandardOrder
"
,

"
earliestShipDate
"
:
"
2017-01-20T19:51:16Z
"
,

"
latestShipDate
"
:
"
2017-01-25T19:49:35Z
"
,

"
shippingAddress
"
: {

"
name
"
:
"
Michigan address
"
,

"
addressLine1
"
:
"
Nandanavanam Apartments,Durga nagar
"
,

"
city
"
:
"
Canton
"
,

"
stateOrRegion
"
:
"
MI
"
,

"
postalCode
"
:
"
48817
"
,

"
countryCode
"
:
"
US
"
},

"
buyerInfo
"
: {

"
buyerEmail
"
:
"
user@example.com
"
,

"
buyerName
"
:
"
John Doe
"
,

"
buyerTaxInfo
"
: {

"
companyLegalName
"
:
"
ABC Corporation
"
},

"
purchaseOrderNumber
"
:
"
1234567890123
"
}

}, {

"
orderId
"
:
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
,

"
purchaseDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
lastUpdateDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
orderStatus
"
:
"
Pending
"
,

"
fulfillmentChannel
"
:
"
SellerFulfilled
"
,

"
numberOfItemsShipped
"
: 0,

"
numberOfItemsUnshipped
"
: 0,

"
paymentMethod
"
:
"
Other
"
,

"
paymentMethodDetails
"
: [

"
CreditCard
"
,

"
GiftCerificate
"
],

"
marketplaceId
"
:
"
ATVPDKIKX0DER
"
,

"
shipmentServiceLevelCategory
"
:
"
Standard
"
,

"
orderType
"
:
"
StandardOrder
"
,

"
earliestShipDate
"
:
"
2017-01-20T19:51:16Z
"
,

"
latestShipDate
"
:
"
2017-01-25T19:49:35Z
"
,

"
shippingAddress
"
: {

"
name
"
:
"
Michigan address
"
,

"
addressLine1
"
:
"
Nandanavanam Apartments,Durga nagar
"
,

"
city
"
:
"
Canton
"
,

"
stateOrRegion
"
:
"
MI
"
,

"
postalCode
"
:
"
48817
"
,

"
countryCode
"
:
"
US
"
},

"
buyerInfo
"
: {

"
buyerEmail
"
:
"
user@example.com
"
,

"
buyerName
"
:
"
John Doe
"
,

"
buyerTaxInfo
"
: {

"
companyLegalName
"
:
"
ABC Corporation
"
},

"
purchaseOrderNumber
"
:
"
1234567890123
"
}

}, {

"
orderId
"
:
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
,

"
purchaseDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
lastUpdateDate
"
:
"
2017-01-20T19:49:35Z
"
,

"
orderStatus
"
:
"
Pending
"
,

"
fulfillmentChannel
"
:
"
SellerFulfilled
"
,

"
numberOfItemsShipped
"
: 0,

"
numberOfItemsUnshipped
"
: 0,

"
paymentMethod
"
:
"
Other
"
,

"
paymentMethodDetails
"
: [

"
CreditCard
"
,

"
GiftCerificate
"
],

"
marketplaceId
"
:
"
ATVPDKIKX0DER
"
,

"
shipmentServiceLevelCategory
"
:
"
Standard
"
,

"
orderType
"
:
"
StandardOrder
"
,

"
earliestShipDate
"
:
"
2017-01-20T19:51:16Z
"
,

"
latestShipDate
"
:
"
2017-01-25T19:49:35Z
"
,

"
shippingAddress
"
: {

"
name
"
:
"
Michigan address
"
,

"
addressLine1
"
:
"
Nandanavanam Apartments,Durga nagar
"
,

"
city
"
:
"
Canton
"
,

"
stateOrRegion
"
:
"
MI
"
,

"
postalCode
"
:
"
48817
"
,

"
countryCode
"
:
"
US
"
},

"
buyerInfo
"
: {

"
buyerEmail
"
:
"
user@example.com
"
,

"
buyerName
"
:
"
John Doe
"
,

"
buyerTaxInfo
"
: {

"
companyLegalName
"
:
"
ABC Corporation
"
},

"
purchaseOrderNumber
"
:
"
1234567890123
"
}

}

]

}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
>
localhost
</stringProp>
<stringProp
name=
"HTTPSampler.port"
>
8080
</stringProp>
<stringProp
name=
"HTTPSampler.protocol"
>
http
</stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
>
UTF-8
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/order/create
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.use_keepalive"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.DO_MULTIPART_POST"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.BROWSER_COMPATIBLE_MULTIPART"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.image_parser"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.concurrentDwn"
>
false
</boolProp>
<stringProp
name=
"HTTPSampler.concurrentPool"
>
6
</stringProp>
<boolProp
name=
"HTTPSampler.md5"
>
false
</boolProp>
<intProp
name=
"HTTPSampler.ipSourceType"
>
0
</intProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"HTTP Header Manager"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Content-Type
</stringProp>
<stringProp
name=
"Header.value"
>
application/json
</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResultCollector
guiclass=
"SummaryReport"
testclass=
"ResultCollector"
testname=
"Summary Report"
enabled=
"true"
>
<boolProp
name=
"ResultCollector.error_logging"
>
false
</boolProp>
<objProp>
<name>
saveConfig
</name>
<value
class=
"SampleSaveConfiguration"
>
<time>
true
</time>
<latency>
true
</latency>
<timestamp>
true
</timestamp>
<success>
true
</success>
<label>
true
</label>
<code>
true
</code>
<message>
true
</message>
<threadName>
true
</threadName>
<dataType>
true
</dataType>
<encoding>
false
</encoding>
<assertions>
true
</assertions>
<subresults>
true
</subresults>
<responseData>
false
</responseData>
<samplerData>
false
</samplerData>
<xml>
false
</xml>
<fieldNames>
true
</fieldNames>
<responseHeaders>
false
</responseHeaders>
<requestHeaders>
false
</requestHeaders>
<responseDataOnError>
false
</responseDataOnError>
<saveAssertionResultsFailureMessage>
true
</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>
0
</assertionsResultsToSave>
<bytes>
true
</bytes>
<sentBytes>
true
</sentBytes>
<url>
true
</url>
<threadCounts>
true
</threadCounts>
<idleTime>
true
</idleTime>
<connectTime>
true
</connectTime>
</value>
</objProp>
<stringProp
name=
"filename"
>
D:\Work\apache-jmeter-5.6.2\apache-jmeter-5.6.2\scripts\ReponseFiles\CreateOrderResponseFile.xml
</stringProp>
</ResultCollector>
<hashTree/>
<JSONPathAssertion
guiclass=
"JSONPathAssertionGui"
testclass=
"JSONPathAssertion"
testname=
"JSON Assertion"
enabled=
"true"
>
<stringProp
name=
"JSON_PATH"
>
$..orderId
</stringProp>
<stringProp
name=
"EXPECTED_VALUE"
>
[
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
,
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
,
"
XCXC9CXZC-3434NM34-4324344DFD-32AASD
"
]
</stringProp>
<boolProp
name=
"JSONVALIDATION"
>
true
</boolProp>
<boolProp
name=
"EXPECT_NULL"
>
false
</boolProp>
<boolProp
name=
"INVERT"
>
false
</boolProp>
<boolProp
name=
"ISREGEX"
>
false
</boolProp>
</JSONPathAssertion>
<hashTree/>
<ResultCollector
guiclass=
"ViewResultsFullVisualizer"
testclass=
"ResultCollector"
testname=
"View Results Tree"
enabled=
"true"
>
<boolProp
name=
"ResultCollector.error_logging"
>
false
</boolProp>
<objProp>
<name>
saveConfig
</name>
<value
class=
"SampleSaveConfiguration"
>
<time>
true
</time>
<latency>
true
</latency>
<timestamp>
true
</timestamp>
<success>
true
</success>
<label>
true
</label>
<code>
true
</code>
<message>
true
</message>
<threadName>
true
</threadName>
<dataType>
true
</dataType>
<encoding>
false
</encoding>
<assertions>
true
</assertions>
<subresults>
true
</subresults>
<responseData>
false
</responseData>
<samplerData>
false
</samplerData>
<xml>
false
</xml>
<fieldNames>
true
</fieldNames>
<responseHeaders>
false
</responseHeaders>
<requestHeaders>
false
</requestHeaders>
<responseDataOnError>
false
</responseDataOnError>
<saveAssertionResultsFailureMessage>
true
</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>
0
</assertionsResultsToSave>
<bytes>
true
</bytes>
<sentBytes>
true
</sentBytes>
<url>
true
</url>
<threadCounts>
true
</threadCounts>
<idleTime>
true
</idleTime>
<connectTime>
true
</connectTime>
</value>
</objProp>
<stringProp
name=
"filename"
></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
</hashTree>
</hashTree>
</hashTree>
</jmeterTestPlan>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment