lundi 4 juin 2018

Validating file path and data c# BDD Specflow

I'm implementing my 'Then' step for my specflow feature file. I've written some of my code, i've defined my file path /orabin/app/oracle/product/ff/actuals/ but my next step is to define the file paths i want to cat. So for example i'm going to 'Cat' irm_xxx_lkdd_xuxt.csv.ovr and once i read that file my expected output would be "6677,6677_6677,3001,6"

I'm unsure how i can implement my code so that the file path is my actual (irm_xxx_lkdd_xuxt.csv.ovr) and my expected result is 6677,6677_6677,3001,6

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

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

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



        Assert.AreEqual(expected, actual);

    }

Aucun commentaire:

Enregistrer un commentaire