background image
<< Diagnostic Tool Options | .NET Security Environments >>
<< Diagnostic Tool Options | .NET Security Environments >>

Testing Hybrid Applications

Testing Visual Studio.NET Windows Forms Applications
13-5
You can select these options from Robot's GUI Playback Options dialog box, the
Start Application dialog box, or from the Start Managed Application dialog box.
Testing Hybrid Applications
Robot supports test automation of .NET GUI applications that include non-.NET
technologies also supported by Robot.
Robot supports test automation of .NET managed applications that include
unmanaged code. One example of this is an application constructed in C# using
Visual Studio.NET Windows Forms that uses a Visual Basic 6 control that is also
supported by Robot.
Microsoft® .NET technologies can also be used by your developers within many
other legacy technologies. For example, your developers can construct a .NET
Windows Form that includes several VS.NET Windows Forms controls. This .NET
Windows Form can be used on a regular HTML Web page or within a legacy Visual
Basic 6 application. For Robot to recognize the VS.NET Windows Forms controls,
your developers must include a special control in the .NET Windows Form
embedded within your legacy application. To do this:
1. Open the Visual Studio.NET IDE.
2. Click Tools > Customize Toolbox.
3. In the Customize Toolbox dialog box, click the .NET Framework Components
tab.
4. Click Browse and select the dotNETSpyControl.dll provided by Rational in the
default install directory, typically C:\Program Files\Rational\Rational Test.
The control appears in the VS.NET IDE toolbox.
A developer drags and drops the dotNETSpyControl onto the form of the custom
Windows Forms control he or she is developing.
Alternatively, developers can achieve the same objective by modifying the code for
their .NET Windows Form to include a reference to dotNETSpyControl.dll in the
build system.
Please refer to the relevant How To topics for the legacy technology where your
developer will be including the .NET Windows Form control for more information
specific to testing that technology.
NOTE: This section makes reference to technical details about .NET beyond the
scope of Robot user documentation. For more information about developing
.NETapplications, refer to MSDN online at http://msdn.microsoft.com or visit
www.gotdotnet.com for tutorials.