Posted by: jorgemontano | June 17, 2011

Silk4NET A way to integrate Visual Studio 2010 and Silk Test

image

Silk4Net is a plugin for Visual Studio 2010 that let’s you create ATCs for several kind of Applications.

In this post we will review the fundamentals about SilkTest and what is Silk4NET.

SilkTest is program that lets you automate GUIs using the so called Open Agent, before the Open Agent, SilkTest uses Classic Agent, I’ll not review what is the Classic Agent because is very different to the Open Agent.

The SilkTest Open Agent is a software process that translates the commands in your scripts into GUI-specific commands. The Open Agent drives and monitors the application that you are testing. It has a powerful GUI objects recognition mechanism, and uses xPath notations for locating UI elements.

Technologies supported by the Open Agent:

  • Web Browser (Internet Explorer 6, 7 and 8, Firefox 3.0, 3.5 and 3.6)
  • Java GUIs (Eclipse 3.0 – 3.6, SWT, AWT/Swing)
  • Microsoft WinForms (.NET 2.0, 3.0, 3.5, 3.5 SP1, 4.0) 32 and 64 bit
  • Microsoft WPF (.NET 3.5 SP1, 4.0) 32 and 64 bit
  • Native GUIs – Win32 (32 and 64 bit)
  • ERP – SAP (SAPGUI client 7.10)

What is Silk4NET?

image

Is a powerful plug-in for Visual Studio 2010, that deliver advanced automated testing capabilities.

  • Is a set of classes for .NET framework 4, it is based on SilkTest OpenAgent functionality
  • Allow us to quickly create test automation framework in C# or VB.NET within Visual Studio.

How to use Silk4NET?

First we need to install it, it comes with SilkTest latest Installer versions, and we can choose to install Silk4NET automatically on VS2010, or if VS2010 is not present on the machine we can install it manually.

image

Once installation is completed Silk4NET menu will be added to VS2010, Click on Silk4NET, select Start Recorder and the SilkTest Recorder will be opened.

The SilkTest Recorder allows you to record automated test cases. Just Click on record and start using the application under test.

Once you completed recording, Click on Stop button ,Select the steps you want import, Copy and Paste on Visual Studio. Also you can configure the default client (could be .NET language C#)

Conclusions

Is better to use Silk4NET if we want to integrate SilkTest ATCs and apps developed on VS2010 .

You can start recording ATCs using SilkTest Recorder, then generate a Silk4NET project or just copy the steps recorded directly to VS2010.

Third party components are supported like DevExpress Components (This was an issue with the current project I’m working, but using another feature of SilkTest called DynamicInvoke we can automate well DevExpress components). In In other post I’ll comment more about DynamicInvoke.

All technologies supported by Open Agent are supported by Silk4NET.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: