Support for WinForms class mapping
TestArchitect 8.3 enhances Windows Forms (WinForms) class mapping to allow WinForms controls to be mapped to TestArchitect’s set of TA classes. Note that these TA classes support the full range of TestArchitect built-in actions, affording your tests more power and flexibility.
If you have captured WinForms controls in versions of TestArchitect prior to 8.3, your automated tests will continue to run normally in those versions. When running tests under TestArchitect versions 8.3 or later, if you haven’t updated your mappings, the following automation warning appears in your test results: On Windows Forms AUTs, the algorithm to map user-defined and built-in TA classes has been enhanced. This causes your previously-captured interface elements to be obsolete. Please use “WinForms improvement command-line tool” to upgrade your current class mapping.
- You may continue using legacy-captured controls in TA 8.3 and later versions by setting winforms raw class to yes.
- You only need to run this tool once to address the backward compatibility issues and make existing tests runnable.
To update your legacy WinForms project’s class mappings:
Run the WinForms command line tool to obtain the new WinForms class mapping file. (Learn more.)
Once you have obtained the file, open it using any text editor, then select and copy all text lines.
For the given interface of your active TestArchitect project(s), update its $Class Maps interface entity.
Open the $Class Maps interface entity, and check it out.
Place the cell pointer at the first column of an empty row below the last line.
Paste the copied lines.
Now you may run automated tests normally with new WinForms class mapping.