(self, entry_json)
return testcase_dict
extract info from entry dict and make testcase
extract info from entry dict and make testcase
extract info from entry dict and make testcase
def make_testcase(self, entry_json):
        """ extract info from entry dict and make testcase
        """
        testcase_dict = {
            "url": '',
            "name": "待定",
            "header": '[]',
            "method": 'POST',
            "variable_type": 'data',
            "variable": '[]',
            "extract": '[]',
            "validate": '[]',
            "param": '[]',
        }
        if self.file_type == 'har':
            self._make_har_request_url(testcase_dict, entry_json)
            self._make_har_request_headers(testcase_dict, entry_json)
            self._make_har_request_data(testcase_dict, entry_json)
        elif self.file_type == 'json':
            self._make_json_data(testcase_dict, entry_json)
        return testcase_dict
def make_testcase ( self , entry_json ) : testcase_dict = { "url" : '' , "name" : "待定", "header" : '[]' , "method" : 'POST' , "variable_type" : 'data' , "variable" : '[]' , "extract" : '[]' , "validate" : '[]' , "param" : '[]' , } if self . file_type == 'har' : self . _make_har_request_url ( testcase_dict , entry_json ) self . _make_har_request_headers ( testcase_dict , entry_json ) self . _make_har_request_data ( testcase_dict , entry_json ) elif self . file_type == 'json' : self . _make_json_data ( testcase_dict , entry_json ) return testcase_dict