Beispiel #1
0
    def __init__(self, application: BaseApplication):
        bzt_log = BztFileReader()

        self.log_dir = bzt_log.log_dir
        self.conf = application.config
        self.app_type = application.type
        self.results_log = ResultsFileReader()
        self.run_id = str(uuid.uuid1())
        self.tool_version = TOOLKIT_VERSION
        self.os = get_os()
        self.duration = convert_to_sec(self.conf.duration)
        self.concurrency = self.conf.concurrency
        self.actual_duration = bzt_log.actual_run_time
        self.test_actions_success_rate, self.test_actions_timing = self.results_log.all_tests_actions

        self.selenium_test_rates, self.jmeter_test_rates, self.locust_test_rates, self.app_specific_rates = \
            generate_test_actions_by_type(test_actions=self.test_actions_success_rate, application=application)
        self.time_stamp = get_timestamp()
        self.date = get_date()
        self.application_version = application.version
        self.nodes_count = application.nodes_count
        self.dataset_information = application.dataset_information
        # JSM app type has additional concurrency fields: concurrency_agents, concurrency_customers
        if self.app_type == JSM:
            self.concurrency_agents = self.conf.agents_concurrency
            self.concurrency_customers = self.conf.customers_concurrency
        if self.app_type == CROWD:
            self.crowd_sync_test = get_crowd_sync_test_results(bzt_log)
            self.ramp_up = application.config.ramp_up
            self.total_actions_per_hour = application.config.total_actions_per_hour
Beispiel #2
0
    def __init__(self, application: BaseApplication):
        bzt_log = BztFileReader()

        self.log_dir = bzt_log.log_dir
        self.conf = application.config
        self.app_type = application.type
        self.results_log = ResultsFileReader()
        self.run_id = str(uuid.uuid1())
        self.tool_version = TOOLKIT_VERSION
        self.os = get_os()
        self.duration = convert_to_sec(self.conf.duration)
        self.concurrency = self.conf.concurrency
        self.actual_duration = bzt_log.actual_run_time
        self.all_test_actions = bzt_log.all_test_actions
        self.selenium_test_rates, self.jmeter_test_rates, self.locust_test_rates, self.app_specific_rates = \
            generate_test_actions_by_type(test_actions=self.all_test_actions, application=application)
        self.time_stamp = get_timestamp()
        self.date = get_date()
        self.application_version = application.version
        self.nodes_count = application.nodes_count
        self.dataset_information = application.dataset_information
    def __init__(self, application: BaseApplication):
        bzt_log = BztFileReader()

        self.log_dir = bzt_log.log_dir
        self.conf = application.config
        self.app_type = application.type
        self.results_log = ResultsFileReader()
        self.run_id = str(uuid.uuid1())
        self.tool_version = TOOLKIT_VERSION
        self.os = get_os()
        self.duration = convert_to_sec(self.conf.duration)
        self.concurrency = self.conf.concurrency
        self.actual_duration = bzt_log.actual_run_time
        self.selenium_test_rates = bzt_log.selenium_test_rates
        self.jmeter_test_rates = bzt_log.jmeter_test_rates if self.conf.load_executor == 'jmeter' else dict()
        self.locust_test_rates = bzt_log.locust_test_rates if self.conf.load_executor == 'locust' else dict()
        self.time_stamp = get_timestamp()
        self.date = get_date()
        self.application_version = application.version
        self.nodes_count = application.nodes_count
        self.dataset_information = application.dataset_information