ajout 14-21 catégorie droit écriture

This commit is contained in:
Jean-Christophe Engel 2024-10-09 14:57:06 +02:00
parent 998eb63ba8
commit ce028f47e6

View File

@ -51814,13 +51814,6 @@
"target": "name=login_as", "target": "name=login_as",
"targets": [], "targets": [],
"value": "" "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", "id": "93557fbb-7cd0-4e26-b62c-99a42c58d7fe",
"comment": "", "comment": "",
@ -51870,13 +51863,6 @@
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [], "targets": [],
"value": "${courriel1}" "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", "id": "2298cbcf-4251-49e3-9891-6d0b200aba57",
"comment": "remettre les droits à l'état initial", "comment": "remettre les droits à l'état initial",
@ -51884,6 +51870,13 @@
"target": "", "target": "",
"targets": [], "targets": [],
"value": "" "value": ""
}, {
"id": "0118dd11-c722-4e40-a1e6-2e7e65e94380",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, { }, {
"id": "aa4142f5-4390-4c6c-ba55-50047396c84e", "id": "aa4142f5-4390-4c6c-ba55-50047396c84e",
"comment": "", "comment": "",
@ -51962,6 +51955,548 @@
"targets": [], "targets": [],
"value": "" "value": ""
}] }]
}, {
"id": "7402d095-05b5-45eb-8029-9c6b106cf42d",
"name": "14-21 droit écriture",
"commands": [{
"id": "825887f7-22fc-43c2-ae07-82f5d15bf7eb",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/login.php",
"targets": [],
"value": ""
}, {
"id": "5076d731-ffaf-4520-bdac-757f22c78801",
"comment": "",
"command": "setWindowSize",
"target": "1280x1020",
"targets": [],
"value": ""
}, {
"id": "76d6be03-54f8-4fd5-ad91-efc54839963b",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "0a19a1da-b00c-4fb3-81c6-1986d3043e3e",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "a7a3a888-1d50-4add-8d3d-c2a1ffd19de5",
"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": "819ac834-9127-4f4f-9fc4-c425c9bbe724",
"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": "41e5957b-469a-44d1-ac31-6bb1dc599e95",
"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": "282846c1-1104-4fba-bda6-8f96a997522d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f4eebfe8-ded0-4a89-ab31-467f12c56239",
"comment": "",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "nom_categorie"
}, {
"id": "7f73e5e9-fb6a-413f-829c-bbfbb65703f2",
"comment": "modifier la catégorie : droit écriture",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9b459953-d800-4e47-a500-a13dcfd60c15",
"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": "0ed1fb40-e460-4557-bb29-71f54eb25ff0",
"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": "b42f1f0e-2f50-4242-aee4-9bd5309e2060",
"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": "1845580a-2c26-48a1-b6f7-b4f2dc85b76e",
"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": "3b1eb9b0-5759-46da-a364-e2dc2984791d",
"comment": "",
"command": "check",
"target": "id=f_perm_users_2",
"targets": [],
"value": ""
}, {
"id": "b9853df4-6972-400b-988f-8782b02383b3",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}, {
"id": "b4c80b7c-26de-40bd-ac31-26e8c6437690",
"comment": "Créer un membre dans la catégorie",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "7373184b-3e32-47b2-8bf7-00cf1ee64b1b",
"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": "9a392498-1428-465e-a281-b970ac7a4e9a",
"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": "55e1fa0c-1c20-4453-8514-74369caa7247",
"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": "dceb8d6c-c65d-4f12-8b24-f8d4d444bfe7",
"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": "9c34e64a-afc4-4ed9-8641-5ef6653f639b",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "d3e57716-6647-4a58-9794-552776a1c622",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero1"
}, {
"id": "75510fe6-a712-474f-ac3b-7487501173c9",
"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": "b1e2fe54-bca5-4591-bb0e-866d2ee036b6",
"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": "fa4fd0a4-6583-444a-87e3-67a4bdccdbed",
"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": "24d3ee84-282f-4d37-802d-61a22a93fe30",
"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": "e4bdde05-26a7-4299-aabb-8b8cde4da737",
"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": "0bb3539a-e0de-4156-b2be-b34284980a66",
"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": "654be9d9-0d60-43c4-964c-0086aed7e565",
"comment": "Vérifier que ce membre peut créer un autre membre",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e5bab0f7-45a1-4d5b-bb0d-9b75fccc599f",
"comment": "",
"command": "chooseOkOnNextConfirmation",
"target": "",
"targets": [],
"value": ""
}, {
"id": "46bbb79e-d7cc-49b2-a6fa-0dcbcd07bbc9",
"comment": "",
"command": "click",
"target": "name=login_as",
"targets": [],
"value": ""
}, {
"id": "3f2fe547-9bf9-47d9-8212-1608f427d1a1",
"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": "76f0e7db-9387-4837-992d-9c7f203fb5f2",
"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": "d595c68d-1c17-4afe-a5ec-dcb9b4dc438f",
"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": "23726ccb-fd3f-495f-afaf-07a28b4e377a",
"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": "3e67bfb9-36f9-43a3-84f7-bec85ab7b3d8",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "f12faf3e-430f-4b0e-9b32-cfb65f0747af",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero2"
}, {
"id": "1405bded-811e-4304-a7f7-afdb2de50696",
"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": "49836c78-62e6-45b1-969d-06abbc34da76",
"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": "9b01d197-ee22-4448-9d0a-0ceab93b7292",
"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": "95043eb0-785d-4b48-bb37-ed7d6875bf62",
"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": "d00518a2-8eb9-4042-bb45-7d4634dff85a",
"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": "8a2cd906-3986-4e4e-8fbe-e75fbf916a07",
"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": "cec3442e-746c-4e30-a786-71fbbbf88968",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero2}"
}, {
"id": "9079d750-b261-4802-b566-87c0befe9677",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom2}"
}, {
"id": "7ed7fbdb-1f77-4d76-951a-149c581ae62f",
"comment": "",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel2}"
}, {
"id": "9fb310d6-5d8c-46f4-a396-d9190f3d49d1",
"comment": "remettre les droits à l'état initial",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f8b0d858-aeb7-4123-9269-214b79ab5faa",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
"id": "580d8505-6a8d-4a92-88ea-2964fa0b7198",
"comment": "",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "5f75fbd2-9f6f-491b-b6f8-9ebd9ab32193",
"comment": "",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "8a4079ae-6e7a-4d9b-b095-00f107b1f6e2",
"comment": "",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "6cdd3507-7727-4386-ac4f-687e6684b7bd",
"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": "ac0c1d0b-1a90-4325-b6bb-5e1699869025",
"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": "ff9f0fbd-87c1-4b33-af28-1b58f7344ea7",
"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": "2a4b3f51-b8e8-4887-bb70-962f5939e141",
"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": "81261c00-da92-465f-bd4f-1cf41cd5157a",
"comment": "",
"command": "check",
"target": "id=f_perm_users_0",
"targets": [],
"value": ""
}, {
"id": "92e395e4-e16c-4313-ab0e-621b1490d5a2",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}]
}], }],
"suites": [{ "suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
@ -52060,7 +52595,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"] "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"]
}], }],
"urls": ["http://test.paheko.localhost/"], "urls": ["http://test.paheko.localhost/"],
"plugins": [] "plugins": []