Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Mockups for both ui and services to ease testing
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Feb 25, 2010
1 parent d61eb6f commit 9ba375e
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/services/form_login.html
@@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test for login service</title>
</head>
<body>
<h2> Test for login service</h2>
<form method="post" action="login">
<table>
<tr>
<td>username</td><td><input type="text" name="username" value="nume.prenume" readonly="true" /> </td>
</tr>
<tr>
<td>password</td><td><input type="password" name="password" value="pass" /> </td>
</tr>
</table>
<input type="submit" value="Login" />
</form>
</body>
</html>
17 changes: 17 additions & 0 deletions tests/services/form_uploadAssignment.html
@@ -0,0 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test for uploadAssignment service</title>
</head>
<body>
<h2> Test for uploadAssignment service</h2>
<form enctype="multipart/form-data" method="post" action="uploadAssignment">
<input type="file" name="archiveFile"/>
<input type="hidden" name="courseId" value="so" />
<input type="hidden" name="assignmentId" value="tema1-lin" />
<input type="hidden" name="username" value="nume.prenume" />
<input type="submit" value="Send" />
</form>
</body>
</html>
4 changes: 4 additions & 0 deletions 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
1 change: 1 addition & 0 deletions 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"}]
1 change: 1 addition & 0 deletions 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"}]
1 change: 1 addition & 0 deletions tests/services/uploadAssignments.json
@@ -0,0 +1 @@
{"status":"1","dumpLog":"Incorrect files in archive"}

0 comments on commit 9ba375e

Please sign in to comment.