Esempio n. 1
0
        public void AssignBugToUserTest()
        {
            CreateIssueRequest newBug = new CreateIssueBuilder().
                                        WithProjectKey("TP").
                                        WithSummary("Bug assigned to a user").
                                        WithDescription("Bug assigned to a user").
                                        WithIssueType("Bug").
                                        Build();
            string issueKey = issuesRequestManager.GetIssueKey(newBug);

            responseManager.ValidateNoContentResponse(issuesRequestManager.AssignIssueToUser(issueKey, "samir.serna48"));
        }
Esempio n. 2
0
        public void MoveNewBugToCurrentSprintTest()
        {
            CreateIssueRequest newBug = new CreateIssueBuilder().
                                        WithProjectKey("TP").
                                        WithSummary("Bug moved to the current sprint").
                                        WithDescription("Bug moved to the current sprint").
                                        WithIssueType("Bug").
                                        Build();
            string issueKey = issuesRequestManager.GetIssueKey(newBug);

            responseManager.ValidateNoContentResponse(issuesRequestManager.MoveIssueToSprint(issueKey, "1"));
        }
Esempio n. 3
0
        public void UpdatePriorityToABug()
        {
            CreateIssueRequest newBug = new CreateIssueBuilder().
                                        WithProjectKey("TP").
                                        WithSummary("Bug with assigned priority").
                                        WithDescription("Bug with assigned priority").
                                        WithIssueType("Bug").
                                        Build();
            string bugKey = issuesRequestManager.GetIssueKey(newBug);

            responseManager.ValidateNoContentResponse(issuesRequestManager.UpdateIssuePriority(bugKey, "High"));
        }
Esempio n. 4
0
        public void AddCommentToStoryTest()
        {
            CreateIssueRequest newStory = new CreateIssueBuilder().
                                          WithProjectKey("TP").
                                          WithSummary("Story with comment").
                                          WithDescription("Story with comment").
                                          WithIssueType("Story").
                                          Build();
            string issueKey = issuesRequestManager.GetIssueKey(newStory);

            responseManager.ValidateCreatedResponse(issuesRequestManager.AddCommentToIssue(issueKey, "Test comment"));
        }
        public void AssingANewStoryToEpic()
        {
            var createIssue = new CreateIssueBuilder().
                              WithIssueType("Epic").
                              WithIssueName("EpicTest").
                              Build();
            var issue              = new Issue(restClient);
            var objectResponse     = issue.CreateIssue(createIssue);
            var statusCodeResponse = issue.UpdateIssue("JIR-2", objectResponse.key);

            Assert.AreEqual("NoContent", statusCodeResponse);
            Console.WriteLine(objectResponse.key);
            Assert.AreEqual("NoContent", statusCodeResponse);
        }
        public void CreateNewTicket()
        {
            var createIssue = new CreateIssueBuilder().
                              WithIssueType("Epic").
                              WithIssueName("EpicTest").
                              Build();
            var issue          = new Issue(restClient);
            var objectResponse = issue.CreateIssue(createIssue);

            AllureLifecycle.Instance.WrapInStep(
                () => {
                Console.WriteLine(objectResponse.key);
                Assert.IsNotNull(objectResponse.key);
            },
                "Validate Creation of Epic");
        }
Esempio n. 7
0
        public void LinkBugToAStoryTest()
        {
            CreateIssueRequest newStory = new CreateIssueBuilder().
                                          WithProjectKey("TP").
                                          WithSummary("Story linked to a bug").
                                          WithDescription("Story linked to a bug").
                                          WithIssueType("Story").
                                          Build();
            string             storyKey = issuesRequestManager.GetIssueKey(newStory);
            CreateIssueRequest newBug   = new CreateIssueBuilder().
                                          WithProjectKey("TP").
                                          WithSummary("Bug linked to a story").
                                          WithDescription("Bug linked to a story").
                                          WithIssueType("Bug").
                                          Build();
            string bugKey = issuesRequestManager.GetIssueKey(newBug);

            responseManager.ValidateCreatedResponse(issuesRequestManager.LinkIssues(storyKey, bugKey));
        }
Esempio n. 8
0
        public void AssingEpicToAStoryTest()
        {
            CreateEpicRequest newEpic = new CreateEpicBuilder().
                                        WithProjectKey("TP").
                                        WithSummary("Epic with a related story").
                                        WithDescription("Epic with a related story").
                                        WithIssueType("Epic").
                                        WithEpicName("New epic").
                                        Build();
            string             epicKey  = issuesRequestManager.GetEpicKey(newEpic);
            CreateIssueRequest newStory = new CreateIssueBuilder().
                                          WithProjectKey("TP").
                                          WithSummary("Story with a related epic").
                                          WithDescription("Story with a related epic").
                                          WithIssueType("Story").
                                          Build();
            string storyKey = issuesRequestManager.GetIssueKey(newStory);

            responseManager.ValidateNoContentResponse(issuesRequestManager.AssignEpicToIssue(storyKey, epicKey));
        }