Skip to content

Commit

Permalink
Corrette le verifiche nel test
Browse files Browse the repository at this point in the history
  • Loading branch information
nardil committed Sep 18, 2019
1 parent 99cdd9f commit 39419aa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ Examples:

Scenario: Ricerca pendenze da utente SPID

# idPendenza_Rossi_DOM1_SEGRETERIA_NONESEGUITO_idA2A
# idPendenza_Rossi_DOM1_SEGRETERIA_ESEGUITO_idA2A
# idPendenza_Rossi_DOM1_LIBERO_NONESEGUITO_idA2A
# idPendenza_Rossi_DOM1_LIBERO_ESEGUITO_idA2A
# idPendenza_Rossi_DOM1_SPONTANEO_NONESEGUITO_idA2A
# idPendenza_Rossi_DOM1_SPONTANEO_ESEGUITO_idA2A
# idPendenza_Verdi_DOM2_LIBERO_NONESEGUITO_idA2A
# idPendenza_Verdi_DOM2_LIBERO_ESEGUITO_idA2A
# idPendenza_Verdi_DOM1_SPONTANEO_NONESEGUITO_idA2A
# idPendenza_Verdi_DOM1_SPONTANEO_ESEGUITO_idA2A
# idPendenza_Rossi_DOM1_SEGRETERIA_NONESEGUITO_idA2A2
# idPendenza_Rossi_DOM1_SEGRETERIA_ESEGUITO_idA2A2
# idPendenza_Rossi_DOM1_LIBERO_NONESEGUITO_idA2A2
# idPendenza_Rossi_DOM1_LIBERO_ESEGUITO_idA2A2
# idPendenza_Rossi_DOM1_SPONTANEO_NONESEGUITO_idA2A2
# idPendenza_Rossi_DOM1_SPONTANEO_ESEGUITO_idA2A2
# idPendenza_Verdi_DOM2_LIBERO_NONESEGUITO_idA2A2
# idPendenza_Verdi_DOM2_LIBERO_ESEGUITO_idA2A2
# idPendenza_Verdi_DOM1_SPONTANEO_NONESEGUITO_idA2A2
# idPendenza_Verdi_DOM1_SPONTANEO_ESEGUITO_idA2A2

Given url pagamentiBaseurl
And path '/pendenze'
Expand All @@ -44,21 +64,19 @@ And match response.risultati[0].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SPONT
And match response.risultati[1].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_ESEGUITO_idA2A2)'
And match response.risultati[2].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_NONESEGUITO_idA2A2)'
And match response.risultati[3].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SEGRETERIA_ESEGUITO_idA2A2)'
And match response.risultati[4].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SEGRETERIA_NONESEGUITO_idA2A2)'
And match response.risultati[5].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SPONTANEO_ESEGUITO_idA2A)'
And match response.risultati[6].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_ESEGUITO_idA2A)'
And match response.risultati[7].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_NONESEGUITO_idA2A)'
And match response.risultati[8].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SEGRETERIA_ESEGUITO_idA2A)'
And match response.risultati[9].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SEGRETERIA_NONESEGUITO_idA2A)'
And match response.risultati[4].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SPONTANEO_ESEGUITO_idA2A)'
And match response.risultati[5].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_ESEGUITO_idA2A)'
And match response.risultati[6].idPendenza == '#(""+ idPendenza_Rossi_DOM1_LIBERO_NONESEGUITO_idA2A)'
And match response.risultati[7].idPendenza == '#(""+ idPendenza_Rossi_DOM1_SEGRETERIA_ESEGUITO_idA2A)'
And match response ==
"""
{
numRisultati: 12,
numRisultati: 8,
numPagine: 1,
risultatiPerPagina: 25,
pagina: 1,
prossimiRisultati: '##null',
risultati: '#[12]'
risultati: '#[8]'
}
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Scenario: Riconciliazione singola IUV non ISO
* def tipoRicevuta = "R01"
* def riversamentoCumulativo = "false"
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento.feature')
* call sleep(1000)
* call read('classpath:utils/nodo-genera-rendicontazioni.feature')

* def importo = response.response.rh[0].importo
Expand All @@ -53,6 +54,7 @@ Then status 201
* def tipoRicevuta = "R01"
* def riversamentoCumulativo = "false"
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento.feature')
* call sleep(1000)
* call read('classpath:utils/nodo-genera-rendicontazioni.feature')

* def importo = response.response.rh[0].importo
Expand Down Expand Up @@ -84,6 +86,7 @@ Then status 201
* def importo2 = importo

* call read('classpath:utils/nodo-genera-rendicontazioni.feature')
* call sleep(1000)
* def importo = response.response.rh[0].importo
* def causale = response.response.rh[0].causale

Expand Down Expand Up @@ -115,6 +118,7 @@ Then status 201
* def importo2 = importo

* call read('classpath:utils/nodo-genera-rendicontazioni.feature')
* call sleep(1000)
* def importo = response.response.rh[0].importo
* def causale = response.response.rh[0].causale

Expand All @@ -140,7 +144,7 @@ Then status 201
* def tipoRicevuta = "R01"
* def riversamentoCumulativo = "false"
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento-dominio2.feature')

* call sleep(1000)
Given url ndpsym_rendicontazioni_url
And path 'genera', idDominio_2
When method get
Expand All @@ -166,7 +170,7 @@ Then status 201
* def tipoRicevuta = "R01"
* def riversamentoCumulativo = "false"
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento-dominio2.feature')

* call sleep(1000)
Given url ndpsym_rendicontazioni_url
And path 'genera', idDominio_2
When method get
Expand Down Expand Up @@ -199,7 +203,7 @@ Then status 201
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento-dominio2.feature')
* def iuv2 = iuv
* def importo2 = importo

* call sleep(1000)
Given url ndpsym_rendicontazioni_url
And path 'genera', idDominio_2
When method get
Expand Down Expand Up @@ -234,7 +238,7 @@ Then status 201
* call read('classpath:utils/workflow/modello3/v1/modello3-pagamento-dominio2.feature')
* def iuv2 = iuv
* def importo2 = importo

* call sleep(1000)
Given url ndpsym_rendicontazioni_url
And path 'genera', idDominio_2
When method get
Expand Down

0 comments on commit 39419aa

Please sign in to comment.