예제 #1
0
        public void ApplyConfig(string config)
        {
            XElement root = XElement.Parse(config);

            Url = root.Element("url").Value;
            Username = root.Element("username").Value;
            Password = root.Element("password").Value;
            ProjectAlias = root.Element("projectAlias").Value;

            ModuleName = string.Format("RQM_{0}({1})", ProjectAlias, Url);

            try
            {
                RQMServer = new RQMServer(Url);
            }
            catch (Exception ex)
            {
                ATFEnvironment.Log.logger.Error("Init RQM Failed.",  ex);
                throw new FrameworkException(ModuleName, "Init RQM Failed");
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: wangn6/rep2
        static void RQM()
        {
            //ITestCaseProvider provider = Provider.GetProviderById(2).CreateProvider() as ITestCaseProvider;

            //provider.SyncAllTestCase();

            //This is for the test purpose.

            RQMServer server = new RQMServer("https://jazzapps.otg.com:9443/qm");

            server.UserAuthentication("svc_s1auto", "emcsiax@QA");

            //var projects = server.GetAllProjects();

            //foreach (var project in projects)
            //{
            //    var testcases = server.GetTestCasesByProject(project);
            //    var executionWorkItems = server.GetExecutionWorkItemByProject(project);
            //}

            var testCases = server.GetTestCasesByProject("SourceOne");
        }