ajout 14-02 supprimer catégorie non vide
This commit is contained in:
parent
c2bffc6e74
commit
1f84f35eef
315
membres.side
315
membres.side
@ -49237,6 +49237,319 @@
|
||||
"targets": [],
|
||||
"value": "${nom_categorie}"
|
||||
}]
|
||||
}, {
|
||||
"id": "72592be1-aa5c-428f-b16e-8bf09f4103cf",
|
||||
"name": "14-02 supprimer catégorie non vide",
|
||||
"commands": [{
|
||||
"id": "49c37ec5-5d15-42b8-8327-1aa3b0d674da",
|
||||
"comment": "",
|
||||
"command": "open",
|
||||
"target": "http://test.paheko.localhost/admin/login.php",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "c1028e33-a882-4a49-8437-3ec69b2daf95",
|
||||
"comment": "",
|
||||
"command": "setWindowSize",
|
||||
"target": "1280x1020",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "826afc76-033a-40d5-877b-25b71883f1da",
|
||||
"comment": "Vérifier si déjà connecté",
|
||||
"command": "storeXpathCount",
|
||||
"target": "xpath=//button[@name='login']",
|
||||
"targets": [],
|
||||
"value": "connecte"
|
||||
}, {
|
||||
"id": "bead96f4-2bfd-4907-b70c-0c4d32070dde",
|
||||
"comment": "",
|
||||
"command": "if",
|
||||
"target": "${connecte} > 0",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "b23091e2-d920-4264-90d9-5285e080eb42",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_id",
|
||||
"targets": [
|
||||
["id=f_id", "id"],
|
||||
["name=id", "name"],
|
||||
["css=#f_id", "css:finder"],
|
||||
["xpath=//input[@id='f_id']", "xpath:attributes"],
|
||||
["xpath=//input", "xpath:position"]
|
||||
],
|
||||
"value": "jckix@free.fr"
|
||||
}, {
|
||||
"id": "22c56543-eaaa-47dd-aff4-f7005a64d5bd",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_password",
|
||||
"targets": [
|
||||
["id=f_password", "id"],
|
||||
["name=password", "name"],
|
||||
["css=#f_password", "css:finder"],
|
||||
["xpath=//input[@id='f_password']", "xpath:attributes"],
|
||||
["xpath=//dd[2]/input", "xpath:position"]
|
||||
],
|
||||
"value": "interpeller noircir colis allumer"
|
||||
}, {
|
||||
"id": "40808b6a-4e3a-4513-9118-0bea50649c4c",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//button[@name='login']",
|
||||
"targets": [
|
||||
["name=login", "name"],
|
||||
["css=.main", "css:finder"],
|
||||
["xpath=//button[@name='login']", "xpath:attributes"],
|
||||
["xpath=//p/button", "xpath:position"],
|
||||
["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "b9a1ef3f-064f-490f-b743-84eea7428b1c",
|
||||
"comment": "",
|
||||
"command": "end",
|
||||
"target": "",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "fa89f0b0-389b-47fd-bf3b-ed2fef244734",
|
||||
"comment": "Créer un membre dans la catégorie",
|
||||
"command": "",
|
||||
"target": "",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "9bcd512a-e792-4426-b7cd-ca70799b80f4",
|
||||
"comment": "",
|
||||
"command": "store",
|
||||
"target": "Anciens membres",
|
||||
"targets": [],
|
||||
"value": "nom_categorie"
|
||||
}, {
|
||||
"id": "37a44ff6-0cac-4322-94d7-e2dab3720189",
|
||||
"comment": "",
|
||||
"command": "executeScript",
|
||||
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
|
||||
"targets": [],
|
||||
"value": "nom"
|
||||
}, {
|
||||
"id": "8749ee38-f40e-406e-97ed-6b85d2b37625",
|
||||
"comment": "",
|
||||
"command": "executeScript",
|
||||
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@\" + chaine(5) + \".fr\"",
|
||||
"targets": [],
|
||||
"value": "courriel"
|
||||
}, {
|
||||
"id": "deb0e54d-ed6a-41e0-989d-3223b71a2b77",
|
||||
"comment": "",
|
||||
"command": "executeScript",
|
||||
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
|
||||
"targets": [],
|
||||
"value": "ville"
|
||||
}, {
|
||||
"id": "25b1a40c-b327-4bc6-adf5-b589f313c130",
|
||||
"comment": "",
|
||||
"command": "executeScript",
|
||||
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
|
||||
"targets": [],
|
||||
"value": "tel"
|
||||
}, {
|
||||
"id": "cf9bfbeb-564f-45e0-943c-38c3ce75d561",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
|
||||
"targets": [
|
||||
["linkText=Ajouter", "linkText"],
|
||||
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
|
||||
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
|
||||
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
|
||||
["xpath=//li/a", "xpath:position"],
|
||||
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "00b09e58-a049-476a-8c96-5f52ef02a860",
|
||||
"comment": " ",
|
||||
"command": "storeValue",
|
||||
"target": "id=f_numero",
|
||||
"targets": [],
|
||||
"value": "numero"
|
||||
}, {
|
||||
"id": "ff4c726b-fd9d-44aa-beb7-d1519cd9d810",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]",
|
||||
"targets": [
|
||||
["css=#f_id_category > option:nth-child(3)", "css:finder"],
|
||||
["xpath=//option[@value='1']", "xpath:attributes"],
|
||||
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
|
||||
["xpath=//option[3]", "xpath:position"],
|
||||
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "75747e1a-d46a-40fd-96f6-dc3e91825155",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_nom",
|
||||
"targets": [
|
||||
["id=f_nom", "id"],
|
||||
["name=nom", "name"],
|
||||
["css=#f_nom", "css:finder"],
|
||||
["xpath=//input[@id='f_nom']", "xpath:attributes"],
|
||||
["xpath=//dd[3]/input", "xpath:position"]
|
||||
],
|
||||
"value": "${nom}"
|
||||
}, {
|
||||
"id": "2e4dce7a-1d2c-4c30-aba8-6fe4ad1a3049",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_email",
|
||||
"targets": [
|
||||
["id=f_email", "id"],
|
||||
["name=email", "name"],
|
||||
["css=#f_email", "css:finder"],
|
||||
["xpath=//input[@id='f_email']", "xpath:attributes"],
|
||||
["xpath=//dd[4]/input", "xpath:position"]
|
||||
],
|
||||
"value": "${courriel}"
|
||||
}, {
|
||||
"id": "858b4921-1e22-47b0-b2a7-062821971b8b",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_ville",
|
||||
"targets": [
|
||||
["id=f_ville", "id"],
|
||||
["name=ville", "name"],
|
||||
["css=#f_ville", "css:finder"],
|
||||
["xpath=//input[@id='f_ville']", "xpath:attributes"],
|
||||
["xpath=//dd[10]/input", "xpath:position"]
|
||||
],
|
||||
"value": "${ville}"
|
||||
}, {
|
||||
"id": "7aec596e-a250-49b5-bc84-82c76e1513cd",
|
||||
"comment": "",
|
||||
"command": "type",
|
||||
"target": "id=f_telephone",
|
||||
"targets": [
|
||||
["id=f_telephone", "id"],
|
||||
["name=telephone", "name"],
|
||||
["css=#f_telephone", "css:finder"],
|
||||
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
|
||||
["xpath=//dd[11]/input", "xpath:position"]
|
||||
],
|
||||
"value": "${tel}"
|
||||
}, {
|
||||
"id": "1a2ab188-8ad5-4bcc-83c5-3d1586f359c9",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "name=save",
|
||||
"targets": [
|
||||
["name=save", "name"],
|
||||
["css=.main", "css:finder"],
|
||||
["xpath=//button[@name='save']", "xpath:attributes"],
|
||||
["xpath=//p/button", "xpath:position"],
|
||||
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "01a2a895-e688-4eb1-a911-93171f2303ac",
|
||||
"comment": "Supprimer la catégorie",
|
||||
"command": "",
|
||||
"target": "",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "1a0cd61a-cd06-4a29-b8e7-7fc15d1b4cc5",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//a[contains(@href, \"/admin/config/\")]",
|
||||
"targets": [
|
||||
["css=li:nth-child(6) b", "css:finder"],
|
||||
["xpath=//li[6]/h3/a/b", "xpath:position"],
|
||||
["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "15eac05f-168e-4e85-a43f-192d59c10576",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//a[contains(@href, \"/admin/config/users\")]",
|
||||
"targets": [
|
||||
["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"],
|
||||
["xpath=//a[contains(text(),'Membres')]", "xpath:link"],
|
||||
["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"],
|
||||
["xpath=//nav/ul/li[3]/a", "xpath:position"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "1d8e9960-6f34-494c-9df1-0c8475e6c5ab",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//a[contains(@href, \"/admin/config/categories\")]",
|
||||
"targets": [
|
||||
["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"],
|
||||
["xpath=//a[contains(text(),'Membres')]", "xpath:link"],
|
||||
["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"],
|
||||
["xpath=//nav/ul/li[3]/a", "xpath:position"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "814fd96d-59ba-495d-97ea-11300a043546",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"Anciens membres\"]/following-sibling::td/a",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "73e1c4f3-6edf-4963-bda2-01d7ac8809ec",
|
||||
"comment": "",
|
||||
"command": "selectFrame",
|
||||
"target": "index=0",
|
||||
"targets": [
|
||||
["index=0"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "94f96e12-2cfb-402a-bf4d-a4578d2cdc26",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "name=delete",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "973e8145-717b-4dd7-8846-f80d462099c4",
|
||||
"comment": "",
|
||||
"command": "assertElementPresent",
|
||||
"target": "xpath=//div[contains(@class, \"error\")]",
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "455af00b-6c8b-4e01-a5bf-8c93fab28d26",
|
||||
"comment": "",
|
||||
"command": "selectFrame",
|
||||
"target": "relative=parent",
|
||||
"targets": [
|
||||
["relative=parent"]
|
||||
],
|
||||
"value": ""
|
||||
}, {
|
||||
"id": "89b93d57-9377-4fd6-a5bf-e2b36bc68662",
|
||||
"comment": "",
|
||||
"command": "click",
|
||||
"target": "xpath=//button[contains(@class, \"closeBtn\")]",
|
||||
"targets": [
|
||||
["css=.closeBtn", "css:finder"],
|
||||
["xpath=//button[@type='button']", "xpath:attributes"],
|
||||
["xpath=//dialog[@id='dialog']/header/button", "xpath:idRelative"],
|
||||
["xpath=//header/button", "xpath:position"],
|
||||
["xpath=//button[contains(.,'Fermer')]", "xpath:innerText"]
|
||||
],
|
||||
"value": ""
|
||||
}]
|
||||
}],
|
||||
"suites": [{
|
||||
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
|
||||
@ -49335,7 +49648,7 @@
|
||||
"persistSession": false,
|
||||
"parallel": false,
|
||||
"timeout": 300,
|
||||
"tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5"]
|
||||
"tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf"]
|
||||
}],
|
||||
"urls": ["http://test.paheko.localhost/"],
|
||||
"plugins": []
|
||||
|
Loading…
Reference in New Issue
Block a user