This file contains 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
__author__ = 'xsank' | |
import subprocess | |
jetty_min_threads=[10,20,50] | |
jetty_max_threads=[10,20,50] | |
ab_total_requests=[10,20] | |
ab_concurrenties=[10,20,50] |
This file contains 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 sys | |
import string | |
PY_SUFFIX = '.py' | |
DEMO_DIR = '../demos/' | |
TOTAL = ''' | |
from autotest.core import AutoTest |
This file contains 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 inspect | |
MAGIC_STRING = "test" | |
SEPARATOR = '_' | |
class AutoTest(object): | |
def _get_methods(self): | |
return inspect.getmembers(self, predicate=inspect.ismethod) |
This file contains 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 urllib | |
import httplib | |
import base64 | |
def http_request(host='127.0.0.1', port=80, user=(), | |
method='GET', path='/', data={}): | |
params = urllib.urlencode(data) | |
headers = { |
This file contains 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 pexpect | |
import subprocess | |
def run_cmd(cmd): | |
assert cmd | |
p = subprocess.Popen( | |
cmd, | |
shell=True, | |
stdout=subprocess.PIPE, |
This file contains 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 functools | |
from tornado.gen import Task | |
from tornado.ioloop import IOLoop | |
from tornado import stack_context | |
from concurrent.futures import ThreadPoolExecutor | |
default_executor = ThreadPoolExecutor(10) |