示例#1
0
    def test_send_para(self):
        """
        Test get exist option
        """
        OrcTest.test_print_begin()

        init_log()

        _para_01 = OrcParameter().send_para("abc")
        OrcTest.test_print_result("Parameter para_01 is: %s, type is %s" %
                                  (_para_01, type(_para_01)))

        _para_02 = OrcParameter().send_para(["abc", "def"])
        OrcTest.test_print_result("Parameter para_02 is: %s, type is %s" %
                                  (_para_02, type(_para_02)))

        _para_03 = OrcParameter().send_para(None)
        OrcTest.test_print_result("Parameter para_03 is: %s, type is %s" %
                                  (_para_03, type(_para_03)))

        _para_04 = OrcParameter().send_para(120)
        OrcTest.test_print_result("Parameter para_04 is: %s, type is %s" %
                                  (_para_04, type(_para_04)))

        OrcTest.test_print_end()
示例#2
0
 def post(self):
     """
     执行
     :return:
     """
     parameter = OrcParameter.receive_para()
     return self.__model.run(parameter)
示例#3
0
 def put(self):
     """
     调试
     :return:
     """
     parameter = OrcParameter.receive_para()
     return self.__model.debug(parameter)
示例#4
0
    def put(self):
        """
        start
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Run, parameter is: %s" % parameter)

        return self.__model.run_start(parameter)
示例#5
0
    def get(self):
        """
        Search
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Search dict, parameter is: %s" % parameter)

        return self.__business.bus_list_search(parameter)
示例#6
0
    def delete(self):
        """
        删除
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Delete dict, parameter is: %s" % parameter)

        return self.__business.bus_list_delete(parameter)
示例#7
0
    def post(self):
        """
        新增
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Add dict, parameter is: %s" % parameter)

        return self.__business.bus_list_add(parameter)
示例#8
0
    def delete(self):
        """
        Delete
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Delete data, parameter is: %s" % parameter)

        return self.__model.bus_list_delete(parameter)
示例#9
0
    def post(self):
        """
        Add
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Add data, parameter is: %s" % parameter)

        return self.__model.bus_list_add(parameter)
示例#10
0
    def post(self):
        """
        Add
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Add batch, parameter is: %s" % parameter)

        return dict(id=self.__business.bus_list_add(parameter))
示例#11
0
    def get(self):
        """
        Search
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Search step, parameter is: %s" % parameter)

        return self.__model.bus_list_search(parameter)
示例#12
0
    def delete(self):
        """
        Delete
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Delete step, parameter is: %s" % parameter)

        return self.__business.bus_delete(parameter)
示例#13
0
    def get(self):
        """
        Search
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Add run time, parameter is: %s" % parameter)

        return self.__model.usr_search(parameter)
示例#14
0
    def put(self, p_id):
        """
        Update
        :param p_id:
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Update case, parameter is: %s, %s" % (p_id, parameter))

        return self.__business.bus_update(p_id, parameter)
示例#15
0
    def put(self, p_id):
        """
        Update
        :param p_id:
        :return:
        """
        parameter = OrcParameter.receive_para()

        self.__logger.info("Update run_times, parameter is: %s, %s" %
                           (p_id, parameter))

        return self.__model.bus_update(p_id, parameter)