From 5eae5527cb9ecfe72d15d2d0eb38338cba4f439d Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Wed, 22 Oct 2014 09:44:55 -0300 Subject: [PATCH 01/34] Update Record.feature --- test/cucumber/Record.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Record.feature b/test/cucumber/Record.feature index 848071c0..ed6574e6 100644 --- a/test/cucumber/Record.feature +++ b/test/cucumber/Record.feature @@ -10,11 +10,14 @@ Feature: record When I remove the record with status "Graduate Student" Then the record with status "Graduate Student" is properly removed by the system +#if($Record) Scenario: Delete record with dependency Given the system has only one record with status "MSc Student" And the record with status "MSc Student" is associated to a member When I remove the record with status "MSc Student" Then the record with status "MSc Student" is not removed by the system + And the system output the message error "Cannot remove an associated member!" +#end Scenario: Update record Given the system has only one record with status "MSc Student" and this record has a null end date @@ -54,4 +57,4 @@ Feature: record And the system has only one record with status "MSc Student" And the record with status "MSc Student" is associated to a member When I click to remove the record - Then I am still at the visualize page of the record with status "MSc Student" \ No newline at end of file + Then I am still at the visualize page of the record with status "MSc Student" From 5622cc9f2adad29aa9f3cc39abfb5f06edda07b2 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 00:09:14 -0200 Subject: [PATCH 02/34] Update Dissertacao.feature --- test/cucumber/Dissertacao.feature | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature index 98a20dd2..1f86d462 100644 --- a/test/cucumber/Dissertacao.feature +++ b/test/cucumber/Dissertacao.feature @@ -82,6 +82,12 @@ Feature: Dissertation Tests When I upload a new dissertation "curriculo2.xml" with title "New dissertation" Then the system has more dissertations now + Scenario: seek a dissertation through keywords + Given there is a dissertation called "curriculo2" with the word "redes neurais" in it is stored. + When I select the option "search with keywords" + And I write "redes neurais" in it + Then a list with "curriculo2" is displayed + #if ($contextualInformation) Scenario: create a new dissertation with user data already filled by default @@ -90,4 +96,4 @@ Feature: Dissertation Tests And I select the new dissertation option at the dissertation page Then I see my user listed as an author member of dissertation by default And I see my school name as school of dissertation by default -#end \ No newline at end of file +#end From 896587e212ef17a0730ac3d76907fe6d28fac6ce Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 00:39:55 -0200 Subject: [PATCH 03/34] Update Dissertacao.feature --- test/cucumber/Dissertacao.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature index 1f86d462..9d82d372 100644 --- a/test/cucumber/Dissertacao.feature +++ b/test/cucumber/Dissertacao.feature @@ -88,6 +88,21 @@ Feature: Dissertation Tests And I write "redes neurais" in it Then a list with "curriculo2" is displayed + Scenario: upload a dissertation with a incorrect file type + Given I am at the publications menu + When I select the "Dissertacao" option at the program menu + And I select the new dissertation option at the dissertation page + And I add the dissertation with "curriculo4.png" + Then the system has no new dissertation + And I am back at the publications menu + + Scenario: upload a dissertation with a incorrect file type + Given I am at the publications menu + When I select the "Dissertacao" option at the program menu + And I select the new dissertation option at the dissertation page + And I add the dissertation with "curriculo4.png" + Then the system opens a window telling me that it isnt the appropriate file type + #if ($contextualInformation) Scenario: create a new dissertation with user data already filled by default From cf2bfbedb46b48100b51a869b86600968962a342 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 00:49:48 -0200 Subject: [PATCH 04/34] Update Conferencia.feature --- test/cucumber/Conferencia.feature | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Conferencia.feature b/test/cucumber/Conferencia.feature index 8553a4a3..1819aa92 100644 --- a/test/cucumber/Conferencia.feature +++ b/test/cucumber/Conferencia.feature @@ -74,8 +74,15 @@ Feature: conferencia Given I am at the publications menu When I select the "Conferencia" option at the program menu And I select the upload button at the conferencia page - Then I'm still on conferencia page + Then I'm still at the publications menu + And "Conferencia" is selected And the conferencias are not stored by the system + + Scenario: upload conferencias without a file + Given I am at the publications menu + When I select the "Conferencia" option at the program menu + And I select the upload button at the conferencia page + Then a window opens with "You must select a file" appears @ignore Scenario: edit existing conference From aab515d8ca8903ecc00fd45182a05b820fc44c88 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 09:56:57 -0300 Subject: [PATCH 05/34] Adicionado feature de filtrar tese por ano de publicacao --- test/cucumber/Thesis.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index e664276f..0e928478 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -34,6 +34,12 @@ Feature: Thesis Tests When I select to view thesis "Software Enginnering2" in resulting list And I select the remover option at the thesis show page Then the thesis "Software Enginnering2" is removed from the system + + Scenario: filter thesis list by publication year + Given At least on thesis is stored in the system + And I am at the thesis list page + When I select to filter by the publication year "1998" + Then The returned thesis list shows only the thesis with publication year "1998" #if ($contextualInformation) Scenario: Add a new thesis with user data already filled by default From bb8ec98f3777e3d795524fb2c639ad06777dce7b Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:00:43 -0300 Subject: [PATCH 06/34] Adicionado feature de filtrar tese por nome de autor --- test/cucumber/Thesis.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index 0e928478..1c90d1dc 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -40,6 +40,12 @@ Feature: Thesis Tests And I am at the thesis list page When I select to filter by the publication year "1998" Then The returned thesis list shows only the thesis with publication year "1998" + + Scenario: filter thesis list by author name + Given At least on thesis is stored in the system + And I am at the thesis list page + When I select to filter by the author name "Pressman" + Then The returned thesis list shows only the thesis with author name "Pressman" #if ($contextualInformation) Scenario: Add a new thesis with user data already filled by default From 3b58fb830d028bf57be3c742dac2a175713e8088 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:07:18 -0300 Subject: [PATCH 07/34] Modificado cenario de controle de adicionar teses --- test/cucumber/Thesis.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index 1c90d1dc..cd7c1412 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -11,6 +11,7 @@ Feature: Thesis Tests Scenario: new thesis Given The system has no thesis entitled "New thesis" When I create the thesis "New thesis" with file name "Newthesis.txt" and school "UFPE" + And Publication year "1998" and author name "Pressman" Then The thesis "New thesis" is properly stored by the system Scenario: remove existing thesis @@ -35,13 +36,13 @@ Feature: Thesis Tests And I select the remover option at the thesis show page Then the thesis "Software Enginnering2" is removed from the system - Scenario: filter thesis list by publication year + Scenario: filter thesis list by publication year web Given At least on thesis is stored in the system And I am at the thesis list page When I select to filter by the publication year "1998" Then The returned thesis list shows only the thesis with publication year "1998" - Scenario: filter thesis list by author name + Scenario: filter thesis list by author name web Given At least on thesis is stored in the system And I am at the thesis list page When I select to filter by the author name "Pressman" From d6317103d8ebef3ce473a049e3d719f405009d98 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:08:11 -0300 Subject: [PATCH 08/34] Modificado cenario de gui de criar tese --- test/cucumber/Thesis.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index cd7c1412..4730b9c9 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -21,7 +21,7 @@ Feature: Thesis Tests Scenario: create thesis web Given I am at the create thesis page - When I fill the thesis details with "Software Engineering", "10", "8", "1998", "UFPE" and "Recife" + When I fill the thesis details with "Software Engineering", "10", "8", "1998", "Pressman", "UFPE" and "Recife" Then I am on the thesis show page And The thesis "Software Engineering" is properly stored by the system From 4acedb8d7ed95818a8160e74bf1c43ad50721bf1 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:23:56 -0300 Subject: [PATCH 09/34] Modificado new book e new book web para adicionar autor --- test/cucumber/Book.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index 3624ed38..d90c2f98 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -6,7 +6,7 @@ Feature: Book Scenario: new book Given the system has no book entitled "SPL Development" - When I create the book "SPL Development" with file name "HSPLE.pdf" + When I create the book "SPL Development" with file name "HSPLE.pdf" and author name "James" Then the book "SPL Development" is properly stored by the system Scenario: remove book @@ -33,5 +33,5 @@ Feature: Book Given I am at the book page And the system has no book entitled "Next Generation Software Product Line Engineering" When I go to new book page - And I use the webpage to create the book "Next Generation Software Product Line Engineering" with file name "Ngs.pdf" + And I use the webpage to create the book "Next Generation Software Product Line Engineering" with file name "Ngs.pdf" and author name "James" Then the book "Next Generation Software Product Line Engineering" was stored by the system \ No newline at end of file From f8020085700be0c5f25dabeb94925ad727e5e8ac Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:24:48 -0300 Subject: [PATCH 10/34] =?UTF-8?q?pequenos=20ajustes=20nos=20cen=C3=A1rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/cucumber/Thesis.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index 4730b9c9..96d1929a 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -11,7 +11,7 @@ Feature: Thesis Tests Scenario: new thesis Given The system has no thesis entitled "New thesis" When I create the thesis "New thesis" with file name "Newthesis.txt" and school "UFPE" - And Publication year "1998" and author name "Pressman" + And With publication date "10", "08", Publication year "1998" and author name "Pressman" Then The thesis "New thesis" is properly stored by the system Scenario: remove existing thesis From 80c16b7ac486843a0975d94e7cba4b326175504c Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:33:02 -0300 Subject: [PATCH 11/34] Adicionado cenario de controlador list thesis --- test/cucumber/Thesis.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index 96d1929a..4b977b99 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -13,6 +13,11 @@ Feature: Thesis Tests When I create the thesis "New thesis" with file name "Newthesis.txt" and school "UFPE" And With publication date "10", "08", Publication year "1998" and author name "Pressman" Then The thesis "New thesis" is properly stored by the system + + Scenario: list thesis + Given the thesis "New thesis" is stored in the system with file name "Newthesis.txt" and all of the details + When I create the thesis "New thesis2" with file name "Newthesis2.txt" and all of the details + Then The system list "New thesis" and "New thesis 2" Scenario: remove existing thesis Given the system has thesis entitled "New thesis2" From 22f408ca4b2389d826df7a1247611846c66aa555 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 10:41:41 -0300 Subject: [PATCH 12/34] Adicionado cenario de controlador list book --- test/cucumber/Book.feature | 5 +++++ test/cucumber/Thesis.feature | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index d90c2f98..67d366c4 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -13,6 +13,11 @@ Feature: Book Given the book "SPL Development" is stored in the system with file name "NGSPL-2.pdf" When I remove the book "SPL Development" Then the book "SPL Development" is properly removed by the system + + Scenario: list book + Given the book "SPL Development" is stored in the system with file name "NGSPL-2.pdf" + When I create the book "Next Generation Software Product Line Engineering" with file name "NGSPLE.pdf" + Then The system list "SPL Development" and "Next Generation Software Product Line Engineering" Scenario: duplicate book Given the book "SPL Development" is stored in the system with file name "NGSPL-0.pdf" diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index 4b977b99..addfaa7c 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -17,8 +17,8 @@ Feature: Thesis Tests Scenario: list thesis Given the thesis "New thesis" is stored in the system with file name "Newthesis.txt" and all of the details When I create the thesis "New thesis2" with file name "Newthesis2.txt" and all of the details - Then The system list "New thesis" and "New thesis 2" - + Then The system list "New thesis" and "New thesis 2" + Scenario: remove existing thesis Given the system has thesis entitled "New thesis2" When I delete the thesis "New thesis2" From fba2ad931b34e6db7afb7b951c5a785d09090e38 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 11:58:39 -0200 Subject: [PATCH 13/34] Adicionando troca de senha, --- test/cucumber/Member.feature | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Member.feature b/test/cucumber/Member.feature index 239da9ff..91a73adf 100644 --- a/test/cucumber/Member.feature +++ b/test/cucumber/Member.feature @@ -38,6 +38,13 @@ Feature: member When I fill the user details with a name, username, passoword1, password2, email, university, status "jose" "josesilva" "123456" "123456" "jose@ufpe.br" "UFPE" "Graduate Student" Then I am redirected to the Login Page And A message indicating the user was successfully registered is displayed + + Scenario: change password + Given the system has member with username "usernametest" + And the member has the password "12345" + When I change password of "usernametest" to "5555" + And I confirm the decision + Then the member named "usernametest" will have password "5555" # Scenario: create member web @@ -75,4 +82,4 @@ Feature: member Scenario: user registration with default data Given I am at the register page Then I see default data filled on register form -#end \ No newline at end of file +#end From ad1938f22382ed2188fabf74abca9e3b8de7e5fe Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 12:02:11 -0200 Subject: [PATCH 14/34] =?UTF-8?q?Erro=20Cen=C3=A1rio:=20Upload=20de=20livr?= =?UTF-8?q?o=20sem=20arquivo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/cucumber/Book.feature | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index 3624ed38..c2200755 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -18,6 +18,7 @@ Feature: Book Given the book "SPL Development" is stored in the system with file name "NGSPL-0.pdf" When I create the book "SPL Development" with file name "NGSPL-0.pdf" Then the book "SPL Development" is not stored twice + And an error message is displayed Scenario: edit existing book Given the book "SPL Development" is stored in the system with file name "HSPLE.pdf" @@ -28,10 +29,17 @@ Feature: Book Given the system has no books stored When I upload the books of "curriculo.xml" Then the system has all the books of the xml file + + Scenario: upload book without a file + Given the system has no books stored + When I create a book "SPL Development" + And I upload no file + Then the system has no book called "SPL Development" + And an error message is displayed Scenario: new book web Given I am at the book page And the system has no book entitled "Next Generation Software Product Line Engineering" When I go to new book page And I use the webpage to create the book "Next Generation Software Product Line Engineering" with file name "Ngs.pdf" - Then the book "Next Generation Software Product Line Engineering" was stored by the system \ No newline at end of file + Then the book "Next Generation Software Product Line Engineering" was stored by the system From 614f3bd3e5f0282dff59585e5a016c249507164d Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 12:04:16 -0200 Subject: [PATCH 15/34] Adicionando mensagens a alguns erros. --- test/cucumber/Authentication.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cucumber/Authentication.feature b/test/cucumber/Authentication.feature index 425b140e..4b9514b8 100644 --- a/test/cucumber/Authentication.feature +++ b/test/cucumber/Authentication.feature @@ -29,11 +29,13 @@ Scenario: Try to access Member List Page without being logged in Given I am not logged When I directly access the Member List Page Then I am redirected to the Login Page + And a message indicating that the user must be logged to see the page is displayed Scenario: Try to access root page without being logged in Given I am not logged When I access the Root Page Then I am redirected to the Login Page + And a message indicating that the user must be logged to see the page is displayed #if ($contextualInformation) Scenario: Field University filled with "Federal University of Pernambuco" From 17dfef98c665cfb0a692817187375f7057ba8ef5 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 12:23:51 -0200 Subject: [PATCH 16/34] Update Dissertacao.feature --- test/cucumber/Dissertacao.feature | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature index 9d82d372..149e0f50 100644 --- a/test/cucumber/Dissertacao.feature +++ b/test/cucumber/Dissertacao.feature @@ -94,14 +94,9 @@ Feature: Dissertation Tests And I select the new dissertation option at the dissertation page And I add the dissertation with "curriculo4.png" Then the system has no new dissertation + And the system opens a window tellng me that it isnt the appropiate file type And I am back at the publications menu - - Scenario: upload a dissertation with a incorrect file type - Given I am at the publications menu - When I select the "Dissertacao" option at the program menu - And I select the new dissertation option at the dissertation page - And I add the dissertation with "curriculo4.png" - Then the system opens a window telling me that it isnt the appropriate file type + #if ($contextualInformation) From 8329d983f73ab4bfa9ce9acedecfb542c8ab74dc Mon Sep 17 00:00:00 2001 From: fmm4 Date: Mon, 27 Oct 2014 12:34:07 -0200 Subject: [PATCH 17/34] "search by tag", "mouse over information" --- test/cucumber/Book.feature | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index c2200755..6f1cd445 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -30,13 +30,26 @@ Feature: Book When I upload the books of "curriculo.xml" Then the system has all the books of the xml file - Scenario: upload book without a file - Given the system has no books stored + Scenario: upload book without a file + Given the system has no books stored When I create a book "SPL Development" And I upload no file Then the system has no book called "SPL Development" And an error message is displayed + Scenario: search book by tags + Given the book "Redes Neurais" is stored in the system with tag "Inteligencia Artificial" + And I am in the books menu + When I click search button + And I write "Inteligencia Artificial" in the bar + Then a list containing "Redes Neurais" is displayed + + Scenario: mouse over information + Given I am on the books menu + When I put the mouse over a book + And I wait 1 second + Then a window with information about the book is displayed until I remove the mouse from over the book + Scenario: new book web Given I am at the book page And the system has no book entitled "Next Generation Software Product Line Engineering" From e20954f0e0bcc97d8465ca563465c01508fc0543 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 27 Oct 2014 16:33:01 -0300 Subject: [PATCH 18/34] Adicionado os #if(nome) e #end --- test/cucumber/Book.feature | 4 +++- test/cucumber/Thesis.feature | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index 67d366c4..8aeb9c30 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -13,11 +13,13 @@ Feature: Book Given the book "SPL Development" is stored in the system with file name "NGSPL-2.pdf" When I remove the book "SPL Development" Then the book "SPL Development" is properly removed by the system - + +#if($book) Scenario: list book Given the book "SPL Development" is stored in the system with file name "NGSPL-2.pdf" When I create the book "Next Generation Software Product Line Engineering" with file name "NGSPLE.pdf" Then The system list "SPL Development" and "Next Generation Software Product Line Engineering" +#end Scenario: duplicate book Given the book "SPL Development" is stored in the system with file name "NGSPL-0.pdf" diff --git a/test/cucumber/Thesis.feature b/test/cucumber/Thesis.feature index addfaa7c..44b4f78c 100644 --- a/test/cucumber/Thesis.feature +++ b/test/cucumber/Thesis.feature @@ -13,11 +13,13 @@ Feature: Thesis Tests When I create the thesis "New thesis" with file name "Newthesis.txt" and school "UFPE" And With publication date "10", "08", Publication year "1998" and author name "Pressman" Then The thesis "New thesis" is properly stored by the system - + +#if($thesis) Scenario: list thesis Given the thesis "New thesis" is stored in the system with file name "Newthesis.txt" and all of the details When I create the thesis "New thesis2" with file name "Newthesis2.txt" and all of the details Then The system list "New thesis" and "New thesis 2" +#end Scenario: remove existing thesis Given the system has thesis entitled "New thesis2" @@ -40,18 +42,22 @@ Feature: Thesis Tests When I select to view thesis "Software Enginnering2" in resulting list And I select the remover option at the thesis show page Then the thesis "Software Enginnering2" is removed from the system - + +#if($publicationYear) Scenario: filter thesis list by publication year web Given At least on thesis is stored in the system And I am at the thesis list page When I select to filter by the publication year "1998" Then The returned thesis list shows only the thesis with publication year "1998" - +#end + +#if($authorName) Scenario: filter thesis list by author name web Given At least on thesis is stored in the system And I am at the thesis list page When I select to filter by the author name "Pressman" Then The returned thesis list shows only the thesis with author name "Pressman" +#end #if ($contextualInformation) Scenario: Add a new thesis with user data already filled by default From cb853d583fab54177ede39dfb70aa91141aface6 Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 17:48:51 -0200 Subject: [PATCH 19/34] Update BibtexGenerateFile.feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Novo cenário de GUI: dada uma palavra-chave, pesquisar por todas as publicações relacionadas a essa palavra-chave. --- test/cucumber/BibtexGenerateFile.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/cucumber/BibtexGenerateFile.feature b/test/cucumber/BibtexGenerateFile.feature index 566bfa51..ac5fd0d9 100644 --- a/test/cucumber/BibtexGenerateFile.feature +++ b/test/cucumber/BibtexGenerateFile.feature @@ -8,3 +8,12 @@ Feature: all bibtex When I select the export bibtex file option at the publications menu And I select Generate All BibTex option at the export bibtex page Then I can see the bibtex details + + #if($all bibtex) + Scenario: search all publications of a specific topic + Given I am at the publications + When I select the export bibtex file option at the publications menu + And I type "Topic" at the search toolbar in export bibtex page + And I select Generate BibTex option at the export bibtex page + Then I can see all the publications related with "Topic" + #end From 0a8cfc524360303e03a9fc6fc9d71d1159e61d23 Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 17:17:23 -0300 Subject: [PATCH 20/34] Update Conferencia.feature Adicionado o cenario de busca por research line e o cenario de busca por pesquisador --- test/cucumber/Conferencia.feature | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/cucumber/Conferencia.feature b/test/cucumber/Conferencia.feature index 8553a4a3..cf4d3798 100644 --- a/test/cucumber/Conferencia.feature +++ b/test/cucumber/Conferencia.feature @@ -143,5 +143,26 @@ Feature: conferencia When I write "2007" at the date field And I select the option Serach for Conference at the conference page Then a list of all conferences containing that date will be presented in the conference screen + + #if($conferencia) + Scenario: Search for conference by research line + Given I am at the Seach Conference page + And The system has some conferences of "Data Security" research line + When I write "Data Security" at the research line field + And I select the option Search for Conference at the conference page + Then a list of all conferencer containg that research line will be presented in the conference screen + #end + + #if($conferencia) + Scenario: Search for conference by Researcher + Given I am at the Seach Conference page + And The system has a conference with "Paulo Borba" as one of its researchers + When I write "Paulo Borba" at the researcher + And I select the option Search for Conference at the conference page + Then a list of all conferencer containg that researcher will be presented in the conference screen + #end + + + # voces podem criar cenários para ordenar a lista de conferencia, filtrar a lista, verificar se alguns campos podem ser opcionais, etc. From c66b6e5b57540516fdceaf6b5ca2d0d600d505db Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 19:12:56 -0200 Subject: [PATCH 21/34] Update News.feature --- test/cucumber/News.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cucumber/News.feature b/test/cucumber/News.feature index ff54e938..47426b25 100644 --- a/test/cucumber/News.feature +++ b/test/cucumber/News.feature @@ -66,8 +66,11 @@ Feature: news And the news "Noticia1" is stored in the system And I select the option to remove in news show page Then the news "Noticia1" is properly removed by the system - + + #if($news) Scenario: new invalid news (invalid date) Given the system has no news with description "teste" and date "31-02-2013" for "SPG" research group When I try to create a news with description "teste" and date "31-02-2013" for "SPG" research group Then the news with description "teste", date "31-02-2013" and "SPG" research group is not stored by the system because it is invalid + And the error message "Cannot create news: invalid date." is displayed + #end From c1d2f4558c2f5b158366d47f372417705ed2edbb Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 18:19:08 -0300 Subject: [PATCH 22/34] Update News.feature --- test/cucumber/News.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/cucumber/News.feature b/test/cucumber/News.feature index 47426b25..80c3e3ca 100644 --- a/test/cucumber/News.feature +++ b/test/cucumber/News.feature @@ -74,3 +74,11 @@ Feature: news Then the news with description "teste", date "31-02-2013" and "SPG" research group is not stored by the system because it is invalid And the error message "Cannot create news: invalid date." is displayed #end + + #if($news) + Scenario: export news to pdf + Given the system has a news with description "noticia para teste" + When I request this news "noticia para teste" download + Then the system creates a pdf file containing the description, date and research group of this news + And the system send this file for the client + #end From 0d53e66b977a379e55b362cdacae77ae01a513f9 Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 18:33:03 -0300 Subject: [PATCH 23/34] Update Book.feature --- test/cucumber/Book.feature | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index 8aeb9c30..d688141c 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -30,6 +30,13 @@ Feature: Book Given the book "SPL Development" is stored in the system with file name "HSPLE.pdf" When I edit the book title from "SPL Development" to "New Title" Then the book "New Title" is properly updated by the system +#if($book) + Scenario: edit existing book with duplicate title + Given the book "Book 1" is stored in the system with file name "B1.pdf" + And the book "Book 2" is stored in the system with file name "B2.pdf" + When I edit the book title from "Book 1" to "Book 2" + Then the book "Book 2" is not updated by the system +#end Scenario: upload book with a file Given the system has no books stored @@ -41,4 +48,4 @@ Feature: Book And the system has no book entitled "Next Generation Software Product Line Engineering" When I go to new book page And I use the webpage to create the book "Next Generation Software Product Line Engineering" with file name "Ngs.pdf" and author name "James" - Then the book "Next Generation Software Product Line Engineering" was stored by the system \ No newline at end of file + Then the book "Next Generation Software Product Line Engineering" was stored by the system From 1e9949f3742a536fb760e489ca7e0c410831db90 Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 19:59:51 -0200 Subject: [PATCH 24/34] Update BookChapter.feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adicionados 2 cenários de controle: edição dos títulos dos capítulos do livro. --- test/cucumber/BookChapter.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/cucumber/BookChapter.feature b/test/cucumber/BookChapter.feature index 9f21361b..812f143a 100644 --- a/test/cucumber/BookChapter.feature +++ b/test/cucumber/BookChapter.feature @@ -18,6 +18,19 @@ Feature: BookChapter 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" * the book chapter "Next Generation Software Product Line Engineering" is properly removed by the system + + #if($BookChapter) + Scenario: edit book chapter's title + Given the book chapter entitled "SPL Development" is stored in the system with file name "NGSPL-0.pdf" + When I change the book chapter's title from "SPL Development" to "New Title" + Then the book chapter's name is properly updated to "New Title" by the system + + Scenario: edit inexistent book chapter's title + Given no book chapter entitled "SPL Development" is stored in the system + When I change the book chapter's title from "SPL Development" to "New Title" + Then an error message is shown + And no changes are made by the system + #end Scenario: register book chapter with invalid data Given I am at the book chapter page From 6d0899dda575059f0bc10ea1a26cefa7ffe9ea34 Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 20:00:59 -0200 Subject: [PATCH 25/34] Update News.feature --- test/cucumber/News.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cucumber/News.feature b/test/cucumber/News.feature index 80c3e3ca..7ff5bc8f 100644 --- a/test/cucumber/News.feature +++ b/test/cucumber/News.feature @@ -67,11 +67,12 @@ Feature: news And I select the option to remove in news show page Then the news "Noticia1" is properly removed by the system - #if($news) + Scenario: new invalid news (invalid date) Given the system has no news with description "teste" and date "31-02-2013" for "SPG" research group When I try to create a news with description "teste" and date "31-02-2013" for "SPG" research group Then the news with description "teste", date "31-02-2013" and "SPG" research group is not stored by the system because it is invalid + #if($news) And the error message "Cannot create news: invalid date." is displayed #end From d6b27b7ab1db07b6567959726d72403671dc0cbf Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 19:04:55 -0300 Subject: [PATCH 26/34] Update Book.feature --- test/cucumber/Book.feature | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index d688141c..a0e03762 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -49,3 +49,6 @@ Feature: Book When I go to new book page And I use the webpage to create the book "Next Generation Software Product Line Engineering" with file name "Ngs.pdf" and author name "James" Then the book "Next Generation Software Product Line Engineering" was stored by the system + #if($book) + And the message "the book was sucessful stored" is displayed + #end From e777a4705b3ff7e6f962e0f5f95feb76f8de7039 Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 19:11:33 -0300 Subject: [PATCH 27/34] Update Book.feature --- test/cucumber/Book.feature | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index a0e03762..dbfecd22 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -30,6 +30,9 @@ Feature: Book Given the book "SPL Development" is stored in the system with file name "HSPLE.pdf" When I edit the book title from "SPL Development" to "New Title" Then the book "New Title" is properly updated by the system + #if($book) + And the message "The edition has been successful" is displayed + #end #if($book) Scenario: edit existing book with duplicate title Given the book "Book 1" is stored in the system with file name "B1.pdf" From a65e9fa6032fb7b623dccf8931a21664cefc835d Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 20:53:43 -0200 Subject: [PATCH 28/34] Update BibtexImport.feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue 302: listar as publicações extraídas do arquivo Bibtex --- test/cucumber/BibtexImport.feature | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/cucumber/BibtexImport.feature b/test/cucumber/BibtexImport.feature index ec0b91ab..a0e008a7 100644 --- a/test/cucumber/BibtexImport.feature +++ b/test/cucumber/BibtexImport.feature @@ -7,9 +7,19 @@ Feature: BibtexImport Scenario: simple import bibtex Given I am on Import Bibtex File Menu When I click "Choose file" - And selected a bibtex file and I click "Import" + #if($BibtexImport) + And selected a bibtex file and I click "Import All" + #end Then is created all corresponding publications And all of then are stored + + #if($BibtexImport) + Scenario: list extracted publications from a bibtex file + Given I am on Import Bibtex File Menu + When I click "Choose file" + And I select a bibtex file + Then a list of publications extracted from the bibtex file is shown on the same screen + #end Scenario: bibtex file unformatted Given I am on Import Bibtex File Menu @@ -24,4 +34,5 @@ Feature: BibtexImport And selected a bibtex file with one Dissertation and two Thesis and I click "Import" Then is created one Dissertation publication And is created two Thesis publications - And one Dissertation is stored and two Thesis is stored \ No newline at end of file + And one Dissertation is stored and two Thesis is stored + From 10234cb86054f34e4027e96bbd702695d09d74f3 Mon Sep 17 00:00:00 2001 From: FilipeJrd Date: Mon, 27 Oct 2014 20:02:11 -0300 Subject: [PATCH 29/34] Update Dissertacao.feature --- test/cucumber/Dissertacao.feature | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature index 98a20dd2..f50df798 100644 --- a/test/cucumber/Dissertacao.feature +++ b/test/cucumber/Dissertacao.feature @@ -16,12 +16,17 @@ Feature: Dissertation Tests 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 system has no dissertation entitled "Dissertation without school" + #if($Dissertation) + And a failure message is shown + #end Scenario: new dissertation without address Given the system has no dissertation entitled "Dissertation without address" When I create the dissertation "Dissertation without address" with file name "Dissertationwithoutaddress.txt" without address Then the system has no dissertation entitled "Dissertation without address" - + #if($Dissertation) + And a failure message is shown + #end Scenario: new dissertation Given the system has no dissertation entitled "New dissertation" When I create the dissertation "New dissertation" with file name "Newdissertation.txt" and school "UFPE" @@ -90,4 +95,4 @@ Feature: Dissertation Tests And I select the new dissertation option at the dissertation page Then I see my user listed as an author member of dissertation by default And I see my school name as school of dissertation by default -#end \ No newline at end of file +#end From 9248ce53a090757e8c68a5eee64b5b327645e0be Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 21:23:56 -0200 Subject: [PATCH 30/34] Update Authentication.feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alteração de 2 cenários de GUI: ambiguidade nos cenários anteriores. --- test/cucumber/Authentication.feature | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Authentication.feature b/test/cucumber/Authentication.feature index 425b140e..74494a06 100644 --- a/test/cucumber/Authentication.feature +++ b/test/cucumber/Authentication.feature @@ -6,13 +6,17 @@ Scenario: Login with user that doesn't exist fail message Given I am at the Login Page When I try to login with an user that does not exist Then I am redirected to the Login Page - And A login failure message is displayed +#if($Authentication Process) + And The login failure message "User doesn't exist!" is displayed +#end Scenario: Login with user's wrong password fail message Given I am at the Login Page When I try to login with an existent user, though with wrong password Then I am redirected to the Login Page - And A login failure message is displayed +#if($Authentication Process) + And The login failure message "Invalid password!" is displayed +#end Scenario:New user register success message Given I am at the User Register Page From 26d8d7441b33a96b52f7d9e4d821628553d76509 Mon Sep 17 00:00:00 2001 From: Mateus-mc2 Date: Mon, 27 Oct 2014 23:41:35 -0200 Subject: [PATCH 31/34] Update Record.feature --- test/cucumber/Record.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Record.feature b/test/cucumber/Record.feature index ed6574e6..6ded6085 100644 --- a/test/cucumber/Record.feature +++ b/test/cucumber/Record.feature @@ -10,14 +10,15 @@ Feature: record When I remove the record with status "Graduate Student" Then the record with status "Graduate Student" is properly removed by the system -#if($Record) + Scenario: Delete record with dependency Given the system has only one record with status "MSc Student" And the record with status "MSc Student" is associated to a member When I remove the record with status "MSc Student" Then the record with status "MSc Student" is not removed by the system + #if($Record) And the system output the message error "Cannot remove an associated member!" -#end + #end Scenario: Update record Given the system has only one record with status "MSc Student" and this record has a null end date From 817b227b95c7f41788849d0fbd76399f494430e2 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Tue, 28 Oct 2014 19:46:57 -0200 Subject: [PATCH 32/34] Update Authentication.feature --- test/cucumber/Authentication.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/cucumber/Authentication.feature b/test/cucumber/Authentication.feature index 7500c595..39f338fd 100644 --- a/test/cucumber/Authentication.feature +++ b/test/cucumber/Authentication.feature @@ -7,7 +7,7 @@ Scenario: Login with user that doesn't exist fail message When I try to login with an user that does not exist Then I am redirected to the Login Page #if($Authentication Process) - And The login failure message "User doesn't exist!" is displayed + And The login failure message "User doesn't exist!" is shown. #end Scenario: Login with user's wrong password fail message @@ -15,31 +15,31 @@ Scenario: Login with user's wrong password fail message When I try to login with an existent user, though with wrong password Then I am redirected to the Login Page #if($Authentication Process) - And The login failure message "Invalid password!" is displayed + And The login failure message "Invalid password!" is shown. #end Scenario:New user register success message Given I am at the User Register Page When I register a user with success Then I am redirected to the Login Page - And A message indicating the user was successfully registered is displayed + And the message "User logged in successfully." is shown. Scenario: New user register with invalid email fail message Given I am at the Login Page When I try to create a "newuser" username with the "invalid email abcde" email - Then A message indicating the email is invalid is displayed + Then the message "Invalid e-mail!" is shown. Scenario: Try to access Member List Page without being logged in Given I am not logged When I directly access the Member List Page Then I am redirected to the Login Page - And a message indicating that the user must be logged to see the page is displayed + And the message "Only logged users can access this page." is shown. Scenario: Try to access root page without being logged in Given I am not logged When I access the Root Page Then I am redirected to the Login Page - And a message indicating that the user must be logged to see the page is displayed + And the message "Only logged users can access this page." is shown. #if ($contextualInformation) Scenario: Field University filled with "Federal University of Pernambuco" From 8045f652ad94b6709d3030e92ed607c4bac11394 Mon Sep 17 00:00:00 2001 From: fmm4 Date: Tue, 28 Oct 2014 19:57:02 -0200 Subject: [PATCH 33/34] Update Book.feature --- test/cucumber/Book.feature | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/cucumber/Book.feature b/test/cucumber/Book.feature index 83a18fc5..c334a199 100644 --- a/test/cucumber/Book.feature +++ b/test/cucumber/Book.feature @@ -42,31 +42,39 @@ Feature: Book Then the book "Book 2" is not updated by the system #end + Scenario: upload book with a file Given the system has no books stored When I upload the books of "curriculo.xml" Then the system has all the books of the xml file - + + + #if ($book) Scenario: upload book without a file Given the system has no books stored When I create a book "SPL Development" And I upload no file Then the system has no book called "SPL Development" And an error message is displayed + #end + #if ($book) Scenario: search book by tags Given the book "Redes Neurais" is stored in the system with tag "Inteligencia Artificial" And I am in the books menu When I click search button And I write "Inteligencia Artificial" in the bar Then a list containing "Redes Neurais" is displayed + #end + #if ($book) Scenario: mouse over information Given I am on the books menu When I put the mouse over a book And I wait 1 second Then a window with information about the book is displayed until I remove the mouse from over the book - + #end + #if($book) Scenario: new book web Given I am at the book page From 86d4a65f14dc08130dd03a11870ef94b63ef39ea Mon Sep 17 00:00:00 2001 From: fmm4 Date: Wed, 12 Nov 2014 09:12:16 -0300 Subject: [PATCH 34/34] Update Dissertacao.feature --- test/cucumber/Dissertacao.feature | 1 - 1 file changed, 1 deletion(-) diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature index dbc009a0..c65f251a 100644 --- a/test/cucumber/Dissertacao.feature +++ b/test/cucumber/Dissertacao.feature @@ -99,7 +99,6 @@ Feature: Dissertation Tests And I select the new dissertation option at the dissertation page And I add the dissertation with "curriculo4.png" Then the system has no new dissertation - And the system opens a window tellng me that it isnt the appropiate file type And I am back at the publications menu