Suggested Test Cases for Developers:

The following are examples of some of the tests that you might want to perform to confirm that the Sell Online integration is working and that you have your shipping profile setup correctly for your business. Every business will have unique SKUís and a unique consumer base, therefore we have tried to give a high level view of the tests. You should adjust the tests to your own situation. The Canada Post site has much information that you can use to confirm the test results. www.canadapost.ca see business services pages: www.canadapost.ca/cpotools/apps/track/business/findByTrackNumber?LOCALE=en

 

Test Case

Details

Expected result

Major Canadian Destinations

  • confirm delivery method selection is available
  • confirm both costs and delivery dates are shown

Toronto

to postal code M5W1E6

Montreal

to postal code J1Z6T5

Vancouver

to postal code V6G1J3

 

This is depending on your shipping location. You should see 3 selections, for deliveries in your region and 4 for deliveries to long distance destinations.

Local Destination

  • confirm only one delivery option per date

Use a local postal code

Priority, XpressPost and Regular shipping should be displayed. Expedited should not show.

Major US location

  • confirm Country code and state code are working
  • confirm multiple delivery options available

Provide

  • Country code
  • State code
  • Zip code (optional)

4 shipping options should be given.

Major International location

  • confirm Country code is working
  • confirm multiple delivery options are available

Provide

  • Country code
  • Province code (optional)
  • City code (optional)
  • Postal code (optional)

3 shipping options should be given.

Ship smallest item in catalog

  • check shipping cost
  • check box size

Ship to major Canadian destination

Shipping cost should be reasonable.

You can check the rate calculator at http://www.canadapost.ca/cpo/mc/business/ratesprices/default.jsf?LOCALE=en

Check box size in the shipping profile

Ship largest item in Catalog

  • check box size
  • check maximum size for Canada Post shipping

Ship to major Canadian destination

Should not get an error from Sell Online.

Shipping cost should be reasonable. Check box size in the shipping profile

Purchase multiple items

  • check box size
  • check for reasonable shipping cost.

Ship to major Canadian destination

Shipping cost should be reasonable. You should have a box that is large enough to fit the items or you will see multiple boxes shipping.

Ship small item to US or international

  • check for small packet rate
  • check shipping cost

Ship to a US destination.

Item must weight less then 1.0 kg (USA) or 2kg (Int) and the parcel must be small to use the small packet rates.

Shipping cost should be much less for Air and Surface when small packet rate is used. The application will use small packet rate automatically. Small packets are not insured to change the system to use parcel delivery cost turn on the insurance in the shipping profile.

Adjust Handling fee

Determine if a handling fee is required, logon to your shipping profile and update the handling fee to the value that you require.

Shipping costs should be changed to add or remove the handling fee from the cost shown to the consumer.

Override Fulfillment time

  • available to XML only
  • check for overriding delivery dates for backordered items

Change the fulfillment time in the XML message to simulate a back ordered item.

Delivery dates should include the additional time from message.

Check language response

Change response from EN to FR for French response

Check the response for the correct language.

Override Originating postal code.

  • the system will use the postal code in the shipping profile unless you override it in the XML message.
  • Available to XML only
  • Can support multiple originating locations or warehouses

Add a postal code in the XML message

Costs and Delivery time are impacted by the originating postal code.

Value of parcel is to be used when using the special features for insurance, signature, or special rating

  • Available to XML only
  • Must use the shipping profile to check for insurance or other advance feature

Calculate the value of the parcel if your commerce engine does this.

If insurance is used then the parcel cost increases for each $100.

US dollar conversion

The application does not provide this

You must do the conversion on your site if you provide this.

GST, PST calculation

The application does not provide this.

You must do the tax calculation in the commerce engine.

Exception testing

   

Invalid Destination

Wrong Postal Code ie H0H0H0

You should get an invalid postal code error message. Your application should handle this case.

Invalid Destination

Invalid Country

You should get an invalid country code error message. Your application should handle this case.

Invalid Destination

Invalid State code for USA

You should get an invalid province/state error message. Your application should handle this case.

Item is too large to ship

Canada Post has a maximum size that can be shipped

If you sell items that are larger then the module will calculate you can still use Sell Online, you will want to trap the error message and replace the message with another to conclude the sale of the item.

No connection to Sell Online

Sell Online server is down or the internet segment can not reach Sell Online

Depending on your business model you might still want get your consumer purchase. If the Sell Online server does not respond then you might want to provide a flat shipping cost to the consumer to get the sale.