oct.multimechanize package

Submodules

oct.multimechanize.core module

class oct.multimechanize.core.Agent(queue, process_num, thread_num, start_time, run_time, user_group_name, script_module, script_file)

Bases: threading.Thread

run()
class oct.multimechanize.core.UserGroup(queue, process_num, user_group_name, num_threads, script_file, run_time, rampup)

Bases: multiprocessing.process.Process

run()
oct.multimechanize.core.init(projects_dir, project_name)

Sanity check that all test scripts can be loaded.

oct.multimechanize.core.load_script(script_file)

Load a test scripts as Python module.

Returns:Imported script as python module.

oct.multimechanize.dependency_checker module

script to verify all multi-mechanize dependencies are satisfied

oct.multimechanize.graph module

oct.multimechanize.graph.resp_graph(avg_resptime_points_dict, percentile_80_resptime_points_dict, percentile_90_resptime_points_dict, image_name, dir='./')
oct.multimechanize.graph.resp_graph_raw(nested_resp_list, image_name, dir='./')
oct.multimechanize.graph.tp_graph(throughputs_dict, image_name, dir='./')

oct.multimechanize.progressbar module

class oct.multimechanize.progressbar.ProgressBar(duration)

Bases: object

update_time(elapsed_secs)

oct.multimechanize.reportwriter module

class oct.multimechanize.reportwriter.Report(results_dir, parent)

Bases: object

set_statics()
write_closing_html()
write_head_html()
write_line(line)

oct.multimechanize.reportwriterxml module

oct.multimechanize.reportwriterxml.write_jmeter_output(mm_data, output_path)

Take the list of ResponseStats objects and write a JMeter 2.1 formatted XML file to output_path.

JMeter JTL file documentation: http://jakarta.apache.org/jmeter/usermanual/listeners.html

oct.multimechanize.results module

class oct.multimechanize.results.ResponseStats(request_num, elapsed_time, epoch_secs, user_group_name, trans_time, error, custom_timers)

Bases: object

class oct.multimechanize.results.Results(results_file_name, run_time)

Bases: object

oct.multimechanize.results.average(seq)
oct.multimechanize.results.output_results(results_dir, results_file, run_time, rampup, ts_interval, user_group_configs=None, xml_reports=False, parent='../../')
oct.multimechanize.results.percentile(seq, percentile)
oct.multimechanize.results.split_series(points, interval)
oct.multimechanize.results.standard_dev(seq)

oct.multimechanize.resultsloader module

oct.multimechanize.resultswriter module

class oct.multimechanize.resultswriter.ResultsWriter(queue, output_dir, console_logging)

Bases: threading.Thread

run()

oct.multimechanize.rpcserver module

class oct.multimechanize.rpcserver.RemoteControl(project_name, run_callback)

Bases: object

check_test_running()
get_config()
get_project_name()
get_results()
run_test()
update_config(config)
oct.multimechanize.rpcserver.launch_rpc_server(bind_addr, port, project_name, run_callback)

oct.multimechanize.script_loader module

REPLACE: multi-mechanize exec()/eval() magic with real imports.

exception oct.multimechanize.script_loader.InvalidScriptError

Bases: exceptions.StandardError

Should be raised when a Script does not confirm to required interface.

SCRIPT INTERFACE:
  • Transaction class exists.
  • Transaction.run() method exists.
class oct.multimechanize.script_loader.ScriptLoader

Bases: object

Utility class to load scripts as python modules.

static load(path)

Load a script by using a path.

Returns:Loaded script module-
Raise:ImportError, when script module cannot be loaded.
classmethod load_all(scripts_path, validate=False)

Load all python scripts in a path.

Returns:Loaded script modules as dictionary.
class oct.multimechanize.script_loader.ScriptValidator

Bases: object

Utility class to ensure that scripts are valid and conforms to conventions.

static check_module_invalid(module)

Check if a script module is invalid and does not comply w/ conventions

Returns:Problem as string, if any is found.
Returns:None, if no problems are detected.
classmethod ensure_module_valid(module)

Ensures that a script module is valid.

Raises:InvalidScriptError, if any convention is violated.

Module contents