oct.results package

Submodules

oct.results.models module

class oct.results.models.Result(*args, **kwargs)[source]

Bases: peewee.Model

DoesNotExist

alias of ResultDoesNotExist

custom_timers = <peewee.TextField object>
elapsed = <peewee.FloatField object>
epoch = <peewee.FloatField object>
error = <peewee.TextField object>
id = <peewee.PrimaryKeyField object>
scriptrun_time = <peewee.FloatField object>
to_dict()[source]
turret_name = <peewee.CharField object>
class oct.results.models.Turret(*args, **kwargs)[source]

Bases: peewee.Model

DoesNotExist

alias of TurretDoesNotExist

canons = <peewee.IntegerField object>
id = <peewee.PrimaryKeyField object>
name = <peewee.TextField object>
rampup = <peewee.IntegerField object>
save(*args, **kwargs)[source]
script = <peewee.TextField object>
status = <peewee.TextField object>
to_dict()[source]
updated_at = <peewee.DateTimeField object>
uuid = <peewee.TextField object>
oct.results.models.set_database(db_path, proxy, config)[source]

Initialize the peewee database with the given configuration

Parameters:
  • str (db_path) – the path of the sqlite database
  • peewee.Proxy (proxy) – the peewee proxy to initialise
  • dict (config) – the configuration dictionnary

oct.results.reportresults module

class oct.results.reportresults.IntervalDetailsResults(trans_timer_points, interval_secs)[source]

Bases: object

process()
class oct.results.reportresults.ReportResults(results, interval_secs)[source]

Bases: object

clear_all_transactions()[source]
set_all_transactions_results()[source]
set_custom_timers()[source]
set_dict(trans_timer_points, trans_timer_vals, name=None)[source]
class oct.results.reportresults.ResponseStats(elapsed_time, epoch_secs, user_group_name, trans_time, error, custom_timers)[source]

Bases: object

class oct.results.reportresults.Results(results_file_name, run_time)[source]

Bases: object

oct.results.reportresults.split_series(points, interval)[source]

oct.results.reportwriter module

class oct.results.reportwriter.Report(results_dir, parent)[source]

Bases: object

set_statics()[source]
write_report(template)[source]

oct.results.resultsoutput module

oct.results.resultsoutput.output(results_dir, results_file, config, parent='../../')[source]

Write the results output for the given test

Parameters:
  • str (parents) – the directory for the results
  • str – the file for the results
  • int (ts_interval) – the total test time elapsed
  • int – the rampup setting for the test
  • int – the interval in second setting for the test
  • turrets – the turrets configuration
  • str – the parent directory

oct.results.resultswriter module

class oct.results.resultswriter.ResultsWriter(output_dir, config)[source]

Bases: object

This class will handle results and stats comming from the turrets

Parameters:output_dir (str) – the output directory for the results
write_remaining()[source]
write_result(datas)[source]
write_turret(datas)[source]

oct.results.graphs module

oct.results.graphs.resp_graph(avg_resptime_points_dict, percentile_80_resptime_points_dict, percentile_90_resptime_points_dict, image_name, dir='./')[source]
oct.results.graphs.resp_graph_raw(nested_resp_list, image_name, dir='./')[source]
oct.results.graphs.tp_graph(throughputs_dict, image_name, dir='./')[source]

Module contents