- Full-featured.
- 25 concurrent users.
- 100 tests per month.
- No risk.
- No commitment.
- No credit card info.
- Just try it.
Install and configure a Magento test server using sample data from the Amazon Associates Web Service quickly and easily. There are a number of common pitfalls that can be easily avoided and some that cannot. The process of converting information from Amazon to Magento is described briefly.

Magento made an ideal candidate for load testing due to its no cost availability and instant setup. It will be an example target of a product shopping website. There is little documentation for this software. I found the bulk of support information on the Magento forums. Once Magento is configured with the LoadStorm user IDs, virtual users will be able to browse the website both anonymously and signed-in. They will collect items in their carts randomly and some proportion of them will proceed to checkout.
The Magento setup is quite short. It requires a standard LAMP installation. After the configuration of the SQL database, there is a short wizard in order to complete the installation.
I suggest that first time users download and install the sample data. This additional information assisted me greatly in understanding the product import process. It is suggested on several sites that you export before import. In other words, install the sample data, export the sample data through Magento's export mechanism, and configure the exported data sheet with your own information. This will avoid issues with unspecified data fields as well as provide the user with information as to how Magento is storing particular fields.

It is important to plan the layout of your site before importing a single product. Based on your current product offering, build a category structure that provides the most logical browsing for the user. Unfortunately, you must identify the category by its ID number when importing products.

Once a user has reached a subcategory, you can allow specific fields to be filterable. Filterable fields will further reduce the results set available to the user. Filterable fields must be catalog input type Dropdown, Multiple Select or Price. In other words, a filterable field must be configured with a somewhat generic or consistently repeated value.
The data imported into Magento was obtained from Amazon Associates Web Service (AAWS). AAWS provides a simple web API and existing code base for retrieving product information. I did not require a significant amount of information or variability in the types of information received.
| Amazon Product Field | Magento Attribute |
|---|---|
| Title | name |
| Lowest Collectible Price | price |
| Warranty | warranty |
| Manufacturer | manufacturer(Input Type = Text) |
| Product Group | attribute_set |
| ASIN | sku |
| Amazon Product URL | short_description |
| Editorial Review | description |
| Small Image | thumbnail |
| Medium Image | small_image |
| Large Image | image |
The Java code retrieves the information, writes it to file in csv format, and writes the images to file using their original names. These files can be moved to the 'magento/media/import' directory on the host server to be imported into Magento using the 'Import All Products' profile.

The products were attempted to be imported in 3 blocks. The block sizes were 3000, 1214, and 4000. Four thousand is the maximum number of records retrievable from AAWS in a single search query. This limit is caused by the fact that AAWS does not allow more than 400 pages of 10 items per page to be retrieved in any one search.

The time required to import these blocks was significant. The 4000 item block failed at importing ~1500 in about 3 hours due to an apparent timeout. There appears to be a significant problem with the speed of the import function. Read the forum posts on this topic below(Must be registered with Magento).
http://www.magentocommerce.com/bug-tracking/issue?issue=2068
http://www.magentocommerce.com/boards/viewthread/9002/P0/
http://www.magentocommerce.com/bug-tracking/issue?issue=2097
The defect was discovered in March, 2008. It is odd that the defect has no been fixed. Since my purposes required only a one time import, I simply deleted the multiple store views to improve performance. This gave a slight speedup to the import process. I made no other changes. The performance enhancements mentioned in the blog posting below may be applied in a future test case of LoadStorm.
http://www.magentocommerce.com/blog/performance-is-key-notes-on-magentos-performance
The issues listed below can be easily avoided if they are known:
Comments
Hey just what I was looking for. I've been trying to do the same thing and have ran into a couple issues though. For example, completing the order from my site. Thanks anyway, this is very very helpful!
Hi,
Very interesting article.
But i dont see the script to download or where to get it.
can you send to me if is not available on your website?
thanks
much appreciated
I am not sure what script you are referring to. The site and testing was all set up manually, and the Java code for retrieving and formatting is no longer available (quick hack together then throw away). Sorry,
Hey! Great Article. I didn't know that you could use Magento as your Amazon Associate Store. I'm going to try it out and let you know what I think.
If the readers are using the Amazon AWS, they may be interested in the Original Magento AMI. They can find it at http://www.rjmartino.com/the-original-magento-amazon-ami-ec2-centos-php/.
It is built on Amazon's Cloud using
If you try out the AMI, let me know what you think!
Good Luck!