From 9ba375eb8a02bbdfeb5a28553219ccd0d485da9e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Feb 2010 18:55:47 +0200 Subject: [PATCH] Mockups for both ui and services to ease testing --- tests/services/form_login.html | 21 +++++++++++++++++++++ tests/services/form_uploadAssignment.html | 17 +++++++++++++++++ tests/services/get-requests-urls.txt | 4 ++++ tests/services/getAssignments.json | 1 + tests/services/getCourses.json | 1 + tests/services/uploadAssignments.json | 1 + 6 files changed, 45 insertions(+) create mode 100644 tests/services/form_login.html create mode 100644 tests/services/form_uploadAssignment.html create mode 100644 tests/services/get-requests-urls.txt create mode 100644 tests/services/getAssignments.json create mode 100644 tests/services/getCourses.json create mode 100644 tests/services/uploadAssignments.json diff --git a/tests/services/form_login.html b/tests/services/form_login.html new file mode 100644 index 0000000..392b091 --- /dev/null +++ b/tests/services/form_login.html @@ -0,0 +1,21 @@ + + + + Test for login service + + +

Test for login service

+
+ + + + + + + +
username
password
+ +
+ + \ No newline at end of file diff --git a/tests/services/form_uploadAssignment.html b/tests/services/form_uploadAssignment.html new file mode 100644 index 0000000..b7f7901 --- /dev/null +++ b/tests/services/form_uploadAssignment.html @@ -0,0 +1,17 @@ + + + + Test for uploadAssignment service + + +

Test for uploadAssignment service

+
+ + + + + +
+ + \ No newline at end of file diff --git a/tests/services/get-requests-urls.txt b/tests/services/get-requests-urls.txt new file mode 100644 index 0000000..4ca184d --- /dev/null +++ b/tests/services/get-requests-urls.txt @@ -0,0 +1,4 @@ + +http://localhost/vmchecker/getCourses +http://localhost/vmchecker/getAssignments?courseId=so +http://localhost/vmchecker/getResults?courseId=so&assignmentId=tema1-lin&username=nume.prenume diff --git a/tests/services/getAssignments.json b/tests/services/getAssignments.json new file mode 100644 index 0000000..14da77c --- /dev/null +++ b/tests/services/getAssignments.json @@ -0,0 +1 @@ +[{"assignmentId":"tema1-lin","assignmentTitle":"Mini Shell - Linux","deadline":"21-08-2010"},{"assignmentId":"tema1-win","assignmentTitle":"Mini Shell - Win","deadline":"21-08-2010"},{"assignmentId":"tema2-lin","assignmentTitle":"Monitor generic","deadline":"29-08-2010"},{"assignmentId":"tema3-lin","assignmentTitle":"Server de fisiere","deadline":"31-09-2010"}] \ No newline at end of file diff --git a/tests/services/getCourses.json b/tests/services/getCourses.json new file mode 100644 index 0000000..c6bb043 --- /dev/null +++ b/tests/services/getCourses.json @@ -0,0 +1 @@ +[{"id":"so","title":"Sisteme de Operare"},{"id":"pso","title":"Sisteme de Operare 2"},{"id":"cpl","title":"Compilatoare"},{"id":"pa","title":"Proiectarea Algoritmilor"}] \ No newline at end of file diff --git a/tests/services/uploadAssignments.json b/tests/services/uploadAssignments.json new file mode 100644 index 0000000..95a703f --- /dev/null +++ b/tests/services/uploadAssignments.json @@ -0,0 +1 @@ +{"status":"1","dumpLog":"Incorrect files in archive"} \ No newline at end of file