Testing Anywhere Call: 1-888-484-3535   

 
Functional TestingTesting Anywhere
  Home > Product > Solutions > T08  
T08 - Test & Validate Online Shopping Cart functionality
Test Description
Online shopping cart is arguably the most important part of an E-Commerce site. Testing shopping cart is essential to success of any E-commerce site. This test shows how you can test online shopping cart.

T08.tamn

Note: Save the .tamn file in My Documents -> Testing Anywhere -> Testing Anywhere -> My Projects

Solutions
Record a test using Web Recorder
  • Click on ‘Web Recorder’ link and provide URL (http://www.barnesandnobel.com) and start recording.
  • Select ISBN from the dropdown on open webpage. Enter any ISBN number for e.g. 074322566X.
  • Click on Search.
  • Click on 'Add To Cart'
  • Click on 'View Entire Cart'
  • Click on 'Import Table' button from the web recorder toolbar on the bottom right hand corner of the screen.
  • Click in the 'Price' column to capture the pricing table.
  • Stop Recording and Save the test.


Screenshot 1


Screenshot 2


Screenshot 3


Screenshot 4


Screenshot 5
Edit the test to insert checkpoint
  • Insert checkpoint command by right click on test editor for each command to check the existence of web control.
Validate the extracted price
  • After Extract Table command, insert ‘Loop for Each row in Internet Explorer Table’ command to loop through extracted data.
  • Inside Loop, assign extracted price to user variable, $ExtractedPrice$. Screenshot1
  • Insert ‘If Variable’ command to check extracted price. i.e. $ExtractedPrice$ is less than default value, 15.00 i.e. $Price$. Screenshot2

  • Note: Use String Manipulation command to remove ‘$’ from the extracted price.  Screenshot3
   
   
   
   
   
   
   
   

When you run this test, it adds one book to the cart and validates the expected price of the book in the shopping cart.
Buy Now Free Trial

Next Steps
Watch a flash demo Watch a flash demo
Contact me Contact me
Ask the Expert Ask the Expert
Request live demo Request live demo

Call 1-888-484-3535

25,000+ Customers
ibounce

We are currently using the software to do functional and performance testing of our customized version of Microsoft CRM. In addition, we are also using it for functional testing of a custom, in-house, financial application, and to do quality assurance on a CD that contains encrypted Adobe .pdf files, that are distributed for us by a third-party vendor. It allows us to do repeatable, reliable performance and functional testing, load test data with only “one-click”, and verify third-party vendors work. It saves us time and money, because after the initial “ramp-up” time learning it, we can quickly write tests that perform hours of work in only minutes. A great test tool, that we highly recommend! Thank you !!!
- David Abrahams,
Manager - Quality Assurance, Commonwealth Financial Network
Read Customer Testimonies >>
  Products     Download     Purchase     Support     Customers     Company     Sitemap     Trademark FacebookTwitterBlog © Automation Anywhere 2010 Privacy Policy