Logo: Relish

  1. Sign in

Project: Procurement

section Managing Requests

Background
Given
the basic dataset is ready
Scenarios
  • @managing_requests
What to see in section "Requests" as requester only
Given
I am Roger
And
several requests created by myself exist
And
for all main categories pictures have been uploaded
When
I navigate to the requests overview page
Then
the current budget period is selected
And
only main categories containing sub categories are shown in the filter
And
only categories having requests are selected
And
both priorities are selected
And
the state "In inspection" is present
And
all states are selected
And
the search field is empty
And
I do not see the filter "Only my own requests"
And
I do not see the filter "Only my own categories"
And
I do not see the filter "Only categories with requests"
And
I do not see the filter "Inspector's Priority"
And
I see the headers of the columns of the overview
And
I see the amount of requests listed
And
I see the current budget period
And
I see the requested amount per budget period
And
I see the requested amount per category of each budget period
And
I see when the requesting phase of this budget period ends
And
I see when the inspection phase of this budget period ends
And
I see the main categories collapsed
And
the main categories are in alphabetical order
And
I see the pictures of the main categories
When
I expand all the main categories
Then
I see all sub categories collapsed
When
I expand all the sub categories
Then
only my requests are shown
And
for each request I see the following information
article name
name of the requester
department
organisation
price
requested amount
total amount
priority
state
And
I see the empty label for approved amount
But
I do not see the order amount
When
no picture for a main category is uploaded
And
I navigate to the requests overview page
Then
I see the default picture
  • @managing_requests
  • @flapping
Using the filters as requester only
Given
I am Roger
And
several requests created by myself exist
When
I navigate to the requests overview page
And
I enter a search string
And
I select one or more budget periods
And
I select one or more main categories
And
I select one or more sub categories
And
I select one ore both priorities
And
I select one or more states
Then
the list of requests is adjusted immediately according to the filters chosen
And
the amount of requests found is shown
  • @managing_requests
Creating a request for a sub category
Given
I am username
And
for all main categories pictures have been uploaded
And
a room 'Room' for building 'Building' exists
When
I want to create a new request
Then
I am navigated to the request form
And
I see the picture of the main category
When
I fill in the following fields
key value
Article or Project random
Article nr. or Producer nr. random
Supplier random
Motivation random
Price random
Requested quantity random
Then
the amount and the price are multiplied and the result is shown
When
I upload a file
And
I choose the name of a receiver
And
I choose building "Building"
Then
the room has as default value the general room of "Building"
When
I choose room "Room"
And
I choose the following priority value
High
And
I choose the following replacement value
New
And
the status is set to "New"
And
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
Examples:
username
Barbara
  • @managing_requests
  • @flapping
Creating a request through a budget period selecting a template article
Given
I am username
And
several categories exist
And
several template articles in sub categories exist
And
for all main categories pictures have been uploaded
When
I navigate to the requests overview page
And
I press on the plus icon of the current budget period
Then
I am navigated to the templates overview
And
I see the budget period
And
I see when the requesting phase of this budget period ends
And
I see when the inspection phase of this budget period ends
And
I see all main categories, having sub categories, collapsed
And
I see the pictures of the main categories
And
I don't see main categories not having sub categories
When
I press on a main category having sub categories
Then
I see the sub categories of this main category
When
I press on a sub category
Then
I see all template articles of this category
When
I choose a template article
Then
I am navigated to the request form highlighting the template
When
I fill in all mandatory information
And
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
Examples:
username
Barbara
Roger
  • @managing_requests
  • @flapping
Creating a request through a budget period selecting a sub category
Given
I am username
And
several categories exist
And
several template articles in sub categories exist
When
I navigate to the requests overview page
And
I press on the plus icon of the current budget period
Then
I am navigated to the templates overview
When
I press on a main category having sub categories
When
I press on the plus icon of one of its sub categories
Then
I am navigated to the request form
When
I fill in all mandatory information
And
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
Examples:
username
Barbara
Roger
  • @managing_requests
Creating a freetext request inside the new request page
Given
I am username
And
I am on the request form of a sub category
When
I press on the plus icon on the left sidebar
Then
a new request line is added
When
I fill in all mandatory information
And
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
Examples:
username
Barbara
Roger
  • @managing_requests
  • @flapping
Creating a request by choosing a template article inside the request form
Given
I am Barbara
And
several categories exist
And
several template articles in sub categories exist
And
each template article contains
Article nr. or Producer nr.
Supplier
Item price
When
I navigate to the requests overview page
And
I press on the plus icon of a sub category
Then
I am navigated to the request form
When
I choose a template article from the sidebar
Then
a new line containing this template article is added
And
no option is chosen yet for the field Replacement / New
And
I fill in the following fields
key value
Motivation random
And
I choose the following replacement value
New
And
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
  • @managing_requests
  • @flapping
Inserting an already inserted template article as Roger
Given
I am Roger
And
a request containing a template article exists
When
I navigate to the requests form of myself
And
I click on the template article which has already been added to the request
Then
I am navigated to the request containing this template article
  • @managing_requests
  • @flapping
Inserting an already inserted template article as Barbara
Given
I am Barbara
And
a request containing a template article exists
When
I navigate to the requests form of myself
And
I click on the template article which has already been added to the request
Then
a new request line is added
  • @managing_requests
