actual_pass = test_obj.pass_counter test_obj.teardown() except Exception, e: print "Exception when trying to run test:%s" % __file__ print "Python says:%s" % str(e) assert expected_pass == actual_pass, "Test failed: %s" % __file__ # ---START OF SCRIPT if __name__ == '__main__': print "Start of %s" % __file__ # Creating an instance of the class. options_obj = Option_Parser() options = options_obj.get_options() # Run the test only if the options provided are valid. if options_obj.check_options(options): test_mobile_bitcoin_price(mobile_os_name=options.mobile_os_name, mobile_os_version=options.mobile_os_version, device_name=options.device_name, app_package=options.app_package, app_activity=options.app_activity, remote_flag=options.remote_flag, device_flag=options.device_flag, testrail_flag=options.testrail_flag, test_run_id=options.test_run_id, app_name=options.app_name) else:
test_obj.write_test_summary() expected_pass = test_obj.result_counter actual_pass = test_obj.pass_counter except Exception as e: print("Exception when trying to run test: %s" % __file__) print("Python says:%s" % str(e)) assert expected_pass == actual_pass, "Test failed: %s" % __file__ #---START OF SCRIPT if __name__ == '__main__': print("Start of %s" % __file__) #Creating an instance of the class options_obj = Option_Parser() options = options_obj.get_options() #Run the test only if the options provided are valid if options_obj.check_options(options): test_obj = PageFactory.get_page_object("Zero", base_url=options.url) #Setup and register a driver test_obj.register_driver(options.remote_flag, options.os_name, options.os_version, options.browser, options.browser_version, options.remote_project_name, options.remote_build_name) test_discover_music(test_obj)