public void GetArguments_IncludeTestPropertiesTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                IncludeTestProperties = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-J"));
        }
        public void GetArguments_PrintSummaryReportTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                PrintSummaryReport = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-r"));
        }
        public void GetArguments_SaveProjectTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                SaveProject = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-S"));
        }
        public void GetArguments_TestCaseProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                TestCase = "HelloWorld"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-cHelloWorld"));
        }
        public void GetArguments_TestSuiteProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                TestSuite = "Test Suite 1"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "\"-sTest Suite 1\""));
        }
        public void GetArguments_ReportFormatsProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                ReportFormats = ReportFormat.PDF | ReportFormat.XLS
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-FPDF,XLS"));
        }
        public void GetArguments_NullGlobalPropertiesNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                GlobalProperties = null
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render().StartsWith("-G")));
        }
        public void GetArguments_HostProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                Host = "localhost"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-hlocalhost"));
        }
Ejemplo n.º 9
0
        public void GetArguments_EnvironmentProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                Environment = "NewEnvironment"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-ENewEnvironment"));
        }
        public void GetArguments_IgnoreErrorsTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                IgnoreErrors = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-I"));
        }
        public void GetArguments_SettingsFileProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                SettingsFile = "readyapi-settings.xml"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-treadyapi-settings.xml"));
        }
Ejemplo n.º 12
0
        public void GetArguments_SuppressUsageStatisticsTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                SuppressUsageStatistics = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-O"));
        }
Ejemplo n.º 13
0
        public void GetArguments_SettingsPasswordProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                SettingsPassword = "******"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-vpassword"));
        }
Ejemplo n.º 14
0
        public void GetArguments_NullProjectPasswordNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                ProjectPassword = null
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render().StartsWith("-x")));
        }
Ejemplo n.º 15
0
        public void GetArguments_EndPointProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                EndPoint = "http://localhost:8080"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-ehttp://localhost:8080"));
        }
Ejemplo n.º 16
0
        public void GetArguments_DigestPasswordTypeProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                PasswordType = PasswordType.Digest
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-wDigest"));
        }
        public void GetArguments_ExportResultsUsingFoldersTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                ExportResultsUsingFolders = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-A"));
        }
        public void GetArguments_CreateJUnitCompatibleReportsTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                CreateJUnitCompatibleReports = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-j"));
        }
        public void GetArguments_EmptyHeadersNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                Headers = new Dictionary <string, string>()
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render().StartsWith("-H")));
        }
Ejemplo n.º 20
0
        public void GetArguments_OpenReportsInBrowserTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                OpenReportsInBrowser = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-o"));
        }
        public void GetArguments_EmptyTestCaseNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                TestCase = string.Empty
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render().StartsWith("-c")));
        }
        public void GetArguments_TestCaseTagsProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                TestCaseTags = "Tag3 || Tag4"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "\"-TTestCase Tag3 || Tag4\""));
        }
        public void GetArguments_NullTestSuiteNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                TestSuite = null
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render().StartsWith("-s")));
        }
        public void GetArguments_JUnitStyleHtmlReportProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                Report = ReportType.JUnitStyleHtml
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "\"-RJUnit-Style HTML Report\""));
        }
Ejemplo n.º 25
0
        public void GetArguments_ExportResultsFalseNoArgument()
        {
            var settings = new TestRunnerSettings
            {
                ExportResults = false
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(0, args.Count(argument => argument.Render() == "-a"));
        }
        public void GetArguments_TestCaseReportProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                Report = ReportType.TestCase
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "\"-RTestCase Report\""));
        }
        public void GetArguments_EnableUIComponentsTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                EnableUIComponents = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-i"));
        }
Ejemplo n.º 28
0
        public void GetArguments_CreateCoverageReportTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                CreateCoverageReport = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-g"));
        }
        public void GetArguments_BriefResultsTrueHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                BriefResults = true
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-M"));
        }
Ejemplo n.º 30
0
        public void GetArguments_UsernameProvidedHasArgument()
        {
            var settings = new TestRunnerSettings
            {
                Username = "******"
            };

            var args = TestRunnerRunner.GetArguments(string.Empty, settings);

            Assert.Equal(1, args.Count(argument => argument.Render() == "-uUsername"));
        }