[Drupal] What are the cases to be checked while checking coupon code validation in our Drupal website?

| | 1 min read

Suppose your drupal projects contains products to sell. And you can use a coupon code while purchasing some products. For using coupon code in your Drupal site, Ubercart Coupon code module should be installed. Please check the below cases which contains the test cases of checking coupon code validation functionality in Drupal website.

  1. Ensure that error message will be displayed for invalid /expired dates.
  2. Ensure that error message will be displayed after the maximum redemptions per code.
  3. Ensure that error message will be displayed after the maximum redemptions per user.
  4. Ensure that error message will be displayed after the maximum redemptions per user.
  5. Ensure that error message will be displayed after the Minimum order quantity.
  6. Ensure that error message will be displayed for other than the Applicable product classes.
  7. Ensure that error message will be displayed for other than the Applicable products.
  8. Ensure that error message will be displayed for other than the Applicable SKUs.
  9. Ensure that error message will be displayed for coupon code that is used other than the Applicable taxonomy terms.
  10. Ensure that error message will be displayed for other than the specified users.
  11. Ensure that error message will be displayed for other than the specified user roles.
  12. Ensure that error message will be displayed for inactive coupon codes.

Thus we can ensure that all the cases should be checked by going through the above steps. Please be note that cases to be tested may vary depending on the requirement.