#NEWLINE# @ staticmethod #NEWLINE# def __jtl_writer( filename , label , flags ) : #NEWLINE# #INDENT# '\n        Generates JTL writer\n\n        :param filename:\n        :return:\n        ' #NEWLINE# jtl = etree . Element ( 'stringProp' , { #NEWLINE# #INDENT# 'name' : 'filename' , #NEWLINE# #UNINDENT# } ) #NEWLINE# jtl . text = filename #NEWLINE# name = etree . Element ( 'name' ) #NEWLINE# name . text = 'saveConfig' #NEWLINE# value = etree . Element ( 'value' ) #NEWLINE# value . set ( 'class' , 'SampleSaveConfiguration' ) #NEWLINE# for ( key , val ) in iteritems ( flags ) : #NEWLINE# #INDENT# value . append ( JMX . _flag ( key , label ) ) #NEWLINE# #UNINDENT# obj_prop = etree . Element ( 'objProp' ) #NEWLINE# obj_prop . append ( name ) #NEWLINE# obj_prop . append ( value ) #NEWLINE# listener = etree . Element ( 'ResultCollector' , testname = label , testclass = 'ResultCollector' , guiclass = 'SimpleDataWriter' ) #NEWLINE# listener . append ( jtl ) #NEWLINE# listener . append ( obj_prop ) #NEWLINE# return listener