This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
# This is the only code you need to edit in your existing scripts. | |
# The command_executor tells the test to run on Sauce, while the desired_capabilities | |
# parameter tells us which browsers and OS to spin up. | |
desired_cap = { | |
'platform': "Mac OS X 10.9", | |
'browserName': "chrome", | |
'version': "31", | |
'useSauceLabs': True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
import random | |
r = redis.StrictRedis(host='jwong-test-2-001.nkrcoi.0001.usw2.cache.amazonaws.com', port=6379, db=0) | |
n = 1000 | |
for counter in range(0,n+1): | |
rand = random.randint(0,n) | |
print r.get('session_id_{0}'.format(rand)) | |
print counter |