#NEWLINE# def test_take_script_from_artifacts( self ) : #NEWLINE# #INDENT# 'ensures that executor looks for script in artifacts-dir (for cloud/remote cases)' #NEWLINE# obj = SeleniumExecutor ( ) #NEWLINE# obj . engine = EngineEmul ( ) #NEWLINE# obj . engine . file_search_paths = [ obj . engine . artifacts_dir ] #NEWLINE# script_name = 'BlazeDemo.java' #NEWLINE# test_script = ( ( __dir__ ( ) + '/../data/' ) + script_name ) #NEWLINE# artifacts_script = os . path . join ( artifacts_script . engine . artifacts_dir , script_name ) #NEWLINE# shutil . copy2 ( test_script , artifacts_script ) #NEWLINE# obj . execution . merge ( { #NEWLINE# #INDENT# 'scenario' : { #NEWLINE# #INDENT# 'script' : script_name , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . prepare ( )