summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-08-20 01:34:22 +0530
committerPrabhu Ramachandran2017-08-20 01:34:22 +0530
commit6bc86acb799e8ac43f94eb293214f45a549731a8 (patch)
tree42ff46a08d3db7cf30e76f06e5061a629f771f64
parent46d9ccf47dd3cdc54732fdd833f0ee5b30fcd00f (diff)
parentdd617ed43eb67cc6879605c05eaaad99d377e0cc (diff)
downloadonline_test-6bc86acb799e8ac43f94eb293214f45a549731a8.tar.gz
online_test-6bc86acb799e8ac43f94eb293214f45a549731a8.tar.bz2
online_test-6bc86acb799e8ac43f94eb293214f45a549731a8.zip
Merge branch 'improve-code-server' of github.com:prathamesh920/online_test into improve-code-server
-rw-r--r--yaksh/live_server_tests/load_test.py2
-rw-r--r--yaksh/live_server_tests/selenium_test.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/live_server_tests/load_test.py b/yaksh/live_server_tests/load_test.py
index 47d267c..ee4549d 100644
--- a/yaksh/live_server_tests/load_test.py
+++ b/yaksh/live_server_tests/load_test.py
@@ -26,7 +26,7 @@ class YakshSeleniumTests(StaticLiveServerTestCase):
"yaksh.cpp_code_evaluator.CppCodeEvaluator"
settings.code_evaluators['bash']['standardtestcase'] = \
"yaksh.bash_code_evaluator.BashCodeEvaluator"
- code_server_pool = ServerPool(ports=settings.SERVER_PORTS, pool_port=settings.SERVER_POOL_PORT)
+ code_server_pool = ServerPool(n=settings.N_CODE_SERVERS, pool_port=settings.SERVER_POOL_PORT)
cls.code_server_pool = code_server_pool
cls.code_server_thread = t = Thread(target=code_server_pool.run)
t.start()
diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py
index 277f08e..00e1847 100644
--- a/yaksh/live_server_tests/selenium_test.py
+++ b/yaksh/live_server_tests/selenium_test.py
@@ -7,6 +7,7 @@ from selenium.common.exceptions import WebDriverException
import multiprocessing
import argparse
+import time
class SeleniumTestError(Exception):
pass
@@ -48,6 +49,7 @@ class SeleniumTest():
def submit_answer(self, question_label, answer, loop_count=1):
self.driver.implicitly_wait(2)
for count in range(loop_count):
+ time.sleep(15)
self.driver.find_element_by_link_text(question_label).click()
submit_answer_elem = self.driver.find_element_by_id("check")
self.driver.execute_script('global_editor.editor.setValue({});'.format(answer))