示例#1
0
        public static void add_result(testcode tcode)
        {
            sates.input.api_cmd cmd = new input.api_cmd();
            cmd.api = "test_result_set";

            cmd.args = new string[2 + tcode.err_log.Count];

            // 첫번째 파라메터, 테스트 케이스 이름 설정
            cmd.args[0] = tcode.test_case_name;


            // 두번째 파라메터, 테스트 결과 설정
            if (TEST_RESULT.OK == tcode.result)
            {
                cmd.args[1] = "OK";
            }
            else
            {
                cmd.args[1] = "FAILURE";
            }

            // 세번째 이후 에러로그 복사
            tcode.err_log.CopyTo(cmd.args, 2);

            cmdlist.Add(cmd);
        }
示例#2
0
        public static testcode get_testcode(string test_case_name)
        {
            testcode retval = null;

            foreach (var item in testcode_list_var)
            {
                if (item.test_case_name == test_case_name)
                {
                    retval = item;
                    break;
                }
            }
            return(retval);
        }
示例#3
0
 public static void add_testcode(testcode code)
 {
     testcode_list_var.Add(code);
 }