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:
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
Open your project properties and under Debug set Yats as external program
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.