示例#1
0
        public TestOutcome CreateParameter()
        {
            TestOutcome outcome = new TestOutcome();

            outcome.moduleName = "OutlineParameters";
            outcome.methodName = "OutlineParameterCreate";
            try
            {
                OutlineParametersApi outlineParametersApi = new OutlineParametersApi(_url);
                OutlineParameter     op = ParameterGenerator.GetOneSimpleParameter(_url, _session.SessionId);
                outlineParametersApi.OutlineParameterCreate(_session.SessionId, "main", op);
                Console.WriteLine(op.Id);
                outcome.outcome = "Success";
                return(outcome);
            }
            catch (Exception ex)
            {
                outcome.outcome = ex.Message;
                return(outcome);
            }
        }