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": []}