Advertisement
Guest User

Untitled

a guest
Nov 5th, 2017
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.65 KB | None | 0 0
  1. Feature: Invalid Path Tests
  2.  
  3.     Scenario: Ti1 Add Redundant User
  4.         Given that the librarian is logged in
  5.         And the user "Sun@carleton.ca,sun" exists in the system
  6.         When the librarian attempts to create the user "Sun@carleton.ca,sun"
  7.         Then the librarian will receive the error message "The User Already Exists!"
  8.        
  9.     Scenario: Ti2 Add Item to non-existent title
  10.         Given that the librarian is logged in
  11.         And the title "Cole's Book" does not exist in the system
  12.         When the librarian attempts to add the item "2311131898780" to the title "Cole's Book"
  13.         Then the librarian will receive the error message "The Title Does Not Exist! Please create a title first:"
  14.        
  15.     Scenario: Ti3 Add Redundant Title
  16.         Given that the librarian is logged in
  17.         And the title "9781442668584,By the grace of God" does exist in the system
  18.         When the librarian attempts to create the title "9781442668584,By the grace of God"
  19.         Then the librarian will receive the error message "The Title Already Exists!"
  20.        
  21.     Scenario: Ti4 Borrow same copy
  22.         Given that the user "Kevin@carleton.ca,kevin" is logged in
  23.         And the user "Kevin@carleton.ca,kevin" exists in the system
  24.         And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
  25.         And that the user "Sun@carleton.ca,sun" is logged in
  26.         And the user "Sun@carleton.ca,sun" exists in the system
  27.         When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781442616899,1"
  28.         Then the user "Sun@carleton.ca,sun" will receive the error message "The Item is Not Available!"
  29.  
  30.     Scenario: Ti5 Borrow renewed copy
  31.         Given that the user "Kevin@carleton.ca,kevin" is logged in
  32.         And the user "Kevin@carleton.ca,kevin" exists in the system
  33.         And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
  34.         And the user "Kevin@carleton.ca,kevin" renews the title "Kevin@carleton.ca,9781442616899,1"
  35.         And that the user "Sun@carleton.ca,sun" is logged in
  36.         And the user "Sun@carleton.ca,sun" exists in the system
  37.         When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781442616899,1"
  38.         Then the user "Sun@carleton.ca,sun" will receive the error message "The Item is Not Available!"    
  39.        
  40.     Scenario: Ti6 Borrow returned copy taken by other user
  41.         Given that the user "Kevin@carleton.ca,kevin" is logged in
  42.         And the user "Kevin@carleton.ca,kevin" exists in the system
  43.         And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
  44.         And the user "Kevin@carleton.ca,kevin" returns the title "Kevin@carleton.ca,9781442616899,1"
  45.         And that the user "Michelle@carleton.ca,michelle" is logged in
  46.         And the user "Michelle@carleton.ca,michelle" exists in the system
  47.         And the user "Michelle@carleton.ca,michelle" borrows the title "Michelle@carleton.ca,9781442616899,1"
  48.         And that the user "Kevin@carleton.ca,kevin" is logged in
  49.         When the user "Kevin@carleton.ca,kevin" tries to borrow the title "Kevin@carleton.ca,9781442616899,1"
  50.         Then the user "Kevin@carleton.ca,kevin" will receive the error message "The Item is Not Available!"
  51.        
  52.     Scenario: Ti7 Borrow over max limit
  53.         Given that the user "Sun@carleton.ca,sun" is logged in
  54.         And the user "Sun@carleton.ca,sun" exists in the system
  55.         And the user "Sun@carleton.ca,sun" borrows the title "Sun@carleton.ca,9781442616899,1"
  56.         And the user "Sun@carleton.ca,sun" borrows the title "Sun@carleton.ca,9781442667181,1"
  57.         When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781611687910,1"
  58.         Then the user "Sun@carleton.ca,sun" will receive the error message "The Maximun Number of Items is Reached!"
  59.        
  60.     Scenario: Ti8 Borrow over max limit after return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement