RocketTheme Joomla Templates
Home Features How To Setup named areas inside other objects/controls with Control Parts
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.
·Draw a rectangle.
·Click the ellipse tool.
·Draw an ellipse.

 
 

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:

 
  
 
 
 
Test Automation FX is available for download and purchase. A free version is also available for download.

TAFX Newsflash

TAFX 2.0 Released
TAFX 2.0 has support for Visual Studio 2008/2010 and 32/64 bit applications as well as .NET 2.0, 3.0, 3.5 and 4.0 testing! Go to the download page and download it. 
 
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.
 
Interview with a TAFX team member

An interview with key developer Richard Houltz on the TAFX team where some interesting facts about TAFX is revealed.