Cake.Tools.ReadyAPI.TestEngine allows for the build time integration of ReadyAPI automated testing via TestEngine.
#addin nuget:?package=Cake.Tools.ReadyAPI.TestEngine&version=1.0.0
dotnet add package Cake.Tools.ReadyAPI.TestEngine --version 1.0.0
<PackageReference Include="Cake.Tools.ReadyAPI.TestEngine" Version="1.0.0" />
Aliases
#addin Cake.Tools.ReadyAPI.TestEngine
If TestEngine.ps1 is not included in the PATH you will have to provide the location of TestEngine.ps1 as such
Setup(context => {
context.Tools.RegisterFile("C:/Users/yourusername/AppData/Roaming/npm/testengine.ps1");
});
General
RunProject |
Run your ReadyAPI functional test(s).
var result = RunProject
(
"your-readyapi-project.xml",
new TestEngineSettings()
{
ConfigurationFile = "config.json",
PrintReport = true
}
);
|