diff --git a/extras/build_ci_dev_vars.sh b/extras/build_ci_dev_vars.sh new file mode 100755 index 0000000000..256e7f8b38 --- /dev/null +++ b/extras/build_ci_dev_vars.sh @@ -0,0 +1,7 @@ +#!/bin/bash +export TRAVIS_JOB_NUMBER="DEBUG" +export TRAVIS_COMMIT="DEBUG" +export TRAVIS_BRANCH="DEBUG" +export SAUCE_USERNAME="DEBUG" +export SAUCE_ACCESS_KEY="DEBUG" +export DEVELOPMENT=1 diff --git a/tests/console/include/common_functions_60.py b/tests/console/include/common_functions_60.py index 2e0a30a416..6cbf97f51b 100644 --- a/tests/console/include/common_functions_60.py +++ b/tests/console/include/common_functions_60.py @@ -4,6 +4,17 @@ from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC +import random +import string + +def gen_random_string(size,preffix=None): + random_string = ''.join(random.SystemRandom().choice(string.ascii_uppercase string.digits) for _ in range(size)) + if preffix: + return preffix+random_string + else: + return random_string + + def login(driver,user="admin",passwd="pandora",pandora_url="http://127.0.0.1/"): driver.get(pandora_url+"/pandora_console/index.php") driver.find_element_by_id("nick").clear()