Testing
[Drupal] How to test Ubercart taxes module
Suppose your Drupal project handles products which can be purchased through online and you are using Ubercart 'taxes' module to handle tax rates which are applicable to your product. Also Admin has the permission to add tax rates and conditions. And a registered user can buy the product. Here I am going to explain some of the test cases which you have to execute while testing this functionality.
The cases you have to test are:
- Ensure that uc taxes module is enabled in your site.
If tax module is enable in your Druapl website, it can be find at
Home » Administration » Store » Configuration » Taxes - Ensure that Admin is ablt to add new tax rate
Admin can add tax rate at /Admin/store/settings/taxes/add. - Ensure that Admin is able to change tax rate.
- Ensure that Admin is able to edit/delete tax rate.
- Ensure that Admin is able to add/edit/delete condition.
- Ensure that the tax rate is applied to the prodcut.
- Ensure that tax rates are changing as per the condition.
- Ensure that the drupal site gives accurate prize value for both real numbers and floating point numbers.
- 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 tax rates.
- Ensure that error message will be displayed if the conditions in tax rated does not satisfy.
- Ensure that error message will be displayed if the customer proceeds the order without calculating the tax rates.
This article specify some of the cases which should be considered while using uc taxes module in projects in Drupal 7. Procedure may vary depends on the Drupal versions and requirement.