Пример #1
0
 public void LogIn()
 {
     if (IsLoginRequired)        //if we need to log in before performing test
     {
         User            user = new User(TestData.UserLogin, TestData.UserPassword);
         CheckLogInSteps step = new CheckLogInSteps();
         step.LogIn(user);
         Projname = TestData.ProjectName + Randomiser.GetRandomString(5);
     }
 }
Пример #2
0
        public void NewIssuePresenceTest()
        {
            //arrange
            string IssueSubj             = TestData.IssueSubject + Randomiser.GetRandomString(5);
            Issue  issue                 = new Issue(IssueSubj, null); //model of issue to be created
            Note   note                  = new Note(null);             //model of created issue note on activity page
            CreateNewIssueSteps testcase = new CreateNewIssueSteps();

            //act
            BaseStep.Navmanager.GoToProjectsPage();
            BaseStep.Navmanager.GoToIssuesPage();
            issue.Number = testcase.CreateNewIssue(issue).GetIssueNumber();
            Logger.Log.Info("NEW ISSUE NUMBER: " + issue.Number);
            BaseStep.Navmanager.GoToProjectsPage();
            note = BaseStep.Navmanager.GoToActivityPage().GetCreatedIssueNote(issue.Number);

            //assert
            Assert.IsTrue(note.Text.Contains(IssueSubj));
        }
Пример #3
0
 public void setName()
 {
     Projectname = TestData.ProjectName + Randomiser.GetRandomString(5);
 }