How to test Ubercart shipping quote module in Drupal?

| | 2 min read

Suppose your Drupal projects handles products which can be shipped from one location to another and you are using Ubercart shipping quote' module to handle payment related to weight and shipping zones. Admin have the permission to add Zones rate and weight for each product, and the registered user's can buy the product. Here I am going to explain some of the test cases to be tested while testing this functionality.

The cases you have to test

  1. Ensure that the following module is enabled in your site- uc global quote module.
  2. Ensure that admin will be able to add new shipping zones. You can add new shipping zones at admin/store/settings/quotes/methods/zones
  3. Ensure that admin will be able to add "Flat rate quote" or as "Weight quote" depending on the project admin/store/settings/quotes/methods/global_quote
  4. Ensure that prize values are changing as per the shipping zone.
  5. Ensure that the drupal site gives accurate prize value for both real numbers and floating point numbers.
  6. Ensure that prize values are changing as per the region.
  7. Ensure that prize values are changing as a combination of weight and zone.
  8. Ensure that admin will be able to view/edit/delete the zones.
  9. Ensure that admin will be able to add conditions for Shipping quotes.
  10. Ensure that admin will be able to view/edit/delete rates.
  11. Ensure that the changed values are reflected in the drupal website.
  12. Ensure that users other than admin doesn't have the permission to add/edit shipping zones, weights and rates.
  13. Ensure that error message will be displayed for products with no weights when shipping costs are calculated.
  14. Ensure that error message will be displayed for products with no rates when shipping costs are calculated.
  15. Ensure that error message will be displayed for products with no country when shipping costs are calculated.
  16. Ensure that when customer order a product, he will be able to see the shipping cost at the checkout page.
  17. Ensure that error message will be displayed if the customer proceeds the order without calculating he shipping cost.

This article specify some of the cases which should be considered while using uc global quote module in projects in Drupal 7. Procedure may vary depends on the drupal versions and requirement.