Automated Test Framework

kishorek9987311
Tera Contributor

Hi All,

I am automating the Change module and trying to complete the Risk Assessment using ATF. I used the Click UI Action step to open the Risk Assessment popup. After that, I used the Set Component Values (Custom UI) step.

While retrieving the components, the risk assessment questions appear with IDs like:

ASMTQUESTION:057c0e5287ee725082d933b40c...

When I try to set values for these radio button components, I get the following error:

FAILURE: Unable to set component 'Radio button <input> [ASMTQUESTION:...] to value '1', component not found.

Could someone please suggest a solution to handle this issue and successfully automate the Risk Assessment in ATF?(High Priority)

1 REPLY 1

Matthew_13
Mega Sage

Hi Buddy,

 This behavior is fairly common with the Risk Assessment popup and is expected in many ATF scenarios.

The Risk assessment questions are rendered dynamically inside the popup (often within a dialog or iframe). Because of this, ATF may display the components during selection, but at runtime it cannot reliably locate the same radio button input, which results in the “component not found” error.

A few approaches that usually resolve this:

  • After opening the Risk Assessment, ensure ATF is operating in the correct context (for example, switching to the popup or iframe if one is used).

  • Instead of using Set Component Values on the radio button input, use Click Component (Custom UI) on the visible option label (such as Yes/No or High/Medium/Low). In many cases, the actual <input> is hidden and the label is what receives the click.

  • Add an explicit wait after opening the popup to allow the assessment UI to fully render before interacting with it.

If the UI continues to be unreliable, a more stable option is to populate the Risk Assessment responses using a server-side ATF step rather than driving the modal UI directly.

Hopefully this helps, and please let me know if you need more detail for your specific UI or version.

 

@kishorek9987311 - Please mark Accepted Solution and Thumbs Up if this helps you