Skip to content

Commit

Permalink
visit changes, add ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasdeSouzaAlbuquerque committed Oct 29, 2014
1 parent f5574ec commit bdd6c4b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/cucumber/BookChapter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ Feature: BookChapter
When I create the book chapter "Next Generation Software Product Line Engineering" with file name "NGSPL-0.pdf"
Then the book chapter "Next Generation Software Product Line Engineering" is not stored twice

#if($removeBookChapter)
Scenario: remove book chapter
Given the book chapter "Next Generation Software Product Line Engineering" is stored in the system with file name "NGSPL-2.pdf"
When I remove the book chapter "Next Generation Software Product Line Engineering"
Then the book chapter "Next Generation Software Product Line Engineering" is properly removed by the system
#end

Scenario: register book chapter with invalid data
Given I am at the book chapter page
Expand Down
2 changes: 2 additions & 0 deletions test/cucumber/Dissertacao.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ Feature: Dissertation Tests
And I delete "New dissertation"
Then the system has no dissertation stored

#if($newDissertationWithoutSchool)
Scenario: new dissertation without school
Given the system has no dissertation entitled "Dissertation without school"
When I create the dissertation "Dissertation without school" with file name "Dissertationwithoutschool.txt" without school
Then the dissertation "Dissertation without school" is not properly stored by the system
#end

Scenario: new dissertation without address
Given the system has no dissertation entitled "Dissertation without address"
Expand Down
4 changes: 4 additions & 0 deletions test/cucumber/Ferramenta.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ Feature: Ferramenta
When I create the ferramenta "Target" with file name "target.pdf" without its website
Then the ferramenta "Target" is not stored

#if($newFerramentaWithWebsite)
Scenario: new ferramenta with website
Given the system has no ferramenta entitled "TargetWeb"
When I create the ferramenta "TargetWeb" with file name "targetweb.pdf" with its website
Then the ferramenta "TargetWeb" is stored
#end

Scenario: duplicate ferramenta
Given the ferramenta "Emergo" is stored in the system with file name "emergo.pdf"
Expand Down Expand Up @@ -48,11 +50,13 @@ Feature: Ferramenta
And I select the new ferramenta option at the ferramenta page
Then I can create a ferramenta filling the details

#if($createFerramentaWithoutAnyInformation)
Scenario: create ferramenta without any information
Given I am at the ferramenta page
And I click on Criar button
Then I am still on create new ferramenta page
And the ferramenta is not displayed in the ferramentas list page
#end

Scenario: upload dissertation without a file
Given I am at the publications menu
Expand Down
10 changes: 8 additions & 2 deletions test/cucumber/Member.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ Feature: member
As an administrator of the RGMS system
I want to add, remove and modify users in the system.

#if($newMemberWithValidMailServer)
Scenario: new member with valid mail server
Given the system has no member with username "usernametest"
When I create a member with username "usernametest" with valid mail server
Then the member with username "usernametest" is properly stored by the system

#end
#if($newMemberWithoutValidMailServer)
Scenario: new member without valid mail server
Given the system has no member with username "usernametest"
When I create a member with username "usernametest" without a valid mail server
Then the member with username "usernametest" is not properly stored by the system
#end

Scenario: list existing member
Given the system has member with username "usernametest"
Expand All @@ -35,23 +38,26 @@ Feature: member

# User

#if($loginWithCorrectPassword)
Scenario: login with correct password
Given I am at the login page
When I fill username and password with "admin" and "correctpassword"
Then I am redirected to the corresponding page
And A message indicating the user was successfully logged on is displayed
#end

Scenario: login with incorrect password
Given I am at the login page
When I fill username and password with "admin" and "incorrectpassword"
Then I am still on the login page with an error message

#if($validUserRegistration)
Scenario: valid user registration
Given I am at the register page
When I fill the user details with a name "jose", a username "josesilva", a password1 "123456", a password2 "123456", a valid email "[email protected]", a university "UFPE" and a status "Graduate Student"
Then I am redirected to the Login Page
And A message indicating the user was successfully registered is displayed

#end

# Scenario: create member web
# Given I am at the create member page
Expand Down
2 changes: 2 additions & 0 deletions test/cucumber/News.feature
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ Feature: news
And I select the novo noticias option at the news page
Then I can fill the news details

#if($newInvalidNewsInvalidResearchGroup)
Scenario: new invalid news (Invalid research group)
Given the system has no news with description "noticiaTeste" and date "01-01-2014" for "" research group
When I create a news with description "noticiaTeste" and date "01-01-2014" for "" research group
Then the news with description "noticiaTeste", date "01-01-2014" and "" research group is not stored by the system because it is invalid
#end

Scenario: new invalid news (Description blank)
Given the system has no news with description "" and date "17-12-2013" for "SPG" research group
Expand Down
2 changes: 2 additions & 0 deletions test/cucumber/Orientation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ Feature: orientations
When I create a new orientation entitled "The Book is on the table"
Then the orientation "The Book is on the table" is properly stored by the system

#if($duplicateOrientation)
Scenario: duplicate orientation
Given the system has an orientation entitled "The Book is on the table"
When I create a new orientation entitled "The Book is on the table"
Then the duplicate orientation is not properly stored by the system
#end

Scenario: remove existing orientation
Given the system has an orientation entitled "The Book is on the table" supervised by someone
Expand Down
9 changes: 6 additions & 3 deletions test/cucumber/Visit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ Feature: Visit
I want to add, remove and modify visits of external members to the group
so that I can store the visits that external member perform to the group, so do as the visitor

#if($visitOfADayForANonStoredVisitor)
Scenario: visit of a day for a non stored visitor
Given the system has no visitor named "Person"
When I create the visit for the visitor "Person" with initial date "11/11/2000" and final date "11/11/2000"
When I create the one-day visit for the visitor "Person" with initial date "11/11/2000"
Then the visitor named "Person" is properly stored by the system
And the visit for the visitor "Person" with initial and final date equal to "11/11/2000" is properly stored by the system

#end
#if($visitOfAPeriodForANonStoredVisitor)
Scenario: visit of a period for a non stored visitor
Given the system has no visitor named "Person"
When I create the visit for the visitor "Person" with initial date "11/11/2000" and final date "12/11/2000"
When I create the period visit for the visitor "Person" with initial date "11/11/2000" and final date "12/11/2000"
Then the visitor named "Person" is properly stored by the system
And the visit for the visitor "Person" with initial date "11/11/2000" and final date "12/11/2000" is properly stored by the system
#end

Scenario: visit of a day for a stored visitor
Given the system has visitor named "Person"
Expand Down

0 comments on commit bdd6c4b

Please sign in to comment.