Skip to content

Commit

Permalink
Merge pull request #278 from marcelloclv/master
Browse files Browse the repository at this point in the history
Atividade 3 - Equipe 7 (Marcello Valença - mclv)
  • Loading branch information
pauloborba committed Jun 2, 2014
2 parents 4635240 + 04ce279 commit 8c581ff
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ProductGeneration/featureModel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@

<feature min="0" max="1" name="Orientation" type="NONE" id="Orientation"></feature>

</feature>
</feature>
37 changes: 35 additions & 2 deletions test/cucumber/Visit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,40 @@ Feature: Visit
And a visit for the visitor "Person" with initial date "11/11/2000" and final date "12/11/2000"
When I try to edit the visit of the visitor named "Person" with initial date "11/11/2000" and final date "12/11/2000" changing the final date to "10/11/2000"
Then the visit of the visitor named "Person" with initial date "11/11/2000" and final date "12/11/2000" is not properly updated by the system because it is invalid


Scenario: list existing visits and periods
Given the system has visits with initial or final date greater than or equal "01/01/2011"
When I list the visits for the period from "01/01/2011" to today
Then no data is stored by the system

Scenario: visit for a stored visitor
Given the system has a visitor named "Person"
When I try to create a visit for the visitor "Person"
Then the visit for the visitor "Person" is not properly stored by the system

Scenario: asking identification for a visitor that already exists
Given I am logged as "admin"
And I am at the Add Visit Page
And the system has a visitor named "Person"
When I try to create a visitor named "Person"
Then the Confirm Identification Page is open

Scenario: confirming identification for a visitor that already exists
Given I am logged as "admin"
And I have tried to create a visit for a visitor that already exists
And I am at the Confirm Identification Page
When I press the "Yes" button
Then the visit for the visitor is properly stored by the system

Scenario: changing the name of a visitor that already exists
Given I am logged as "admin"
And I have tried to create a visit for a visitor that already exists
And I am at the Confirm Identification Page
When I press the "No" button
Then a new visitor is created with a different name
And the new visitor is properly stored by the system
And the visit for the new visitor is properly stored by the system

#if( $Twitter )
Scenario: Add a new visit twitting it
Given I am logged as "admin" and at the Add Visit Page
Expand All @@ -99,4 +132,4 @@ Feature: Visit
# [5/12/14, 3:40:13 PM] Paulo Borba: e que não estão presentes na versão atual
# [5/12/14, 3:40:46 PM] Paulo Borba: isso pode entao ser usado para revisar e ajustar os outros cenarios
# [5/12/14, 3:41:17 PM] Marcello Valença: certo
# [5/12/14, 3:41:39 PM] Paulo Borba: um outro novo cenário poderia ter a ver com o cadastro de pessoas diferente com o mesmo nome; o sistema deveria perguntar se trata-se da pessoa ja cadastrada
# [5/12/14, 3:41:39 PM] Paulo Borba: um outro novo cenário poderia ter a ver com o cadastro de pessoas diferente com o mesmo nome; o sistema deveria perguntar se trata-se da pessoa ja cadastrada

0 comments on commit 8c581ff

Please sign in to comment.