- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Are you having problems with your Order Now Buttons?
Problem:
There are two known errors seen where Automated Test Framework (ATF) tests fail to find the 'Add to Cart' button on a catalog item.
- KB0656699 - Automated Test Framework fails when a catalog item does not use the functionality "Use cart layout"
-
- Fixed in Jakarta Patch 6 & Kingston
- KB0682516 - Automated Test Framework fails when individual catalog item has 'use cart layout' set to false. (Extension of PRB1192151. Error 'FAILURE: Cannot find 'Add to Cart' button.)
-
- Fixed in Jakarta Patch 6 & Kingston Patch 3
Example of the Error and Workaround for those on Pre fix platform version:
When the 'sc.use_cart_layout' system property is set to true and the use sc layout option is false at the individual item level, the Add Item to cart and the Order Item ATF test steps fail.
- Create a test.
- Add a step to Open a catalog item, such as a standard laptop. Make sure item is set to Use cart layout = false.
- Add the step Add item to shopping cart.
- Test Run.
Error Output:
Status: Failure Summary: FAILURE: Cannot find 'Add to Cart' button.
Workaround:
Set the sc.use_cart_layout system property to false
(If 'use cart layout' is set on the item itself, there is no workaround for this.)
For further info regarding ATF, pls visit: https://docs.servicenow.com/bundle/kingston-application-development/page/administer/auto-test-framew...
As we are talking about Order Now buttons, here is a knowledge base article that shows you how to tackle a situation where hitting the Order Now Button gives a blank page. This could be down to two main reasons, Orphaned or Duplicate records that need attention.
Troubleshooting - Cart Submission Issue
- 879 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.