#NEWLINE# def test_install_tools( self ) : #NEWLINE# #INDENT# '\n        check installation of selenium-server, junit\n        :return:\n        ' #NEWLINE# dummy_installation_path = ( __dir__ ( ) + '/../../build/tmp/selenium-taurus' ) #NEWLINE# base_link = ( ( 'file:///' + __dir__ ( ) ) + '/../data/' ) #NEWLINE# shutil . rmtree ( os . path . dirname ( base_link ) , ignore_errors = True ) #NEWLINE# selenium_server_link = SeleniumExecutor . SELENIUM_DOWNLOAD_LINK #NEWLINE# SeleniumExecutor . SELENIUM_DOWNLOAD_LINK = ( base_link + '/selenium-server-standalone-2.46.0.jar' ) #NEWLINE# junit_link = SeleniumExecutor . JUNIT_DOWNLOAD_LINK #NEWLINE# junit_mirrors = SeleniumExecutor . JUNIT_MIRRORS_SOURCE #NEWLINE# SeleniumExecutor . JUNIT_DOWNLOAD_LINK = ( base_link + '/junit-4.12.jar' ) #NEWLINE# SeleniumExecutor . JUNIT_MIRRORS_SOURCE = ( base_link + 'unicode_file' ) #NEWLINE# hamcrest_link = SeleniumExecutor . HAMCREST_DOWNLOAD_LINK #NEWLINE# SeleniumExecutor . HAMCREST_DOWNLOAD_LINK = ( base_link + '/hamcrest-core-1.3.jar' ) #NEWLINE# self . assertFalse ( os . path . exists ( dummy_installation_path ) ) #NEWLINE# obj = self . get_selenium_executor ( ) #NEWLINE# obj . settings . merge ( { #NEWLINE# #INDENT# 'selenium-tools' : { #NEWLINE# #INDENT# 'junit' : { #NEWLINE# #INDENT# 'selenium-server' : os . path . join ( dummy_installation_path , 'selenium-server.jar' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . settings . merge ( { #NEWLINE# #INDENT# 'selenium-tools' : { #NEWLINE# #INDENT# 'junit' : { #NEWLINE# #INDENT# 'hamcrest-core' : os . path . join ( dummy_installation_path , 'tools' , 'junit' , 'hamcrest-core.jar' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . settings . merge ( { #NEWLINE# #INDENT# 'selenium-tools' : { #NEWLINE# #INDENT# 'junit' : { #NEWLINE# #INDENT# 'path' : os . path . join ( dummy_installation_path , 'tools' , 'junit' , 'junit.jar' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . execution . merge ( { #NEWLINE# #INDENT# 'scenario' : { #NEWLINE# #INDENT# 'script' : ( __dir__ ( ) + '/../selenium/jar/' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . prepare ( ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( dummy_installation_path , 'selenium-server.jar' ) ) ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( dummy_installation_path , 'tools' , 'junit' , 'junit.jar' ) ) ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( dummy_installation_path , 'tools' , 'junit' , 'hamcrest-core.jar' ) ) ) #NEWLINE# SeleniumExecutor . SELENIUM_DOWNLOAD_LINK = selenium_server_link #NEWLINE# SeleniumExecutor . JUNIT_DOWNLOAD_LINK = junit_link #NEWLINE# SeleniumExecutor . HAMCREST_DOWNLOAD_LINK = hamcrest_link #NEWLINE# SeleniumExecutor . JUNIT_MIRRORS_SOURCE = junit_mirrors