ATF Error on Assessment FAILURE: Unable to set component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2025 08:05 PM
I am unable to fill an assessment. I am using Set Component Values (Custom UI) to set the components. Questions are visible but I am unable to fill in the questions automatically. I am getting an error like this
FAILURE: Unable to set component 'Radio button <input> [ASMTQUESTION:230dbe501be8aa9463a54269b04bcb81_deje3aekpft398cev79ro0quuv]: ASMTQUESTION:230dbe501be8aa9463a54269b04bcb81 with value No in page area Change Risk Assessment' to value '0', component not found
This is how questions look like
This is how my ATF step looks like
When I Retrieve Components, it is displaying Component ID instead of the name of the questions and I did an inspect on Chrome and realised that the ID is different every time. How should I automate this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2025 09:21 PM
you cannot automate this and test using ATF as the HTML ID is different every time as per what you informed.
check still if this link helps
Automate Assessment/Survey Testing with ATF(Including Multiple Option,Attachments &Reference fields)
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 04:27 PM
Hi Ankur,
Thank for your reply, I did check the link and I am doing the same thing as mentioned there. I am using Set Component Value (Custom UI) step to retriever component but its not displaying the name of the component its showing the id which is dynamic and therefore the step is failing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 08:25 PM
Hi Ankur,
Thank you for your reply, I am following doing exactly the same things as mentioned in the link. I am using Set Component Value (Custom UI) step to retrieve the components, however I am not getting the names of the questions, instead I am getting the HTML Id which is dynamic and hence the ATF failing. Any solution for this issue? I have never had this issue before
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 11:59 PM
Hi,
Have you found the answer for this?