ajout 14-20 catégorie droit lecture

This commit is contained in:
Jean-Christophe Engel 2024-10-08 16:29:38 +02:00
parent f4bb8073b7
commit 998eb63ba8

View File

@ -51385,6 +51385,583 @@
"targets": [], "targets": [],
"value": "" "value": ""
}] }]
}, {
"id": "8b29c931-a500-4cf3-9079-13dbe03d1909",
"name": "14-20 droit lecture",
"commands": [{
"id": "c4a46159-4ab0-4d7d-831d-87e5fbfacba3",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/login.php",
"targets": [],
"value": ""
}, {
"id": "1931fc00-556d-40c5-99c2-13ce0f713329",
"comment": "",
"command": "setWindowSize",
"target": "1280x1020",
"targets": [],
"value": ""
}, {
"id": "9492bdac-92e8-44f8-968f-f928c531cf4c",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "0ba5250a-3985-4d7a-919a-954eefecc530",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "9a83f5b5-ba65-4c90-b2fa-c19d323e306e",
"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": "81dd4ea0-fd4b-41d1-99e2-502a77b1e6cf",
"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": "ec8662d3-93fb-4848-908c-c8d0b735fcbc",
"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": "0e0bfcb4-b4f5-4496-a5ef-6aaccbeae26f",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c8ad51cd-3532-4105-897b-1cf91ab2e05f",
"comment": "",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "nom_categorie"
}, {
"id": "b19a3089-61c3-4ec1-ad25-64cbca5aad72",
"comment": "modifier la catégorie : droit lecture",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "880ed74c-c4be-4e49-945c-f05ceaa5d451",
"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": "18cdce15-ca3d-4d0d-b984-0461a661efd0",
"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": "e3f93353-80a2-46dc-9a89-1326d1eaceb4",
"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": "7578a539-eb2f-4567-8edc-2cdbcbe7d4b8",
"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": "d0c969a7-a66d-4a6b-b7c2-d8ba3418d8e1",
"comment": "",
"command": "check",
"target": "id=f_perm_users_1",
"targets": [],
"value": ""
}, {
"id": "c7e33c89-b50d-47a6-b48e-413c598037d7",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}, {
"id": "5ef5dad9-71da-4b88-a961-f95ee1f48b64",
"comment": "Créer deuxs membre dans la catégorie",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f1684d6f-badb-4e9a-9a6d-65719a99e727",
"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": "ea0d284c-d573-4c8b-b017-e1e65c98c1e9",
"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": "abad6c79-7b6a-4f8b-ad71-8f8dc017c613",
"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": "7b3d932d-2953-43eb-bb11-2fd9d00ef778",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "bda0d24c-1f0b-4fbf-88e6-300115ea263f",
"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": "ca7ab15e-3b96-440a-b741-3bce6f318823",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero1"
}, {
"id": "77278e11-a6f7-43df-9e35-6e921c8296c8",
"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": "0b4b92af-f1bc-4d91-a154-b7960e504759",
"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": "19f14800-e361-4b21-8c89-a299d014b71e",
"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": "f558b1c3-ef5d-4946-a1f3-635d1a51690b",
"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": "48834878-9eef-448b-93b7-05c9424dc878",
"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": "10384ed3-a154-4d4d-909d-492cbdca4d69",
"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": "42b34498-14dc-4126-bd8c-05be03631d7f",
"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": "8a442ffa-bd50-41ce-b700-dec24106c5dd",
"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": "aa7f7d3a-57f2-4f44-9783-e9adc28c584e",
"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": "513b51a5-88d4-4f66-8df2-f1a1174a61e9",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "3e6ad69f-dad3-4345-8c6a-da4244ff8eb1",
"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": "e882edfd-5a2c-4eb7-a164-c0df8d45a2b3",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero2"
}, {
"id": "e4491144-8949-4d2d-8c27-a7e8dc7c3fa5",
"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": "31f28194-2ea8-446b-85e2-ac28176fc4da",
"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": "b18a33ab-115b-4393-b976-451712caaed7",
"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": "1ceb6725-1dca-429f-8d01-51e75eaa95ea",
"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": "b654d460-7192-49bd-bdfd-5f59ce1ea3cd",
"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": "5c5c0334-618e-4e19-a657-4d9d688b3bb0",
"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": "36aefb61-c3b7-480c-ac2a-851b186790a9",
"comment": "Vérifier qu'un membre peut voir les infos des autres membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "7ac8a6c3-ce40-4db5-bbf2-5d0462e595a5",
"comment": "",
"command": "chooseOkOnNextConfirmation",
"target": "",
"targets": [],
"value": ""
}, {
"id": "50f55d94-bfe9-4510-8994-fbd19026a114",
"comment": "",
"command": "click",
"target": "name=login_as",
"targets": [],
"value": ""
}, {
"id": "1f17f12d-931d-4916-b52b-c63fcb224743",
"comment": "",
"command": "assertElementPresent",
"target": "xpath=//a[contains(@href, \"/admin/users\")]",
"targets": [],
"value": ""
}, {
"id": "93557fbb-7cd0-4e26-b62c-99a42c58d7fe",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, \"/admin/users\")]",
"targets": [],
"value": ""
}, {
"id": "2167783e-db65-43c8-8309-61af5c567f01",
"comment": "",
"command": "type",
"target": "name=qt",
"targets": [],
"value": "${numero1}"
}, {
"id": "58e03eab-d499-489a-b591-12d186e31f15",
"comment": "",
"command": "click",
"target": "xpath=//button[@title=\"Chercher\"]",
"targets": [],
"value": ""
}, {
"id": "78c2bf43-66b4-4d37-94a3-c042eb35091a",
"comment": "",
"command": "assertElementPresent",
"target": "xpath=//h1[starts-with(text(),\"${nom1}\")]",
"targets": [],
"value": ""
}, {
"id": "d1815bdb-3361-4803-abd4-0b95ff66d78f",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero1}"
}, {
"id": "4486eee1-152a-43f1-8783-11abd4c81a21",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom1}"
}, {
"id": "b08556d6-8093-4c01-a771-18e949a110f8",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel1}"
}, {
"id": "0118dd11-c722-4e40-a1e6-2e7e65e94380",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
"id": "2298cbcf-4251-49e3-9891-6d0b200aba57",
"comment": "remettre les droits à l'état initial",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "aa4142f5-4390-4c6c-ba55-50047396c84e",
"comment": "",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "6c4a6958-a620-45a6-8a80-dd63d91bb940",
"comment": "",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "a67cd059-3f14-40d2-8dc6-848bb34bd320",
"comment": "",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "0c48c177-7834-4123-8ac4-d688a9ae9d7b",
"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": "eb9629e4-5036-4848-afe2-ca088352c048",
"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": "aadf2e2c-166a-4084-9fbd-b5e4cb69f1a5",
"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": "d9d23e92-3ad4-41aa-a103-b005e84a8ae9",
"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": "078a1c31-3653-49ae-a966-bdc8adffe3ae",
"comment": "",
"command": "check",
"target": "id=f_perm_users_0",
"targets": [],
"value": ""
}, {
"id": "ec45a021-6add-4de5-9f69-eb1b218d8434",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}]
}], }],
"suites": [{ "suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
@ -51483,7 +52060,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"] "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"]
}], }],
"urls": ["http://test.paheko.localhost/"], "urls": ["http://test.paheko.localhost/"],
"plugins": [] "plugins": []