From 95b7927ff4d192c58c1160531b6f8c8c9259f1e4 Mon Sep 17 00:00:00 2001
From: ankitjavalkar
Date: Fri, 19 Aug 2016 20:21:36 +0530
Subject: Add selenium based test
---
yaksh/selenium_test/test_questions.json | 50 +++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 yaksh/selenium_test/test_questions.json
(limited to 'yaksh/selenium_test/test_questions.json')
diff --git a/yaksh/selenium_test/test_questions.json b/yaksh/selenium_test/test_questions.json
new file mode 100644
index 0000000..f1cf02f
--- /dev/null
+++ b/yaksh/selenium_test/test_questions.json
@@ -0,0 +1,50 @@
+[
+ {
+ "snippet": "",
+ "testcase": [
+ {
+ "test_case": "assert is_palindrome(\"hello\") == False"
+ },
+ {
+ "test_case": "assert is_palindrome(\"nitin\") == True"
+ }
+ ],
+ "points": 3.0,
+ "test_case_type": "standardtestcase",
+ "description": "Write a function is_palindrome(arg)
which will take one string argument. Return true if the argument is palindrome & false otherwise.\r\n
\r\nFor Example:\r\n
\r\nis_palindrome(\"Hello\")
should return False
\r\n
\r\n
",
+ "language": "python",
+ "active": true,
+ "type": "code",
+ "summary": "Python, check palindrome (Code)"
+ },
+ {
+ "snippet": "#!/bin/bash",
+ "testcase": [
+ {
+ "test_case": "/src/yaksh/bash_files/sample.sh,/src/yaksh/bash_files/sample.args"
+ }
+ ],
+ "points": 1.0,
+ "test_case_type": "standardtestcase",
+ "description": "Write a bash script that takes exactly two arguments and returns the sum of the numbers",
+ "language": "bash",
+ "active": true,
+ "type": "code",
+ "summary": "Bash Question Concatenate Files(Code)"
+ },
+ {
+ "snippet": "",
+ "testcase": [
+ {
+ "test_case": "c_cpp_files/main2.c"
+ }
+ ],
+ "points": 1.0,
+ "test_case_type": "standardtestcase",
+ "description": "Write a program to add 3 nos",
+ "language": "c",
+ "active": true,
+ "type": "code",
+ "summary": "selenium test"
+ }
+]
--
cgit