Drupal Technical
How to test Ubercart shipping quote module in Drupal?
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
- Ensure that the following module is enabled in your site- uc global quote module.
- Ensure that admin will be able to add new shipping zones. You can add new shipping zones at admin/store/settings/quotes/methods/zones
- 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
- Ensure that prize values are changing as per the shipping zone.
- Ensure that the drupal site gives accurate prize value for both real numbers and floating point numbers.
- Ensure that prize values are changing as per the region.
- Ensure that prize values are changing as a combination of weight and zone.
- Ensure that admin will be able to view/edit/delete the zones.
- Ensure that admin will be able to add conditions for Shipping quotes.
- Ensure that admin will be able to view/edit/delete rates.
- Ensure that the changed values are reflected in the drupal website.
- Ensure that users other than admin doesn't have the permission to add/edit shipping zones, weights and rates.
- Ensure that error message will be displayed for products with no weights when shipping costs are calculated.
- Ensure that error message will be displayed for products with no rates when shipping costs are calculated.
- Ensure that error message will be displayed for products with no country when shipping costs are calculated.
- Ensure that when customer order a product, he will be able to see the shipping cost at the checkout page.
- 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.