#NEWLINE# def test_prepare_no_filename_in_settings( self ) : #NEWLINE# #INDENT# obj = JUnitXMLReporter ( ) #NEWLINE# obj . engine = EngineEmul ( ) #NEWLINE# obj . parameters = BetterDict ( ) #NEWLINE# obj . parameters . merge ( { #NEWLINE# #INDENT# 'data-source' : 'sample-labels' , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . prepare ( ) #NEWLINE# datapoint = DataPoint ( 0 , [ ] ) #NEWLINE# cumul_data = KPISet . from_dict ( { #NEWLINE# #INDENT# KPISet . AVG_CONN_TIME : 7.890211417203362e-06 , #NEWLINE# KPISet . RESP_TIMES : Counter ( { #NEWLINE# #INDENT# 0.0 : 32160 , #NEWLINE# 0.001 : 24919 , #NEWLINE# 0.002 : 1049 , #NEWLINE# 0.003 : 630 , #NEWLINE# 0.004 : 224 , #NEWLINE# 0.005 : 125 , #NEWLINE# 0.006 : 73 , #NEWLINE# 0.007 : 46 , #NEWLINE# 0.008 : 32 , #NEWLINE# 0.009 : 20 , #NEWLINE# 0.011 : 8 , #NEWLINE# 0.01 : 8 , #NEWLINE# 0.017 : 3 , #NEWLINE# 0.016 : 3 , #NEWLINE# 0.014 : 3 , #NEWLINE# 0.013 : 3 , #NEWLINE# 0.04 : 2 , #NEWLINE# 0.012 : 2 , #NEWLINE# 0.079 : 1 , #NEWLINE# 0.081 : 1 , #NEWLINE# 0.019 : 1 , #NEWLINE# 0.015 : 1 , #NEWLINE# #UNINDENT# } ) , #NEWLINE# KPISet . ERRORS : [ { #NEWLINE# #INDENT# 'msg' : 'Forbidden' , #NEWLINE# 'cnt' : 7373 , #NEWLINE# 'type' : 0 , #NEWLINE# 'urls' : Counter ( { #NEWLINE# #INDENT# 'http://192.168.25.8/' : 7373 , #NEWLINE# #UNINDENT# } ) , #NEWLINE# KPISet . RESP_CODES : '403' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# KPISet . STDEV_RESP_TIME : 0.04947974228872108 , #NEWLINE# KPISet . AVG_LATENCY : 0.0002825639815220692 , #NEWLINE# KPISet . RESP_CODES : Counter ( { #NEWLINE# #INDENT# '304' : 29656 , #NEWLINE# '403' : 29656 , #NEWLINE# '200' : 2 , #NEWLINE# #UNINDENT# } ) , #NEWLINE# KPISet . PERCENTILES : { #NEWLINE# #INDENT# '95.0' : 0.001 , #NEWLINE# '0.0' : 0.0 , #NEWLINE# '99.9' : 0.008 , #NEWLINE# '90.0' : 0.001 , #NEWLINE# '100.0' : 0.081 , #NEWLINE# '99.0' : 0.003 , #NEWLINE# '50.0' : 0.0 , #NEWLINE# #UNINDENT# } , #NEWLINE# KPISet . SUCCESSES : 29658 , #NEWLINE# KPISet . SAMPLE_COUNT : 59314 , #NEWLINE# KPISet . CONCURRENCY : 0 , #NEWLINE# KPISet . AVG_RESP_TIME : 0.0005440536804127192 , #NEWLINE# KPISet . FAILURES : 29656 , #NEWLINE# #UNINDENT# } ) #NEWLINE# datapoint [ DataPoint . CUMULATIVE ] [ '' ] = cumul_data #NEWLINE# obj . aggregated_second ( cumul_data ) #NEWLINE# obj . post_process ( ) #NEWLINE# self . assertTrue ( os . path . exists ( obj . report_file_path ) )