dimanche 3 juin 2018

Issue with automating 'Then' step BDD C#

I've written code for my 'Then' step. But when i execute my scenario the feature runs the Given and When but is unable to find the 'Then' step which is posted below.

The code i've pasted below is following a linux file path and 'Cat' a file and then validating the results of the file with the expected outcome.

       [Then("Transfer measure should be generated for (.*)")]


    [TestCase("irm_xxx_lkdd_xuxt.csv.ovr", "6677,6677_6677,3001,6")]
    [TestCase("irm_xxx_lkdd_fcvt.csv.ovrr", "6677,6677_6677,3001,6")]
    [TestCase("irm_xxx_lkdd_fbvt.csv.ovrr", "6677,6677_6677,3001,6")]

    public void ValidateMeasurement(string path, string expected)
    {
        const string processFilePath = "/orabin/app/product/inputs/ff/actuals/";
        var actual = Common.LinuxCommandExecutor
                           .RunLinuxcommand($"cat {processFilePath}{path}");

        Assert.AreEqual(expected, actual);

    }

Aucun commentaire:

Enregistrer un commentaire