Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Posting SIA result to Stratus Reporter....");
            ISiaClient siaClient = new SIAClient("SIA.txt");

            siaClient.Post();


            Console.WriteLine("Posting NUnit result to NUnit Test Reporter....");
            INUnitClient nUnitClient = new NUnitClient("NUNIT.txt");

            nUnitClient.PostTestResults();

            Console.WriteLine("Posting NUnit result to Stratus Test Reporter....");
            SIAAdapter adapter = new SIAAdapter(TestTypeSelector.NUnit, "NUNIT.txt");

            adapter.Post();

            Console.ReadKey();
        }
Exemple #2
0
        //client calls this method to post test data to Stratus
        public void Post()
        {
            var testResultData = GetTestResultData(this.FileName);

            switch (this.TestTypeSelector)
            {
            case TestTypeSelector.XUnit: { } break;

            case TestTypeSelector.SIA: {
                //Can even make the SiaClient use the adapter if needed. Just simply overload the PostTestResultData
            }
            break;

            case TestTypeSelector.ExpressionRule: { } break;

            case TestTypeSelector.NUnit:
            {
                NUnitClient nunitClient = new NUnitClient();
                nunitClient.PostTestResults(testResultData);
            } break;
            }
        }