| Setup named areas inside other objects/controls with Control Parts |
| Example | |
| If we for instance use the Paint application in Windows and record a test where we perform the following actions: ·Click the rectangle tool. |
![]() | |
Then the code is recorded as: | |
| |
This is all true, but we can see one problem. The circle tool and rectangle tool are both identified as ToolWindow1. This is due to TAFX not being able get any additional information about the content of the ToolWindow. To help TAFX we can add a ControlPart to the ToolWindow. We do this by selecting the Add ControlPart context menu in the ‘UIMap designer’ for the ToolWindow. | |
| |
When you have added a ControlPart you can move it and resize it on the screen with the mouse (make sure that the ControlPart is selected in the ‘UIMap designer’ and the Highlight object checkbox is checked). Position it over the rectangle tool and rename it ‘RectangleTool’ in the ‘Properties’ window. | |
| |
Add another Control Part, position it over the ellipse tool and rename it to ‘EllipseTool’. Now, if we make another recording with the same actions, we get the following much more precise code: | |
| |
| Buy now and get free TAFX 2.0 upgrade |
| If you buy a TAFX professional version license now, it will include a free upgrade to the upcoming TAFX 2.0 release! Go to the download page for TAFX professional version details. |
| TAFX 1.3 Released |
| Version 2.0 of Test Automation FX has been slightly rescheduled, and will be released in the very beginning of 2010. In the meantime the minor version 1.3 is released, including some customer requested features and enhancements to the TAFX core. Download it or check out the details in the release notes. |
| Partner up with TAFX |
| If you are an independent software developer or tester and would like to create business, services or products connected with TAFX be sure to check out our partner programs. |
