Esempio n. 1
0
 def test_instance_group_by_details(self):
     """
     任务实例各任务执行耗时
     :return:
     """
     self.postRequest.path = '/analysis/query_instance_by_group/'
     self.postRequest.POST['group_by'] = AE.instance_details
     response = query_instance_by_group(self.postRequest)
     response_dict = json.loads(response.content)
     if response_dict["data"]["total"] == 0:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None)
     else:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_INSTANCE_DETAILS_PARAMS), None)
Esempio n. 2
0
 def test_instance_group_by_category(self):
     """
     任务实例分类统计数据
     :return:
     """
     self.postRequest.path = '/analysis/query_instance_by_group/'
     self.postRequest.POST['group_by'] = AE.category
     response = query_instance_by_group(self.postRequest)
     response_dict = json.loads(response.content)
     if response_dict["data"]["total"] == 0:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None)
     else:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_CATEGORY_AND_BUSINESS_PARAMS), None)
Esempio n. 3
0
 def test_instance_group_by_time(self):
     """
     按起始时间、业务(可选)、类型(可选)、图表类型(日视图,月视图),查询每一天或每一月的执行数量
     :return:
     """
     self.postRequest.path = '/analysis/query_instance_by_group/'
     self.postRequest.POST['group_by'] = AE.instance_time
     response = query_instance_by_group(self.postRequest)
     response_dict = json.loads(response.content)
     if response_dict["data"]["total"] == 0:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None)
     else:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_INSTANCE_TIME_PARAMS), None)
Esempio n. 4
0
 def test_instance_group_by_node(self):
     """
     任务实例各任务中实际执行的标准插件节点、子流程节点、网关节点个数
     :return:
     """
     self.postRequest.path = '/analysis/query_instance_by_group/'
     self.postRequest.POST['group_by'] = AE.instance_node
     response = query_instance_by_group(self.postRequest)
     response_dict = json.loads(response.content)
     if response_dict["data"]["total"] == 0:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None)
     else:
         self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_INSTANCE_NODE_PARAMS), None)