Yats – Setting Up Test Case Project

By | July 2, 2014

This should help you to get started writing a Yats test case. We will create a Visual Studio solution, set up project dependencies and debug a very simple test case. We are assuming that Yats is installed at C:\Program Files\Yats

Create a new C# DLL project:

YatsProjectSetup01

Add the following DLL dependencies to the project:

attributes.dll, log4net.dll, PortLibrary.dll, PortUtil.dll, TestCase.Interface.dll, TestCase.Parameter.dll, TestCase.Yats, TestRepositoryManager.YatsNative.dll, Yats.Utilities.dll

YatsProjectSetup02

Open your project properties and under Debug set Yats as external program

YatsProjectSetup03

Implement a test case by implementing IYatsTestCase


using yats.TestCase.Interface;
using yats.TestRepositoryManager.YatsNative;

namespace DemoTest
{
public class Class1 : IYatsTestCase
{
#region IYatsTestCase Members

public ITestResult Execute()
{
throw new NotImplementedException();
}

#endregion
}
}

That should be it. The test case should show up, run and you should be able to debug it.

YatsProjectSetup04

Leave a Reply

Your email address will not be published.