Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ddbe833
New and modified scenarios in Funder and Member features
cb16 Oct 27, 2014
6a68595
Create Publication.feature
gabrielamota29 Oct 27, 2014
10b724f
Update and rename Publication.feature to Publicacao.feature
gabrielamota29 Oct 27, 2014
612936f
Update Article.feature
gabrielamota29 Oct 27, 2014
b913d7d
Update Article.feature
gabrielamota29 Oct 27, 2014
92de7d4
Update Article.feature
gabrielamota29 Oct 28, 2014
0cf5a3f
Book GUI scenarios added
Oct 29, 2014
4f0160a
Articles Features modified
Oct 29, 2014
0440dff
Dissertation GUI scenarios modified
Oct 29, 2014
4c84b90
Dissertation Controller scenarios modified
Oct 29, 2014
129ffeb
Update Publicacao.feature
gabrielamota29 Oct 29, 2014
85ace63
Update Article.feature
gabrielamota29 Oct 29, 2014
e42a2ef
Update Dissertacao.feature
viniciusmlira Oct 29, 2014
fae0c0c
Update Thesis.feature
viniciusmlira Oct 29, 2014
cbc72e8
Update Thesis.feature
viniciusmlira Oct 29, 2014
f03cf2f
Update Thesis.feature
viniciusmlira Oct 29, 2014
2245fb9
Update Publicacao.feature
viniciusmlira Oct 29, 2014
162921f
Update Dissertacao.feature
viniciusmlira Oct 29, 2014
843ad93
Introdução da classe magazine publication, testes no site não estão s…
gabrielamota29 Nov 11, 2014
d5774f5
Book GUI Test Steps added
Nov 12, 2014
9b419f4
Duplicate test removed
Nov 13, 2014
2b740e4
Update ThesisSteps.groovy
viniciusmlira Nov 13, 2014
8e13e05
Criação e modificação de cenários
rjoSooares Nov 21, 2014
c9cb68f
fixed scenario: upload dissertation without a file
Nov 22, 2014
025d563
Scenario test: Delete dissertation
Nov 22, 2014
bb8dc8b
Implementação dos Testes
rjoSooares Nov 22, 2014
f8c7a33
Update DissertacaoSteps.groovy
viniciusmlira Nov 22, 2014
03da0d5
Update ThesisSteps.groovy
viniciusmlira Nov 22, 2014
1cdb70d
Merge branch 'jonas'
Nov 23, 2014
453670d
Merge remote-tracking branch 'remotes/origin/Rodolfo'
Nov 23, 2014
8e21947
Merge with Vinicius Branch
Nov 23, 2014
564a657
Merge remote-tracking branch 'remotes/origin/cscbb'
Nov 23, 2014
8f586ef
Introdução da classe magazine publication com as classes outras neces…
gabrielamota29 Nov 23, 2014
b2eaf0c
Merge branches 'Gabs' and 'master' of https://github.com/brilacerda/r…
gabrielamota29 Nov 23, 2014
799281a
Merge branches 'Gabs' and 'master' of https://github.com/brilacerda/rgms
gabrielamota29 Nov 23, 2014
7b2fd56
Merge branch 'Gabs'
gabrielamota29 Nov 23, 2014
95ad3b0
Book marks added
Nov 24, 2014
ef71fee
Scenario 1 redefinido - Gabriela
gabrielamota29 Dec 3, 2014
e0b080f
Scenario 2 redefinido - Gabriela
gabrielamota29 Dec 3, 2014
6cbdf7f
Update Book.feature
gabrielamota29 Dec 11, 2014
78d7a93
O professor me passou que a classe magazine publication já estava imp…
gabrielamota29 Dec 29, 2014
cc2299b
Merge remote-tracking branch 'origin/Gabs' into Gabs
gabrielamota29 Dec 29, 2014
e12521a
Implementação de alguns steps pra o funcionamento dos testes. Sem suc…
gabrielamota29 Dec 29, 2014
d6d4024
$updateExistingBookWeb
gabrielamota29 Jan 19, 2015
9d540bf
Correção dos erros dos testes de BookSteps e adaptação de Book.feature
gabrielamota29 Jan 19, 2015
13a112a
Todos os testes criados para Book.feature incluindo os criados por mi…
gabrielamota29 Jan 20, 2015
d842158
new Books steps added
Jan 21, 2015
567777d
Merge remote-tracking branch 'origin/jonas' into jonas
Jan 21, 2015
6c889a8
Merge remote-tracking branch 'remotes/origin/jonas'
Jan 21, 2015
dec7a3b
Update Book.feature
gabrielamota29 Jan 21, 2015
82d0ff3
Continuo tentando resolver o conflito de merge no Book.feature
gabrielamota29 Jan 21, 2015
20fb3fe
Merge branch 'Gabs' of https://github.com/brilacerda/rgms into Gabs
gabrielamota29 Jan 21, 2015
24911d4
Testing
Feb 2, 2015
7b68697
Merge branch 'jonas'
Feb 2, 2015
d2f41b8
Function checkIfExists matches its title-behavior now
Feb 6, 2015
aded966
Functions moved to the end of page
Feb 6, 2015
df875d9
Functions moved to the end of page
Feb 6, 2015
919bf75
Merge remote-tracking branch 'remotes/origin/jonas'
Feb 6, 2015
2fe5b43
Removed duplicates by checkIfExists equivalent placements and others
Feb 7, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Grails Metadata file
#Thu Jun 06 10:16:12 GMT-03:00 2013
#Mon Oct 27 15:36:21 GMT-03:00 2014
app.grails.version=2.1.0
app.name=rgms
app.servlet.version=2.5
Expand Down
16 changes: 16 additions & 0 deletions grails-app/domain/rgms/member/Orientation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ class Orientation {

}

