#NEWLINE# def test_samples_count_annotations( self ) : #NEWLINE# #INDENT# '\n        Test exact number of tests when java annotations used\n        :return:\n        ' #NEWLINE# obj = SeleniumExecutor ( ) #NEWLINE# obj . engine = self . engine_obj #NEWLINE# obj . settings = self . selenium_config #NEWLINE# obj . engine . config . merge ( { #NEWLINE# #INDENT# ScenarioExecutor . EXEC : { #NEWLINE# #INDENT# 'executor' : 'selenium' , #NEWLINE# 'scenario' : { #NEWLINE# #INDENT# 'script' : ( __dir__ ( ) + '/../selenium/invalid/SeleniumTest.java' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . execution = obj . engine . config [ 'execution' ] #NEWLINE# obj . prepare ( ) #NEWLINE# obj . startup ( ) #NEWLINE# while ( not obj . check ( ) ) : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# #UNINDENT# obj . shutdown ( )