Guest User

Untitled

a guest
May 28th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. Marking scheme for Electronic Book Store
  2. ========================================
  3.  
  4. Username: 308165721
  5.  
  6. Automarking tests
  7. -----------------
  8.  
  9. 1/1 create user: base (*)
  10. 1/1 create user: duplicate
  11. 1/1 create user: 2nd user
  12. 1/1 set password: successful (*)
  13. 1/1 set password: not logged in
  14. 1/1 set password: not logged in after logging out
  15. 1/1 set credit card: successful (*)
  16. 1/1 set credit card: not logged in
  17. 1/1 clear credit card: successful (*)
  18. 1/1 clear credit card: not logged in
  19. 1/1 get user: successful (*)
  20. 1/1 get user: successful - 2nd user
  21. 1/1 get user: not logged in
  22. 1/1 login: successful (*)
  23. 1/1 login: unsuccessful - wrong password
  24. 1/1 login: unsuccessful - non-existent user
  25. 1/1 logout: not logged in - lecture example
  26. 1/1 logout: logged in (*)
  27. 1/1 logout: not logged in after logged out
  28. 1/1 get categories: empty
  29. 1/1 get categories: one category
  30. 1/1 get categories: two categories - sort order (*)
  31. 1/1 get category: non-existent category
  32. 1/1 get category: titles - sort order
  33. 1/1 add book: new book (*)
  34. 1/1 add book: two different books
  35. 1/1 add book: duplicate book
  36. 1/1 add book: two categories
  37. 1/1 add book: two categories same title
  38. 1/1 add book: reusing a title
  39. 1/1 remove book: first of two (*)
  40. 1/1 remove book: second of two
  41. 1/1 remove book: nonexistent title
  42. 1/1 remove book: nonexistent category
  43. 1/1 protect book (*)
  44. 1/1 protect book: nonexistent title
  45. 1/1 protect book: nonexistent category
  46. 1/1 clear cart (*)
  47. 1/1 clear cart: not logged in
  48. 1/1 add book to cart: (*)
  49. 1/1 add book to cart: not logged in
  50. 1/1 add book to cart: non existent category
  51. 1/1 add book to cart: non existent title
  52. 1/1 remove book from cart: (*)
  53. 1/1 remove book from cart: not logged in
  54. 1/1 remove book from cart: non existent category
  55. 1/1 remove book from cart: non existent title
  56. -/1 remove book from cart: book not in cart
  57. 1/1 purchase cart: not logged in
  58. 1/1 purchase cart: free books (*)
  59. 1/1 purchase cart: non free books (*)
  60. 1/1 purchase cart: non free books no credit card
  61. 1/1 purchase cart: protected books
  62. 1/1 purchase cart: mixed cart (*)
  63. 1/1 download: not logged in
  64. 1/1 download: not purchased
  65. 1/1 download: added but not purchased
  66. 1/1 download: purchased (*)
  67. 1/1 clear machines: not logged in
  68. 1/1 clear machines: empty list
  69. 1/1 clear machines: non-empty list (*)
  70. 1/1 add machine: not logged in
  71. 1/1 get machines: not logged in
  72. 1/1 get machines: empty list
  73. 1/1 get machines: non-empty list (*)
  74. 1/1 get machines: on limit
  75. 1/1 get machines: over limit
  76.  
  77. ======
  78. 66/67 = 3/3
  79.  
  80. Testing was unforgiving with regards to non-specified output being
  81. emmitted by the programme: debugging output left in would have caused
  82. problems. [C == Did not compile. T == Terminated by signal (usually
  83. SIGALRM but could be SIGSEGV or SIGBUS).]
  84.  
  85. Handmarking
  86. -----------
  87.  
  88. UML object-type model /2 Sensible refinement of subject
  89. 0: Major errors/bad design,
  90. e.g. setter/getter-based
  91. 1: More right that wrong,
  92. clearly responsibility-based
  93. 2: Sensible with only minor errors
  94. UML technical model /3 +1: Must match code
  95. +1: Sensible use of design patterns
  96. +1: Clear refinement of object-type model
  97. Design open to extension /1 Design must follow open/closed principle
  98. Code style /3 +1: Must be readable, consistent
  99. +1: Must have comments
  100. -1: #inclusion of .cc files
  101. +1: Not one big .cc file; separate .cc/.h
  102. Test suite completeness /3 0: No automated test of coverage of even
  103. base cases (marked as *) or unit tests
  104. 1: Automated: most 'basic' functionality
  105. 2: Automated: good negative case coverage
  106. 3: Automated:coverage comparable to above
  107. -1: no unit tests for C++ classes
  108.  
  109. ===
  110. /12
  111.  
  112. --------------------------------------------------------------------------
  113. 3/3 + /12 = /15
  114.  
  115.  
  116.  
  117. Tutor's signature: _______________________________________________________
  118.  
  119. ::::: T000.create_user:_base.output :::::
  120. ::::: T001.create_user:_duplicate.output :::::
  121. ::::: T002.create_user:_2nd_user.output :::::
  122. ::::: T003.set_password:_successful.output :::::
  123. ::::: T004.set_password:_not_logged_in.output :::::
  124. ::::: T005.set_password:_not_logged_in_after_logging_out.output :::::
  125. ::::: T006.set_credit_card:_successful.output :::::
  126. ::::: T007.set_credit_card:_not_logged_in.output :::::
  127. ::::: T008.clear_credit_card:_successful.output :::::
  128. ::::: T009.clear_credit_card:_not_logged_in.output :::::
  129. ::::: T010.get_user:_successful.output :::::
  130. ::::: T011.get_user:_successful_-_2nd_user.output :::::
  131. ::::: T012.get_user:_not_logged_in.output :::::
  132. ::::: T013.login:_successful.output :::::
  133. ::::: T014.login:_unsuccessful_-_wrong_password.output :::::
  134. ::::: T015.login:_unsuccessful_-_non-existent_user.output :::::
  135. ::::: T016.logout:_not_logged_in_-_lecture_example.output :::::
  136. ::::: T017.logout:_logged_in.output :::::
  137. ::::: T018.logout:_not_logged_in_after_logged_out.output :::::
  138. ::::: T019.get_categories:_empty.output :::::
  139. ::::: T020.get_categories:_one_category.output :::::
  140. ::::: T021.get_categories:_two_categories_-_sort_order.output :::::
  141. ::::: T022.get_category:_non-existent_category.output :::::
  142. ::::: T023.get_category:_titles_-_sort_order.output :::::
  143. ::::: T024.add_book:_new_book.output :::::
  144. ::::: T025.add_book:_two_different_books.output :::::
  145. ::::: T026.add_book:_duplicate_book.output :::::
  146. ::::: T027.add_book:_two_categories.output :::::
  147. ::::: T028.add_book:_two_categories_same_title.output :::::
  148. ::::: T029.add_book:_reusing_a_title.output :::::
  149. ::::: T030.remove_book:_first_of_two.output :::::
  150. ::::: T031.remove_book:_second_of_two.output :::::
  151. ::::: T032.remove_book:_nonexistent_title.output :::::
  152. ::::: T033.remove_book:_nonexistent_category.output :::::
  153. ::::: T034.protect_book.output :::::
  154. ::::: T035.protect_book:_nonexistent_title.output :::::
  155. ::::: T036.protect_book:_nonexistent_category.output :::::
  156. ::::: T037.clear_cart.output :::::
  157. ::::: T038.clear_cart:_not_logged_in.output :::::
  158. ::::: T039.add_book_to_cart:.output :::::
  159. ::::: T040.add_book_to_cart:_not_logged_in.output :::::
  160. ::::: T041.add_book_to_cart:_non_existent_category.output :::::
  161. ::::: T042.add_book_to_cart:_non_existent_title.output :::::
  162. ::::: T043.remove_book_from_cart:.output :::::
  163. ::::: T044.remove_book_from_cart:_not_logged_in.output :::::
  164. ::::: T045.remove_book_from_cart:_non_existent_category.output :::::
  165. ::::: T046.remove_book_from_cart:_non_existent_title.output :::::
  166. ::::: T047.remove_book_from_cart:_book_not_in_cart.output :::::
  167. book 0 added book 0 added
  168. book 1 added book 1 added
  169. user 0 created user 0 created
  170. logged in logged in
  171. title error | category error
  172. ::::: T048.purchase_cart:_not_logged_in.output :::::
  173. ::::: T049.purchase_cart:_free_books.output :::::
  174. ::::: T050.purchase_cart:_non_free_books.output :::::
  175. ::::: T051.purchase_cart:_non_free_books_no_credit_card.output :::::
  176. ::::: T052.purchase_cart:_protected_books.output :::::
  177. ::::: T053.purchase_cart:_mixed_cart.output :::::
  178. ::::: T054.download:_not_logged_in.output :::::
  179. ::::: T055.download:_not_purchased.output :::::
  180. ::::: T056.download:_added_but_not_purchased.output :::::
  181. ::::: T057.download:_purchased.output :::::
  182. ::::: T058.clear_machines:_not_logged_in.output :::::
  183. ::::: T059.clear_machines:_empty_list.output :::::
  184. ::::: T060.clear_machines:_non-empty_list.output :::::
  185. ::::: T061.add_machine:_not_logged_in.output :::::
  186. ::::: T062.get_machines:_not_logged_in.output :::::
  187. ::::: T063.get_machines:_empty_list.output :::::
  188. ::::: T064.get_machines:_non-empty_list.output :::::
  189. ::::: T065.get_machines:_on_limit.output :::::
  190. ::::: T066.get_machines:_over_limit.output :::::
  191.  
  192. g++ -g -c -o Main.o Main.cc
  193. g++ -g -c -o ShopFacade.o ShopFacade.cc
  194. g++ -g -c -o Shop.o Shop.cc
  195. g++ -g -c -o UserStorage.o UserStorage.cc
  196. g++ -g -c -o User.o User.cc
  197. g++ -g -c -o ItemStorage.o ItemStorage.cc
  198. g++ -g -c -o CreditCard.o CreditCard.cc
  199. g++ -g -c -o Book.o Book.cc
  200. flex scanner.ll
  201. g++ -g -c -o parser.o parser.cc
  202. g++ -g -c -o driver.o driver.cc
  203. g++ -g -c -o lex.Shop.o lex.Shop.cc
  204. rm -f libinterface.a
  205. ar cq libinterface.a lex.Shop.o parser.o driver.o
  206. ranlib libinterface.a
  207. g++ -g -L. -o shop Main.o ShopFacade.o Shop.o UserStorage.o User.o ItemStorage.o CreditCard.o Book.o -linterface
Add Comment
Please, Sign In to add comment