ATF: How to submit catalog item if Order Now button is renamed

Ankita23
Tera Contributor

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.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

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


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,



I tried using 'Click Modal Button' step and added the reference to catalog Item ID and specified the button as 'Request Now'-


find_real_file.png


But no luck, got error: FAILURE: Did not find GlideDialogWindow or GlideModal.


find_real_file.png



Which OOB UI Page to use to get the button.


How and where can I specify the document id of the button?



Thanks,


Ankita


mitzaka
Mega Guru

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.


Thanks buddy, same issues we are facing.