ajout 14-22 catégorie droit administration

This commit is contained in:
Jean-Christophe Engel 2024-10-09 15:17:25 +02:00
parent ce028f47e6
commit 481c53a3aa

View File

@ -52497,6 +52497,625 @@
"targets": [], "targets": [],
"value": "" "value": ""
}] }]
}, {
"id": "793d3286-9eca-4939-b066-a522c7f390e1",
"name": "14-22 droit administration",
"commands": [{
"id": "3f95c13c-4da1-49c4-a9e8-e0cb5cce0f99",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/login.php",
"targets": [],
"value": ""
}, {
"id": "cf8bdc16-ac4b-4498-9ae5-83a1b3ae18b8",
"comment": "",
"command": "setWindowSize",
"target": "1280x1020",
"targets": [],
"value": ""
}, {
"id": "b9a73ad1-83a4-4bcd-952f-a7d5d4d1cd82",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "c402688a-4d59-404f-ba67-19e4edfcc1cc",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "51e343eb-cc47-45e1-8c31-af8de3861c78",
"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": "55632802-6e57-423a-85fd-8a7f505afe73",
"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": "5b0c99ea-6fd3-49dc-9518-4a554fa76c2e",
"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": "c9b8b52f-9eba-448b-8164-d5d1b82f5e5d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f6458fc9-f472-47f4-a6ca-bd7846ea6955",
"comment": "",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "nom_categorie"
}, {
"id": "1c77cf12-80ec-4209-97c9-9dbc7d7969d2",
"comment": "modifier la catégorie : droit administration",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e2d116e9-8699-48fd-b82f-bba3a6dda2d8",
"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": "f683c7bc-2ed8-450a-bfac-a4d68830f82e",
"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": "a0f14d1e-1655-4790-8a53-f816a11b1108",
"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": "1f6045e7-a5d0-4d65-a6ba-33d6a371384d",
"comment": "",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]",
"targets": [],
"value": ""
}, {
"id": "7f5e1d95-31a3-4b28-86f8-1d67d784615c",
"comment": "",
"command": "check",
"target": "id=f_perm_users_9",
"targets": [],
"value": ""
}, {
"id": "12234cea-e36d-42ba-9c75-21a256fdc405",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}, {
"id": "d8a3b6c3-4118-44cd-bdd2-0af8b2f183ba",
"comment": "Créer deuxs membre dans la catégorie",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f72838e5-6242-415b-bc86-6da83e20efb8",
"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": "042771c6-b1fe-43b7-9e4d-eb344cc97f82",
"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": "nom1"
}, {
"id": "57bc071b-7766-465f-8ef7-559d23c19ae6",
"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": "courriel1"
}, {
"id": "abc8872e-c56f-4e42-bb35-347d27815e6f",
"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": "02e8e328-f2f9-450a-b977-b1fce1096f18",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "259e0ae2-10c5-4efd-bebe-9ac96bc5d117",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero1"
}, {
"id": "2f65d1ff-91e1-4f7a-bacb-a35318ea0c10",
"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": "9335db21-e0af-41af-8a8c-849e56587c8e",
"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": "${nom1}"
}, {
"id": "2699b028-9e1c-41e1-8067-c3c96899b4df",
"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": "${courriel1}"
}, {
"id": "418b9a03-0cc5-4db4-b4c5-acf9c97a4626",
"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": "966318e9-3e02-4e40-9965-b40c8510e89f",
"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": "3dd78c6f-a0bb-4570-9bee-d816eeb4154a",
"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": "534992c4-150f-458c-9478-ac577098c17c",
"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": "a26b4ad0-db2e-4e8c-a871-af854062689d",
"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": "nom2"
}, {
"id": "95a5075d-abf4-444a-a4a6-99e9b489bcbc",
"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": "courriel2"
}, {
"id": "9e443b20-a988-4364-9828-61308c99fe8d",
"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": "61c92da2-5a1c-40c0-ae3d-c2e74697e905",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "6fc577b4-0045-4bff-b54c-44ddc13fc3eb",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero2"
}, {
"id": "425f31b8-91bd-4144-80b8-25bb59592167",
"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": "9c9b3027-e9d0-4ef0-ad78-1803a16178da",
"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": "${nom2}"
}, {
"id": "76a332a3-ced2-4098-8627-d2acaa1955e4",
"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": "${courriel2}"
}, {
"id": "14d04685-5c12-4171-82bf-6968c1404839",
"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": "31a8f746-4b15-43a3-af9e-f98f3b72bda6",
"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": "9e5160e4-0771-45b7-a1fb-afb54b2365a6",
"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": "7e05eeaa-20be-4905-b0a9-5831926222c9",
"comment": "Vérifier qu'un membre peut supprimer un autre membre",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c1b7c60f-3243-49ab-98c5-6287ec408760",
"comment": "",
"command": "chooseOkOnNextConfirmation",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c6e7cb12-4493-4d76-8b9d-e881629a46af",
"comment": "",
"command": "click",
"target": "name=login_as",
"targets": [],
"value": ""
}, {
"id": "7499ecda-07d9-4c17-b228-5cd00caabe89",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, \"/admin/users\")]",
"targets": [],
"value": ""
}, {
"id": "76fcc0cf-ad5a-4ab1-a68a-46799313cb0c",
"comment": "",
"command": "type",
"target": "name=qt",
"targets": [],
"value": "${numero1}"
}, {
"id": "9e0a5f12-ce5e-4767-b235-26421da5af32",
"comment": "",
"command": "click",
"target": "xpath=//button[@title=\"Chercher\"]",
"targets": [],
"value": ""
}, {
"id": "8b69413b-c3d2-4ebf-9846-e448e7354d86",
"comment": "",
"command": "assertElementPresent",
"target": "xpath=//h1[starts-with(text(),\"${nom1}\")]",
"targets": [],
"value": ""
}, {
"id": "d0eab1a0-1302-4577-9dac-1b7a8aa42a7c",
"comment": "",
"command": "click",
"target": "xpath=//a[starts-with(@href, \"delete.php\")]",
"targets": [],
"value": ""
}, {
"id": "3f7bac6b-a953-4d5a-8988-994f7d6578f4",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [],
"value": ""
}, {
"id": "290f10d2-1979-46c0-8154-2663b4af2845",
"comment": "",
"command": "click",
"target": "name=delete",
"targets": [],
"value": ""
}, {
"id": "45f1bd41-e036-4f5e-b228-f24484575253",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [],
"value": ""
}, {
"id": "4ef93950-12e6-4cf2-abbd-cc6a69ced9c6",
"comment": "vérifier que le membre a été supprimé",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "778b8216-0000-46c2-bacd-4329d0d9ce48",
"comment": "",
"command": "type",
"target": "name=qt",
"targets": [],
"value": "${numero1}"
}, {
"id": "098284cd-85d3-467c-a972-88e21f19a8d5",
"comment": "",
"command": "click",
"target": "xpath=//button[@title=\"Chercher\"]",
"targets": [],
"value": ""
}, {
"id": "6371b361-37dd-4518-bd8d-77bcd938d000",
"comment": "",
"command": "assertElementPresent",
"target": "xpath=//h1[text()=\"Recherche de membre\"]",
"targets": [],
"value": ""
}, {
"id": "1b028e6a-6035-4c1a-a76f-0d480091153f",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr",
"targets": [],
"value": "nb"
}, {
"id": "b65a82d9-ae08-4727-ba51-a9ecb1fb1628",
"comment": "",
"command": "assert",
"target": "nb",
"targets": [],
"value": "0"
}, {
"id": "9ed24c92-6b55-41e0-a105-e35907b055b7",
"comment": "remettre les droits à l'état initial",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "694002ea-c89e-4ad1-8813-c033e31db5fb",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
"id": "09b983ad-0a21-4f60-bcbe-730153943347",
"comment": "",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "9080c639-970e-46bf-aca9-f6c89e5b5bbc",
"comment": "",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "9f4d9e26-c32e-4799-8612-b7ba1a81c0ad",
"comment": "",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "2d77f47b-98e6-40ca-956c-d9e8f9bb908a",
"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": "ee39ee25-cb21-47d1-9d21-0e13e7736216",
"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": "0225c258-22e8-48c5-a7d3-bbe893e45af5",
"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": "43ba52ea-f698-446e-a42d-d1c73ca25bb8",
"comment": "",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]",
"targets": [],
"value": ""
}, {
"id": "7201ce6b-5880-4355-8435-f7b7c8711dae",
"comment": "",
"command": "check",
"target": "id=f_perm_users_0",
"targets": [],
"value": ""
}, {
"id": "6127af2c-2d6e-4fef-a65a-e6d46c72e59c",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}]
}], }],
"suites": [{ "suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
@ -52595,7 +53214,7 @@
"persistSession": false, "persistSession": false,
"parallel": false, "parallel": false,
"timeout": 300, "timeout": 300,
"tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "8b29c931-a500-4cf3-9079-13dbe03d1909", "7402d095-05b5-45eb-8029-9c6b106cf42d"] "tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "8b29c931-a500-4cf3-9079-13dbe03d1909", "7402d095-05b5-45eb-8029-9c6b106cf42d", "793d3286-9eca-4939-b066-a522c7f390e1"]
}], }],
"urls": ["http://test.paheko.localhost/"], "urls": ["http://test.paheko.localhost/"],
"plugins": [] "plugins": []