Silk4NET 1

36
Silk4NET Ing. Gonzalo Alba - MCP 2013

Transcript of Silk4NET 1

Page 1: Silk4NET 1

Silk4NETI n g . G o n za l o A l b a - M C P

2 0 1 3

Page 2: Silk4NET 1

Silk Test Product SuiteThe Silk Test product suite includes the following components:

Silk4NET Silk4J Silk Test Recorder Silk Test Classic Silk Test Agents: Classic and Open Agents

Page 3: Silk4NET 1

SilkTest Open Agent The Silk Test Open Agent is the software process that translates the commands

in your scripts into GUI-specific commands. In other words, the Open Agent drives and monitors the application that you are testing.

One Agent can run locally on the host machine. In a networked environment, any number of Agents can replay tests on remote machines. However, you can record only on a local machine.

Page 4: Silk4NET 1

What is Silk4NETIs a powerful plug-in for Microsoft Visual Studio. Silk4NET enables you to efficiently create and manage functional, regression, and localization tests directly in Visual Studio. With Silk4NET, you can perform the following tasks:

Develop tests using Visual Basic .NET. Develop tests using C#. Run tests as a part of a test plan in the Microsoft test environment. View test results.

Page 5: Silk4NET 1

Pre-requisites Disable UAC (User Account Control) C:\Windows\System32\UserAccountControlSettings.exe

Page 6: Silk4NET 1

Installation Step 1:

Execute: ia_silktest2010r2_4444.exe

Page 7: Silk4NET 1

Installation Step 2:

Page 8: Silk4NET 1

Installation Step 3:

Page 9: Silk4NET 1

Installation Step 4:

Page 10: Silk4NET 1

Installation Step 5:

Page 11: Silk4NET 1

Installation Step 6:

Page 12: Silk4NET 1

Installation Step 7:

Page 13: Silk4NET 1

Installation Step 8:

Page 14: Silk4NET 1

Installation Step 9:

Page 15: Silk4NET 1

Installation Step 10:

Page 16: Silk4NET 1

Installation Step 11:

Page 17: Silk4NET 1

SilkTest Recorder Start Open Agent.

Start Recorder.

Page 18: Silk4NET 1
Page 19: Silk4NET 1
Page 20: Silk4NET 1

Application Configuration An application configuration defines how Silk Test connects to the application

that you want to test.

An application configuration includes the: Executable pattern

All processes that match this pattern are enabled for testing. For example, the executable pattern for Notepad is \*notepad.exe.

Command line pattern The command line pattern is an additional pattern that is used to constrain the process that is enabled for testing by matching parts of the command line arguments (the part after the executable name).

Page 21: Silk4NET 1

Application Configuration Step 1:

Page 22: Silk4NET 1

Application Configuration Step 2:

Page 23: Silk4NET 1

Application Configuration Step 3:

Page 24: Silk4NET 1

Application Configuration Step 4:

Page 25: Silk4NET 1

Application Configuration Step 5:

Page 26: Silk4NET 1

Application Configuration Step 6:

Page 27: Silk4NET 1

Base State An application’s base state is the known, stable state that you expect the

application to be in before each test case begins execution.

Base state is automatically created.

Page 28: Silk4NET 1

Base State

Page 29: Silk4NET 1

Global PreferencesWe can configure the following:

Setting Global Silk Test Recorder PreferencesSpecify whether Silk Test Recorder is minimized when you record and specify which mode to use to capture locators.

Setting the Default ClientYou can copy content from Silk Test Recorder into any client and then paste the content into Silk4NET, Silk Test Classic, or Silk4J.

Setting Host PreferencesSpecify the host machine name.

Setting Open Agent Location PreferencesSpecify whether the Silk Test Open Agent is installed locally or on a remote machine and the port number on which the information service connects to the Open Agent.

Page 30: Silk4NET 1
Page 31: Silk4NET 1

Start Recording

Page 32: Silk4NET 1
Page 33: Silk4NET 1

View properties Press: ctrl + alt

at the same time

Page 34: Silk4NET 1

Replay Speed

Page 35: Silk4NET 1

Exercises Calc.exe Notepad.exe

Page 36: Silk4NET 1

Questions?