How to use ATF to test a custom checkout widget?

Per5
Giga Guru

We switched our service portal to Employee Center recently and activated shopping cart at the same time. 

The original checkout widget sc-shopping-cart-v2 did not fit our needs to we cloned it and changed the fields. 

The problem now is that I cannot create ATF testing for this custom widget. There is a test step for the original widget but nothing for custom widgets. 

I have looked at the test steps for custom UI but either I have to direct to an UI page or I have to scan the current page which doesn't work since the checkout widget is a pop-up window.

This is Rome, but we will upgrade to San Diego later this year. 

 

Is there a way to create a ATF step to test our custom checkout widget?

1 ACCEPTED SOLUTION

Hi,

That's what I mentioned in my 1st response.

ATF has limitations in terms of Custom UI Steps.

It becomes difficult to detect the HTML elements using Custom UI Steps and hence you will face difficult in achieving this.

Please inform your customer about this limitations.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

View solution in original post

6 REPLIES 6

Per5
Giga Guru

One last question: Would it be possible to use the Test Step "Run Server Side Script" to set the widget fields?

Hi,

I doubt it will work since Run Server Side Script runs on server and widgets are for UI

regards
Ankur

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