From 0087d35eef592be5b61fe74624ff0e36d4dc31bb Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 16 Sep 2024 11:33:31 +0200 Subject: [PATCH] 12-08 correction assertion finale ; ajout 12-13 email modifiable --- membres.side | 480 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 472 insertions(+), 8 deletions(-) diff --git a/membres.side b/membres.side index ffbf168..30c424b 100644 --- a/membres.side +++ b/membres.side @@ -44129,7 +44129,7 @@ "id": "49ede57d-999e-4bc0-b6fb-91b9be547252", "comment": "", "command": "assertText", - "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "(Non renseigné)" }, { @@ -45208,7 +45208,7 @@ "id": "8be11fc9-79f4-4017-8566-24aa480e507c", "comment": "", "command": "assertText", - "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { @@ -45400,12 +45400,12 @@ ], "value": "" }, { - "id": "5924fb9c-db8c-43ef-a21c-f06b80aa9142", + "id": "47dedb5e-7924-41ee-93cc-1aff0f2c2a8b", "comment": "", - "command": "assertText", - "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[2]", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], - "value": "Obligatoire" + "value": "" }] }, { "id": "a79ce0c0-32c8-461a-af13-a9e1a538e24d", @@ -45672,7 +45672,7 @@ "id": "20a24d3d-0a77-472c-82f0-0bf5402da47d", "comment": "", "command": "assertText", - "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { @@ -45851,6 +45851,470 @@ "targets": [], "value": "" }] + }, { + "id": "8f0f0203-7b71-44eb-bb81-1fcab1183a83", + "name": "12-13 email modifiable", + "commands": [{ + "id": "b08e2bbe-389c-42ac-8253-480bc0e9f753", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "b3f576a3-5d29-4ae7-87d8-c87ec0b832cb", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "37cda3d9-9ac4-4e12-a416-d2a85deb8c9f", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "ee615321-804c-45d4-99df-1c74181c0b7e", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "b3b285b7-5a05-4cdb-a93e-800387a02316", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "6f1e8a51-497c-49a0-ae6d-88ceb0d6ada8", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "a701ec73-dfee-48c4-90a1-b562da474aef", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "14e13d98-6cf3-4eb7-8b72-91c5ee7321c2", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "172a5d77-ed7c-42a4-bdfa-4ffd68bdc1fc", + "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": "c470cd6f-46d5-4307-b03a-797bb80a8cc8", + "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": "5005d9df-62c6-45b6-a0e5-d985349f96fc", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "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": "77f8aa6b-617d-4015-8526-265f7487afcf", + "comment": "rendre email modifiable", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "2ce0cbcd-81d0-467b-aa5b-41adad94ca4f", + "comment": "", + "command": "store", + "target": "Adresse E-Mail", + "targets": [], + "value": "libelle_champ" + }, { + "id": "75c44601-9e2f-4f7f-982e-361f9f085384", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "52e68b5d-eb78-4596-a723-0c651239d113", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "488165bf-9bd3-480c-87c5-03bbebe8272d", + "comment": "", + "command": "storeValue", + "target": "id=f_name", + "targets": [], + "value": "nom_champ" + }, { + "id": "f117721a-b6b5-4af5-a02d-68e006829575", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "d1690a51-39be-4147-8741-421d02996a8c", + "comment": "", + "command": "check", + "target": "id=f_user_access_level_2", + "targets": [], + "value": "" + }, { + "id": "177f9172-1e4a-4be3-b9a5-145684502fa7", + "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(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "357ac9b0-cb91-4b89-a5ff-1ecec8654f3a", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "5e7ba7b1-47b2-4985-ad16-9444fb6c41c0", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", + "targets": [], + "value": "" + }, { + "id": "2c40cb5b-f9ff-44ae-9dfb-48104e80dfa7", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "59fa3310-89c0-4933-a26f-65eab6d1c2e5", + "comment": "", + "command": "click", + "target": "linkText=Ajouter", + "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": "f80e287c-d951-411a-b127-efdb4e04211a", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "9e16abbb-f8c1-4375-9f84-4741773906be", + "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": "5da9df81-37df-458d-b288-f82be33fba2c", + "comment": "", + "command": "type", + "target": "id=f_nom", + "targets": [], + "value": "${nom}" + }, { + "id": "dc040211-b82d-4e95-89d8-384c9f50ef57", + "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": "email" + }, { + "id": "315393b3-33f8-458f-a144-f874144d2f69", + "comment": "", + "command": "type", + "target": "id=f_email", + "targets": [], + "value": "${email}" + }, { + "id": "12e63fff-bfe3-4a12-9e5a-0575e8dd828a", + "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": "d9ea8bfa-5250-4188-b692-e24a09c1f05e", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5dc23837-6c24-42f9-93f4-0c8044773d98", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "1c537c59-a6e6-458d-a612-2015c71324e1", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "76d9dc14-b81f-4957-ab1a-8e90914bbdda", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "93fd0929-bd09-4e79-b690-ec7a14ada4ef", + "comment": "", + "command": "chooseOkOnNextConfirmation", + "target": "", + "targets": [], + "value": "" + }, { + "id": "1f73d663-1edd-41c0-bab6-3c3c6d74599d", + "comment": "", + "command": "click", + "target": "name=login_as", + "targets": [], + "value": "" + }, { + "id": "674a6353-0531-4144-bc74-1b3d94a19aef", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "cdc0e19b-04ba-4838-87b8-26c87e99b7bd", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "edd8ff1e-8c26-48e5-b5e2-c7cb1899883e", + "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": "valeur_champ" + }, { + "id": "3d64c557-54dd-4345-9bad-a13ac02b8da0", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "f430cf5a-7c1c-44b8-9796-c3f4babfaa42", + "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": "1b4d9963-68b1-4b7e-a291-f283a09721ae", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "bf16a59b-b3d7-4f08-ab12-f84d201d5cba", + "comment": "remettre à l'état initial", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e94675c6-2d8f-4cf1-86a3-4488987b0033", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "47914dab-e845-4511-9658-7bb66f16829d", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "a2f7b203-d50e-4ecd-b1f9-83f2f4d6e129", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "8c076dfe-acf3-457f-8607-157c3a60ba8e", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "5fba7acc-e470-4c31-84b6-bfbec0098a76", + "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": "691d3b22-55a6-473d-8348-fb6941a72510", + "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": "b87976ef-51a2-4d5a-8a64-55b96c3cd532", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "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": "47694469-2f68-4645-b85f-ca05b9c5bd86", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "30af8ffe-f1c9-47d2-ac85-6edbef38b5f0", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "d939b673-e5f5-4f5d-9566-63358b7d5e3a", + "comment": "", + "command": "check", + "target": "id=f_user_access_level_1", + "targets": [], + "value": "" + }, { + "id": "46829d12-80d5-43e2-9813-57966dbdc2a4", + "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(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "801417dc-1831-4f81-80ad-133a0811ab77", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "e3e51308-e431-43a8-873b-42f92dbd32ca", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -45935,7 +46399,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "b8768454-ae31-4cec-a902-45218cd2cd06", "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "db2765f8-b677-4b7b-ad52-c9fdfd8f8ead", "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "98cd4288-efed-412c-ae9f-ff8f97366fae", "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de"] + "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "b8768454-ae31-4cec-a902-45218cd2cd06", "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "db2765f8-b677-4b7b-ad52-c9fdfd8f8ead", "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "98cd4288-efed-412c-ae9f-ff8f97366fae", "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de", "8f0f0203-7b71-44eb-bb81-1fcab1183a83"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []