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")); }
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")); }
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")); }
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"); }
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)); }
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)); }