2022-06-20 17:19:38 +00:00
|
|
|
# Artillery.io config, run with
|
|
|
|
# npx artillery run artilleryio-config.yaml
|
|
|
|
|
|
|
|
scenarios:
|
|
|
|
- name: 'Evaluate'
|
|
|
|
flow:
|
|
|
|
- post:
|
|
|
|
url: '/evaluate'
|
|
|
|
headers: { 'content-type': 'application/json' }
|
|
|
|
body: |
|
|
|
|
{
|
|
|
|
"expressions": [
|
2022-05-24 17:00:18 +00:00
|
|
|
"salarié . coût total employeur",
|
|
|
|
"salarié . rémunération . net . à payer avant impôt",
|
|
|
|
"salarié . rémunération . net . payé après impôt"
|
2022-06-20 17:19:38 +00:00
|
|
|
],
|
|
|
|
"situation": {
|
|
|
|
"dirigeant": "non",
|
2023-02-02 12:11:28 +00:00
|
|
|
"entreprise . catégorie juridique": "''",
|
2022-06-20 17:19:38 +00:00
|
|
|
"entreprise . imposition": "non",
|
2022-05-24 17:00:18 +00:00
|
|
|
"salarié . activité partielle": "non",
|
2022-06-20 17:19:38 +00:00
|
|
|
"impôt . méthode de calcul . par défaut": {
|
|
|
|
"variations": [
|
|
|
|
{
|
2022-05-24 17:00:18 +00:00
|
|
|
"si": "salarié . contrat . salaire brut <= 6000 €/mois",
|
2022-06-20 17:19:38 +00:00
|
|
|
"alors": "'taux neutre'"
|
|
|
|
},
|
|
|
|
{ "sinon": "'barème standard'" }
|
|
|
|
]
|
|
|
|
},
|
2022-05-24 17:00:18 +00:00
|
|
|
"salarié . contrat . salaire brut": {
|
2022-06-20 17:19:38 +00:00
|
|
|
"valeur": {{$randomNumber(1000,10000)}},
|
2023-12-14 09:54:17 +00:00
|
|
|
"unité": "€/mois"
|
2022-06-20 17:19:38 +00:00
|
|
|
},
|
2022-05-24 17:00:18 +00:00
|
|
|
"salarié . contrat": "'CDD'",
|
|
|
|
"salarié . contrat . CDD . durée": {
|
2022-06-20 17:19:38 +00:00
|
|
|
"explanation": {
|
|
|
|
"type": "number",
|
|
|
|
"fullPrecision": true,
|
|
|
|
"isNullable": false,
|
|
|
|
"missingVariables": {},
|
|
|
|
"nodeValue": 6,
|
|
|
|
"nodeKind": "constant",
|
|
|
|
"rawNode": { "constant": { "type": "number", "nodeValue": 6 } }
|
|
|
|
},
|
|
|
|
"unit": { "numerators": ["mois"], "denominators": [] },
|
|
|
|
"nodeKind": "unité",
|
|
|
|
"rawNode": "6 mois"
|
|
|
|
},
|
2022-05-24 17:00:18 +00:00
|
|
|
"salarié . contrat . CDD . congés pris": {
|
2022-06-20 17:19:38 +00:00
|
|
|
"explanation": {
|
|
|
|
"type": "number",
|
|
|
|
"fullPrecision": true,
|
|
|
|
"isNullable": false,
|
|
|
|
"missingVariables": {},
|
|
|
|
"nodeValue": 0,
|
|
|
|
"nodeKind": "constant",
|
|
|
|
"rawNode": { "constant": { "type": "number", "nodeValue": 0 } }
|
|
|
|
},
|
|
|
|
"unit": { "numerators": ["jour ouvré"], "denominators": [] },
|
|
|
|
"nodeKind": "unité",
|
|
|
|
"rawNode": "0 jours ouvrés"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
config:
|
|
|
|
http:
|
|
|
|
timeout: 30
|
|
|
|
target: https://mon-entreprise.urssaf.fr/api/v1
|
|
|
|
phases:
|
|
|
|
- duration: 1
|
|
|
|
arrivalRate: 1
|
|
|
|
name: Test
|
|
|
|
- duration: 600
|
|
|
|
arrivalRate: 5
|
|
|
|
name: Warm up
|
|
|
|
- duration: 600
|
|
|
|
arrivalRate: 15
|
|
|
|
name: Ramp up load
|
|
|
|
- duration: 600
|
|
|
|
arrivalRate: 30
|
|
|
|
name: Sustained load
|