Skip to content

waxtell/Cake.Tools.ReadyAPI.TestEngine

Repository files navigation

Cake.Tools.ReadyAPI.TestEngine

A Cake AddIn that extends Cake with the SmartBear ReadyAPI TestEngine command line tool.

Publish to nuget Build

Including addin

First, add the extension in the usual way:

#addin "Cake.Tools.ReadyAPI.TestEngine"

Usage

#addin "Cake.Tools.ReadyAPI.TestEngine"

...

Task("FunctionalTest")
    .Does
    (
        () =>
        {
            var result = RunProject
            (
                "demo-readyapi-project.xml",
                new TestEngineSettings()
                {
                    TimeoutSeconds = 120,
                    ...
                    Environment = "dev"
                }
            );

            if(result != 0)
            {
                throw new Exception("One or more tests failed!");
            }
        }
    );

The extension expects TestEngine.ps1 to be available in the system path, but you may explicitly set the tool location as such

Setup(context => {
    context.Tools.RegisterFile("C:/Users/yourusername/AppData/Roaming/npm/testengine.ps1");
});

About

Cake addin to run ReadyAPI projects via TestEngine CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages