Logo: Relish

  1. Sign in

Project: Borrow-manage-1

Create item

Scenarios
Order of the fields when creating an item
Given
I am Matti
And
I create an item
And
I select "Yes" from "item[retired]"
And
I choose "Investment" as reference
Then
I see form fields in the following order:
field
Inventory Code
Model
- Status -
Retirement
Reason for Retirement
Working order
Completeness
Borrowable
Status note
- Inventory -
Relevant for inventory
Owner
Last Checked
Responsible department
Responsible person
User/Typical usage
- Move -
Move
Target area
- General Information -
Serial Number
MAC-Address
IMEI-Number
Name
Note
Attachments
- Location -
Building
Shelf
- Invoice Information -
Reference
Project Number
Invoice Number
Invoice Date
Initial Price
Supplier
Warranty expiration
Contract expiration
- Toni Ankunftskontrolle -
Check-In Date
Check-In State
Check-In Note
Forgetting to fill out the required fields when creating an item
Given
I am Matti
And
I create an item
And
I choose "Investment" as reference
And
these required fields are blank:
Model
Inventory Code
Project Number
Then
the model cannot be created
And
I see an error message
Forgetting to fill out just one required field when creating an item
Given
I am Matti
And
I create an item
And
I choose "Investment" as reference
And
these required fields are filled in:
Model
Inventory Code
Project Number
When
I leave the field "required_field" empty
Then
the model cannot be created
And
I see an error message
And
the other fields still contain their data
Examples:
required_field
Model
Inventory Code
Project Number
Areas where you can create an item
Given
I am Matti
And
I open the inventory
Then
I can create an item
Creating an item with all its information
Given
I am Matti
And
I create an item
And
I enter the following item information
field type value
Inventory Code Test Inventory Code
Model autocomplete Sharp Beamer 456
Relevant for inventory select Yes
Move select sofort entsorgen
Target area Test room
Check-In Date 01/01/2013
Check-In State select transportschaden
Check-In Note Test note
Serial Number Test serial number
MAC-Address Test MAC address
IMEI-Number Test IMEI number
Name Test name
Note Test note
Building autocomplete general building
Room autocomplete general room
Shelf Test shelf
Reference radio must Investment
Project Number Test number
Invoice Number Test number
Invoice Date 01/01/2013
Initial Price 50.00
Warranty expiration 01/01/2013
Contract expiration 01/01/2013
Last Checked 01/01/2013
Responsible department autocomplete A-Ausleihe
Responsible person Matus Kmit
User/Typical usage Test use
And
I save
Then
I am redirected to the inventory list
And
the item is saved with all the entered information
Fields that are already filled in
Given
I am Matti
And
I create an item
Then
the barcode is already filled in
And
The date this item was last checked is today's date
And
the following fields have their default values
field type value
Borrowable radio Unborrowable
Relevant for inventory select Yes
Working order radio OK
Completeness radio OK
Add and remove attachments (attachments field is writable)
Given
I am Matti
When
I create an item
And
these required fields are filled in:
Model
Inventory Code
Project Number
Building
Room
And
I add 2 attachments
And
I remove one attachment
And
I save
Then
I am redirected to the inventory list
And
1 attachment is saved

Last published over 3 years ago by mkmit.