add new requests for eftl debugging
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
|||||||
|
info:
|
||||||
|
name: Calcolo ore equivalenti
|
||||||
|
type: http
|
||||||
|
seq: 18
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||||
|
headers:
|
||||||
|
- name: x-requested-with
|
||||||
|
value: XMLHttpRequest
|
||||||
|
- name: x-api-key
|
||||||
|
value: "{{elixFormsWsAuthenticationToken}}"
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22737"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22224"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "23663"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||||
|
"userContext": {
|
||||||
|
"lang": "IT",
|
||||||
|
"crlf": "\r\n",
|
||||||
|
"useTestCF": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: before-request
|
||||||
|
code: |-
|
||||||
|
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||||
|
var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(String.raw`
|
||||||
|
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||||
|
|
||||||
|
[VAR name="importo" type="number"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE_ASSEGNATA,REQUEST,IUQOID[/TAG][/VAR]
|
||||||
|
[VAR name="fattore" type="number"][TAG]GETVALUEBYTAG,FATTORE_CONVERSIONE_ORE,REQUEST,IUQOID[/TAG][/VAR]
|
||||||
|
|
||||||
|
[VAR name="importo2" type="number"][TAG]SCHEMAID,709,COL0118,IUQOID, , [/TAG][/VAR]
|
||||||
|
[VAR name="fattore2" type="number"][TAG]SCHEMAID,709,COL0120,IUQOID, , [/TAG][/VAR]
|
||||||
|
|
||||||
|
[VAR name="oreEquivalenti" type="number"][% oreEquivalenti = importo2 * fattore2; %][/VAR]
|
||||||
|
|
||||||
|
[%= importo * fattore %]
|
||||||
|
[%= crlf %]
|
||||||
|
[%= oreEquivalenti %]
|
||||||
|
[/EFTL]
|
||||||
|
`));
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
+69
@@ -0,0 +1,69 @@
|
|||||||
|
info:
|
||||||
|
name: Recupero importo richiedente da proposta
|
||||||
|
type: http
|
||||||
|
seq: 17
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||||
|
headers:
|
||||||
|
- name: x-requested-with
|
||||||
|
value: XMLHttpRequest
|
||||||
|
- name: x-api-key
|
||||||
|
value: "{{elixFormsWsAuthenticationToken}}"
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22737"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22224"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "23663"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||||
|
"userContext": {
|
||||||
|
"lang": "IT",
|
||||||
|
"crlf": "\r\n",
|
||||||
|
"useTestCF": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: before-request
|
||||||
|
code: |-
|
||||||
|
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||||
|
var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(String.raw`
|
||||||
|
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||||
|
|
||||||
|
[VAR name="codiceFiscaleRichiedente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||||
|
[VAR name="ripartizioniIterable" type="iterable"][SPLIT regex="#"][TAG]GETVALUEBYTAG,COPPIE_RIPARTIZIONI,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]
|
||||||
|
|
||||||
|
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||||
|
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||||
|
[VAR name="importoRichiedente" type="number"][% importoRichiedente = 0; %][/VAR]
|
||||||
|
|
||||||
|
[FOR varname="coppia" iterable="ripartizioniIterable"]
|
||||||
|
[VAR name="coppiaiIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||||
|
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaiIterable" index="firstItem" /][/VAR]
|
||||||
|
[VAR name="importo" type="number"][VALUE_OF varname="coppiaiIterable" index="secondItem" /][/VAR]
|
||||||
|
|
||||||
|
[IF]
|
||||||
|
[CONDITION][% codiceFiscale == codiceFiscaleRichiedente %][/CONDITION]
|
||||||
|
[THEN][% importoRichiedente = importo; %][/THEN]
|
||||||
|
[/IF]
|
||||||
|
[/FOR]
|
||||||
|
|
||||||
|
[%= importoRichiedente %]
|
||||||
|
[/EFTL]
|
||||||
|
`));
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
info:
|
||||||
|
name: TEST ordine GetValueByTag
|
||||||
|
type: http
|
||||||
|
seq: 16
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||||
|
headers:
|
||||||
|
- name: x-requested-with
|
||||||
|
value: XMLHttpRequest
|
||||||
|
- name: x-api-key
|
||||||
|
value: "{{elixFormsWsAuthenticationToken}}"
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22737"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "22224"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "23258"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||||
|
"userContext": {
|
||||||
|
"lang": "IT",
|
||||||
|
"crlf": "\r\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: before-request
|
||||||
|
code: |-
|
||||||
|
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||||
|
var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(String.raw`
|
||||||
|
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||||
|
|
||||||
|
[VAR name="lastUpdatedNominativo" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||||
|
[VAR name="lastUpdatedImporto" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||||
|
|
||||||
|
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||||
|
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||||
|
|
||||||
|
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="lastUpdatedNominativo" /][/SPLIT][/VAR]
|
||||||
|
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||||
|
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||||
|
|
||||||
|
[%= lastUpdatedNominativoCF + ":" + lastUpdatedImporto %]
|
||||||
|
[/EFTL]
|
||||||
|
`));
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
Reference in New Issue
Block a user