def configure_e2e_tests_pre_reqs(): # Make sure environment variables are set. env_vars = [ 'BASIC_AUTH_USER', 'BASIC_AUTH_PASSWORD', 'USER_LOGIN_EMAIL', 'USER_LOGIN_PASSWORD', 'COURSE_ORG', 'COURSE_NUMBER', 'COURSE_RUN', 'COURSE_DISPLAY_NAME' ] for env_var in env_vars: try: os.environ[env_var] except Exception: raise BuildFailure( "Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()
def configure_enterprise_tests_pre_reqs(): # Make sure environment variables are set. env_vars = [ 'BASIC_AUTH_USER', 'BASIC_AUTH_PASSWORD', 'ENT_PORTAL_USERNAME', 'ENT_PORTAL_PASSWORD', 'ENT_COURSE_TITLE', 'ENT_COURSE_ORG', 'ENT_COURSE_PRICE', 'ENT_COURSE_START_DATE' ] for env_var in env_vars: try: os.environ[env_var] except Exception: raise BuildFailure( "Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()
def configure_e2e_tests_pre_reqs(): # Make sure environment variables are set. env_vars = [ 'BASIC_AUTH_USER', 'BASIC_AUTH_PASSWORD', 'USER_LOGIN_EMAIL', 'USER_LOGIN_PASSWORD', 'COURSE_ORG', 'COURSE_NUMBER', 'COURSE_RUN', 'COURSE_DISPLAY_NAME' ] for env_var in env_vars: try: os.environ[env_var] except Exception: raise BuildFailure("Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()
def configure_enterprise_tests_pre_reqs(): # Make sure environment variables are set. env_vars = [ 'BASIC_AUTH_USER', 'BASIC_AUTH_PASSWORD', 'ENT_PORTAL_USERNAME', 'ENT_PORTAL_PASSWORD', 'ENT_COURSE_TITLE', 'ENT_COURSE_ORG', 'ENT_COURSE_PRICE', 'ENT_COURSE_START_DATE' ] for env_var in env_vars: try: os.environ[env_var] except Exception: raise BuildFailure("Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()
def wl_test_config(): # Make sure environment variables are set. env_vars = [ 'STAFF_USER_EMAIL', 'GLOBAL_PASSWORD', 'ACCESS_TOKEN' ] for env_var in env_vars: try: os.environ[env_var] except: raise BuildFailure( "Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()
def wl_test_config(): # Make sure environment variables are set. env_vars = [ 'GLOBAL_PASSWORD' ] for env_var in env_vars: try: os.environ[env_var] except Exception: raise BuildFailure( "Please set the environment variable :" + env_var) # Set environment variables for screen shots. os.environ['NEEDLE_OUTPUT_DIR'] = SCREENSHOT_DIR os.environ['NEEDLE_BASELINE_DIR'] = BASELINE_DIR os.environ['UPLOAD_FILE_DIR'] = UPLOAD_FILE_DIR # Create log directory LOG_DIR.makedirs_p() # Create report directory REPORT_DIR.makedirs_p()