From 69bbde6d50301a13874407c45c7c6e3000c97c5d Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 21 Aug 2024 11:41:47 +0200 Subject: [PATCH] =?UTF-8?q?ajout=2011-11=20ajout=20ann=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 617 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 616 insertions(+), 1 deletion(-) diff --git a/membres.side b/membres.side index ec72934..47ddc16 100644 --- a/membres.side +++ b/membres.side @@ -33025,6 +33025,621 @@ "targets": [], "value": "" }] + }, { + "id": "ee2ad930-7a67-41d0-9723-fec221c087e3", + "name": "11-11 ajout année", + "commands": [{ + "id": "67fe774e-b1d5-4193-9771-d68d4b4ae9dd", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "a041b0af-9914-40d7-b8d9-eb82257d93ab", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "0cf2f523-9833-4e21-9859-8b8790b32aed", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "3b53a16d-ddab-4d16-8d25-315dd3e94f8b", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "30439d2a-f2c6-4f86-83bb-9850a96c189a", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "8ab4ffbe-806e-47b8-b67e-fa5b8a694c64", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "794ae355-cde3-46e6-b826-09077d736e8d", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "ef1c0564-cd32-40cd-966e-6fbeaaba9deb", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e7336ee3-3998-4ad1-9d89-acf296508fdf", + "comment": "ajouter champ perso année", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f6d45718-54d9-4220-99e4-220b3bbedc3a", + "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": "50545ed6-7afe-44bc-a5df-51650d7155a0", + "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": "03579cb1-e659-4d0d-97e3-67da7d5804ec", + "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": "8ef9aee6-0424-4560-85da-258470221510", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "207e1d91-a82c-4ae2-a59e-468df4bdf8b1", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"add\"]", + "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": "cffbe98c-d7c9-44e5-9fc0-96a9b6ea3b64", + "comment": "champ année", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"year\"]", + "targets": [], + "value": "" + }, { + "id": "13d8a19d-2cb6-4e92-9b40-3ee951b54171", + "comment": "", + "command": "store", + "target": "Retraite", + "targets": [], + "value": "libelle_champ" + }, { + "id": "66f9caab-c1d9-4523-bc1f-a3ed08efafef", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "70ce3062-82fa-46c7-866e-31baa8b0e212", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "7b58907c-721c-4e62-90f9-91d910a3db44", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "8c145f0d-2fce-4e58-8855-7227900b7411", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Année de ton départ en retraite" + }, { + "id": "5ce32677-13d5-4873-93f3-5b88ecfcc206", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "3436e362-9f59-49c4-8dbc-a63809d319e6", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "2591bbae-fc3d-4d66-856b-d91b16e46bd1", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "742f4887-dc00-448e-a616-010b62d90ec5", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "eeb208e4-1d8c-4e47-9b89-5f13fc1f3c63", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c4117bf3-ef98-48bb-a139-712c5a7fc93a", + "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": "a553ccbb-9038-4f8f-9558-952d2253d6bd", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "d1f32162-6ed1-48b4-a632-5472f7d72d29", + "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": "032a4d85-1fc0-42c5-a0b8-af7e6cafa2d8", + "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": "6b9a94e1-46ea-4cad-af06-901c5016b9bf", + "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": "74fa2b03-6616-4813-acaf-5c2ad3b425c1", + "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": "${email}" + }, { + "id": "7738560a-c239-42fb-a8d2-4f9c2f2cf070", + "comment": "", + "command": "store", + "target": "2048", + "targets": [], + "value": "valeur_champ" + }, { + "id": "15dfd57b-f033-4ef2-9590-db27637e2a60", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "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": "${valeur_champ}" + }, { + "id": "9ff6717c-d426-4fb7-a226-afc54563a9b4", + "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": "6b1b3385-6796-4f1a-9dab-39a125acb6ab", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c7d9d8d6-7830-4121-938b-b1f8e7c0b278", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "64d12061-31a5-4871-afbe-ecea58bf1f44", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "63029982-0bb8-477e-8e67-af40c7712e05", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "3ec50296-c023-4de2-b5a0-e799fe3f41be", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "54bbb4af-1aa6-40c8-801d-f17b194c9b17", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "b6acb4ba-cc3c-4ffd-848e-ffb4052318ae", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "ed9b646b-5059-4ea6-852b-59c921e722af", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "c95136f2-dd5b-437c-98f0-3675e6c9f692", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [ + ["id=f_password", "id"], + ["css=#f_password", "css:finder"], + ["xpath=//input[@id='f_password']", "xpath:attributes"], + ["xpath=//dd[3]/input", "xpath:position"] + ], + "value": "${mdp}" + }, { + "id": "05e5b6e2-fb40-413d-83f8-5d4e848380cb", + "comment": "", + "command": "type", + "target": "id=f_password_confirmed", + "targets": [ + ["id=f_password_confirmed", "id"], + ["name=password_confirmed", "name"], + ["css=#f_password_confirmed", "css:finder"], + ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], + ["xpath=//dd[5]/input", "xpath:position"] + ], + "value": "${mdp}" + }, { + "id": "7949aea0-8c68-4cc7-9892-1a2e832593a7", + "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": "eedca49b-2f7a-4ed2-8268-8fe0f65baa00", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "24990ff4-7e4b-4fb2-975f-d83812666092", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "3773232f-8fec-441a-b3c4-dacefd460309", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${email}" + }, { + "id": "a6553286-5d24-4738-9fb9-a947a3541ff6", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "def889f3-7730-4f38-b36a-6f6bb5a641f0", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "e2c03625-bbcf-4005-8fa8-3ca5c729f70e", + "comment": "vérifier présence url et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f73cfb71-5332-4f4e-aafe-1eff74358f60", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "1652091d-ed4f-4cbe-a281-3db0e4d95647", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "15f62a94-bd0b-4bda-ac39-ec1d240c9a3b", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "56f04794-be7b-4130-a4cf-3bec0ddf196d", + "comment": "", + "command": "store", + "target": "1777", + "targets": [], + "value": "valeur_champ" + }, { + "id": "dd55bcc7-9fde-4533-9022-3b2a5db0caf9", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "f8cd4bbd-833a-4118-ab93-194ded017e70", + "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": "ea9de1b1-7d00-4c91-9c62-0ab0c120a245", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "bd13b846-783e-4a68-beb3-0e5071f5c735", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "cbfe33b5-f543-41bb-98d8-0f854765b9d5", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "485baccc-baba-466a-828f-22833956a236", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "a42ccd3e-e81c-4ea3-8359-f9bb61de5bbe", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "06456d55-8169-4258-9971-00744db83237", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "3652ea92-283c-43ce-a688-d00c2b66adef", + "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": "e44c6c18-65fb-4600-a889-e54a864f35a6", + "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": "f1de3d95-26cf-44a5-afe0-b50e8086a524", + "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": "bab5147f-8c87-461c-8b82-ecb79bf33457", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "5a2f0ded-4fdb-46e0-9092-f0f7ba6a5236", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "9ff59639-2db6-4371-851a-ba7a32aff860", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "fe413c4f-c78a-49ff-affd-6b16706840da", + "comment": "", + "command": "click", + "target": "css=label", + "targets": [ + ["css=label", "css:finder"], + ["xpath=//label", "xpath:position"], + ["xpath=//label[contains(.,'Cocher cette case pour supprimer le champ, cela effacera de manière permanente cette donnée de toutes les fiches membres.')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "316301ef-76ed-49c0-a1a2-4edb981c0614", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "b62cbbb8-01ca-4f79-b57f-735fce01429e", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "6a2c78d1-f983-4bb4-a17a-a4a00d8a45fd", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -33102,7 +33717,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "340b4d62-de7f-4c00-a559-e4f6a2246f08", "7a858aed-70b7-4c7a-bc4f-799216bb455b", "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "ba5e6368-646b-447e-9e5e-3c3cdded211a", "482dfae4-a690-4334-a7f0-6207ab17e15b", "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "4ca407f4-01a9-466a-89ee-c7d772a0281e", "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e"] + "tests": ["c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "340b4d62-de7f-4c00-a559-e4f6a2246f08", "7a858aed-70b7-4c7a-bc4f-799216bb455b", "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "ba5e6368-646b-447e-9e5e-3c3cdded211a", "482dfae4-a690-4334-a7f0-6207ab17e15b", "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "4ca407f4-01a9-466a-89ee-c7d772a0281e", "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e", "ee2ad930-7a67-41d0-9723-fec221c087e3"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []