Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raytran-sitecore/a061654f1daddd217c5ed9223efca369 to your computer and use it in GitHub Desktop.
Save raytran-sitecore/a061654f1daddd217c5ed9223efca369 to your computer and use it in GitHub Desktop.
# Script generated by Blazemeter Chrome Extension
modules:
nose:
ignore-unknown-actions: true
execution:
- executor: jmeter
scenario: Add to cart-Http
concurrency: 10
ramp-up: 2m
hold-for: 20m
scenarios:
Add to cart-Http:
headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36'
DNT: '1'
requests:
- transaction: Add to cart
force-parent-sample: false
do:
- url: 'https://sxc911.storefront.com/Catalogs/Habitat_Master/Habitat_Master-Departments/Habitat_Master-Computers-and-Tablets/6042187'
method: GET
label: 'https://sxc911.storefront.com/Catalogs/Habitat_Master/Habitat_Master-Departments/Habitat_Master-Computers-and-Tablets/6042187'
think-time: 0ms
headers:
Upgrade-Insecure-Requests: '1'
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3'
extract-css-jquery:
csrf_token:
expression: input[name=__RequestVerificationToken]
attribute: value
- url: 'https://sxc911.storefront.com/api/cxa/cart/GetCartLinesCount?sc_site=Storefront'
method: POST
label: 'https://sxc911.storefront.com/api/cxa/cart/GetCartLinesCount?sc_site=Storefront'
headers:
Origin: 'https://sxc911.storefront.com'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: '*/*'
X-Requested-With: XMLHttpRequest
__RequestVerificationToken: ${csrf_token}
body:
__RequestVerificationToken: ${csrf_token}
- url: 'https://sxc911.storefront.com/api/cxa/catalog/GetCurrentProductStockInfo?sc_site=Storefront'
method: POST
label: 'https://sxc911.storefront.com/api/cxa/catalog/GetCurrentProductStockInfo?sc_site=Storefront'
headers:
Origin: 'https://sxc911.storefront.com'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: '*/*'
X-Requested-With: XMLHttpRequest
__RequestVerificationToken: ${csrf_token}
body:
__RequestVerificationToken: ${csrf_token}
productId: '6042187'
- url: 'https://sxc911.storefront.com/api/cxa/Catalog/GetPromotedProducts?sc_site=Storefront'
method: POST
label: 'https://sxc911.storefront.com/api/cxa/Catalog/GetPromotedProducts?sc_site=Storefront'
headers:
Origin: 'https://sxc911.storefront.com'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: '*/*'
X-Requested-With: XMLHttpRequest
__RequestVerificationToken: ${csrf_token}
body:
__RequestVerificationToken: ${csrf_token}
cci: '{803E72C3-5ADC-EBE3-7AEE-5956712C95C8}'
ci: '{EB3468E4-52DD-4F45-A60B-3A2B5B5868D3}'
pg: '0'
plrv: ''
ps: '4'
rt: '{F957A791-4907-43AF-BB5A-BBCDBEF48B69}'
- url: 'https://sxc911.storefront.com/api/cxa/Cart/AddCartLine?sc_site=Storefront'
method: POST
label: 'https://sxc911.storefront.com/api/cxa/Cart/AddCartLine?sc_site=Storefront'
headers:
Origin: 'https://sxc911.storefront.com'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: '*/*'
X-Requested-With: XMLHttpRequest
__RequestVerificationToken: ${csrf_token}
body:
__RequestVerificationToken: ${csrf_token}
addtocart_catalogname: Habitat_Master
addtocart_productid: '6042187'
addtocart_variantid: '56042187'
quantity: '1'
- url: 'https://sxc911.storefront.com/api/cxa/cart/GetCartLinesCount?sc_site=Storefront'
method: POST
label: 'https://sxc911.storefront.com/api/cxa/cart/GetCartLinesCount?sc_site=Storefront'
headers:
Origin: 'https://sxc911.storefront.com'
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: '*/*'
X-Requested-With: XMLHttpRequest
__RequestVerificationToken: ${csrf_token}
body:
__RequestVerificationToken: ${csrf_token}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment