Souci Scenario via API en ERROR

Bonjour,

je reviens vers vous car j’ai un souci pour lancer des scenarios via API

je lance un test avec swagger
exemple :

curl -X POST "http://192.168.31.14:8081/api/v1/audit/runS" \
-H "accept: */*" \
-H "Content-Type: application/json" \
-d "{ \"name\": \"Scenario1 v2\", \"scenario\": \"Scenario1 v2\", \"referential\": \"RGAA_4_0\", \"level\": \"AA\", \"contractId\": 2, \"tags\": []}"

mais ils sont tous en error , alors que le même scenario lancer via l’interface Web pas de souci ???

je pense que j’ai un souci de paramètres ?? mais le quelle

merci pour vous retour

Bonjour Jonathan,

Merci pour ce retour. Tu es sur une version 5.0.0-rc.1 ?

@fabrice un avis ?

Oui version 5.0.0-rc.1 Docker

source ici : 5.x/5.0.y/5.0.0-rc.1/all-5.0.0-rc.1_ubuntu-18.04 · main · asqatasun / asqatasun-docker · GitLab

Bonjour

En fait, l’api n’est pas branchée sur les scenarios deja enregistrés depuis l’interface.

Ce qui veut dire qu’ici, il ne faut pas envoyer une reference au scenario que l’on veut executer, mais bien le contenu du scenario dans le json.

Cela pourra faire l’objet d’un dev futur

Ok, c’est une info importante

Donc dans la parti scenario je dois copier coller le json complet directement.
en mode string si je comprend bien.
je vais faire des tests

oui comme évolution cela serai bien d’avoir une autre API qui joue déjà les scénario en Base enregistre via l’interface web :wink: ou autre

merci pour vos retour

Bon j’ai une error

{“timestamp”:“2022-02-04T10:12:19.591+0000”,“status”:400,“error”:“Bad Request”,“message”:“JSON parse error: Unexpected character (‘i’ (code 105)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (‘i’ (code 105)): was expecting comma to separate Object entries\n at [Source: (PushbackInputStream); line: 1, column: 52]”,“path”:"/api/v1/audit/runS"}

je pense que c’est un souci de caractères non échapper dans mon String json
je continue mes test pour avoir un bon format json en string

Bon la je comprend pas trop

mon scenario ce lance le je vois coté Web mais toujours error
je pense que cela viens du json en String …
mais je vois pas pourquoi ?

@jonathan peux-tu copier/coller ici l’appel vers l’API ? Et le log que cela déclenche ?

Voici l’appel

je pense vraiment que j’ai mal mis on json en string ?

curl -o -X POST http://admin%40asqatasun.org:myAsqaPassword@192.168.31.14:8081/api/v1/audit/runS \
-H accept: */* \
-H Content-Type: application/json  \
-d {"name": "Scenario2 Constrat API", "scenario": "{'id':'3e711cfb-c728-4edf-8221-e26f2898f19c','version':'2.0','name':'REvuecontrast','url':'https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true','tests':[{'id':'3915806b-4ef5-4b11-8ab6-1cc973dafde1','name':'contrate','commands':[{'id':'c01b888d-ef73-49a6-ade6-16d54e3344b4','comment':'','command':'open','target':'https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true','targets':[],'value':''},{'id':'e9760d19-ef38-45be-af18-ce11c4f54740','comment':'','command':'setWindowSize','target':'1555x777','targets':[],'value':''},{'id':'5d688067-0dde-4243-a501-85437821b1ee','comment':'','command':'click','target':'xpath=//div[@id='mainTagId']/app-purposes/main/div[2]/div/div/div/header/h3','targets':[['css=.cards:nth-child(1)>.cards-header>.main-color','css:finder'],['xpath=//div[@id='mainTagId']/app-purposes/main/div[2]/div/div/div/header/h3','xpath:idRelative'],['xpath=//h3','xpath:position'],['xpath=//h3[contains(.,'INSTITUT')]','xpath:innerText']],'value':''},{'id':'f97d942b-c3de-442d-87d8-63178ac28bfd','comment':'','command':'click','target':'xpath=//div[@id='ariacontrolgrppurpose0']/ul/li[2]/div/div/div/div','targets':[['css=#ariacontrolgrppurpose0.row:nth-child(2).form-group>.row','css:finder'],['xpath=//div[@id='ariacontrolgrppurpose0']/ul/li[2]/div/div/div/div','xpath:idRelative'],['xpath=//li[2]/div/div/div/div','xpath:position']],'value':''},{'id':'f2fb0c6e-9c21-42be-adad-230cae3b4a2b','comment':'','command':'click','target':'xpath=//li[@id='gridSlots_0_0']/div','targets':[['css=#gridSlots_0_0>.slot-header','css:finder'],['xpath=//li[@id='gridSlots_0_0']/div','xpath:idRelative'],['xpath=//div/div/div/div/ul/li/div','xpath:position']],'value':''},{'id':'b2540f9d-2815-48c6-aaec-03f6e26ce5cb','comment':'','command':'click','target':'id=mat-input-4','targets':[['id=mat-input-4','id'],['css=#mat-input-4','css:finder'],['xpath=//input[@id='mat-input-4']','xpath:attributes'],['xpath=//div[@id='cdk-accordion-child-1']/div/div/mat-form-field/div/div/div/input','xpath:idRelative'],['xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input','xpath:position']],'value':''},{'id':'4589cb7a-c2ec-4717-bcf2-2b39a6395bb5','comment':'','command':'type','target':'id=mat-input-4','targets':[['id=mat-input-4','id'],['css=#mat-input-4','css:finder'],['xpath=//input[@id='mat-input-4']','xpath:attributes'],['xpath=//div[@id='cdk-accordion-child-1']/div/div/mat-form-field/div/div/div/input','xpath:idRelative'],['xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input','xpath:position']],'value':'34000'},{'id':'976ddfd0-7156-4eed-be88-3d57b00461e4','comment':'','command':'click','target':'id=mat-input-5','targets':[['id=mat-input-5','id'],['css=#mat-input-5','css:finder'],['xpath=//input[@id='mat-input-5']','xpath:attributes'],['xpath=//div[@id='cdk-accordion-child-2']/div/div/mat-form-field/div/div/div/input','xpath:idRelative'],['xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input','xpath:position']],'value':''},{'id':'551762dd-50ba-415e-bf76-ad29b739557e','comment':'','command':'type','target':'id=mat-input-5','targets':[['id=mat-input-5','id'],['css=#mat-input-5','css:finder'],['xpath=//input[@id='mat-input-5']','xpath:attributes'],['xpath=//div[@id='cdk-accordion-child-2']/div/div/mat-form-field/div/div/div/input','xpath:idRelative'],['xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input','xpath:position']],'value':'test@esii.com'},{'id':'19e71549-52c1-4070-a227-040c7d8d8151','comment':'','command':'click','target':'xpath=//mat-checkbox[@id='mat-checkbox-1']/label/span','targets':[['css=.mat-checkbox-inner-container-no-side-margin','css:finder'],['xpath=//mat-checkbox[@id='mat-checkbox-1']/label/span','xpath:idRelative'],['xpath=//div[2]/div/mat-checkbox/label/span','xpath:position']],'value':''},{'id':'60ef21ba-f65d-4066-ae01-8665846d2dba','comment':'','command':'click','target':'xpath=//div[@id='mainTagId']/app-identity/main/section/div/div','targets':[['css=.pull-l4','css:finder'],['xpath=//div[@id='mainTagId']/app-identity/main/section/div/div','xpath:idRelative'],['xpath=//section/div/div','xpath:position']],'value':''},{'id':'aca3fea9-6d97-47fb-a439-9c835fe01124','comment':'','command':'click','target':'id=userFormButtonSubmitId','targets':[['id=userFormButtonSubmitId','id'],['css=#userFormButtonSubmitId','css:finder'],['xpath=//button[@id='userFormButtonSubmitId']','xpath:attributes'],['xpath=//div[@id='mainTagId']/app-identity/main/section/div/div/form/div[2]/div/button','xpath:idRelative'],['xpath=//div[2]/div/button','xpath:position'],['xpath=//button[contains(.,'Submit')]','xpath:innerText']],'value':''},{'id':'22b6f02e-7801-47f1-a874-ed990c7ed4ff','comment':'','command':'click','target':'xpath=//section[@id='appointmentInformations']/div/div/div/div/div[2]/div/div/h3/span[2]/span','targets':[['css=.collapsable--btn>.icon-up','css:finder'],['xpath=//section[@id='appointmentInformations']/div/div/div/div/div[2]/div/div/h3/span[2]/span','xpath:idRelative'],['xpath=//span[2]/span','xpath:position']],'value':''},{'id':'abb49a7c-57ae-4b53-ab3f-0a9c4252b090','comment':'','command':'click','target':'xpath=//section[@id='appointmentInformations']/div/div/div/div/div[2]/div/div/h3','targets':[['css=.mb-2:nth-child(1)','css:finder'],['xpath=//section[@id='appointmentInformations']/div/div/div/div/div[2]/div/div/h3','xpath:idRelative'],['xpath=//h3','xpath:position']],'value':''}]}],'suites':[{'id':'7ad29093-0511-4b0e-945b-37440fa2de38','name':'DefaultSuite','persistSession':false,'parallel':false,'timeout':300,'tests':['3915806b-4ef5-4b11-8ab6-1cc973dafde1']}],'urls':['https://revue.esii-orion.com/'],'plugins':[]}", "referential": "RGAA_4_0", "level": "AA", "contractId": 2, "tags": []}

et si tu utilises le swagger?

j’ai le meme souci avec mon json dans swagger

une idée ? car la je sais pas trop

Je monte une image et on va faire un scenario partagé pour tenter de reproduire ton problème.

@jonathan OK je l’ai ! C’est soufflé dans le creux de l’oreil par @koj

Le simples quotes ' ne sont pas acceptées en JSON. Il faut des double quotes ".

Donc ton scénario (valeur passée pour le champs "scenario": ) doit comporter des double quotes, qu’il va va falloir protéger / échapper.

J’imagine qu’on doit trouver ça sur le net, ou en ligne de commande. Je regarde.

En attendant on a trouvé l’origine de l’erreur :slight_smile:

ok merci mais avec ce scenario, possible qu’il est un autre caractère qui le bloque ??

car le donne me meme résultat ><



{\"id\":\"3e711cfb-c728-4edf-8221-e26f2898f19c\",\"version\":\"2.0\",\"name\":\"Revuecontrast\",\"url\":\"https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true\",\"tests\":[{\"id\":\"3915806b-4ef5-4b11-8ab6-1cc973dafde1\",\"name\":\"contrate\",\"commands\":[{\"id\":\"c01b888d-ef73-49a6-ade6-16d54e3344b4\",\"comment\":\"\",\"command\":\"open\",\"target\":\"https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true\",\"targets\":[],\"value\":\"\"},{\"id\":\"e9760d19-ef38-45be-af18-ce11c4f54740\",\"comment\":\"\",\"command\":\"setWindowSize\",\"target\":\"1555x777\",\"targets\":[],\"value\":\"\"},{\"id\":\"5d688067-0dde-4243-a501-85437821b1ee\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//div[@id=\"mainTagId\"]/app-purposes/main/div[2]/div/div/div/header/h3\",\"targets\":[[\"css=.cards:nth-child(1)>.cards-header>.main-color\",\"css:finder\"],[\"xpath=//div[@id=\"mainTagId\"]/app-purposes/main/div[2]/div/div/div/header/h3\",\"xpath:idRelative\"],[\"xpath=//h3\",\"xpath:position\"],[\"xpath=//h3[contains(.,\"INSTITUT\")]\",\"xpath:innerText\"]],\"value\":\"\"},{\"id\":\"f97d942b-c3de-442d-87d8-63178ac28bfd\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//div[@id=\"ariacontrolgrppurpose0\"]/ul/li[2]/div/div/div/div\",\"targets\":[[\"css=#ariacontrolgrppurpose0.row:nth-child(2).form-group>.row\",\"css:finder\"],[\"xpath=//div[@id=\"ariacontrolgrppurpose0\"]/ul/li[2]/div/div/div/div\",\"xpath:idRelative\"],[\"xpath=//li[2]/div/div/div/div\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"f2fb0c6e-9c21-42be-adad-230cae3b4a2b\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//li[@id=\"gridSlots_0_0\"]/div\",\"targets\":[[\"css=#gridSlots_0_0>.slot-header\",\"css:finder\"],[\"xpath=//li[@id=\"gridSlots_0_0\"]/div\",\"xpath:idRelative\"],[\"xpath=//div/div/div/div/ul/li/div\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"b2540f9d-2815-48c6-aaec-03f6e26ce5cb\",\"comment\":\"\",\"command\":\"click\",\"target\":\"id=mat-input-4\",\"targets\":[[\"id=mat-input-4\",\"id\"],[\"css=#mat-input-4\",\"css:finder\"],[\"xpath=//input[@id=\"mat-input-4\"]\",\"xpath:attributes\"],[\"xpath=//div[@id=\"cdk-accordion-child-1\"]/div/div/mat-form-field/div/div/div/input\",\"xpath:idRelative\"],[\"xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"4589cb7a-c2ec-4717-bcf2-2b39a6395bb5\",\"comment\":\"\",\"command\":\"type\",\"target\":\"id=mat-input-4\",\"targets\":[[\"id=mat-input-4\",\"id\"],[\"css=#mat-input-4\",\"css:finder\"],[\"xpath=//input[@id=\"mat-input-4\"]\",\"xpath:attributes\"],[\"xpath=//div[@id=\"cdk-accordion-child-1\"]/div/div/mat-form-field/div/div/div/input\",\"xpath:idRelative\"],[\"xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input\",\"xpath:position\"]],\"value\":\"34000\"},{\"id\":\"976ddfd0-7156-4eed-be88-3d57b00461e4\",\"comment\":\"\",\"command\":\"click\",\"target\":\"id=mat-input-5\",\"targets\":[[\"id=mat-input-5\",\"id\"],[\"css=#mat-input-5\",\"css:finder\"],[\"xpath=//input[@id=\"mat-input-5\"]\",\"xpath:attributes\"],[\"xpath=//div[@id=\"cdk-accordion-child-2\"]/div/div/mat-form-field/div/div/div/input\",\"xpath:idRelative\"],[\"xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"551762dd-50ba-415e-bf76-ad29b739557e\",\"comment\":\"\",\"command\":\"type\",\"target\":\"id=mat-input-5\",\"targets\":[[\"id=mat-input-5\",\"id\"],[\"css=#mat-input-5\",\"css:finder\"],[\"xpath=//input[@id=\"mat-input-5\"]\",\"xpath:attributes\"],[\"xpath=//div[@id=\"cdk-accordion-child-2\"]/div/div/mat-form-field/div/div/div/input\",\"xpath:idRelative\"],[\"xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input\",\"xpath:position\"]],\"value\":\"test@esii.com\"},{\"id\":\"19e71549-52c1-4070-a227-040c7d8d8151\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//mat-checkbox[@id=\"mat-checkbox-1\"]/label/span\",\"targets\":[[\"css=.mat-checkbox-inner-container-no-side-margin\",\"css:finder\"],[\"xpath=//mat-checkbox[@id=\"mat-checkbox-1\"]/label/span\",\"xpath:idRelative\"],[\"xpath=//div[2]/div/mat-checkbox/label/span\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"60ef21ba-f65d-4066-ae01-8665846d2dba\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//div[@id=\"mainTagId\"]/app-identity/main/section/div/div\",\"targets\":[[\"css=.pull-l4\",\"css:finder\"],[\"xpath=//div[@id=\"mainTagId\"]/app-identity/main/section/div/div\",\"xpath:idRelative\"],[\"xpath=//section/div/div\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"aca3fea9-6d97-47fb-a439-9c835fe01124\",\"comment\":\"\",\"command\":\"click\",\"target\":\"id=userFormButtonSubmitId\",\"targets\":[[\"id=userFormButtonSubmitId\",\"id\"],[\"css=#userFormButtonSubmitId\",\"css:finder\"],[\"xpath=//button[@id=\"userFormButtonSubmitId\"]\",\"xpath:attributes\"],[\"xpath=//div[@id=\"mainTagId\"]/app-identity/main/section/div/div/form/div[2]/div/button\",\"xpath:idRelative\"],[\"xpath=//div[2]/div/button\",\"xpath:position\"],[\"xpath=//button[contains(.,\"Submit\")]\",\"xpath:innerText\"]],\"value\":\"\"},{\"id\":\"22b6f02e-7801-47f1-a874-ed990c7ed4ff\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//section[@id=\"appointmentInformations\"]/div/div/div/div/div[2]/div/div/h3/span[2]/span\",\"targets\":[[\"css=.collapsable--btn>.icon-up\",\"css:finder\"],[\"xpath=//section[@id=\"appointmentInformations\"]/div/div/div/div/div[2]/div/div/h3/span[2]/span\",\"xpath:idRelative\"],[\"xpath=//span[2]/span\",\"xpath:position\"]],\"value\":\"\"},{\"id\":\"abb49a7c-57ae-4b53-ab3f-0a9c4252b090\",\"comment\":\"\",\"command\":\"click\",\"target\":\"xpath=//section[@id=\"appointmentInformations\"]/div/div/div/div/div[2]/div/div/h3\",\"targets\":[[\"css=.mb-2:nth-child(1)\",\"css:finder\"],[\"xpath=//section[@id=\"appointmentInformations\"]/div/div/div/div/div[2]/div/div/h3\",\"xpath:idRelative\"],[\"xpath=//h3\",\"xpath:position\"]],\"value\":\"\"}]}],\"suites\":[{\"id\":\"7ad29093-0511-4b0e-945b-37440fa2de38\",\"name\":\"DefaultSuite\",\"persistSession\":false,\"parallel\":false,\"timeout\":300,\"tests\":[\"3915806b-4ef5-4b11-8ab6-1cc973dafde1\"]}],\"urls\":[\"https://revue.esii-orion.com/\"],\"plugins\":[]}

@jonathan aurais-tu la chaine complète ? Par exemple

{
  "name": "Scenario2 Constrat API",
  "scenario": "CODE_JSON_DU_SCENARIO",
  "referential": "RGAA_4_0",
  "level": "AA",
  "contractId": 2,
  "tags": []
}
{"name": "Scenario2 Constrat API", 
"scenario": "{"id":"3e711cfb-c728-4edf-8221-e26f2898f19c","version":"2.0","name":"REvuecontrast","url":"https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true","tests":[{"id":"3915806b-4ef5-4b11-8ab6-1cc973dafde1","name":"contrate","commands":[{"id":"c01b888d-ef73-49a6-ade6-16d54e3344b4","comment":"","command":"open","target":"https://revue.esii-orion.com/orion-reservation/purposes?account=TJANAF&config=BOTRGAA&usemode=app&code=P3&lang=EN&contrast=high&showtitle=true","targets":[],"value":""},{"id":"e9760d19-ef38-45be-af18-ce11c4f54740","comment":"","command":"setWindowSize","target":"1555x777","targets":[],"value":""},{"id":"5d688067-0dde-4243-a501-85437821b1ee","comment":"","command":"click","target":"xpath=//div[@id="mainTagId"]/app-purposes/main/div[2]/div/div/div/header/h3","targets":[["css=.cards:nth-child(1)>.cards-header>.main-color","css:finder"],["xpath=//div[@id="mainTagId"]/app-purposes/main/div[2]/div/div/div/header/h3","xpath:idRelative"],["xpath=//h3","xpath:position"],["xpath=//h3[contains(.,"INSTITUT")]","xpath:innerText"]],"value":""},{"id":"f97d942b-c3de-442d-87d8-63178ac28bfd","comment":"","command":"click","target":"xpath=//div[@id="ariacontrolgrppurpose0"]/ul/li[2]/div/div/div/div","targets":[["css=#ariacontrolgrppurpose0.row:nth-child(2).form-group>.row","css:finder"],["xpath=//div[@id="ariacontrolgrppurpose0"]/ul/li[2]/div/div/div/div","xpath:idRelative"],["xpath=//li[2]/div/div/div/div","xpath:position"]],"value":""},{"id":"f2fb0c6e-9c21-42be-adad-230cae3b4a2b","comment":"","command":"click","target":"xpath=//li[@id="gridSlots_0_0"]/div","targets":[["css=#gridSlots_0_0>.slot-header","css:finder"],["xpath=//li[@id="gridSlots_0_0"]/div","xpath:idRelative"],["xpath=//div/div/div/div/ul/li/div","xpath:position"]],"value":""},{"id":"b2540f9d-2815-48c6-aaec-03f6e26ce5cb","comment":"","command":"click","target":"id=mat-input-4","targets":[["id=mat-input-4","id"],["css=#mat-input-4","css:finder"],["xpath=//input[@id="mat-input-4"]","xpath:attributes"],["xpath=//div[@id="cdk-accordion-child-1"]/div/div/mat-form-field/div/div/div/input","xpath:idRelative"],["xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input","xpath:position"]],"value":""},{"id":"4589cb7a-c2ec-4717-bcf2-2b39a6395bb5","comment":"","command":"type","target":"id=mat-input-4","targets":[["id=mat-input-4","id"],["css=#mat-input-4","css:finder"],["xpath=//input[@id="mat-input-4"]","xpath:attributes"],["xpath=//div[@id="cdk-accordion-child-1"]/div/div/mat-form-field/div/div/div/input","xpath:idRelative"],["xpath=//mat-expansion-panel[2]/div/div/div/mat-form-field/div/div/div/input","xpath:position"]],"value":"34000"},{"id":"976ddfd0-7156-4eed-be88-3d57b00461e4","comment":"","command":"click","target":"id=mat-input-5","targets":[["id=mat-input-5","id"],["css=#mat-input-5","css:finder"],["xpath=//input[@id="mat-input-5"]","xpath:attributes"],["xpath=//div[@id="cdk-accordion-child-2"]/div/div/mat-form-field/div/div/div/input","xpath:idRelative"],["xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input","xpath:position"]],"value":""},{"id":"551762dd-50ba-415e-bf76-ad29b739557e","comment":"","command":"type","target":"id=mat-input-5","targets":[["id=mat-input-5","id"],["css=#mat-input-5","css:finder"],["xpath=//input[@id="mat-input-5"]","xpath:attributes"],["xpath=//div[@id="cdk-accordion-child-2"]/div/div/mat-form-field/div/div/div/input","xpath:idRelative"],["xpath=//mat-expansion-panel[3]/div/div/div/mat-form-field/div/div/div/input","xpath:position"]],"value":"test@esii.com"},{"id":"19e71549-52c1-4070-a227-040c7d8d8151","comment":"","command":"click","target":"xpath=//mat-checkbox[@id="mat-checkbox-1"]/label/span","targets":[["css=.mat-checkbox-inner-container-no-side-margin","css:finder"],["xpath=//mat-checkbox[@id="mat-checkbox-1"]/label/span","xpath:idRelative"],["xpath=//div[2]/div/mat-checkbox/label/span","xpath:position"]],"value":""},{"id":"60ef21ba-f65d-4066-ae01-8665846d2dba","comment":"","command":"click","target":"xpath=//div[@id="mainTagId"]/app-identity/main/section/div/div","targets":[["css=.pull-l4","css:finder"],["xpath=//div[@id="mainTagId"]/app-identity/main/section/div/div","xpath:idRelative"],["xpath=//section/div/div","xpath:position"]],"value":""},{"id":"aca3fea9-6d97-47fb-a439-9c835fe01124","comment":"","command":"click","target":"id=userFormButtonSubmitId","targets":[["id=userFormButtonSubmitId","id"],["css=#userFormButtonSubmitId","css:finder"],["xpath=//button[@id="userFormButtonSubmitId"]","xpath:attributes"],["xpath=//div[@id="mainTagId"]/app-identity/main/section/div/div/form/div[2]/div/button","xpath:idRelative"],["xpath=//div[2]/div/button","xpath:position"],["xpath=//button[contains(.,"Submit")]","xpath:innerText"]],"value":""},{"id":"22b6f02e-7801-47f1-a874-ed990c7ed4ff","comment":"","command":"click","target":"xpath=//section[@id="appointmentInformations"]/div/div/div/div/div[2]/div/div/h3/span[2]/span","targets":[["css=.collapsable--btn>.icon-up","css:finder"],["xpath=//section[@id="appointmentInformations"]/div/div/div/div/div[2]/div/div/h3/span[2]/span","xpath:idRelative"],["xpath=//span[2]/span","xpath:position"]],"value":""},{"id":"abb49a7c-57ae-4b53-ab3f-0a9c4252b090","comment":"","command":"click","target":"xpath=//section[@id="appointmentInformations"]/div/div/div/div/div[2]/div/div/h3","targets":[["css=.mb-2:nth-child(1)","css:finder"],["xpath=//section[@id="appointmentInformations"]/div/div/div/div/div[2]/div/div/h3","xpath:idRelative"],["xpath=//h3","xpath:position"]],"value":""}]}],"suites":[{"id":"7ad29093-0511-4b0e-945b-37440fa2de38","name":"DefaultSuite","persistSession":false,"parallel":false,"timeout":300,"tests":["3915806b-4ef5-4b11-8ab6-1cc973dafde1"]}],"urls":["https://revue.esii-orion.com/"],"plugins":[]}", 
"referential": "RGAA_4_0",
 "level": "AA", 
"contractId": 2, 
"tags": []}

je pense que c’est pas encore bon ><
car le contenu dans le scenario ne semble pas est conforme

Le JSON du scenario n’est pas échapé. Pour l’exemple ci-dessus, tu devrais avoir (a priori, je suis en train de tester) :

Ceci

{"name": "Scenario2 Constrat API", "scenario": "{"id":"3e711cfb-c728-4edf-8221-e26f2898f19c"

devrait être remplacé par cela :

{"name": "Scenario2 Constrat API", "scenario": "{\"id\":\"3e711cfb-c728-4edf-8221-e26f2898f19c\"

(Je ne suis pas encore certain de la bonne manière d’échapper en JSON.)

oui il semble qu’il y a un caractère qui casse ici