(self, testcase_dict, entry_json)
parse HAR entry request url and queryString, and make testcase url and params
parse HAR entry request url and queryString, and make testcase url and params
parse HAR entry request url and queryString and make testcase url and params
def _make_har_request_url(self, testcase_dict, entry_json):
        """ parse HAR entry request url and queryString, and make testcase url and params
        """
        request_params = convert_list_to_dict(entry_json["request"].get("queryString", []))

        url = entry_json["request"].get("url")
        if not url:
            logging.exception("url missed in request.")
            sys.exit(1)
        parsed_object = urlparse(url)
        if request_params:
            testcase_dict["param"] = json.dumps(
                [{'key': k, 'value': v, 'param_type': 'string'} for k, v in request_params.items()])

        testcase_dict["status_url"] = parsed_object.netloc
        testcase_dict["url"] = parsed_object.path
        testcase_dict["name"] = parsed_object.path
def _make_har_request_url ( self , testcase_dict , entry_json ) : request_params = convert_list_to_dict ( entry_json [ "request" ] . get ( "queryString" , [ ] ) ) url = entry_json [ "request" ] . get ( "url" ) if not url : logging . exception ( "url missed in request." ) sys . exit ( 1 ) parsed_object = urlparse ( url ) if request_params : testcase_dict [ "param" ] = json . dumps ( [ { 'key' : k , 'value' : v , 'param_type' : 'string' } for k , v in request_params . items ( ) ] ) testcase_dict [ "status_url" ] = parsed_object . netloc testcase_dict [ "url" ] = parsed_object . path testcase_dict [ "name" ] = parsed_object . path