Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created July 29, 2010 15:14
Show Gist options
  • Save BDQ/498376 to your computer and use it in GitHub Desktop.
Save BDQ/498376 to your computer and use it in GitHub Desktop.
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