Changing an inserted template article
Given
I am Barbara
And
a request containing a template article exists
And
the template article contains an articlenr./suppliernr.
When
I navigate to the requests form of myself
And
I fill in the following fields
key value
Article or Project random
Article nr. or Producer nr. random
When
I click on save
Then
I see a success message
And
the request with all given information was created successfully in the database
  • @managing_requests
Request deleted because no information entered
Given
I am username
When
I want to create a new request
Then
I am navigated to the new request form
When
I type the first character in a field of the request form
Then
the following fields are mandatory and marked red
article
requested quantity
motivation
new/replacement
And
the field where I have typed the character is not marked red
When
I delete this character
Then
all fields turn white
When
I click on save
Then
the line is deleted
And
no information is saved to the database
Examples:
username
Barbara
Roger
  • @managing_requests
  • @flapping
sorting requests
Given
I am username
And
several requests created by myself exist
When
I navigate to the requests overview page
And
I select all categories
And
I sort the requests and the data is showing in the according sort order
article name
requester
organisation
price
quantity
the total amount
priority
state
Examples:
username
Barbara
Roger
  • @managing_requests
Delete a Request
Given
I am username
And
the current date has not yet reached the inspection start date
And
a request with following data exist
key value
budget period current
user myself
When
I visit the request
And
I delete the request
Then
I receive a message asking me if I am sure I want to delete the data
When
I click on choice choice
Then
the request is "result" in the database
Examples:
username choice result
Barbara yes successfully deleted
Barbara no not deleted
Roger yes successfully deleted
Roger no not deleted
  • @managing_requests
Modify a Request
Given
I am username
And
several requests created by myself exist
And
the current date has not yet reached the inspection start date
Then
I can modify my request
Examples:
username
Barbara
Roger
  • @managing_requests
Choosing an existing or non existing Model
Given
I am username
And
several models exist
When
I want to create a new request
Then
I am navigated to the new request form
When
I search an existing model by typing the article name
And
I choose the article from the suggested list
Then
the model name is copied into the article name field
When
I search a non existing model by typing the article name
Then
no search result is found
When
I fill in all mandatory information
And
I click on save
Then
the entered article name is saved
Examples:
username
Barbara
Roger
  • @managing_requests
Moving request to another budget period as requester only
Given
I am Roger
And
several budget periods exist
And
several requests created by myself exist
And
the current date has not yet reached the inspection start date
And
there is a future budget period
When
I navigate to the requests form of myself
And
I move a request to the future budget period
And
I see a success message
And
the changes are saved successfully to the database
  • @managing_requests
Moving request to another category as requester only
Given
I am Roger
And
several categories exist
And
several requests created by myself exist
And
the current date has not yet reached the inspection start date
When
I navigate to the requests form of myself
And
I click on the settings button for a request
Then
I see the main categories sorted alphabetically in the dropdown
And
I move a request to the other category
Then
I see a success message
And
the changes are saved successfully to the database
  • @managing_requests
  • @flapping
Priority values
Given
I am username
When
I want to create a new request
Then
the priority value "Normal" is set by default
And
I can choose the following priority values
High
Normal
Examples:
username
Barbara
Roger
  • @managing_requests
Delete an attachment
Given
I am username
And
a request with following data exist
key value
budget period current
user myself
And
the request includes an attachment
When
I navigate to the requests form of myself
And
I delete the attachment
And
I click on save
Then
I see a success message
And
the attachment is deleted successfully from the database
Examples:
username
Barbara
Roger
  • @managing_requests
Download an attachment
Given
I am username
And
a request with following data exist
key value
budget period current
user myself
And
the request includes an attachment
When
I navigate to the requests form of myself
And
I download the attachment
Then
the file is downloaded
Examples:
username
Barbara
Roger
  • @managing_requests
View an attachment .jpg
Given
I am username
And
a request with following data exist
key value
budget period current
user myself
And
the request includes an attachment with the attribute .jpg
When
I navigate to the requests form of myself
And
I click on the attachment thumbnail
Then
the content of the file is shown in a viewer
Examples:
username
Barbara
Roger
  • @managing_requests
View an attachment .pdf
Given
I am username
And
a request with following data exist
key value
budget period current
user myself
And
the request includes an attachment with the attribute .pdf
When
I navigate to the requests form of myself
And
I download the attachment
Then
the content of the file is shown in a viewer
Examples:
username
Barbara
Roger
Given
I am username
And
a link to a contact site exists
When
I navigate to the requests overview page
And
I click on the contact link
Then
I am navigated to the specific website
Examples:
username
Barbara
Roger
Hans Ueli
  • @managing_requests
Additional Fields shown to requester only after budget period has ended
Given
I am Roger
And
a request with following data exist
key value
budget period current
user myself
requested amount 2
approved amount 2
inspection comment random
And
the budget period has ended
When
I navigate to the requests overview page
And
for each request I see the following information
requested amount
approved amount
But
I do not see the order amount
When
I open the request
And
I see the following request information
approved amount
inspection comment
  • @managing_requests
Correct expansion of the category, which was clicked
Given
I am Hans Ueli
And
several categories exist
And
several template articles in sub categories exist
And
several budget periods exist
And
I navigate to the requests overview page
And
I select all budget periods
And
all budget periods are visible
When
I press on the first main category inside of the last budget period
Then
I see the sub-categories of this main category

Last published over 1 year ago by mkmit.