From f60cb534fa42207fec003d7724ef4e290c1b47c9 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 21 Aug 2024 09:21:57 +0200 Subject: [PATCH] ajout 11-09 ajout date --- membres.side | 617 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 616 insertions(+), 1 deletion(-) diff --git a/membres.side b/membres.side index 040db29..a06dab8 100644 --- a/membres.side +++ b/membres.side @@ -31740,6 +31740,621 @@ "targets": [], "value": "" }] + }, { + "id": "4ca407f4-01a9-466a-89ee-c7d772a0281e", + "name": "11-09 ajout date", + "commands": [{ + "id": "d559ea98-b01e-4a2a-9ad7-f06f0fa13281", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "530dc648-3165-4259-8e00-89d4efc75107", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "e46b1614-d1a7-46b7-8cda-65e91f992f4a", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "ed5a47a8-52de-4e09-ab79-5ab1e0c61b4f", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "c4461f19-8291-47d6-847f-997f336d0ff4", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "5b045d20-d931-4dd4-b964-7ca04d8097cf", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "17d7f533-fa44-4b8f-84cd-7b3b3e6c6994", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "e5a9924f-367d-4785-b682-ab19d539eadc", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "05bbec2c-4d98-4740-9fe5-b2911492a025", + "comment": "ajouter champ perso date", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "75258f9a-89ea-4d19-b5f4-761f2e49b5cd", + "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": "b363676d-f96d-4c8c-9d9a-2a741711a2a5", + "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": "37503077-6792-4f3e-9894-1642ccfb235e", + "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": "5568edbc-38d4-4a76-8d83-05ed8d648179", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "81177ff7-ae55-43e5-a95c-9ca2a0291d3f", + "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": "7440e3ed-e913-4cce-a031-9e5559fdf663", + "comment": "champ date", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"date\"]", + "targets": [], + "value": "" + }, { + "id": "62afd31a-601e-4213-94d3-d9eed052fde9", + "comment": "", + "command": "store", + "target": "Anniversaire", + "targets": [], + "value": "libelle_champ" + }, { + "id": "6c7e1ca3-d695-4bb0-8785-50d97a4fb593", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "7dba6888-79f0-4444-a244-2206305b41e8", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "1b76e647-a701-4471-b200-001987b4eae6", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "cc373f6c-2342-471c-8315-8c49621ee401", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Date de ton anniversaire" + }, { + "id": "05fecd2c-6218-474a-b383-3900c9eb1979", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "a4ed51c4-3a12-4f66-b0d8-09c88f66b85d", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "530adb5f-66fd-4038-9ef8-2126ffb634df", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "6ce6b4c5-bb12-4e22-9325-04a660a773f1", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "44c2f0fe-d1cc-4f33-b644-4f55ca31d6de", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "7caa0064-03b1-45cd-80f6-cbb0b7c755fb", + "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": "ce0687bb-6215-4d90-ab82-6d77bc6693ec", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "836f5cc8-01be-4b7e-b039-2d329d22cc17", + "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": "1a14b1aa-fa31-4f85-a5a6-93358c7355f7", + "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": "9a9721eb-08c9-4a89-ab05-eda0115857f4", + "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": "3b5f558c-ff68-4ac7-9471-5ddc4ad0bf40", + "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": "9b52ec9b-87ca-47d2-b92a-693aeb820109", + "comment": "", + "command": "store", + "target": "01/01/2001", + "targets": [], + "value": "valeur_champ" + }, { + "id": "6063f31b-f54b-4f4c-bb1d-e803df2c9aa1", + "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": "214c1c34-4aca-4ddd-862f-276cc3ebc26b", + "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": "52a774ef-6986-4d80-894c-a810519d78d1", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f2971049-dfbe-4cd9-914b-d6203f028b8c", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "7a283dd5-3d87-43eb-8bc1-c2358fdaede3", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "462418bd-fa22-460a-b1fb-f6675e4f297c", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "4d424969-8f8a-4001-9abc-ae7516af5084", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "a78bd046-9c1f-4aca-ba5e-77c99194beb0", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "9b946f83-f8e4-4dc2-8e73-52be568a64fa", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "be18d71a-95e8-4542-8ef2-ec4f0c2f1aeb", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "d2bc9c25-3ffe-4c82-90fb-d325558911f7", + "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": "19be208b-0675-4ec0-a2dd-c386c1a061dd", + "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": "66513e6a-1ba5-4b22-bc31-662548b7c677", + "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": "9afcc078-606e-4d69-99ab-0b125e78bbe1", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "8f6f3960-beca-41eb-aa03-88105f8a9102", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "0bfd8ffd-df73-4f8a-a868-6b25170a7961", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${email}" + }, { + "id": "017cf0ab-a938-48e9-b080-2d5226840d27", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "e88b312c-dca0-452b-8722-f8493c0b1e4d", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "c2ff8590-c000-4d24-935d-7a4cece4b563", + "comment": "vérifier présence url et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "7857673a-eed6-4e97-9a60-f140f84ef380", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "21e1f4ab-5095-417f-9bb0-19ab910f41be", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "09f9c1c4-4c62-4250-95bd-559c3b6a0ed5", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "9e27a085-8225-4c68-be85-ecfdf0facbea", + "comment": "", + "command": "store", + "target": "02/02/2022", + "targets": [], + "value": "valeur_champ" + }, { + "id": "c6bc0e44-77c4-4097-82d3-d43116d3dcda", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "44cae35a-5803-4606-a3e4-b1f66c644c1b", + "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": "cee3ef4e-6fda-4a59-8dfc-eb48d541b700", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "12c42e85-f578-4d6b-939c-d6c57b6655d9", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "e2111585-4e14-4972-a90d-7cbfbae88bd1", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "6bb6d8a8-be7e-4b91-ace1-7ec114bb7257", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "cd0e7bce-6cf8-4a05-8fc6-c3734546f691", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "1f97e0c0-c087-4a94-97b9-1e31973fbe41", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "4f66a7b2-9012-40d3-b41b-ac3032c7399c", + "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": "f6017e08-321a-4a84-86e5-5830af54a14c", + "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": "07461f98-8370-495c-b3d2-59b8a89161c1", + "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": "ed5fb49f-477f-4a37-bba9-e25c88bfeaf2", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "99cf627f-c87c-4b4b-a8c3-7bfdaf51148a", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "5c2051b2-0170-425d-899a-2865fbd9502d", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "7b2eb9b2-b556-4913-97b5-cb3a161b9a87", + "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": "6b9123c7-b3b4-4f26-bcfd-f324a593f85e", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "e675f5a6-c6a5-46fc-aa83-d89253250a2a", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "2b1a0aa9-5423-4592-9f9f-6bdbb16d392f", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -31817,7 +32432,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"] + "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"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []