示例#1
0
        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));
        }
示例#2
0
        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);
        }