ATF: How to submit catalog item if Order Now button is renamed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 06:52 AM
I am using ATF for testing my catalog items but stuck in 'Order Catalog Item' step.
For my instance the Order Now label has been renamed to 'Request Now' from the cart layouts and because of that when I'm running the tests it's showing error as: FAILURE: Order Now button was not found.
Can anyone help with this please. What step shall I use to order item in this case.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2017 04:20 AM
Hi Ankita,
If possible can you check the document id of the html button 'Order Now' and try using that.
Or else you can search a button with Value as 'Request Now'
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2017 05:05 AM
Hi Ankur,
I tried using 'Click Modal Button' step and added the reference to catalog Item ID and specified the button as 'Request Now'-
But no luck, got error: FAILURE: Did not find GlideDialogWindow or GlideModal.
Which OOB UI Page to use to get the button.
How and where can I specify the document id of the button?
Thanks,
Ankita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2017 01:09 AM
I have the same problem with ATF, so I opened an incident in HI.
Here is the official response from their support so far:
Hello Dimitar, My name is ..., and I am the support engineer assigned to assist you with your incident. The issue that you are experiencing has been logged as PRB1192151 - Automated test framework fails when a catalog item does not use the functionality "use cart layout". We see the error: "FAILURE: Order Now button was not found". Problem is currently closed and a fix will be available in a future release. As issue occurs when a catalog item does not use the functionality "use cart layout" a possible workaround is to check "Use cart layout" for the Catalog Item you are including in AFT test. As we can see following bellow link Use Cart Layout is not checked for "Access Request" catalog item: XXX You may read more about cart layout settings on our documentation page: https://docs.servicenow.com/bundle/jakarta-it-service-management/page/product/service-catalog-manage... For your reference I have attached PRB1192151 to this incident. Please let me know if enabling the Use Cart Layout is an acceptable solution for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 07:05 AM
Thanks buddy, same issues we are facing.