From 799b306cf2a8f39e9289debb9d3a8d51a2f68310 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Tue, 20 Aug 2024 13:58:54 +0200 Subject: [PATCH] =?UTF-8?q?ajout=2011-08=20ajout=20case=20=C3=A0=20cocher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 611 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 610 insertions(+), 1 deletion(-) diff --git a/membres.side b/membres.side index 3c688f7..040db29 100644 --- a/membres.side +++ b/membres.side @@ -31131,6 +31131,615 @@ "targets": [], "value": "" }] + }, { + "id": "e465aafe-cbe2-47d2-853f-ad1df276fbfb", + "name": "11-08 ajout case à cocher", + "commands": [{ + "id": "22856df5-01fd-4e81-a258-fb96b5272f81", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "49e1916c-f25c-40cb-8e26-7dc25346bf8a", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "a3d96526-e680-4cff-8d3b-575dba9c2b2e", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "5f72462c-8091-4ddf-9324-8b8a2b882428", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "e1ed87fa-ba9a-4566-b7e2-af665f3e6208", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "fe3cdbae-215c-4612-9e80-e84e94db7bf4", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "c6023f8c-86e3-4d74-98be-537a28c8000c", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "ca8548ea-e365-4c70-8927-53d1072313e9", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5bfa41fe-554e-4fc9-a23f-beda80f48de3", + "comment": "ajouter case à cocher", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "60c5ca9c-e28d-4332-973d-ca11e6019274", + "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": "f8540f82-fd60-4b52-9731-8254eee80827", + "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": "c3976f14-f7a3-4183-8b7e-0f9d2e7b3ce8", + "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": "ad93f1b6-8d11-4481-894d-94697fc76a9f", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "a73325ef-c181-440b-b960-ed48cacb223e", + "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": "9069e0f8-afe0-408e-ac60-b243f1c9ce81", + "comment": "case à cocher", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"checkbox\"]", + "targets": [], + "value": "" + }, { + "id": "52ef163e-c820-43b6-898b-b57155f599e7", + "comment": "", + "command": "store", + "target": "Insomniaque", + "targets": [], + "value": "libelle_champ" + }, { + "id": "1e640499-c9f3-44a6-998e-e12d0494713c", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "c305e1f7-db94-404e-bedf-f08efeb03593", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "a8ec44ce-5fab-440f-8349-311a86edf636", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ} + '_1'", + "targets": [], + "value": "id_champ" + }, { + "id": "81469f4f-dcda-483d-bcc4-3627be5ea7eb", + "comment": "", + "command": "type", + "target": "id=f_default_value", + "targets": [], + "value": "1" + }, { + "id": "64b46d29-bdab-4e93-88a0-6348d47e1bcb", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Coche si besoin" + }, { + "id": "0daa2f6d-f87f-432f-b8ae-51d624c26e71", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "0f62545c-b485-4e59-8991-02275e4ccbf8", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "b195c3b0-c98b-46da-a537-5d20c0fd9435", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "daf7e85d-2035-426c-b50a-6ad8c114e333", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "83a3c1f9-393d-4e49-9af7-3e25b9ffd57c", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5a553818-230b-4526-ae59-f1827b54c6ba", + "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": "cf553c4c-0876-45d3-bca1-a7b3ba1b50f1", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "92d1984d-be10-4981-a104-b6e53317ec61", + "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": "e9c095b5-5c34-496c-9586-847677e6cc50", + "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": "c9ec4622-1473-48fe-bfb3-f9e9d13c85ad", + "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": "99f41dce-36ed-4f7e-881e-7841c4c93fcc", + "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": "02f5a483-5162-4088-8efc-7c55eef775ab", + "comment": "", + "command": "assertChecked", + "target": "id=${id_champ}", + "targets": [], + "value": "" + }, { + "id": "fd057281-c8a2-4276-bb16-132813784d88", + "comment": "", + "command": "uncheck", + "target": "id=${id_champ}", + "targets": [], + "value": "" + }, { + "id": "f38e3b03-f5f2-4fcf-8813-7cda3ab724de", + "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": "08271bca-d41c-4438-8782-f2564c8e82f5", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5361fffb-eceb-4b88-9c17-4d726d24f08a", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "28b2e323-6579-473c-a280-ab4be2c210c2", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "07a6a552-870d-481d-ad22-4cd32c0e38c1", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "a4919d00-dd2d-48cf-8995-ea615f601c53", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "Non" + }, { + "id": "adddd198-b4e7-453e-96ce-07835e0947d6", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "4567496d-6773-4cf5-b473-1097984d9ee4", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "b267d40b-955d-4cfb-8775-37606d080f15", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "07ea4080-9c75-451d-89b0-80c583c1739d", + "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": "a20d8c78-7553-45fc-9a7c-5eba041bb72d", + "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": "6b963c65-32cd-4e04-8a5e-70c827f8b84e", + "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": "bb2c1209-600d-4819-b70b-718b0ad27592", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "0158a4ca-b840-42fd-a9de-4cf2e52920e5", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "6c549f4f-75a1-424e-9b33-f279bf7e4492", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${email}" + }, { + "id": "db4591a8-d1c6-4a91-8dfc-63e61cb4f10c", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "20a0dc46-a215-4705-8feb-91cee97fa04b", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "2211eeb4-5951-4499-9510-9056b3948531", + "comment": "vérifier présence case et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "4bb816b6-8e62-4385-b66c-69eb1d207d8a", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "e6e8273c-7457-435f-b724-a6945cafa32d", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "Non" + }, { + "id": "7e4c97a7-b97c-4599-a793-f47d53efd2c0", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "8fb16a31-9aea-4a50-9a8b-e4898c2c3c03", + "comment": "", + "command": "check", + "target": "id=${id_champ}", + "targets": [], + "value": "" + }, { + "id": "ce470b27-93a4-4820-8d52-37a78a60b9af", + "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": "c815ec22-f069-465e-83ac-d14e60e889b5", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "Oui" + }, { + "id": "397cc578-f060-4c94-9a97-d5f17a10c946", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "dd383e70-b710-4b56-aac0-b78b72760518", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "4d0a7a02-38d5-4ba7-ab7c-78dd70d34375", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "ee747930-d171-4356-b746-98efbca0e970", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "169f8371-7097-4098-8403-3f87562811ab", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "d5fd0c74-c68a-42a3-b9a1-177a7d3be5ad", + "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": "f09e11c0-593a-415b-b132-8159e8563528", + "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": "c2474453-0ad6-4dd3-b99c-b22a7098a849", + "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": "3e02ea11-6859-4591-a1b9-4f9c606602c4", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "daf30cbc-7441-412d-ba1e-d76f6f22396d", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "b12aa1a0-74b0-45e5-894f-17bfd308bde3", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "38feb68b-6743-464f-9579-ff18f3daaecd", + "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": "017f913d-88f3-48f7-a463-37f1e5ee4fdb", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "9d8c3875-77f9-4623-ac10-7f472284e3c3", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "f73ae31c-bf91-4a38-9171-7103db9aef0f", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -31208,7 +31817,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"] + "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"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []