In ATF, I need to enter data into a popup window during a test step, but I'm facing issues achieving

saikumar2620
Tera Contributor

In ATF, I need to enter data into a popup window during a test step, but I'm facing issues achieving this. How can I interact with a popup in ATF and input the required data?" 

so i used Set ui component value to set the values for the feilds inside the popup so the issue is when iam setting values instead of showing feild name its  showing the sys_id of feilds so it diffcult to ATF to set the values for feild in the popup 

 

NOTE: In Lable column instead of fields it showing feilds sys_id this the many Issue

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @saikumar2620 

Pop up window are not supported in ATF currently.

Please find the below article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0786683

 

 

https://www.servicenow.com/community/csm-forum/how-can-we-automate-pop-up-fields-through-atf/m-p/436...

https://www.servicenow.com/community/developer-forum/how-to-validate-this-pop-up-window-on-atf/m-p/2...

https://www.servicenow.com/community/developer-forum/testing-pop-up-atf/td-p/3061772

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@saikumar2620 

showing sysId should not stop you from testing this using ATF.

how are you opening that pop-up? via some UI action

share what steps you are using

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

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

Chidanand_VK
Tera Expert

@saikumar2620 , 

You are trying to submit the Risk Assessment on the Change request.

The Questions showing on the Popup will have the SysId of the Change request as an Id of those Questions. Because of this, the Id of those Questions will change every time.

 

The workaround for ATF is:

Open the Assessment record created for that Change.

Click on 'Take Assessment' UI action.

Using 'Set Component Values (Custom UI)' set the values as needed.

Using 'Click Component (Custom UI)' click on 'Submit' button.

 

If my answer helped, please mark it as helpful or accept as the solution.

Regards,

Chidanand