background image
<< Chapter 13 - Testing .NET Applications | WebForms Applications >>
<< Chapter 13 - Testing .NET Applications | WebForms Applications >>

Recognize Visual Studio

Testing .NET Applications
13-2
Determine the names of objects in your program (as given in the source code),
and use those names for object recognition.
Capture properties of Visual Studio.NET Windows Forms objects, using the
Object Properties verification point.
Capture the data underlying a Visual Studio.NET Windows Forms data control,
using the Object Data verification point.
As an example, suppose you have a label in a Visual Studio.NET Windows Form. If
you click the label during Robot recording, the label's name appears in the Robot
script. If you create an Object Properties verification point on the label, the label's
name is captured. The name by which Robot identifies the object is the same as its
Windows Forms name, as shown in the Visual Studio.NET Properties window.
Robot scripts can be played back on a variety of Windows platforms, including
Windows NT 4.0, Windows XP, Windows Me, and Windows 2000, and are
transportable across the various platforms.
Making .NET Applications Testable
The .NET Extension is loaded by default and is required to recognize Visual
Studio.NET Windows Forms controls. To verify that the .NET extension is loaded:
1. Start Robot.
2. Click Tools > Extension Manager.
3. Verify that Microsoft .NET is selected. If not, select it.
4. To improve the performance of Robot, clear the check boxes of all environments
that you do not plan to test.
5. Exit Robot.
The next time you start Robot, only the extensions for the selected environments are
loaded.
NOTE: During installation Robot installs some assemblies to global assembly
cache. If you install Robot before installing the .NET framework, this step is
skipped. In order to test your .NET application successfully, you need to either
re-install Robot or copy Dotnetspy.dll and interop.mscoreee.dll into your global
assembly cache.