Join 3,513 readers in helping fund MetaFilter (Hide)

Tags:

Automate webshop checkout tests
June 7, 2011 5:04 AM   Subscribe

How to automate a test checkout on webshop (magento) to ensure server is working?

I am having intermittent issues with my magento setup that I'm currently troubleshooting. A symptom is that the checkout hangs. When the issue pops up I lose customers, but the only thing I see is a flatline of the orders.

I'd love to be able have a script which adds a product to a cart, then checks out for a particular user (for a free product), and sends me an email if it fails.

Any thoughts?
posted by mtstover to Computers & Internet (6 answers total)
 
Selenium
posted by Leon at 5:09 AM on June 7, 2011


Ok, slightly more coherent: Install the Selenium IDE for Firefox. It will allow you to record and playback a stream of clicks within your browser window. Playing-back the script is a one-button deal. If you want to fully automate it, with email output, you need to move the script to a Selenium Server (I think) install.
posted by Leon at 5:12 AM on June 7, 2011 [1 favorite]


mtstover: A symptom is that the checkout hangs. I'd love to be able have a script which adds a product to a cart, then checks out for a particular user (for a free product)...

Are you sure the hanging issue isn't between you and your payment provider? Because checking out with a product that doesn't trigger this is not so helpful in that scenario.
posted by DarlingBri at 5:53 AM on June 7, 2011


Watir, a family of Ruby libraries for automating web browsers, might also be an option.
posted by zamboni at 6:03 AM on June 7, 2011


darlingbri: good thought, but it hangs on free product too!
posted by mtstover at 9:03 AM on June 7, 2011


This may be a bit complex, but I know that what you want can be done by scripting jmeter, using jmeter's csv output, and looking and the csv output to decide if a warning email is in order.

There are probably simpler solutions, but I have automated website transactions with jmeter, and it can output to csv, so that and scripting would solve your problem.
posted by CautionToTheWind at 9:37 AM on June 7, 2011


« Older How can I access and clean the...   |  Help me find or recreate some ... Newer »
This thread is closed to new comments.