Ejemplo n.º 1
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.page_flag = p_def["page_flag"] if p_def else None
        self.page_desc = p_def["page_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 2
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.window_mark = p_def["window_mark"] if p_def else None
        self.window_desc = p_def["window_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 3
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.page_id = p_def["page_id"] if p_def else None
        self.page_env = p_def["page_env"] if p_def else None
        self.page_url = p_def["page_url"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 4
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.item_type = p_def["item_type"] if p_def else None
        self.item_mode = p_def["item_mode"] if p_def else None
        self.item_operate = p_def["item_operate"] if p_def else None
        self.item_desc = p_def["item_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 5
0
    def to_json(self):

        return dict(
            id=str(self.id),
            step_type=self.step_type,
            step_desc=self.step_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 6
0
    def to_json(self):

        return dict(
            id=str(self.id),
            window_mark=self.window_mark,
            window_desc=self.window_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 7
0
    def to_json(self):

        return dict(
            id=str(self.id),
            page_flag=self.page_flag,
            page_desc=self.page_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 8
0
    def test_char2time_01(self):
        """
        Test get exist option
        """
        OrcTest.test_print_begin()

        _lib = OrcCover()
        _res = _lib.str2time("2016-09-19 17:32:47")

        OrcTest.test_print_result(_res)
        OrcTest.test_print_end()
Ejemplo n.º 9
0
    def to_json(self):

        return dict(
            id=str(self.id),
            page_id=str(self.page_id),
            page_env=self.page_env,
            page_url=self.page_url,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 10
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.pid = p_def["pid"] if p_def else None
        self.widget_flag = p_def["widget_flag"] if p_def else None
        self.widget_path = p_def["widget_path"] if p_def else None
        self.widget_type = p_def["widget_type"] if p_def else None
        self.widget_desc = p_def["widget_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 11
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.widget_id = p_def["widget_id"] if p_def else None
        self.widget_order = p_def["widget_order"] if p_def else None
        self.widget_attr_type = p_def["widget_attr_type"] if p_def else None
        self.widget_attr_value = p_def["widget_attr_value"] if p_def else None
        self.widget_desc = p_def["widget_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 12
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.pid = p_def["pid"] if p_def else None
        self.batch_no = p_def["batch_no"] if p_def else None
        self.batch_type = p_def["batch_type"] if p_def else None
        self.batch_name = p_def["batch_name"] if p_def else None
        self.batch_desc = p_def["batch_desc"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 13
0
    def to_json(self):

        return dict(
            id=str(self.id),
            item_type=self.item_type,
            item_mode=self.item_mode,
            item_operate=self.item_operate,
            item_desc=self.item_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 14
0
    def test_time2char_02(self):
        """
        Test get exist option
        """
        OrcTest.test_print_begin()

        _lib = OrcCover()

        _res = _lib.time2str(1)

        OrcTest.test_print_result(_res)
        OrcTest.test_print_end()
Ejemplo n.º 15
0
    def to_json(self):

        return dict(
            id=str(self.id),
            pid=str(self.pid),
            batch_no=self.batch_no,
            batch_type=self.batch_type,
            batch_name=self.batch_name,
            batch_desc=self.batch_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 16
0
    def to_json(self):

        return dict(
            id=str(self.id),
            widget_id=self.widget_id,
            widget_order=self.widget_order,
            widget_attr_type=self.widget_attr_type,
            widget_attr_value=self.widget_attr_value,
            widget_desc=self.widget_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 17
0
    def to_json(self):

        return dict(
            id=str(self.id),
            pid=str(self.pid),
            widget_flag=self.widget_flag,
            widget_path=self.widget_path,
            widget_type=self.widget_type,
            widget_desc=self.widget_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 18
0
    def test_time2char_01(self):
        """
        Test get exist option
        """
        OrcTest.test_print_begin()

        import datetime

        _lib = OrcCover()

        _res = _lib.time2str(datetime.datetime.now())

        OrcTest.test_print_result(_res)
        OrcTest.test_print_end()
Ejemplo n.º 19
0
    def to_json(self):

        return dict(
            id=str(self.id),
            pid=str(self.pid),
            case_no=str(self.case_no),
            case_path=self.case_path,
            case_type=self.case_type,
            case_name=self.case_name,
            case_desc=self.case_desc,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 20
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.test_env = p_def["test_env"] if p_def else None
        self.src_id = p_def["src_id"] if p_def else None
        self.src_type = p_def["src_type"] if p_def else None
        self.step_order = p_def["step_order"] if p_def else None
        self.data_flag = p_def["data_flag"] if p_def else None
        self.data_order = p_def["data_order"] if p_def else None
        self.data_type = p_def["data_type"] if p_def else None
        self.data_mode = p_def["data_mode"] if p_def else None
        self.data_value = p_def["data_value"] if p_def else None
        self.comment = p_def["comment"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
        self.modify_time = OrcCover.str2time(p_def["modify_time"]) if p_def else None
Ejemplo n.º 21
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.step_id = p_def["step_id"] if p_def else None
        self.item_id = p_def["item_id"] if p_def else None
        self.item_no = p_def["item_no"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None
Ejemplo n.º 22
0
    def to_json(self):

        return dict(
            id=str(self.id),
            test_env=self.test_env,
            src_id=str(self.src_id),
            src_type=self.src_type,
            step_order=self.step_order,
            data_flag=self.data_flag,
            data_order=str(self.data_order),
            data_type=self.data_type,
            data_mode=self.data_mode,
            data_value=self.data_value,
            comment=self.comment,
            create_time=OrcCover.time2str(self.create_time),
            modify_time=OrcCover.time2str(self.modify_time)
        )
Ejemplo n.º 23
0
    def to_json(self):

        return dict(
            id=str(self.id),
            batch_id=str(self.batch_id),
            case_id=str(self.case_id),
            create_time=OrcCover.time2str(self.create_time)
        )
Ejemplo n.º 24
0
    def to_json(self):

        return dict(
            id=str(self.id),
            step_id=str(self.step_id),
            item_id=str(self.item_id),
            item_no=self.item_no,
            create_time=OrcCover.time2str(self.create_time)
        )
Ejemplo n.º 25
0
    def __init__(self, p_def=None):

        self.id = p_def["id"] if p_def else None
        self.batch_id = p_def["batch_id"] if p_def else None
        self.case_id = p_def["case_id"] if p_def else None
        self.create_time = OrcCover.str2time(p_def["create_time"]) if p_def else None