Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Invalid Path Tests
- Scenario: Ti1 Add Redundant User
- Given that the librarian is logged in
- And the user "Sun@carleton.ca,sun" exists in the system
- When the librarian attempts to create the user "Sun@carleton.ca,sun"
- Then the librarian will receive the error message "The User Already Exists!"
- Scenario: Ti2 Add Item to non-existent title
- Given that the librarian is logged in
- And the title "Cole's Book" does not exist in the system
- When the librarian attempts to add the item "2311131898780" to the title "Cole's Book"
- Then the librarian will receive the error message "The Title Does Not Exist! Please create a title first:"
- Scenario: Ti3 Add Redundant Title
- Given that the librarian is logged in
- And the title "9781442668584,By the grace of God" does exist in the system
- When the librarian attempts to create the title "9781442668584,By the grace of God"
- Then the librarian will receive the error message "The Title Already Exists!"
- Scenario: Ti4 Borrow same copy
- Given that the user "Kevin@carleton.ca,kevin" is logged in
- And the user "Kevin@carleton.ca,kevin" exists in the system
- And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
- And that the user "Sun@carleton.ca,sun" is logged in
- And the user "Sun@carleton.ca,sun" exists in the system
- When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781442616899,1"
- Then the user "Sun@carleton.ca,sun" will receive the error message "The Item is Not Available!"
- Scenario: Ti5 Borrow renewed copy
- Given that the user "Kevin@carleton.ca,kevin" is logged in
- And the user "Kevin@carleton.ca,kevin" exists in the system
- And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
- And the user "Kevin@carleton.ca,kevin" renews the title "Kevin@carleton.ca,9781442616899,1"
- And that the user "Sun@carleton.ca,sun" is logged in
- And the user "Sun@carleton.ca,sun" exists in the system
- When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781442616899,1"
- Then the user "Sun@carleton.ca,sun" will receive the error message "The Item is Not Available!"
- Scenario: Ti6 Borrow returned copy taken by other user
- Given that the user "Kevin@carleton.ca,kevin" is logged in
- And the user "Kevin@carleton.ca,kevin" exists in the system
- And the user "Kevin@carleton.ca,kevin" borrows the title "Kevin@carleton.ca,9781442616899,1"
- And the user "Kevin@carleton.ca,kevin" returns the title "Kevin@carleton.ca,9781442616899,1"
- And that the user "Michelle@carleton.ca,michelle" is logged in
- And the user "Michelle@carleton.ca,michelle" exists in the system
- And the user "Michelle@carleton.ca,michelle" borrows the title "Michelle@carleton.ca,9781442616899,1"
- And that the user "Kevin@carleton.ca,kevin" is logged in
- When the user "Kevin@carleton.ca,kevin" tries to borrow the title "Kevin@carleton.ca,9781442616899,1"
- Then the user "Kevin@carleton.ca,kevin" will receive the error message "The Item is Not Available!"
- Scenario: Ti7 Borrow over max limit
- Given that the user "Sun@carleton.ca,sun" is logged in
- And the user "Sun@carleton.ca,sun" exists in the system
- And the user "Sun@carleton.ca,sun" borrows the title "Sun@carleton.ca,9781442616899,1"
- And the user "Sun@carleton.ca,sun" borrows the title "Sun@carleton.ca,9781442667181,1"
- When the user "Sun@carleton.ca,sun" tries to borrow the title "Sun@carleton.ca,9781611687910,1"
- Then the user "Sun@carleton.ca,sun" will receive the error message "The Maximun Number of Items is Reached!"
- Scenario: Ti8 Borrow over max limit after return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement