コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: ApiHelper.cs プロジェクト: ahad92/csharp_trainig
 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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: AddNewIssue.cs プロジェクト: annyone/mantis_tests
        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);
        }
コード例 #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);
        }
コード例 #6
0
ファイル: AddNewIssue.cs プロジェクト: XeniaBerkut/mantis
        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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #13
0
ファイル: AddNewIssue.cs プロジェクト: girtra/csharp_training
        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);
        }