public string CreateNewIssue(string issueName) { IWebDriver driver; DriversContainer.cd.TryGetValue(TestContext.CurrentContext.Test.Name, out driver); var addIssuePage = new AddIssuePage(driver); addIssuePage.OpenPage(); return(addIssuePage.CreateNewIssue(issueName)); }
public void CreateNewIssueTest() { AddIssuePage addIssuePage = new AddIssuePage(driver); DriversContainer.cd.TryGetValue(TestContext.CurrentContext.Test.Name, out driver); steps.LoginRedmine(driver, Username, Password); var issueId = steps.CreateNewIssue(rnd.GetRandomString(6)); var sendAsync = client.SendAsync(addIssuePage.GetResponseAddIssuePage()); var response = sendAsync.Result; Assert.True(steps.IsIssueCreated(issueId)); Assert.AreEqual((int)response.StatusCode, 200); }