IBM Support

JR64567: "COULD NOT FIND TESTCONTROL FOR CONTROLTYPE= AND FRAMEWORKID:WIN32" DURING EXPAND TREE COMMAND EXECUTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

Direct link to fix

 

APAR status

  • Closed as program error.

Error description

  • When navigating under lists using the command ExpandTree in IBM
    RPA and the target applications are Win32-based applications the
    following exceptions is thrown:
    
    System.AggregateException: One or more errors occurred. --->
    TestStack.White.Mappings.ControlDictionaryException: Could not
    find TestControl for ControlType= and FrameworkId:Win32
      at TestStack.White.Mappings.ControlDictionary.GetTestControlT
    ype(StringclassName, String name, ControlType controlType, Strin
    frameWorkId, Boolean isNativeControl)
      at TestStack.White.Mappings.ControlDictionary.GetTestControlT
    ype(AutomationElementautomationElement)
      at TestStack.White.Factory.DictionaryMappedItemFactory.Create
    (AutomationElementautomationElement, IActionListener actionListe
      at TestStack.White.UIItemList`1..ctor(List`1 collection,
    IUIItemFactory factory, IActionListener actionListener)
      at TestStack.White.UIItems.TreeItems.Tree.get_Nodes()
      at aRN6cGDFgeu3D2UxoZK.fFU4IjDZ04vFXb6Jcmv.k3RX1EydUN(Tree  ,
    Action`1  )
      at XUdWWTDYkZFVHHwqqJL.mwpBtjDK2OcSuIJNvrG.get_Options()
      at XUdWWTDYkZFVHHwqqJL.mwpBtjDK2OcSuIJNvrG.Refresh()
    
    The problem is related to the Lists (ListView and ListBox) which
    are controllers of Win32-based applications and the way the
    expandTree command handle those kind of controllers. The
    expandTree command can't recognize properly the list items
    inside List Box and List View.
    

Local fix

  • Users can workaround this issue by the following script:
    
    defVar --name controlXPath --type String --parameter
    defVar --name scriptsFolder --type String --parameter
    defVar --name treePath --type String --parameter
    defVar --name interval --type TimeSpan --parameter
    defVar --name nodes --type List --innertype String
    defVar --name node --type String
    defVar --name window --type Window --parameter
    setVarIf --variablename "${interval}" --value "00:00:02" --left
    "${interval}" --operator "Equal_To" --right 0
    setVarIf --variablename "${controlXPath}" --value
    "/root/tree[1]" --left "${controlXPath}" --operator
    "Is_Null_Or_Empty"
    setVarIf --variablename "${treePath}" --value "Hardware
    Resources\\DMA" --left "${treePath}" --operator
    "Is_Null_Or_Empty"
    waitWindow --useregex  --regexPattern System --regexOptions "0"
    window=value
    attachWindow --window ${window}
    splitString --text "${treePath}" --delimiteroption
    "CustomDelimiter" --customdelimiter "\\" nodes=value
    foreach --collection "${nodes}" --variable "${node}"
    	click --selector "Name" --doubleclick  --controlsimilarity 100
    --forcerefresh  --name "${node}"
    	delay --timeout "${interval}"
    endFor
    
    This script clicks on each controller of the Win32 application
    by name until the last item of the tree is found.
    
    
    It's necessary that users adapt it to their application and
    the correct tree path.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users using the expandTree command.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Problem                                                      *
    *                                                              *
    * expandTree command is not working in msinfo32.exe            *
    * application.                                                 *
    *                                                              *
    * Expected Behavior                                            *
    *                                                              *
    * When using expandTree on msinfo32.exe application, the tree  *
    * gets expanded.                                               *
    *                                                              *
    * The compiler was incorrectly mapping some Win32 controls.    *
    * The problem was corrected with this APAR.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Update to a level of IBM RPA which includes the fix for this *
    * APAR.                                                        *
    ****************************************************************
    

Problem conclusion

  • A fix is available or will be available that resolved this APAR.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR64567

  • Reported component name

    RPA

  • Reported component ID

    5737N5100

  • Reported release

    L00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-02-01

  • Closed date

    2022-02-11

  • Last modified date

    2022-02-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RPA

  • Fixed component ID

    5737N5100

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSC50T","label":"IBM Robotic Process Automation"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"L00","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
30 March 2022