static public def isFiltered(orientations,typeof) {
for (orientation in orientations) {
if(!(orientation.tipo).contains(typeof))
return false
}
return true
}

static public def isFiltered(orientations,supervised, tipo) {
for (orientation in orientations) {
if(!(orientation.orientador).contains(supervised))
return false
}
return true
}

String toString() {
return "Titulo = " + this.tituloTese + "; Orientador = " + this.orientador + "; Orientando: " + this.orientando
}
Expand Down
24 changes: 24 additions & 0 deletions grails-app/domain/rgms/publication/MagazinePublication.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package rgms.publication


/**
* Created by Gabriela on 10-Nov-14.
*/
class MagazinePublication{
String name
int number
String page
String place
String month
int year

static belongsTo = Periodico

static constraints = {name nullable: false, blank: false, size: 1..50
number blank: true, size: 1..3
page nullable: true
place nullable: false
month nullable: true
year nullable: false
}
}
2 changes: 2 additions & 0 deletions grails-app/domain/rgms/publication/Periodico.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ class Periodico extends Publication {
int volume
int number
String pages
MagazinePublication magPublication

static constraints = {
journal nullable: false, blank: false
volume nullable: false, blank: false, min: 1
number nullable: false, blank: false, min: 1
pages nullable: false, blank: false
magPublication nullable: true, blank: true
}

//#if($Bibtex)
Expand Down
2 changes: 2 additions & 0 deletions grails-app/domain/rgms/publication/Publication.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ abstract class Publication {
Date publicationDate
String file
ResearchLine researchLine
MagazinePublication magPublication

static belongsTo = Member
static hasMany = [members: Member, authors: String]
Expand All @@ -18,6 +19,7 @@ abstract class Publication {
file maxSize: 100000, nullable: true, blank: true
researchLine nullable: true, blank: true
authors nullable: true, blank: true
magPublication nullable: true, blank: true
}

//#if($Bibtex)
Expand Down
3 changes: 3 additions & 0 deletions grails-app/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,6 @@ default.researchproject.import.flashmessage.success = "The non existent Research
#if($researchLine)
default.researchline.import.flashmessage.success = "The non existent Research Line were successfully imported"
#end

#if($magazinePublication)
magazinePublication.label = "Magazine Publication"
5 changes: 5 additions & 0 deletions grails-app/i18n/messages_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,9 @@ default.researchproject.import.flashmessage.success = "Os Projetos de Pesquisa n

#if($researchLine)
default.researchline.import.flashmessage.success = "As linhas de pesquisa que não existiam foram importadas com sucesso"
#end

#if($MagazinePublication)
magazinePublication.label = "Publicação em revista"

#end
41 changes: 40 additions & 1 deletion test/cucumber/Article.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,32 @@ Feature: journal article

Scenario: new article web
Given I am at the publications menu
And I want to add a new article
Then I can fill the article details

Scenario: new article web
Given I am at the publications menu
When I select the "Periodico" option at the publications menu
And I select the new article option at the article page
Then I can fill the article details

#if ($publicationInformationController)
Scenario: new article web with publication
Given I am at the article page
And I want to add a new article
Then I can fill the article details
And It may include the "publication" information
#end

#if ($publicationInformation)
Scenario: new article web with publication
Given I am at the article page
When I select the "Periodico" option
And I select the 'new article' option
Then I can fill the article details
And It may include the option "publication" information
#end

Scenario: remove existing article
Given the system has article entitled "A theory of software product line refinement" with file name "TCS-44.pdf"
When I delete the article "A theory of software product line refinement"
Expand Down Expand Up @@ -101,7 +123,24 @@ Feature: journal article
When I share the article entitled "A theory of software product line refinement" on facebook
Then A facebook message was posted

Scenario: Post an existing article on facebook web
#if ($postPublicationInformation)
Scenario: Post an existing article publication on facebook web
Given I am at the articles page and the article "A theory of software product line refinement 3" is stored in the system with file name "TCS-04.pdf"
When I select to view "A theory of software product line refinement 3" in resulting list
And I choose to share the "Publicacao" of this article on Facebook
And I click on 'Share publicacao' on Facebook
Then A facebook message is posted
#end

#if ($postPublicationInformationController)
Scenario: Post an existing article publication on facebook web
Given I am at the articles page and the article "A theory of software product line refinement 3" is stored in the system with file name "TCS-04.pdf"
When I choose to share the "Publicacao" of this article on Facebook
And I go to this section in the page and click on share
Then A facebook message is posted
#end

Scenario: Post an existing article on facebook web
Given I am at the articles page and the article "A theory of software product line refinement 3" is stored in the system with file name "TCS-04.pdf"
When I select to view "A theory of software product line refinement 3" in resulting list
And I click on Share on Facebook
Expand Down
16 changes: 15 additions & 1 deletion test/cucumber/Book.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,18 @@ 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"
Then the book "Next Generation Software Product Line Engineering" was stored by the system
Then the book "Next Generation Software Product Line Engineering" was stored by the system

Scenario: remove existing book web
Given I am at the book page
And the system has the book entitled "Next Generation Software Product Line Engineering" with file name "Ngs.pdf"
When I choose to view "Next Generation Software Product Line Engineering" in book list
And I press to remove at the book show page
Then the book "Next Generation Software Product Line Engineering" is removed from the system

Scenario: list existing book web
Given I am at the book page
And the system has the book entitled "Next Generation Software Product Line Engineering" with file name "Ngs.pdf"
Then the book list contains "Next Generation Software Product Line Engineering"


14 changes: 13 additions & 1 deletion test/cucumber/BookChapter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: BookChapter

Scenario: new book chapter
Given the system has no book chapter entitled "SPL Development"
When I create the book chapter "SPL Development" with file name "HSPLE.pdf"
When I create the book chapter "SPL Development" with file name "HSPLE.pdf" and publication date "21/11/2014"
Then the book chapter "SPL Development" is properly stored by the system

Scenario: duplicate book chapter
Expand Down Expand Up @@ -72,3 +72,15 @@ Feature: BookChapter
And I select the upload button at the book chapter page
Then I'm still on book chapter page
And the book chapters are not stored by the system

Scenario: filter existing book chapter by title
Given the system has some book chapter entitled by "Next Generation Software Product Line Engineering"
When the system filter the book chapter entitled by title "Next Generation Software Product Line Engineering"
Then the system book chapter list content is not modified

Scenario: filter existing book chapter by title web
Given I am at the book chapter page
And I create some book chapter entitled by "Next Generation Software Product Line Engineering"
When I select to view the list of book chapters
And I select to filter the list of book chapter by title "Next Generation Software Product Line Engineering"
Then my book chapter list shows only the book chapters entitled by "Next Generation Software Product Line Engineering"
44 changes: 26 additions & 18 deletions test/cucumber/Dissertacao.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Feature: Dissertation Tests

Scenario: new dissertation duplicated
Given the dissertation "Dissertation duplicated" is stored in the system with file name "Dissertationduplicated.txt"
When I create the dissertation "Dissertation duplicated" with file name "Dissertationduplicated2.txt" and school "UFPE"
When I create the dissertation "Dissertation duplicated" with file name "Dissertationduplicated2.txt"
Then the dissertation "Dissertation duplicated" is not stored twice

Scenario: new dissertation without file
Expand All @@ -39,12 +39,7 @@ Feature: Dissertation Tests
And I cant add the dissertation without a file
Then the system has no dissertation entitled "Dissertacao sem arquivo"

Scenario: upload a dissertation and system has no dissertation stored
Given the system has no dissertation entitled "New dissertation"
When I upload a new dissertation "curriculo4.xml" with title "New dissertation"
Then the system has more dissertations now

Scenario: new dissertation with file
Scenario: new dissertation with file
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
Expand All @@ -58,18 +53,16 @@ Feature: Dissertation Tests
Then the dissertation "Edit dissertation" is properly updated by the system

Scenario: delete dissertation
Given the dissertation "Delete dissertation" is stored in the system with file name "Deletedissertation.txt"
Given I am at the publications menu
When I select the "Dissertacao" option at the program menu
And I select "Delete dissertation" at the dissertation page
And I delete "Delete dissertation"
Then the system has no dissertation entitled "Delete dissertation"
Given I am at the dissertation page
And the dissertation named "Dissertation One" is stored in the system
When I select "Dissertation One" at the dissertation list
And I press to remove "Delete dissertation" at the dissertation show page
Then the system has no dissertation entitled "Dissertation One"

Scenario: upload dissertation without a file
Given I am at the publications menu
When I select the "Dissertacao" option at the program menu
And I select the upload button at the dissertation page
Then I'm still on dissertation page
Given I am at the dissertation page
And I select the upload button with no file selected
Then I stay on dissertation page with an error message

Scenario: upload dissertation with a file
Given the system has some dissertation stored
Expand All @@ -90,4 +83,19 @@ 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
#end

#if($addDisertacao)

Scenario: add "Dissertacao"'s Supervisor
Given I am at the "Dissetação" page
And the system has no dissertation entitled "New dissertation"
When I create the dissertation "New dissertation" with file name "Newdissertation.txt"
And school "UFPE"
And the supervisor "Silvio Melo"
Then the dissertation "New dissertation" is properly stored by the system
#end

#Issue - vml
#A unificação da linguagem do formulário é bastante útil
#pois padroniza o uso do software e evita possíveis ambiguidades e erros
15 changes: 15 additions & 0 deletions test/cucumber/Funder.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,23 @@ Feature: Funder
Given the system has funder with code "12345"
When I create a funder with code "12345"
Then there is only one funder with code "12345" in the system

#if($listFunders)
Scenario: list existing funder
Given the system has a funder with code "12345"
When I view the funder list
Then my list funders contains funder "12345"
#end

Scenario: new funder web
Given I am at the create funder page
When I fill the funder code with "12345"
Then the funder with code "12345" is properly stored by the system

#if($duplicateFunderWeb)
Scenario: duplicate funder web
Given I am at the create funder page
When I fill the funder code with "12345"
Then the funder with code "12345" is not stored
And I am still at the create funder page
#end
57 changes: 57 additions & 0 deletions test/cucumber/MagazinePublication.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@i9n
Feature: "MagazinePublication"
As a member of a research group
I want to add, remove and modify where my publications were published

Scenario: new magazine publication
Given The article has no magazine with title "Theoretical Computer Science"
When I try to create a magazine publication as "Theoretical Computer Science"
And publication number "21"
And publication place "São Paulo"
And publication year "2013"
Then the "Theoretical Computer Science" is properly stored by the system

Scenario: new magazine publication web
Given my article was published in the magazine
And I am at Article Page
And its name is "Theoretical Computer Science"
And publication number "21"
And publication page "43-59"
And publication place "São Paulo"
And publication month "Julho"
And publication year "2013"
When I click on New Publication Spot
Then the magazine publication is properly stored by the system
#Format content to "Theoretical Computer Science, São Paulo, n. 2, p. 43-59, jul/2000.’
#dado que a publicação na revista tem um formato, foi especificado nessa última linha

Scenario: edit magazine publication page
Given I have a magazine publication entitled "Theoretical Computer Science"
When I want to add or correct the page field
Then I can edit and save the information

Scenario: edit magazine publication page web
Given I am at Article Page
And I have a magazine publication entitled "Theoretical Computer Science"
And I want to correct the page field
When I click on 'edit' on the section ‘This article was published in:’
Then I have all the fields filled in
And I can edit the page or any of the fields
And I store it

####vml#####

#if($uploadPublicacao)
Scenario: make the upload of the PDF presentation in "Publicacao"
Given I am at Article Page
And I want to upload the "Publicacao.pdf" file
When I choose the file by browsing it
Then The file is properly stored
#end

#if($uploadPublicacao)
Scenario: make the upload of the PDF presentation in "Publicacao" web
Given I want to upload the PDF presentation "Publicacao.pdf"
When I choose "Publicacao.pdf" file
Then I see it on the list
#end
Loading