#NEWLINE# def test_selenium_startup_shutdown_python_folder( self ) : #NEWLINE# #INDENT# '\n        run tests from .py files\n        :return:\n        ' #NEWLINE# obj = SeleniumExecutor ( ) #NEWLINE# obj . engine = EngineEmul ( ) #NEWLINE# obj . engine . config . merge ( { #NEWLINE# #INDENT# 'execution' : { #NEWLINE# #INDENT# 'scenario' : { #NEWLINE# #INDENT# 'script' : ( __dir__ ( ) + '/../selenium/python/' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# 'executor' : 'selenium' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'reporting' : [ { #NEWLINE# #INDENT# 'module' : 'junit-xml' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . engine . config . merge ( { #NEWLINE# #INDENT# 'provisioning' : 'local' , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . execution = obj . engine . config [ 'execution' ] #NEWLINE# obj . settings . merge ( obj . engine . config . get ( 'modules' ) . get ( 'selenium' ) ) #NEWLINE# obj . prepare ( ) #NEWLINE# obj . startup ( ) #NEWLINE# while ( not obj . check ( ) ) : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# #UNINDENT# obj . shutdown ( ) #NEWLINE# prepared_files = os . listdir ( obj . runner . working_dir ) #NEWLINE# python_files = [ fname for fname in prepared_files if fname . endswith ( '.py' ) ] #NEWLINE# self . assertEqual ( 2 , len ( python_files ) ) #NEWLINE# self . assertTrue ( os . path . exists ( obj . runner . settings . get ( 'report-file' ) ) )