Getting Started with Telerik Testing Framework
Thanks for using Telerik Testing Automation infrastructure. To get started using this framework, please follow the instructions below. If you have further questions, feel free to contact us.
Installing and Setting Up the Infrastructure
To get started, first download the Telerik Testing Framework installer package directly from the Products page. Once the installation is complete, you will have all of the following placed in the Telerik Testing Framework %InstallDir% folder:
- The Telerik Automation Infrastructure library. ArtOfTest.WebAii.dll (for version 2010 and older, ArtOfTest.Common.dll is also included).
- Telerik's Internet Explorer client. ArtOfTest.InternetExplorer.dll.
- Telerik's Firefox client: Automatically installed in your install directory.
- Safari client: Automatically installed in your install directory.
- Silverlight plug-in: ArtOfTest.WebAii.Mime.dll.
- Our HTTP Proxy: ArtOfTest.WebAii.HttpProxy.exe.
- ASP.NET TestRegion Custom Control. ArtOfTest.WebAii.AspNet.dll.
- Visual Studio item templates for VS Team Test, NUnit, MbUnit and xUnit (Both VB.NET and C#).These are automatically registered with Visual Studio.
- 90+ Unit Test Code Samples to help illustrate the different features of the Telerik Testing Framework. You will find 4 zipped solutions: (QuickStarts_NUnit_CS.zip, QuickStarts_VSTS_CS.zip, QuickStarts_NUnit_VB.zip, QuickStarts_VSTS_VB.zip). You can use the sample solution that fits your language and testing framework of preference.
- Release notes. ReleaseNotes.txt
- API Reference help file. Documentation.chm
- Link to the online Documentation including the Getting Started Guide.
- Link to the online community forums.
- Link to Telerik Premier Support description.
Both the Telerik Testing Framework library and the Internet Explorer client are installed and ready to use once the installation is complete. The templates are also installed into your local templates for the current user. You also have a copy of these templates under %InstallDir%\Visual Studio Templates\. The Firefox client is automatically installed by the Telerik Testing Framework installer.
Starting Automation Using Telerik Testing Framework
- If you are using Visual Studio Team Test, please reference the Using Visual Studio Team Test topic.
- If you are using NUnit, please reference the Using NUnit topic.
- If you are not using NUnit or Visual Studio Team Test, you can still use Telerik Testing Framework from a Console Application, a Class Library, or a Windows Application. Simply follow the rest of the instructions below. Note: For Visual Studio 2010, change the solution's "Target Framework" property to .NET Framework 3.5 or .NET Framework 4.0. The Client Profile Frameworks will not work.
Once Telerik Testing Framework is installed on the target machine, you can easily start using it from your .NET project by simply referencing the ArtOfTest.WebAii.dll (and ArtOfTest.Common.dll for version 2010 and older) file placed in your %InstallDir%. Those are the only dll's you need to reference to get the full functionality. To reference the Telerik library:
- Select your project in the Solution Explorer in Visual Studio, or start a new project.
- Right-click the References folder displayed in the solution and select 'Add Reference...'.
- Navigate to the ArtOfTest.WebAii.dll installed on your machine in your %InstallDir%\bin folder.
- Select ArtOfTest.WebAii.dll (and ArtOfTest.Common.dll for version 2010 and older).
- Click OK to finish adding the needed references.
Quick Start Sample Code
Before calling into any of the Telerik library methods, you need to make sure that you have properly initialized an instance of the Manager object passing in the settings you want used for this instance. To initialize the project:
// Initialize the settings
Settings mySettings =
// Set the default browser
mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
// Create the manager object
Manager myManager =
// Start the manager
// Launch a new browser instance. [This will launch an IE instance given the setting above]
// Navigate to a certain web page
// Perform your automation actions.
Element mybtn = myManager.ActiveBrowser.Find.ByTagIndex(
// Shut-down the manager and do all clean-up
' Initialize the settings
' Set the default browser
mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer
' Create the manager object
' Start the manager
' Launch a new browser instance. [This will launch an IE instance given the setting above]
' Navigate to a certain web page
' Perform your automation actions.
Element = myManager.ActiveBrowser.Find.ByTagIndex(
' Shut-down the manager and do all clean-up
The Manager object exposes all methods/properties needed to perform browser automation, element identification, logging and DOM traversal including TestRegion identification. Below is a brief description of the key objects exposed off the Manager and their corresponding key object properties/methods: