From catalog form, click the Add button to bring up a modal dialog "Add a row". How to do in ATF?

Gilbert Escobar
Tera Contributor

Hi,

I have a catalog item form that has this "Add" button that when clicked brings up a modal dialog/window with some fields or dropdown listboxes for DB Server Name, DB Name, etc.

 

How do you do the Steps in ATF Tool?  (something new to me)

Please give example or if there is an example from ServiceNow out-of-the-box sample Tests, please share the name(s) of the ATF Test(s).

 

Thanks.

Gilbert

 

2 ACCEPTED SOLUTIONS

Hi Gilbert, 

you don't need to click the "Add" button at all while adding multi row values in SP.
The modal dialog box just appears by calling the step ""Add row to multi.row variable set (SP)".
In the screenshot you see one of my reusable tests that is adding opening a record producer, adding 2 different multi row values and setting normal values in the record producer. 
best regards,

Beate

View solution in original post

When you use "Add row to Multi-Row variable set (sp)" is like clicking the add button. So just follow the steps I gave and watch it you will see it works.

View solution in original post

6 REPLIES 6

Brian Lancaster
Tera Sage

I just tied this in my PDI. You need to run this test against the Service Portal. If you have any variables that are not in the multi-row variable set I would set them first. Here are the test steps I used. It appears that you have to add a row one at a time and save each row. My PID is no Yokohama so if you are on a earlier version of ServiceNow I'm note sure if the test steps are available.

Edit: I just checked my company instance which is on Xanadu and it there.

 

BrianLancaster_0-1753293642188.png

 

Hi Brian,

Thanks for your suggestion.  However, it does not show the Step to click the Add button on the form to bring up the modal dialog box where you enter or select values.  I'm wondering how the modal dialog box is recognized by ATF.

Thanks.

Gilbert

 

Hi Gilbert, 

you don't need to click the "Add" button at all while adding multi row values in SP.
The modal dialog box just appears by calling the step ""Add row to multi.row variable set (SP)".
In the screenshot you see one of my reusable tests that is adding opening a record producer, adding 2 different multi row values and setting normal values in the record producer. 
best regards,

Beate

Thank you Beale.

The solution you guys provided works.

ATF Tool does not have to click on the "Add" button like how the user will do it since equivalent things are done in the backend.