summaryrefslogtreecommitdiff
path: root/yaksh/live_server_tests/selenium_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/live_server_tests/selenium_test.py')
-rw-r--r--yaksh/live_server_tests/selenium_test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py
index 6351f9e..5bf1988 100644
--- a/yaksh/live_server_tests/selenium_test.py
+++ b/yaksh/live_server_tests/selenium_test.py
@@ -118,7 +118,7 @@ class SeleniumTest():
# Correct Answer
loop_count = 1
- answer = '\"#!/bin/bash\\ncat $1 | cut -d: -f2 | paste -d: $3 - $2\"'
+ answer = '\"#!/bin/bash\\necho Hello, World!\"'
self.submit_answer(question_label, answer, loop_count)
def open_quiz(self):
@@ -135,9 +135,9 @@ class SeleniumTest():
)
start_exam_elem.click()
- self.test_c_question(question_label=7)
- self.test_python_question(question_label=5)
- self.test_bash_question(question_label=4)
+ self.test_c_question(question_label=6)
+ self.test_python_question(question_label=4)
+ self.test_bash_question(question_label=10)
def quit_quiz(self):
quit_link_elem = WebDriverWait(self.driver, 5).until(
@@ -172,6 +172,7 @@ def wrap_run_load_test(args):
selenium_test = SeleniumTest(url=url, quiz_name=quiz_name)
return selenium_test.run_load_test(*args)
+
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(