def __init__(self, api_key, test_id): """ Sets up all of the instance variables Keyword arguments: api_key - The BlazeMeter API key (string) test_id - The BlazeMeter Test ID (string) """ # Test configuration information self.api_key = api_key self.test_id = test_id # Inherit methods from parent class "PerfTools" PerfTools.__init__(self, "BlazeMeter")
def __init__(self, url, location, runs, api_key): """ Sets up all of the instance variables Keyword arguments: api_key - The WebPageTest API key (string) test_session - The WebPageTest Test ID (string) """ # Test configuration information self.url = url self.location = location self.runs = runs self.api_key = api_key # Inherit methods from parent class "PerfTools" PerfTools.__init__(self, "WebPageTest")
def __init__(self, username, password, application_name, start_time, end_time): """ Sets up all of the instance variables Keyword arguments: username - AppDynamics username as a string, used for API authentication password - AppDynamics password as a string, used for API authentication application_name - The name of the AppDynamics application (string) test_length - The length of the test in minutes. (e.g. When a user specifies 60 minutes in the config, the monitoring timeframe is from the time this program is run to 60 minutes before) """ # API Credentials self.username = username self.password = password self.application_name = application_name self.start_time = start_time self.end_time = end_time # Inherit methods from parent class "PerfTools" PerfTools.__init__(self, "AppDynamics")