Last active
May 24, 2020 12:31
-
-
Save mariusmitrofan/5ad23ce5ca6f601d7eaecff9ed6e7c76 to your computer and use it in GitHub Desktop.
JSON-ECommerceExample
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
{ | |
"test_name": "Add to cart workflow", | |
"num_clients": 250, | |
"hatch_rate": 250, | |
"run_time": 60, | |
"domain_name": "my-magento-website.com", | |
"protocol": "https", | |
"test_region": [ | |
"us-east-1" | |
], | |
"threads_per_region": 1, | |
"login": { | |
"path": "/login", | |
"method": "POST", | |
"data": "{\"username\" : \"myuser@mycompany.com\", \"password\" : \"123456\"}", | |
"headers": {}, | |
"get_token": { | |
"from": "cookies" | |
} | |
}, | |
"workflow": [ | |
{ | |
"path": "/categories", | |
"method": "GET" | |
}, | |
{ | |
"path": "/categories/cats", | |
"method": "GET" | |
}, | |
{ | |
"path": "/catalogsearch/result/?q=cats%20food", | |
"method": "GET" | |
}, | |
{ | |
"path": "/checkout/cart/add/product/754/", | |
"method": "POST", | |
"headers": { | |
"Content-Type": "application/x-www-form-urlencoded" | |
}, | |
"data": "product=754&qty=1" | |
}, | |
{ | |
"path": "/checkout/cart/add/product/684/", | |
"method": "POST", | |
"headers": { | |
"Content-Type": "application/x-www-form-urlencoded" | |
}, | |
"data": "product=684&qty=50" | |
}, | |
{ | |
"path": "/checkout", | |
"method": "GET", | |
"headers": { | |
"Content-Type": "application/json" | |
} | |
}, | |
{ | |
"path": "/rest/v1/guest-carts/shipping-information", | |
"method": "POST", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"data": "{\n \"shippingAddress\": {\n \"countryId\": \"NZ\",\n \"region\": \"\"\n },\n \"shippingMethod\": {\n \"shipping_method_code\": \"freeshipping\",\n \"shipping_carrier_code\": \"freeshipping\"\n }\n}" | |
}, | |
{ | |
"path": "/rest/v1/guest-carts/set-payment-information", | |
"method": "POST", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"data": "{\n \"shippingAddress\": {\n \"countryId\": \"NZ\",\n \"region\": \"\"\n },\n \"shippingMethod\": {\n \"shipping_method_code\": \"freeshipping\",\n \"shipping_carrier_code\": \"freeshipping\"\n }\n}" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment