Created
July 29, 2010 15:14
-
-
Save BDQ/498376 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
OrdersController#create (disable protect_from_forgery in BaseController) | |
ab -c 1 -n 5 -p params.txt -T application/x-www-form-urlencoded http://127.0.0.1:3000/orders/ | |
params.txt = variants[429921481]=1 | |
To test the checkout controller, step through checkout until last step in browser and re-user the order number in the ab commands below. First ensure check_roles returns true in role_requirement_system.rb. | |
Address Step | |
ab -c 1 -n 5 http://127.0.0.1:3000/orders/R044784352/checkout/edit?step=address | |
Delivery | |
ab -c 1 -n 5 http://127.0.0.1:3000/orders/R044784352/checkout/edit?step=delivery | |
Payment | |
ab -c 1 -n 5 http://127.0.0.1:3000/orders/R044784352/checkout/edit?step=payment | |
Confirm | |
ab -c 1 -n 5 http://127.0.0.1:3000/orders/R044784352/checkout/edit?step=confirm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment