(self)
return teststeps
make teststep list.
            teststeps list are parsed from HAR log entries list.
make teststep list.
            teststeps list are parsed from HAR log entries list.
make teststep list . teststeps list are parsed from HAR log entries list .
def _prepare_teststeps(self):
        """ make teststep list.
            teststeps list are parsed from HAR log entries list.

        """

        def is_exclude(url, exclude_str):
            exclude_str_list = exclude_str.split("|")
            for exclude_str in exclude_str_list:
                if exclude_str and exclude_str in url:
                    return True

            return False

        teststeps = []
        log_entries = utils.load_har_log_entries(self.har_file_path)
        for entry_json in log_entries:
            url = entry_json["request"].get("url")
            if self.filter_str and self.filter_str not in url:
                continue

            if is_exclude(url, self.exclude_str):
                continue

            teststeps.append(self._prepare_teststep(entry_json))

        return teststeps
def _prepare_teststeps ( self ) : def is_exclude ( url , exclude_str ) : exclude_str_list = exclude_str . split ( "|" ) for exclude_str in exclude_str_list : if exclude_str and exclude_str in url : return True return False teststeps = [ ] log_entries = utils . load_har_log_entries ( self . har_file_path ) for entry_json in log_entries : url = entry_json [ "request" ] . get ( "url" ) if self . filter_str and self . filter_str not in url : continue if is_exclude ( url , self . exclude_str ) : continue teststeps . append ( self . _prepare_teststep ( entry_json ) ) return teststeps