This page is maintained for older versions of Rapise only. The latest documentation can be found at:


Top  Previous  Next


SeSNUnit.vsi is a visual studio installer packaged with Rapise.  It facilitates calling Rapise tests from NUnit tests.





You will need Visual Studio and NUnit to use SeSNUnit.  NUnit is available at


To install SeSNUnit, open the following directory:

C:\Program Files\Inflectra\Rapise\Extensions\UnitTesting\NUnit\SeSNUnit


Double-click SeSNUnit.vsi.  The Visual Studio Content Installer will appear.  Select the components for the language you will use and then click Next.



Use both the NUnit.Framework and the SeSNUnit namespaces:


using NUnit.Framework;

using SeSNUnit;


NUnit uses the class attribute [Test] to identify test methods.  The corresponding attribute for SeSNUnit is [SeSNUnitTest(@"<path to .sstest>")].  Note that the SeSNUnitTest attribute has a parameter, the file-path to the test that will be invoked.


The following example uses a test method simply as a wrapper for calling an .sstest:


[SeSNUnitTest(@"T:\Samples\Cross Browser\CrossBrowser.sstest")]

public void TestIEandFirefox()


  int exitCode = SeSNUnitHelper.TestExecute();

  Assert.AreEqual(0, exitCode);




SeSNUnit.vsi will install a template for Visual Studio called SeSNUnitTests.  The template includes the appropriate using statements and a blank test method.  You can insert additional SeSNUnitTest methods by right-clicking in the editor in Visual Studio, and selecting Insert Snippet > SeSNUnitTest.  The following code will be added:


[SeSNUnitTest(/*Insert path to .sstest file which must be run.*/)]

public void TestSeS()


  int exitCode = SeSNUnitHelper.TestExecute();

  Assert.AreEqual(0, exitCode);



You'll need to specify the file-path.



There is a sample dll you can run in NUnit.  From the Rapise directory, you'll find it at: Extensions\UnitTesting\NUnit\SeSNUnit\SeSSamplesNUnit\bin\Debug\SeSSamplesNUnit.dll


See Also

NUnit and related documentation can be found at