def __gen_requests(self, scenario):
    http_protocol = (scenario.data.get('protocol', 'http') == 'http')
    requests = scenario.get_requests(parser=HierarchicRequestParser, require_url=http_protocol)
    elements = []
    for compiled in self.compile_requests(requests):
        elements.extend(compiled)
    return elements
def __gen_requests(self, scenario):
    http_protocol = (scenario.data.get('protocol', 'http') == 'http')
    requests = scenario.get_requests(parser=HierarchicRequestParser, require_url=http_protocol)
    elements = []
    for compiled in self.compile_requests(requests):
        elements.extend(compiled)
    return elements