How to implement an ATF test step to click on a link in an interceptor?

dp11
Tera Guru

Hi,

 

We have our Change model implemented such that upon clicking on 'Create New" in the Change application in the navigation panel, an interceptor is presented to choose from the 3 different types of change requests: standard, normal, and emergency. 

dp11_0-1698347065547.png

 

So for testing Change Request form features, I can include the test step for clicking on the "Create New" under Change application. But how do I have a test step for clicking on one of the change types in the interceptor? Has anyone implemented this?

 

Thanks,

Deb

1 ACCEPTED SOLUTION

ServiceNow Use6
Tera Guru

Hi @dp11,

It's very simple. You have to use Click Custom UI Component Step. I have pasted my scenario.

 

Just do this. Once you have impersonated your required user (if you have to), Select Custom UI Component step. After executing the step, please look for Link or Button with 'Normal' in the list of components captured.

 

ATF.PNG

 

Regards

Suman P.

View solution in original post

4 REPLIES 4

ServiceNow Use6
Tera Guru

Hi @dp11,

It's very simple. You have to use Click Custom UI Component Step. I have pasted my scenario.

 

Just do this. Once you have impersonated your required user (if you have to), Select Custom UI Component step. After executing the step, please look for Link or Button with 'Normal' in the list of components captured.

 

ATF.PNG

 

Regards

Suman P.

Hi, 

How did you manage to retrieve components from the first 'Click Component (Custom UI)' test step? When I click on 'Retrieve Components' it stalls on 'Waiting for a browser to pick up the test'.

Best regards
Thomas

Never mind. I deleted all records under 'All Test Runners' and it seems to work now.

Prapurna kondur
Tera Contributor

thanks for the soution