public void AddNewIssueTest()
        {
            AccountData account = new AccountData()
            {
                Name     = "administrator",
                Password = "******"
            };
            List <ProjectData> projects = appManager.Project.GetProjectList();

            if (projects.Count == 0)
            {
                appManager.Login.LoginAsAdministrator();
                appManager.Project.Create(new ProjectData()
                {
                    Name = "Project for new issue"
                });
            }
            appManager.Login.Logout();
            ProjectData project = projects[0];

            IssueData issue = new IssueData()
            {
                Category    = "General",
                Summary     = "some text",
                Description = "some long text"
            };

            appManager.API.CreateNewIssue(account, project, issue);
        }
Ejemplo n.º 2
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     Mantis.IssueData issue = new Mantis.IssueData();
     issue.summary     = issueData.Summary;
     issue.description = issueData.Description;
     issue.category    = issueData.Category;
     issue.project     = new Mantis.ObjectRef();
     issue.project.id  = project.Id;
     client.mc_issue_add(account.Name, account.Password, issue);
 }
Ejemplo n.º 3
0
 //создание баг репорта
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     Mantis.IssueData issue = new Mantis.IssueData
     {
         summary     = issueData.Summary,
         description = issueData.Description,
         category    = issueData.Category,
         project     = new Mantis.ObjectRef {
             id = project.Id
         }
     };
     client.mc_issue_add(account.Username, account.Password, issue);
 }
Ejemplo n.º 4
0
        public void AddNewIssueTest()
        {
            AccountData account = new AccountData("administrator", "password");
            ProjectData project = new ProjectData()
            {
                Id = "7"
            };
            IssueData issue = new IssueData()
            {
                Summary     = "any text",
                Description = "another text",
                Category    = "General"
            };

            app.Api.CreateNewIssue(account, project, issue);
        }
Ejemplo n.º 5
0
        public void AddNewIssue()
        {
            AccountData account = new AccountData("administrator", "root");
            ProjectData project = new ProjectData("test")
            {
                Id = "1"
            };
            IssueData issue = new IssueData()
            {
                Summary     = "some short text",
                Description = "some long text",
                Category    = "General"
            };

            app.API.CreateNewIssue(account, project, issue);
        }
Ejemplo n.º 6
0
        public void AddNewIssueTest()
        {
            ProjectData project = new ProjectData()
            {
                Name = "Test"
            };

            IssueData issueData = new IssueData()
            {
                Summary     = "some short text",
                Description = "some long text",
                Category    = "General"
            };

            List <ProjectData> list = app.API.GetProjects();

            app.API.CreateNewIssue(project, issueData);
        }
Ejemplo n.º 7
0
        public void AddNewIssueTest()
        {
            IssueData issue = new IssueData()
            {
                Summary     = "summary text",
                Description = "description text",
                Category    = "General"
            };

            ProjectData project = new ProjectData()
            {
                Name        = "new_test_project",
                Description = "Description_for_test",
                Id          = "1"
            };

            applicationManager.API.CreateNewIssue(admin, project, issue);
        }
Ejemplo n.º 8
0
        public void AddNewIssueTest()
        {
            AccountData account = new AccountData()
            {
                Name = "administrator", Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "3"
            };
            IssueData issue = new IssueData()
            {
                Summary     = "short text",
                Description = "long text",
                Category    = "General"
            };


            app.API.CreateNewIssue(account, project, issue);
        }
Ejemplo n.º 9
0
        public void AddNewIssueTest()
        {
            AccountData account = new AccountData()
            {
                Username = "******",
                Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "11"
            };
            IssueData issueData = new IssueData()
            {
                Summary     = "2some summary text",
                Description = "2some description text",
                Category    = "General"
            };

            app.API.CreateNewIssue(account, project, issueData);
        }
Ejemplo n.º 10
0
        public void AddNewIssueTest()
        {
            AccountData account = new AccountData()
            {
                Name = "administrator",
                Pass = "******"
            };

            List <ProjectData> projList = app.Project.GetProjectList();
            ProjectData        proj     = projList[0];

            IssueData issue = new IssueData()
            {
                Summary     = "some_short_text",
                Description = "some_long_text",
                Category    = "General"
            };

            app.Api.CreateNewIssue(account, proj, issue);
        }
Ejemplo n.º 11
0
        public void AddNewIssue()
        {
            AccountData account = new AccountData()
            {
                Name     = "administrator",
                Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "11"
            };
            IssueData issueData = new IssueData()
            {
                Summary     = "some text",
                Description = "some loooong text",
                Category    = "General"
            };

            app.Api.CreateNewIssue(account, project, issueData);
        }
Ejemplo n.º 12
0
        public void AddNewIssue()
        {
            ProjectData project = new ProjectData()
            {
                Id = "1"
            };
            AccountData account = new AccountData()
            {
                Name = "administrator", Password = "******"
            };
            IssueData issueData = new IssueData()
            {
                Summary     = "Test summary",
                Description = "Test description",
                Category    = "General"
            };


            app.API.CreateNewIssue(account, project, issueData);
            app.API.GetAllProjectsByApi(account);
        }
Ejemplo n.º 13
0
        public void AddIssue()
        {
            AccountData account = new AccountData()
            {
                Name     = "administrator",
                Password = "******"
            };
            ProjectData project = new ProjectData()
            {
                Id = "28"
            };
            IssueData issueData = new IssueData()
            {
                Category    = "General",
                Summary     = "summary short tex",
                Description = "some long description"
            };


            app.API.CreateNewIssue(issueData, project);
        }