Пример #1
0
        public void ReportTCResultTest()
        {
            var testPlan  = testlink.getTestPlanByName("CMGE", "dev-nunit-test-plan");
            var testCases = testlink.GetTestCasesForTestPlan(testPlan.id);
            var testCase  = testCases.Last();

            testlink.ReportTCResult(testCase.tc_id, testPlan.id, TestCaseStatus.Failed, testCase.platform_id, testCase.platform_name, true, true, "notes");
            var result = testlink.GetLastExecutionResult(testPlan.id, testCase.tc_id);

            Assert.Equal("f", result.status);

            testlink.ReportTCResult(testCase.tc_id, testPlan.id, TestCaseStatus.Passed, testCase.platform_id, testCase.platform_name, true, true, "notes");
            result = testlink.GetLastExecutionResult(testPlan.id, testCase.tc_id);
            Assert.Equal("p", result.status);
        }