コード例 #1
0
        public TestOutcome GetProcessByPath(string path)
        {
            TestOutcome outcome = new TestOutcome();

            outcome.moduleName = "OutlineProcesses";
            outcome.methodName = "ProcessFind";
            try
            {
                OutlineProcessesApi processesApi = new OutlineProcessesApi(_url);
                Process             process      = processesApi.ProcessFind(_session.SessionId, path);
                Console.WriteLine(process.Description);
                outcome.outcome = "Success";
                return(outcome);
            }
            catch (Exception ex)
            {
                outcome.outcome = ex.Message;
                return(outcome);
            }
        }
コード例 #2
0
        public TestOutcome CreateProcess(string outline)
        {
            TestOutcome outcome = new TestOutcome();

            outcome.moduleName = "OutlineProcesses";
            outcome.methodName = "ProcessImport";
            try
            {
                OutlineProcessesApi processesApi = new OutlineProcessesApi(_url);
                Process             proc         = ProcessGenerator.GetASimpleProcess(_url, _session.SessionId);
                Folder folder = processesApi.ProcessImport(_session.SessionId, outline, proc);
                outcome.outcome = "Success";
                return(outcome);
            }
            catch (Exception ex)
            {
                outcome.outcome = ex.Message;
                return(outcome);
            }
        }
コード例 #3
0
        public TestOutcome GetProcessesByOutline(string outline)
        {
            TestOutcome outcome = new TestOutcome();

            outcome.moduleName = "OutlineProcesses";
            outcome.methodName = "ProcessList";
            try
            {
                OutlineProcessesApi processesApi = new OutlineProcessesApi(_url);
                FolderArray         processes    = processesApi.ProcessList(_session.SessionId, outline, 100);
                foreach (Folder process in processes)
                {
                    Console.WriteLine(process.Name);
                }
                outcome.outcome = "Success";
                return(outcome);
            }
            catch (Exception ex)
            {
                outcome.outcome = ex.Message;
                return(outcome);
            }
        }