summaryrefslogtreecommitdiff
path: root/yaksh/selenium_test/test_questions.json
diff options
context:
space:
mode:
authorankitjavalkar2016-08-19 20:21:36 +0530
committerankitjavalkar2016-09-21 17:51:23 +0530
commit95b7927ff4d192c58c1160531b6f8c8c9259f1e4 (patch)
tree16613904c2369cd25f3671da506997584d77f6a8 /yaksh/selenium_test/test_questions.json
parent4f384f81cbde58f5eaa616dce85f1e4d60ea2c66 (diff)
downloadonline_test-95b7927ff4d192c58c1160531b6f8c8c9259f1e4.tar.gz
online_test-95b7927ff4d192c58c1160531b6f8c8c9259f1e4.tar.bz2
online_test-95b7927ff4d192c58c1160531b6f8c8c9259f1e4.zip
Add selenium based test
Diffstat (limited to 'yaksh/selenium_test/test_questions.json')
-rw-r--r--yaksh/selenium_test/test_questions.json50
1 files changed, 50 insertions, 0 deletions
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 <code>is_palindrome(arg)</code> which will take one string argument. Return true if the argument is palindrome & false otherwise.\r\n<br><br>\r\nFor Example:\r\n<br>\r\n<code>is_palindrome(\"Hello\")</code> should return <code>False</code>\r\n<br>\r\n<br><br>",
+ "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"
+ }
+]