private Run addTestRailRun(Project testRailProject, Milestone milestone, TestSuite testSuite)
        {
            var commandResult = _testRailClient.AddRun(testRailProject.ID, Convert.ToUInt32(testSuite.UserID),
                                                       $"{testSuite.Title} (S{testSuite.UserID}) - {DateTime.Now}", testSuite.Description, milestone.ID);

            return(_testRailClient.GetRun(commandResult.Value));
        }
Exemple #2
0
        public void OneTimeSetUp()
        {
            Client = new TestRailClient(Url, User, Password);
            var commandResult = Client.AddRun(_projectId, 2, "Selenium Test Run " + DateTime.UtcNow.Ticks, "Selenium Test Run example", 1);

            Console.WriteLine(commandResult.Value);
            _runId = commandResult.Value;
        }
Exemple #3
0
        public void CreateTestRun(string testRunName)
        {
            var testRun = _client.AddRun(ProjectId, TestSuiteId, testRunName, "Automated regression " + testRunName, MilestoneId);

            if (!testRun.WasSuccessful)
            {
                throw new HttpException("Failed to create test run, please check your network connection");
            }

            _testRunId = testRun.Value;
        }
        private KeyValuePair <ulong, ulong>?CreateRun(Suite suite, ulong milestoneId)
        {
            if (_client == null)
            {
                return(null);
            }

            var runName           = $"Automated Run {_suffix} :: {suite.Name}";
            var runCreationResult = _client.AddRun(1, suite.ID.Value, runName, runName, milestoneId);
            var runId             = runCreationResult.Value;

            return(new KeyValuePair <ulong, ulong>(suite.ID.Value, runId));
        }
Exemple #5
0
        private static void RunAllCases(Project project, Suite suite, Milestone milestone)
        {
            var run = client.AddRun(project.ID, suite.ID.Value, suite.Name, suite.Description, milestone.ID);

            RunCases(run);
        }