From d36988a654f23a8f3d416a4f282292f77f208cd3 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 12 Sep 2024 18:37:29 +0200 Subject: [PATCH] =?UTF-8?q?11-xx=20:=20r=C3=A9ordonnancement=20;=20modif?= =?UTF-8?q?=20action=20sur=20check/radio=20;=2011-34=20:=20suppression=20c?= =?UTF-8?q?lic=20s=C3=A9lecteur=20fichiers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 7334 ++++++++++++++++++++++++-------------------------- 1 file changed, 3587 insertions(+), 3747 deletions(-) diff --git a/membres.side b/membres.side index 574990f..de54a5b 100644 --- a/membres.side +++ b/membres.side @@ -27123,2707 +27123,6 @@ "targets": [], "value": "30000" }] - }, { - "id": "c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", - "name": "11-31 ajout année naissance", - "commands": [{ - "id": "fad4e699-eb78-4fc8-8e60-a24dd2fe416a", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "1adba047-8e6f-4266-a99f-caa532b03f5c", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "d82172c5-99a1-4e09-be44-a82fbb2cc2f6", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "c67b55f1-11b2-42b2-9519-483ea34f0ef9", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "ea2ab020-7afc-4a22-a4f0-8ae3310e1a94", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "c7eacfec-63f7-4270-b872-6b1ca50f7d97", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "f86048c5-728a-40db-8702-ae6626f974a4", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "f1c9dacc-5b09-42bb-b18f-97e4c813504d", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "874df3c2-9f05-4ad0-99c8-1026c8dfa99f", - "comment": "ajouter champ année de naissance", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "15c2ce08-77f2-47c3-b726-32b9819cfe3b", - "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": "0bb8d8b4-cf62-46f9-8bdb-fab366290ddd", - "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": "6281eed2-5d22-47d9-9fd6-0a4ead3dad16", - "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": "27afead2-1dc0-4591-8922-f5653bab1ea4", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "195d7ce3-6762-494f-a9b3-2f4fbb54a8fa", - "comment": "", - "command": "check", - "target": "id=f_preset_annee_naissance", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "166cd504-cc79-480f-a667-4e3222afb8e1", - "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": "22660ae0-917a-4bf4-9ee1-311636f13f8e", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "525596a7-6693-4f0c-840c-4c334634e13b", - "comment": "", - "command": "store", - "target": "Année de naissance", - "targets": [], - "value": "libelle_champ" - }, { - "id": "8599211d-fe2e-4aa3-a14e-25667f21267f", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "5379b4c9-9fef-49ea-96ab-2929b54429d9", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "50199175-09ca-4d8f-a03a-d1a7c7530cb7", - "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": "872cd0af-2fcb-4469-b1ce-989802375f96", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "561d5365-f25d-4eb6-be76-f2a7a5bf2a90", - "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": "71fbee85-1e78-437c-ac6d-06b38dde2473", - "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": "ad917270-aed3-4571-b7b6-862972263d93", - "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": "courriel" - }, { - "id": "f499bf94-582c-4a6d-ac1b-b56e806568e1", - "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": "${courriel}" - }, { - "id": "0eef0ac6-95f1-44e2-861f-2ee24d5a6c10", - "comment": "", - "command": "store", - "target": "1987", - "targets": [], - "value": "annee_naissance" - }, { - "id": "fc6f642e-bbfe-4c30-9862-3346ab422bb3", - "comment": "", - "command": "type", - "target": "id=f_annee_naissance", - "targets": [], - "value": "${annee_naissance}" - }, { - "id": "0c006549-23e7-4413-a2aa-2d7ed6a9296c", - "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": "11c69838-26b4-4811-92bf-49f32bec5e05", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "62b3ec5d-446c-4cd7-9987-0cdd458212d2", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "58ca7144-bfe9-47fd-806e-5ab79e3068c2", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "05c7c432-f908-4d30-b8b0-ce0f7f5e4ffb", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "bc015ec8-c06a-487e-8390-ba796ee26a7d", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${annee_naissance}" - }, { - "id": "3a54e7b8-d218-47e8-a387-b4f4b5a0486f", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "b683dce5-0d0e-4110-91ee-ddb727232228", - "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": "9bb1c2aa-3374-4811-adb6-2bf3167a0972", - "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": "5b1fd4ef-7d09-4e87-a48c-50d773d4aed6", - "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": "470403fa-a396-4684-8b43-8deb18a446ab", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "4b67d3d6-e1e5-414d-88b7-39e14b4bf493", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "81b76145-9b62-41b0-b5a6-c3d774f3a086", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "30fd3fe3-b407-4461-b52e-320a17cf7bb2", - "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": "771a50f5-f4eb-4435-a84b-a2b9959c84af", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [ - ["name=delete", "name"], - ["css=.main", "css:finder"], - ["xpath=//button[@name='delete']", "xpath:attributes"], - ["xpath=//button", "xpath:position"], - ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "fa3d47bc-c295-4004-b7bf-e914bd7209f7", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "3eacf3bd-fae1-42c2-afa7-faf4f1b8edd3", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }] - }, { - "id": "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", - "name": "11-16 ajout texte libre", - "commands": [{ - "id": "c3fd3819-d125-49a9-9c12-66133228fd6d", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "6b8a8131-0ed7-4cc5-9a71-904225ca65d5", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "cf6ec825-87da-4e2d-bfdd-fbb9f5691e5a", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "4cca2064-e10f-48fc-8118-763fd4827bc7", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "cd4b2740-bb0f-47c8-804a-0049783519f3", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "60fbc949-f45c-4812-9ac2-fb1e46de104d", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "6620db5d-0952-4220-a4ee-36b7b1d3fbb7", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "623cb795-c9c2-4f58-b1f7-826202e46491", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "57d9a01a-c10f-43b6-a8e5-01aa4bca89ba", - "comment": "ajouter champ perso texte libre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "dd793890-5cd6-4a4a-9a2b-1a78be9ae997", - "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": "87ec2a39-008f-4345-a14f-c0f43029a673", - "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": "a9428d49-b493-4729-a2a4-842134a0cb5d", - "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": "76011df4-82a9-4e9b-8ca3-6d4276cfb51b", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "c4fb3eeb-814b-472b-a7af-e291a70a108e", - "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": "8aaf1bef-ff65-4e2f-923c-d2f5d7ac1b66", - "comment": "Texte libre, plusieurs lignes", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", - "targets": [], - "value": "" - }, { - "id": "5e66a5ed-bd1c-41f1-86e8-5ac431d8db90", - "comment": "", - "command": "store", - "target": "Surnom", - "targets": [], - "value": "libelle_champ" - }, { - "id": "52762d81-7f1c-4f0d-b235-dc855dc03e5c", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "845fdf99-1b9f-4c77-87b6-fbf0ade6608b", - "comment": "", - "command": "executeScript", - "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", - "targets": [], - "value": "nom_champ" - }, { - "id": "2c288443-6692-43ee-aa6f-60aac15d8c84", - "comment": "", - "command": "executeScript", - "target": "return 'f_' + ${nom_champ}", - "targets": [], - "value": "id_champ" - }, { - "id": "20ade5bb-6b60-4bc1-b242-341e07d2ec02", - "comment": "afficher dans la liste", - "command": "check", - "target": "id=f_list_table_1", - "targets": [], - "value": "" - }, { - "id": "df6f40ff-00d0-46db-9ac8-1c11c60ae841", - "comment": "Voir et modifier ce champ", - "command": "check", - "target": "xpath=//input[@id=\"f_user_access_level_2\"]", - "targets": [], - "value": "" - }, { - "id": "344f949d-5189-4582-a660-4b9621e3065c", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "1259d340-4a98-414b-8dde-cf682152e018", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "0e880718-3047-4ca9-a4d9-153c4e3a5c95", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "13437439-bd48-4de9-ab74-9d5a96a4ac96", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "b5c190e5-04b1-4203-8051-280227f5f66f", - "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": "b4d31f3d-ee60-4242-9eca-e105bd41d5d5", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "8d88d802-c81f-4b66-8c4c-a105174325b3", - "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": "594cd642-3de3-42ba-8ee2-385e107c4942", - "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": "e959f594-8fe5-445d-8f35-ee54eba3b0fa", - "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": "courriel" - }, { - "id": "ef164b82-ac3f-4319-8be2-18fe753ec992", - "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": "${courriel}" - }, { - "id": "d1169339-0855-4081-ba5f-db8ec86da1a4", - "comment": "", - "command": "store", - "target": "polo", - "targets": [], - "value": "valeur_champ" - }, { - "id": "073a7fc5-5f65-4726-9568-b083c9f77469", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "1313a108-34ec-46a7-b9a3-87df1e191f5f", - "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": "90bd7390-4464-46af-9699-17ccc5da658d", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "5aaa883b-0393-4af8-9d93-547e3fdb1c7c", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "e15f7577-80de-4a29-820b-e3416b0d4ad9", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "84b8e706-ce97-4a3c-a197-7aebbbc93485", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "4d59e3ee-d889-4c64-8ace-4e8676d0e484", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "4a0698e9-cdff-4e39-9e74-81a97de40993", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/users/\")]", - "targets": [], - "value": "" - }, { - "id": "fa4f70ea-2669-4e4a-9695-3cff3c635db4", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href,\"${nom_champ}\")]", - "targets": [], - "value": "" - }, { - "id": "26b83690-1ae4-4782-a4f0-b88825d1d7b7", - "comment": "", - "command": "executeScript", - "target": "history.back()", - "targets": [], - "value": "" - }, { - "id": "f9d83865-0614-4ba0-93f2-5751a1b3f9fc", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"edit_security.php\")]", - "targets": [], - "value": "" - }, { - "id": "43b9593e-5320-457f-b78e-257eee857647", - "comment": "", - "command": "store", - "target": "soin oeuf mélodieux intellectuel", - "targets": [], - "value": "mdp" - }, { - "id": "f7ef648b-e2f1-43a6-bfdd-7ec85f9525ba", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "487d5f70-1242-474f-86e3-f9846bafada5", - "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": "79540f2e-426c-4d29-b13e-bd552be5cbc9", - "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": "75dfe593-a687-4a36-b838-c71cc5c40c15", - "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": "52eb2a5a-525d-462c-8b45-fd59ff0dfd63", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["relative=parent"] - ], - "value": "" - }, { - "id": "1f4321d1-5b1e-4452-8f8e-ff2cc30acac2", - "comment": "Déconnexion", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "d5be5db5-0f5f-4922-91e2-18e1ef508e77", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "${courriel}" - }, { - "id": "64f977f4-834d-4a69-9fcf-ed0075178045", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "${mdp}" - }, { - "id": "6addd80b-2882-4851-a3fe-0d8a9679d865", - "comment": "", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "90123a0d-2bbf-40aa-9e57-da345acb1b66", - "comment": "vérifier présence surnom et le modifier", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "ef518498-e211-4019-9e62-72a3f11adec8", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me\")]", - "targets": [], - "value": "" - }, { - "id": "9f0c4f68-152e-4d80-a312-c9945fce277b", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "1c880cb2-fee1-4bd7-8075-7a0b71edaedc", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", - "targets": [], - "value": "" - }, { - "id": "9d7bfab5-fbf7-489e-b748-a0b171bbe7f4", - "comment": "", - "command": "store", - "target": "marco", - "targets": [], - "value": "valeur_champ" - }, { - "id": "ba6cd831-80eb-4206-b1d7-38372904088c", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "6491e095-4aab-41e0-88fe-9c1f4b0fbca7", - "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": "05573975-1c01-434a-8205-77bc52b9921d", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "bf886799-82d7-48fc-a5b5-f527f2fc6640", - "comment": "Déconnexion", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "940adc8d-9dd4-47d1-9b20-1c4d39a41670", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "3977a194-6880-4bc7-9ecc-9346a675e3d2", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "6f5c0c8f-360b-464f-8b0c-cb2a4158d919", - "comment": "Connexion admin", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "28dd54f2-8b8e-4c67-a0b6-1cb368790460", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "7e7a96d6-f55e-43b2-b279-f5a775f3fb18", - "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": "a4b3ffc5-f2df-4e9a-ae95-eefc92dca183", - "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": "7d64683e-11e3-468b-b01a-06b4b1ba530f", - "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": "a30e8724-dd4c-44f1-8d44-ac598ed92b0a", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "6d328d7a-2b0a-4d63-bd72-ec0e921fa0ea", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "d513e6d7-2936-4422-aa8d-6eccc7309128", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "2d5690e6-6b70-4710-8d96-1698737e06ad", - "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": "7a7074a2-7c29-43ef-b5c8-afc9e2082cc9", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [], - "value": "" - }, { - "id": "700c2dd3-74c6-4fe9-8a3f-ae95365fad1d", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "eb0d957c-d94b-4ad8-a54b-a8094938bfd5", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "2384d69f-4c58-451a-81e0-dca879d67f32", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/users/\")]", - "targets": [], - "value": "" - }, { - "id": "7aa7dae4-a0e7-40a8-9afb-866382235c78", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href,\"${nom_champ}\")]", - "targets": [], - "value": "" - }] - }, { - "id": "340b4d62-de7f-4c00-a559-e4f6a2246f08", - "name": "11-17 ajout texte choix multiple", - "commands": [{ - "id": "b650089f-b23b-4f7d-bf7a-0d0278240389", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "71f0258f-588a-4d6a-8650-48133c816027", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "ae935a8f-6a23-4a3c-9b9f-ffaa50703a5b", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "cc096276-4beb-4fd9-96e2-835dd6231b26", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "860746fd-2a29-4a2f-877d-8a7b58615f03", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "5510e465-e7b9-4f82-bb92-61ea038212b8", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "e6a3d61b-62b6-40b7-a359-52064eb0377f", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "d899dfe1-63f4-4397-bd2d-f91c1d03efe9", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "e5338447-e876-4574-82e8-d037b47df7f6", - "comment": "ajouter champ perso texte choix multiple", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "61384325-95b3-442b-903d-420276f304ef", - "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": "8a9b96d8-7dac-4cfc-97a3-b2ef59fbe607", - "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": "744e6c44-703e-46f5-afde-c06274fe96e1", - "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": "4fd862a6-a01a-4cff-8395-a55719413277", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "168ad4b9-40df-4507-87bc-84a7108f781d", - "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": "bbbc6bca-f79f-4168-9863-6b6acda5b6f3", - "comment": "texte choix multiple", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"datalist\"]", - "targets": [], - "value": "" - }, { - "id": "2f663491-41b4-447e-9e68-8ec1116c5d24", - "comment": "", - "command": "store", - "target": "Couleur préférée", - "targets": [], - "value": "libelle_champ" - }, { - "id": "d5961725-5c51-4a19-8644-8fcf46ef1e42", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "3662475d-a04a-479d-a9f3-cff1c2a760bd", - "comment": "", - "command": "store", - "target": "Violet", - "targets": [], - "value": "couleur_defaut" - }, { - "id": "c2b71d4c-86da-4719-b9a7-4772b6c10bb4", - "comment": "", - "command": "type", - "target": "id=f_default_value", - "targets": [], - "value": "${couleur_defaut}" - }, { - "id": "88db557d-5e62-483b-9bdd-28579cb28cd7", - "comment": "", - "command": "type", - "target": "id=f_help", - "targets": [], - "value": "Indiquez votre couleur préférée" - }, { - "id": "ceede050-b826-474d-8190-45481ae2360c", - "comment": "", - "command": "store", - "target": "Jaune", - "targets": [], - "value": "couleur_1" - }, { - "id": "b5f0d5cd-eaa1-4aea-a4fd-1a404924b530", - "comment": "", - "command": "type", - "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[1]/input", - "targets": [], - "value": "${couleur_1}" - }, { - "id": "b7d08447-6045-4dbc-a715-c43717634a38", - "comment": "", - "command": "click", - "target": "xpath=//button[@title=\"Ajouter une option\"]", - "targets": [], - "value": "" - }, { - "id": "a73f4002-8779-4d5e-ba56-483c48830fb4", - "comment": "", - "command": "store", - "target": "Rouge", - "targets": [], - "value": "couleur_2" - }, { - "id": "6310515e-13bf-4a49-8362-a52c6cc66472", - "comment": "", - "command": "type", - "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[2]/input", - "targets": [], - "value": "${couleur_2}" - }, { - "id": "0d144adc-908b-4263-8d23-5a1274453349", - "comment": "Voir et modifier ce champ", - "command": "check", - "target": "xpath=//input[@id=\"f_user_access_level_2\"]", - "targets": [], - "value": "" - }, { - "id": "fa2b7989-eb58-421e-8be6-5fc30399d977", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "9c67c411-b37a-464a-86d8-3f04c30c90e7", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "1c632650-bfec-4992-af67-080f1c28c866", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "862df273-e1e8-4ce5-9b92-b41134e4ba7e", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "f05280ef-68ae-42b7-83b3-8ac1c33420a5", - "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": "a8effd1c-6f36-40d3-b6cb-a04a365b0c03", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "53e8fda0-31e9-4640-9a32-834d55859611", - "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": "fee07908-e8c2-4321-ac27-f5a8c4db6841", - "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": "7cd7ed56-dc20-4f68-8694-0cde596b83c4", - "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": "courriel" - }, { - "id": "5ec54cf9-3451-4610-b9d6-6c389a87703f", - "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": "${courriel}" - }, { - "id": "9318cbbe-8849-4d91-85a4-5726b44bcff0", - "comment": "", - "command": "click", - "target": "xpath=//span[@class=\"datalist\"]/button", - "targets": [ - ["css=.datalist > button", "css:finder"], - ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], - ["xpath=//dd[14]/span/button", "xpath:position"] - ], - "value": "" - }, { - "id": "923adf5c-7cba-42f9-af44-9abb177be56f", - "comment": "", - "command": "mouseDown", - "target": "xpath=//datalist[@id=\"list-f_couleur_preferee\"]/option[text()=\"${couleur_2}\"]", - "targets": [], - "value": "" - }, { - "id": "a4e8977d-ad10-47ff-ac5f-76227e0ee0c9", - "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": "e79443de-7879-43b6-b393-689218d0e477", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "3bd9aeca-240c-4327-8a05-a34dfb94376c", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "30cb8e9c-fbcb-4eb2-9617-60467d371474", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "79edf175-61a9-4e08-b937-a777b9b2f954", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "e0c035ca-dc33-4e93-960d-4ace82aac75b", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${couleur_2}" - }, { - "id": "bd28d542-29cf-4751-9af7-53bb7c248615", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"edit_security.php\")]", - "targets": [], - "value": "" - }, { - "id": "c34866f2-9a6d-4087-81b9-fb3c9b3027ac", - "comment": "", - "command": "store", - "target": "soin oeuf mélodieux intellectuel", - "targets": [], - "value": "mdp" - }, { - "id": "5d518ca1-a76f-440d-a575-685836b2b92c", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "56014c7b-6ead-48f0-9806-0522c2d3eb86", - "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": "034dca36-39a8-4846-a75b-402c589518f2", - "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": "6830cf58-9c9d-41e2-abef-ea04ec4ff30c", - "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": "389736d4-f016-441d-8b9e-b7c3a72079f5", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["relative=parent"] - ], - "value": "" - }, { - "id": "50b53b42-015c-4206-8b7e-1568c74f6ab5", - "comment": "Déconnexion admin", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "0e363588-f248-4e90-9bc6-6c4df48ad694", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "${courriel}" - }, { - "id": "295dabea-bed7-42aa-b3ee-069ca04b31ec", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "${mdp}" - }, { - "id": "d6c837da-1800-451b-97d8-9a519e87b68b", - "comment": "", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "348531dd-1150-48d6-967e-6e7e31bde3f6", - "comment": "vérifier présence couleur et la modifier", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "8f7f9d0e-1bf9-414a-8e6a-3d8042ae75c9", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me\")]", - "targets": [], - "value": "" - }, { - "id": "8dc7d5c9-5c19-44b9-90d9-20f06cc1960e", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${couleur_2}" - }, { - "id": "a5893d98-5523-4de5-a7af-7113e9a37e3f", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", - "targets": [], - "value": "" - }, { - "id": "2173af64-8953-40eb-8f6d-de539a8662df", - "comment": "", - "command": "click", - "target": "xpath=//span[@class=\"datalist\"]/button", - "targets": [ - ["css=.datalist > button", "css:finder"], - ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], - ["xpath=//dd[14]/span/button", "xpath:position"] - ], - "value": "" - }, { - "id": "2bc353bb-2f12-4108-90f8-0cf719f0de33", - "comment": "", - "command": "mouseDown", - "target": "xpath=//datalist[@id=\"list-f_couleur_preferee\"]/option[text()=\"${couleur_1}\"]", - "targets": [], - "value": "" - }, { - "id": "1016d0a6-0ed5-44da-aab3-38b5c114d154", - "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": "9cd6dba1-8a53-4bf2-beaa-e943ac7f9b01", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${couleur_1}" - }, { - "id": "5108a5ed-707b-436f-83fd-eac7e9c21b63", - "comment": "Déconnexion membre", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "345755ba-d8cd-4dba-b3df-26489ba30a7b", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "172f9532-49a9-4ba5-9b0f-1ef14724d360", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "97e79b3d-c556-41f5-b1b7-17ab038e0d7e", - "comment": "Connexion admin", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "7ea143d7-5852-4400-b0c2-71c944157bdc", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "fe5fe961-e770-4b33-a116-b646e0870e0a", - "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": "4a0bb8d8-5b42-4bfc-84fa-3f5a317cb016", - "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": "6823e588-b84b-4454-97d6-8055babfcf25", - "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": "08ea7582-e1ef-4764-b587-1a0c9968fcff", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "a9b8d522-ad62-4774-94d5-3b37d9dab267", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "97dd04ea-9371-4234-83d0-58aa0724594b", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "9277f65c-feb3-4408-a08b-edf8d0e42337", - "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": "5ac8f9c9-1c92-475b-b8d5-1e07ade098fd", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [], - "value": "" - }, { - "id": "fc0545e6-3875-4a1c-9271-053b0dc16b19", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "06ee2786-c94a-40b8-aee2-d64b822c9064", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }] - }, { - "id": "7a858aed-70b7-4c7a-bc4f-799216bb455b", - "name": "11-18 ajout texte plusieurs lignes", - "commands": [{ - "id": "8592d352-6761-405d-8b97-0c542c3831e4", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "3b028d0f-53d8-4a7f-a6f9-870ff1b400c9", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "dce026b0-1dba-4002-8cd7-ea3385670548", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "7c21f555-78a6-4e46-b9a0-76b104157b05", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "4b3f6757-70b8-424f-8b93-f17bae8d18a7", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "e82856c0-de89-4ac8-a1d7-7bde81bdfc9f", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "fbc0f175-d7b8-48b0-92ca-9e3429c7e54d", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "449b7f5f-06bb-4568-8cf8-de664890bca1", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6dc8b83c-085f-4e4f-a2ad-b533192feb36", - "comment": "ajouter champ perso texte choix multiple", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "185ad369-9bdc-4333-820c-e06a420b6f75", - "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": "ba6cc7fe-7365-4aa2-90e8-049cc8fe0d03", - "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": "55c711d5-0e75-4db9-8999-0462ab25ff94", - "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": "4953e3b4-8eb0-4591-89fe-b2b128c10776", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "c3acd961-ae32-4b82-b034-cb09e32d076f", - "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": "e2b95045-82d4-4856-ae08-7b9493d64a01", - "comment": "Texte libre, plusieurs lignes", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"textarea\"]", - "targets": [], - "value": "" - }, { - "id": "c8bb4f26-c4fe-494f-89b7-0a7e6e3c71d7", - "comment": "", - "command": "store", - "target": "Biographie", - "targets": [], - "value": "libelle_champ" - }, { - "id": "65f73ed1-17ff-4865-9a4f-f42fe09abd98", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "47d2595b-7bb0-4efa-a560-5085b7322f28", - "comment": "", - "command": "executeScript", - "target": "return 'f_' + g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", - "targets": [], - "value": "id_champ" - }, { - "id": "814d2a1a-ca2e-40a4-b9c0-92b0b09403f3", - "comment": "", - "command": "type", - "target": "id=f_help", - "targets": [], - "value": "Remplissez votre biographie" - }, { - "id": "36e1c4bf-c4c3-4ccb-b5e7-ba6acab485d2", - "comment": "Voir et modifier ce champ", - "command": "check", - "target": "xpath=//input[@id=\"f_user_access_level_2\"]", - "targets": [], - "value": "" - }, { - "id": "9824b759-1155-413e-925f-ecef0d077258", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "e37149c3-2d90-4da6-90d2-d2c3bb13e5b2", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "ce77b385-478e-4b64-954e-16f7678e9d5b", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "c9837dd4-4d4b-489f-a4f4-0f116d8f3303", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "bd879677-2914-4d8c-b012-c214978e22dd", - "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": "4cd0af34-c111-4746-b2ab-a3c5b31d0525", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "f551de1d-3552-4671-90c9-36c8655aadd8", - "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": "a9c0c663-4865-4835-9df2-5150e3efb5c5", - "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": "a6708cd1-6c26-4425-aab7-c5a99e010970", - "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": "courriel" - }, { - "id": "f69a0752-5668-43a0-9e09-c36281f05e31", - "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": "${courriel}" - }, { - "id": "8004afa1-0ec6-4ccd-8cc1-b6069697cbbc", - "comment": "", - "command": "store", - "target": "Je suis né\\nvoici longtemps", - "targets": [], - "value": "valeur_champ" - }, { - "id": "acc48e40-1c9b-4ad9-abc2-012e23a9d2ae", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [ - ["id=f_biographie", "id"], - ["name=biographie", "name"], - ["css=#f_biographie", "css:finder"], - ["xpath=//textarea[@id='f_biographie']", "xpath:attributes"], - ["xpath=//dd[14]/textarea", "xpath:position"] - ], - "value": "${valeur_champ}" - }, { - "id": "bc89630b-ba40-4894-940b-fa14ad7d2d6f", - "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": "be0822c2-0f61-4756-b2d2-c5bdfed99614", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "85c019c1-6859-4863-9447-7757a17227a5", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "b11356e1-ac5f-4d51-a055-2202c5efbeb9", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "74afd5f2-9981-480c-8e45-788c34a382ad", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "d1079935-c068-4c7f-a19f-54c3d6bac34f", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "9d1bc5d4-cd90-4193-9595-30311c46fd49", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"edit_security.php\")]", - "targets": [], - "value": "" - }, { - "id": "525c6f05-4dd0-402b-9582-d78a190a1b8f", - "comment": "", - "command": "store", - "target": "soin oeuf mélodieux intellectuel", - "targets": [], - "value": "mdp" - }, { - "id": "9997e945-bfad-4f3b-993e-f8c93b64cf43", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "fbba3728-9316-4d9b-928d-bc0abe587bb7", - "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": "eca0cf05-50ea-4eb4-bffc-e518b01a043b", - "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": "924e1a96-584c-4c97-9507-b0a3ce0fb3a7", - "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": "98c3b487-72df-4ca5-a9cb-349d1c65fc0a", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["relative=parent"] - ], - "value": "" - }, { - "id": "8a416856-0f3f-4987-aa96-622900e858d9", - "comment": "Déconnexion admin", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "62c60e5c-af02-4693-b581-c7fe5b77af79", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "${courriel}" - }, { - "id": "8614294e-8c19-4fc1-a63a-7e468a60789e", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "${mdp}" - }, { - "id": "2b2d1a81-f9f0-485d-9141-14721f06b53f", - "comment": "", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "eb492faf-9afd-40e9-903d-3ae007258b9e", - "comment": "vérifier présence bio et la modifier", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "0cda0ea6-f688-4d93-b55e-a5305b987e41", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me\")]", - "targets": [], - "value": "" - }, { - "id": "fe72d32e-9286-42cb-9360-7ace1cb44687", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "0baa2a46-7590-4732-9aa5-20931e8ea52e", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", - "targets": [], - "value": "" - }, { - "id": "b6d1759d-71cd-4933-abc7-dfc9b50435b1", - "comment": "", - "command": "store", - "target": "Pas grand chose à dire\\nTout roule", - "targets": [], - "value": "valeur_champ" - }, { - "id": "f87dce78-4756-4c35-9234-1fec05e12610", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [ - ["id=f_biographie", "id"], - ["name=biographie", "name"], - ["css=#f_biographie", "css:finder"], - ["xpath=//textarea[@id='f_biographie']", "xpath:attributes"], - ["xpath=//dd[14]/textarea", "xpath:position"] - ], - "value": "${valeur_champ}" - }, { - "id": "f674b308-3cba-42db-adf6-19e1d16cd794", - "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": "f3b72b09-d9a3-44e3-a5f4-fa0bab6b1d1f", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "121538e9-bcb0-413a-9c70-f1b7831fb033", - "comment": "Déconnexion membre", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "7062acd6-d5c4-4c4a-a9c4-c8c6aee72edd", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "31c3bf89-004f-4413-9817-e3adcd7fc733", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "b30fd4ce-c272-4b23-bd1f-bde335c355cd", - "comment": "Connexion admin", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "8b160ac7-5f67-4961-8b41-a926307d710f", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "56884039-8308-40ac-ba45-2566ac030f83", - "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": "169d55fb-60fa-464f-9dff-486bfa7d5abe", - "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": "f9010180-fbac-4051-8231-9bba193a393d", - "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": "670c1c54-2aeb-495c-a98e-1f646733a371", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "2b1abbba-56e0-4cfb-9caa-1cec43ec5863", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "56a01c1c-73ba-4316-813d-260d665a5bb1", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "6fdf0cfa-0daf-4c52-ae28-ba10b89ac1a1", - "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": "4006e736-a8f9-4d1d-a422-6db31bcc4ca1", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [], - "value": "" - }, { - "id": "d0cc7c1c-e886-4a9e-9f24-fac30cf33d8e", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "72f1d9f6-79bd-4687-9b51-2b1dbb94ee53", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }] - }, { - "id": "4073d67e-c10e-4c4a-a994-b6c8e2520b19", - "name": "11-19 ajout champ calculé", - "commands": [{ - "id": "43132073-c6e7-4c99-b7da-0658b46446c4", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "1b6709af-a2b6-460b-b29c-819bfd6fd618", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "894f55ad-540c-4bfb-9f34-03c588633ece", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "9562f6ec-639a-4b9e-a1e7-1451da275ff8", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "8d9e6045-92d1-42c8-a00c-96242921eb6e", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "160c6189-35e4-44bb-afe5-26ce5a485eb1", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "d23d2c34-5c61-4ea7-8d00-e12a6012e7e1", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "06d2a221-5f6a-459f-af9e-2684286c72e5", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "b3a42fdd-5ec9-4ad2-838f-d2dad7ffff16", - "comment": "ajouter champ perso calculé", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "784c5d62-6b1c-4a0e-ad41-e9ed6070ac9b", - "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": "64a0066a-a471-4b37-9a66-102c338092e6", - "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": "ba251808-0312-433a-9f34-378526b3aace", - "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": "55848734-2ab0-4a06-ae61-f3072ef934fe", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "1d6548d4-8719-4ee9-9c78-ce86e36f2131", - "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": "79820c8d-ebf5-4ec5-a6cd-1be38e27b66c", - "comment": "champ calculé", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"virtual\"]", - "targets": [], - "value": "" - }, { - "id": "235e4bff-0249-4d6e-9ae4-a5ce6cc3a427", - "comment": "", - "command": "store", - "target": "Bizarre", - "targets": [], - "value": "libelle_champ" - }, { - "id": "e55eb32a-3681-4590-bd8a-e76a6ae0a4a3", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "b9902c7a-3989-40f1-98fd-0d5ec43dc1d0", - "comment": "", - "command": "store", - "target": "CASE WHEN length(nom) < 5 THEN 777 ELSE unicode(substr(nom, 1)) + unicode(substr(nom, 2)) + unicode(substr(nom, 3)) + unicode(substr(nom, 4)) + unicode(substr(nom, 5)) END", - "targets": [], - "value": "formule" - }, { - "id": "4fc2a40f-01a7-4bb1-9c1c-aaba5ff94e78", - "comment": "", - "command": "type", - "target": "id=f_sql", - "targets": [], - "value": "${formule}" - }, { - "id": "cb83cdce-ee0a-4437-9675-a44336f5c3dd", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "27606508-47ab-45b0-b44c-8183df26709a", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "c76f4cf1-0ee2-45c5-b50d-f5128b37dac1", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "21727fb6-1d55-4199-94f5-5ba284a74090", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "067e1761-1312-4d09-93dd-0c37fb6ec27a", - "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": "731710ac-f8a7-4ebe-bdc9-5c9c0f8a5c97", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "244e7f00-2901-4ce1-8622-c43f5f918349", - "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": "83cb7c44-6163-4ad9-a763-9fd1409e2378", - "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": "e46e1cdc-7346-4266-8c85-ac6b1e75fc82", - "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": "courriel" - }, { - "id": "495dcdd4-7098-4d76-8c0f-9b22910a1102", - "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": "${courriel}" - }, { - "id": "99be26e5-0285-40ba-9582-b43ea901999a", - "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": "6600b317-a1e9-461b-8839-0b9da366481b", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "743d2afc-aa51-4491-b4e5-f39d06cf5ca1", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "05ce2500-8508-422b-bf6e-4fdac20a212e", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "756adc11-2421-411d-aec4-5537c9be96d4", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "37b42cc8-b2cc-42d5-b79d-b9df5b20df69", - "comment": "", - "command": "executeScript", - "target": "function calculer(nb, chaine){ let somme = 0; for (let i = 0; i < nb; ++i) { somme += chaine.charCodeAt(i);\t} return somme; } return calculer(5, ${nom});", - "targets": [], - "value": "code" - }, { - "id": "5e619452-54b7-465e-99bf-51e106b8bc33", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${code}" - }, { - "id": "2256aef1-4e16-49ac-a647-ac20ebff04b4", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "4b4fb86e-e444-452d-a5c0-db776f3efcff", - "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": "3d5c7385-27f1-48ed-8543-cc3d86653f55", - "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": "65098d50-8994-410f-94c0-8bda5da57599", - "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": "96496f9d-a271-405d-8f01-2f841001ff87", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "cbc00a67-2a60-4055-98ed-f9b50d70d73d", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "a1fb3b80-ca8a-475b-912a-7b0cff9d8ce7", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "2848407a-eba5-46e7-938b-b262c66c94f8", - "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": "ee791676-1a15-4d0f-afbf-4b4a04ae8590", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [], - "value": "" - }, { - "id": "9eaa9a78-b307-463a-b9a2-cbfc39c36c26", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "53d9e84b-1c52-4288-a1d7-b1093a5d4728", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }] }, { "id": "ba5e6368-646b-447e-9e5e-3c3cdded211a", "name": "11-01 ajout email", @@ -30435,13 +27734,9 @@ }, { "id": "4620ed8f-d970-4c8b-8de7-9b1e49e70a85", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "349e86f3-356e-4eb5-8f0b-b5b3f8f769bb", @@ -31092,13 +28387,9 @@ }, { "id": "bd1b6edb-93f1-4d27-b7d1-16a87afa4332", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "019c5fe5-b7bf-4835-9370-d65c6fc4e437", @@ -31715,13 +29006,9 @@ }, { "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "017f913d-88f3-48f7-a463-37f1e5ee4fdb", @@ -32330,13 +29617,9 @@ }, { "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "6b9123c7-b3b4-4f26-bcfd-f324a593f85e", @@ -33000,13 +30283,9 @@ }, { "id": "b362e32f-f09f-423c-abcc-d8779ebdffc0", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "6c90d62a-0061-40a9-9883-c2ecf1bc4d46", @@ -33032,6 +30311,667 @@ "targets": [], "value": "" }] + }, { + "id": "731de8ad-89b7-4242-ab2f-27310e42f6ff", + "name": "11-06 ajout mois et année", + "commands": [{ + "id": "5ba13851-3d65-47af-9dd7-77dfc63a3708", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "cfae3fd2-3b51-40f9-a994-f037214af2a6", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "9d62b7ae-3c2a-43a2-8007-c23a35bfc46d", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "487aad09-3eb2-47f5-9bc7-47551fdf4960", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "c564be48-89ad-4c19-ad0d-095182dcbbb1", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "50780cc6-c0ad-4d45-b5de-3ad38cb00b5d", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "e9da05ec-ba8f-43bf-991f-337135b754c4", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "c696d27a-f356-4204-b7c9-0794ec946b68", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "279053f8-178c-4c1c-9e9b-f9b23f14da3c", + "comment": "ajouter champ mois et année", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c9c04c72-eb8c-4079-a348-bae75e48aeef", + "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": "7a6d9db3-4cf4-425e-9f30-f0abbade603a", + "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": "db9c3ef2-2d91-453e-a93f-e6c81f8fee60", + "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": "dbb6ca0f-b036-4822-a948-f46d8f4438d2", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "27bd2e2e-3a30-4a4d-b7a8-1705a2354a97", + "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": "d6d58230-d3bf-4098-a2b2-3031b0f7e664", + "comment": "champ mois et année", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"month\"]", + "targets": [], + "value": "" + }, { + "id": "a662f57a-64d8-4bd4-946e-355b3490f603", + "comment": "", + "command": "store", + "target": "Permis de conduire", + "targets": [], + "value": "libelle_champ" + }, { + "id": "339023b5-3662-4ff3-9956-04d7460ee29a", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "64207991-d552-4a5e-9cc5-0a3a6563df11", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "0e362d36-1887-4fc2-9a05-82fd3e28a13f", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "421638d3-d67f-4bcc-8247-26ec707d128d", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Année et mois de ton permis de conduire" + }, { + "id": "9a2894a9-baa7-4c9b-964b-638e54011728", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "6e14f3ce-d455-4dd3-8bd8-47741418649a", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "90606263-d73c-466f-a3c8-6033b9d20e6b", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "d990b139-32e9-4f89-8e3c-074fa20a7af1", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "83fc0fac-805e-4fda-b8df-ae58c570be48", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "51691f2d-76fe-42b3-842a-8da2c49e7780", + "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": "b894e24b-87db-4c9f-b882-a99756d0b5b2", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "a73ee6c8-64ff-499a-946b-1f817bc2c6d7", + "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": "906f4daa-7fe9-4906-b60c-f111161e8c42", + "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": "eecf169e-d0a7-4601-bfb5-3a6659d821af", + "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": "3c526a31-ffdd-4dfd-91fe-4bfe5afcbb9f", + "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": "9621df99-e7b1-417c-90ca-1a555cab61da", + "comment": "", + "command": "store", + "target": "10", + "targets": [], + "value": "mois" + }, { + "id": "8d6da958-a5a1-40a0-8596-8aa6eb31f883", + "comment": "", + "command": "store", + "target": "1978", + "targets": [], + "value": "annee" + }, { + "id": "3d7271e3-db88-49e4-82a4-64980040b9fe", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${mois}" + }, { + "id": "c57ca521-400a-432c-96f1-8261c75fc855", + "comment": "", + "command": "sendKeys", + "target": "id=${id_champ}", + "targets": [], + "value": "${KEY_TAB}" + }, { + "id": "cf7196e8-eafa-4bc9-a751-24917e9ee9d4", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${annee}" + }, { + "id": "038241b6-e90d-49cf-8cb9-4ed6a18955dd", + "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": "693b60f1-5dc6-43aa-9797-56b58d51c7e4", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "2b35dec9-9805-4fc0-842c-b4fd45eb5768", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "46b4edae-1544-4ed8-8659-38770b62156b", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "4168e214-d966-468b-b26e-10db46d47c64", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "4e390dff-fd4e-4401-8fa3-01da3f21b57d", + "comment": "", + "command": "executeScript", + "target": "function toText(mois, annee){ let lesMois = [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]; var mois = Number(mois); var annee = Number(annee); if (mois > 12) { annee += Math.floor(mois / 12); mois = mois % 12; } if (mois == 0) { annee -= 1; mois = 12; } return lesMois[mois - 1] + \" \" + annee;}; return toText(${mois}, ${annee});", + "targets": [], + "value": "valeur_champ" + }, { + "id": "692d8264-3602-470c-a2d9-487a41d33b73", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "14db0c77-e8f0-4cf6-a014-e8d3da78168f", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "7d66fe69-c255-4ade-9e86-812fa49cd205", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "c84e274b-f0e8-4ecd-ab5e-555c91a9f303", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "eff7fb61-bb49-49e1-9b45-6aaa82d6f41b", + "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": "1a10e7c6-9912-4901-8a28-e45686809b97", + "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": "a6f36f46-6f46-4ef6-8663-c0655ae2a111", + "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": "bebf6045-1956-4f28-ac11-2a995d2a3cc3", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "eccdde78-1aaf-4718-a88d-9204de1581e1", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "af3949de-d449-4ed2-9ab1-d9158f391563", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${email}" + }, { + "id": "0d9216cb-dd68-40f7-9a7a-8577aba6a01a", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "ed2896ae-2b6c-4397-b29d-e723b2f2e3aa", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "556649d3-a86d-48e9-95e3-b929d5104be9", + "comment": "vérifier date et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "cb319359-b8f7-4012-bd25-30925c0aa331", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "8382a664-c285-4bcc-9aa3-0997df016cb8", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "7fe3b139-e320-4fbb-b3de-59c67a7f9173", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "329bd7ac-730e-4108-b80f-29256b6321f4", + "comment": "", + "command": "store", + "target": "12", + "targets": [], + "value": "mois" + }, { + "id": "9912d5f6-c362-4aff-9674-928913ff70be", + "comment": "", + "command": "store", + "target": "2005", + "targets": [], + "value": "annee" + }, { + "id": "a201a51b-8c8e-4ce5-92d8-a5c623cc8fe3", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${mois}" + }, { + "id": "96b7dfce-15a1-4754-9279-37199fdfcf19", + "comment": "", + "command": "sendKeys", + "target": "id=${id_champ}", + "targets": [], + "value": "${KEY_TAB}" + }, { + "id": "21c6b308-589a-4b69-992a-f7a283dcf261", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${annee}" + }, { + "id": "8b0a3b18-0945-43fb-bac3-216f3ec64eb1", + "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": "ee11afa6-fe19-45c6-b3c0-bbd3e4c1b2a7", + "comment": "", + "command": "executeScript", + "target": "function toText(mois, annee){ let lesMois = [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]; var mois = Number(mois); var annee = Number(annee); if (mois > 12) { annee += Math.floor(mois / 12); mois = mois % 12; } if (mois == 0) { annee -= 1; mois = 12; } return lesMois[mois - 1] + \" \" + annee;}; return toText(${mois}, ${annee});", + "targets": [], + "value": "valeur_champ" + }, { + "id": "9c3b2a80-ef6a-47fa-968b-4f0d1d980322", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "3b021b2d-8c1f-4867-bbf5-742c87596744", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "4a224457-33a0-408a-a788-ad2ec0d907c3", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "9c57d305-0e29-41f5-8669-a18e78dbff4b", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "1ec2f1be-09a7-4472-b3c1-3abb4161c883", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "56021381-ddb4-430e-99ac-43125cd8d94c", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6644d23d-26f2-43c2-8d28-93f56e83b4ef", + "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": "777fc2c5-0187-4dce-b09a-a710d4a4141e", + "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": "8f7fd1c5-d051-4839-93bb-678432180e1e", + "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": "c180e07c-60cb-47ae-8043-c81bff0467a7", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "7e87fed4-cdc0-4e9b-b0c5-6dc42588cbb3", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "844903aa-3c24-4864-b9be-8a69d5f1e8ac", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "3e57de2c-85e7-4ee5-865e-069a228c548b", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "d7deff0c-5680-4831-933b-d39d105b2a5c", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "f241da96-bb62-42b9-86cb-e621a48db9a1", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "6c51da0c-3c76-4596-9bd7-b8d85c281d68", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }, { "id": "ee2ad930-7a67-41d0-9723-fec221c087e3", "name": "11-07 ajout année", @@ -33615,13 +31555,9 @@ }, { "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "316301ef-76ed-49c0-a1a2-4edb981c0614", @@ -34417,13 +32353,9 @@ }, { "id": "f5d25094-bd75-4b52-8687-6047cfeac006", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "5884f071-38ac-4fb2-89d4-944cc3b8bf96", @@ -35053,13 +32985,9 @@ }, { "id": "d944f328-2493-4491-8893-4508ac869067", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "d3a8a948-47cc-4ba9-9649-3e91e2f4928c", @@ -35668,13 +33596,9 @@ }, { "id": "362c6df0-a598-40ef-abf3-61c76dd2e529", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "df5e4450-7581-4b60-bedc-5a49cf73c903", @@ -36297,13 +34221,9 @@ }, { "id": "4cf0ee64-e418-40e2-ad77-f537061daa07", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "4def33d0-9309-4a9a-ae61-3a3c1155add4", @@ -36954,13 +34874,9 @@ }, { "id": "d436fe98-82ea-46da-b249-2e859b4b66c1", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "9fcebf77-874e-4450-9215-3b4864a5352a", @@ -37619,13 +35535,9 @@ }, { "id": "d11793df-d276-447b-bf61-7f8009bc2ccb", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "0d87da9a-74b5-46c3-8114-f32a5e14ce87", @@ -38396,13 +36308,9 @@ }, { "id": "b8aa3f8a-2f4b-42dc-ba56-5ff49bf642e2", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "d8b3fd53-fcbb-4159-8d1e-7a3c7e66f362", @@ -39075,13 +36983,9 @@ }, { "id": "17d8391d-be9b-42e9-9d2f-d06c05f2759a", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "1990f3b5-ffc2-443d-8c49-bd227b7af82d", @@ -39107,6 +37011,2300 @@ "targets": [], "value": "" }] + }, { + "id": "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", + "name": "11-16 ajout texte libre", + "commands": [{ + "id": "c3fd3819-d125-49a9-9c12-66133228fd6d", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "6b8a8131-0ed7-4cc5-9a71-904225ca65d5", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "cf6ec825-87da-4e2d-bfdd-fbb9f5691e5a", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "4cca2064-e10f-48fc-8118-763fd4827bc7", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "cd4b2740-bb0f-47c8-804a-0049783519f3", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "60fbc949-f45c-4812-9ac2-fb1e46de104d", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "6620db5d-0952-4220-a4ee-36b7b1d3fbb7", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "623cb795-c9c2-4f58-b1f7-826202e46491", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "57d9a01a-c10f-43b6-a8e5-01aa4bca89ba", + "comment": "ajouter champ perso texte libre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "dd793890-5cd6-4a4a-9a2b-1a78be9ae997", + "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": "87ec2a39-008f-4345-a14f-c0f43029a673", + "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": "a9428d49-b493-4729-a2a4-842134a0cb5d", + "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": "76011df4-82a9-4e9b-8ca3-6d4276cfb51b", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "c4fb3eeb-814b-472b-a7af-e291a70a108e", + "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": "8aaf1bef-ff65-4e2f-923c-d2f5d7ac1b66", + "comment": "Texte libre, plusieurs lignes", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", + "targets": [], + "value": "" + }, { + "id": "5e66a5ed-bd1c-41f1-86e8-5ac431d8db90", + "comment": "", + "command": "store", + "target": "Surnom", + "targets": [], + "value": "libelle_champ" + }, { + "id": "52762d81-7f1c-4f0d-b235-dc855dc03e5c", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "845fdf99-1b9f-4c77-87b6-fbf0ade6608b", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "2c288443-6692-43ee-aa6f-60aac15d8c84", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "20ade5bb-6b60-4bc1-b242-341e07d2ec02", + "comment": "afficher dans la liste", + "command": "check", + "target": "id=f_list_table_1", + "targets": [], + "value": "" + }, { + "id": "df6f40ff-00d0-46db-9ac8-1c11c60ae841", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "344f949d-5189-4582-a660-4b9621e3065c", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "1259d340-4a98-414b-8dde-cf682152e018", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "0e880718-3047-4ca9-a4d9-153c4e3a5c95", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "13437439-bd48-4de9-ab74-9d5a96a4ac96", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b5c190e5-04b1-4203-8051-280227f5f66f", + "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": "b4d31f3d-ee60-4242-9eca-e105bd41d5d5", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "8d88d802-c81f-4b66-8c4c-a105174325b3", + "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": "594cd642-3de3-42ba-8ee2-385e107c4942", + "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": "e959f594-8fe5-445d-8f35-ee54eba3b0fa", + "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": "courriel" + }, { + "id": "ef164b82-ac3f-4319-8be2-18fe753ec992", + "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": "${courriel}" + }, { + "id": "d1169339-0855-4081-ba5f-db8ec86da1a4", + "comment": "", + "command": "store", + "target": "polo", + "targets": [], + "value": "valeur_champ" + }, { + "id": "073a7fc5-5f65-4726-9568-b083c9f77469", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "1313a108-34ec-46a7-b9a3-87df1e191f5f", + "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": "90bd7390-4464-46af-9699-17ccc5da658d", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5aaa883b-0393-4af8-9d93-547e3fdb1c7c", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "e15f7577-80de-4a29-820b-e3416b0d4ad9", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "84b8e706-ce97-4a3c-a197-7aebbbc93485", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "4d59e3ee-d889-4c64-8ace-4e8676d0e484", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "4a0698e9-cdff-4e39-9e74-81a97de40993", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/users/\")]", + "targets": [], + "value": "" + }, { + "id": "fa4f70ea-2669-4e4a-9695-3cff3c635db4", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href,\"${nom_champ}\")]", + "targets": [], + "value": "" + }, { + "id": "26b83690-1ae4-4782-a4f0-b88825d1d7b7", + "comment": "", + "command": "executeScript", + "target": "history.back()", + "targets": [], + "value": "" + }, { + "id": "f9d83865-0614-4ba0-93f2-5751a1b3f9fc", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "43b9593e-5320-457f-b78e-257eee857647", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "f7ef648b-e2f1-43a6-bfdd-7ec85f9525ba", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "487d5f70-1242-474f-86e3-f9846bafada5", + "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": "79540f2e-426c-4d29-b13e-bd552be5cbc9", + "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": "75dfe593-a687-4a36-b838-c71cc5c40c15", + "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": "52eb2a5a-525d-462c-8b45-fd59ff0dfd63", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "1f4321d1-5b1e-4452-8f8e-ff2cc30acac2", + "comment": "Déconnexion", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "d5be5db5-0f5f-4922-91e2-18e1ef508e77", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${courriel}" + }, { + "id": "64f977f4-834d-4a69-9fcf-ed0075178045", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "6addd80b-2882-4851-a3fe-0d8a9679d865", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "90123a0d-2bbf-40aa-9e57-da345acb1b66", + "comment": "vérifier présence surnom et le modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "ef518498-e211-4019-9e62-72a3f11adec8", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "9f0c4f68-152e-4d80-a312-c9945fce277b", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "1c880cb2-fee1-4bd7-8075-7a0b71edaedc", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "9d7bfab5-fbf7-489e-b748-a0b171bbe7f4", + "comment": "", + "command": "store", + "target": "marco", + "targets": [], + "value": "valeur_champ" + }, { + "id": "ba6cd831-80eb-4206-b1d7-38372904088c", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "6491e095-4aab-41e0-88fe-9c1f4b0fbca7", + "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": "05573975-1c01-434a-8205-77bc52b9921d", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "bf886799-82d7-48fc-a5b5-f527f2fc6640", + "comment": "Déconnexion", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "940adc8d-9dd4-47d1-9b20-1c4d39a41670", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "3977a194-6880-4bc7-9ecc-9346a675e3d2", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "6f5c0c8f-360b-464f-8b0c-cb2a4158d919", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "28dd54f2-8b8e-4c67-a0b6-1cb368790460", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "7e7a96d6-f55e-43b2-b279-f5a775f3fb18", + "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": "a4b3ffc5-f2df-4e9a-ae95-eefc92dca183", + "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": "7d64683e-11e3-468b-b01a-06b4b1ba530f", + "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": "a30e8724-dd4c-44f1-8d44-ac598ed92b0a", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "6d328d7a-2b0a-4d63-bd72-ec0e921fa0ea", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "d513e6d7-2936-4422-aa8d-6eccc7309128", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "2d5690e6-6b70-4710-8d96-1698737e06ad", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "7a7074a2-7c29-43ef-b5c8-afc9e2082cc9", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "700c2dd3-74c6-4fe9-8a3f-ae95365fad1d", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "eb0d957c-d94b-4ad8-a54b-a8094938bfd5", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "2384d69f-4c58-451a-81e0-dca879d67f32", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/users/\")]", + "targets": [], + "value": "" + }, { + "id": "7aa7dae4-a0e7-40a8-9afb-866382235c78", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href,\"${nom_champ}\")]", + "targets": [], + "value": "" + }] + }, { + "id": "340b4d62-de7f-4c00-a559-e4f6a2246f08", + "name": "11-17 ajout texte choix multiple", + "commands": [{ + "id": "b650089f-b23b-4f7d-bf7a-0d0278240389", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "71f0258f-588a-4d6a-8650-48133c816027", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "ae935a8f-6a23-4a3c-9b9f-ffaa50703a5b", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "cc096276-4beb-4fd9-96e2-835dd6231b26", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "860746fd-2a29-4a2f-877d-8a7b58615f03", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "5510e465-e7b9-4f82-bb92-61ea038212b8", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "e6a3d61b-62b6-40b7-a359-52064eb0377f", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "d899dfe1-63f4-4397-bd2d-f91c1d03efe9", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e5338447-e876-4574-82e8-d037b47df7f6", + "comment": "ajouter champ perso texte choix multiple", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "61384325-95b3-442b-903d-420276f304ef", + "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": "8a9b96d8-7dac-4cfc-97a3-b2ef59fbe607", + "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": "744e6c44-703e-46f5-afde-c06274fe96e1", + "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": "4fd862a6-a01a-4cff-8395-a55719413277", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "168ad4b9-40df-4507-87bc-84a7108f781d", + "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": "bbbc6bca-f79f-4168-9863-6b6acda5b6f3", + "comment": "texte choix multiple", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"datalist\"]", + "targets": [], + "value": "" + }, { + "id": "2f663491-41b4-447e-9e68-8ec1116c5d24", + "comment": "", + "command": "store", + "target": "Couleur préférée", + "targets": [], + "value": "libelle_champ" + }, { + "id": "d5961725-5c51-4a19-8644-8fcf46ef1e42", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "3662475d-a04a-479d-a9f3-cff1c2a760bd", + "comment": "", + "command": "store", + "target": "Violet", + "targets": [], + "value": "couleur_defaut" + }, { + "id": "c2b71d4c-86da-4719-b9a7-4772b6c10bb4", + "comment": "", + "command": "type", + "target": "id=f_default_value", + "targets": [], + "value": "${couleur_defaut}" + }, { + "id": "88db557d-5e62-483b-9bdd-28579cb28cd7", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Indiquez votre couleur préférée" + }, { + "id": "ceede050-b826-474d-8190-45481ae2360c", + "comment": "", + "command": "store", + "target": "Jaune", + "targets": [], + "value": "couleur_1" + }, { + "id": "b5f0d5cd-eaa1-4aea-a4fd-1a404924b530", + "comment": "", + "command": "type", + "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[1]/input", + "targets": [], + "value": "${couleur_1}" + }, { + "id": "b7d08447-6045-4dbc-a715-c43717634a38", + "comment": "", + "command": "click", + "target": "xpath=//button[@title=\"Ajouter une option\"]", + "targets": [], + "value": "" + }, { + "id": "a73f4002-8779-4d5e-ba56-483c48830fb4", + "comment": "", + "command": "store", + "target": "Rouge", + "targets": [], + "value": "couleur_2" + }, { + "id": "6310515e-13bf-4a49-8362-a52c6cc66472", + "comment": "", + "command": "type", + "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[2]/input", + "targets": [], + "value": "${couleur_2}" + }, { + "id": "0d144adc-908b-4263-8d23-5a1274453349", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "fa2b7989-eb58-421e-8be6-5fc30399d977", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "9c67c411-b37a-464a-86d8-3f04c30c90e7", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "1c632650-bfec-4992-af67-080f1c28c866", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "862df273-e1e8-4ce5-9b92-b41134e4ba7e", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f05280ef-68ae-42b7-83b3-8ac1c33420a5", + "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": "a8effd1c-6f36-40d3-b6cb-a04a365b0c03", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "53e8fda0-31e9-4640-9a32-834d55859611", + "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": "fee07908-e8c2-4321-ac27-f5a8c4db6841", + "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": "7cd7ed56-dc20-4f68-8694-0cde596b83c4", + "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": "courriel" + }, { + "id": "5ec54cf9-3451-4610-b9d6-6c389a87703f", + "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": "${courriel}" + }, { + "id": "9318cbbe-8849-4d91-85a4-5726b44bcff0", + "comment": "", + "command": "click", + "target": "xpath=//span[@class=\"datalist\"]/button", + "targets": [ + ["css=.datalist > button", "css:finder"], + ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], + ["xpath=//dd[14]/span/button", "xpath:position"] + ], + "value": "" + }, { + "id": "923adf5c-7cba-42f9-af44-9abb177be56f", + "comment": "", + "command": "mouseDown", + "target": "xpath=//datalist[@id=\"list-f_couleur_preferee\"]/option[text()=\"${couleur_2}\"]", + "targets": [], + "value": "" + }, { + "id": "a4e8977d-ad10-47ff-ac5f-76227e0ee0c9", + "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": "e79443de-7879-43b6-b393-689218d0e477", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "3bd9aeca-240c-4327-8a05-a34dfb94376c", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "30cb8e9c-fbcb-4eb2-9617-60467d371474", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "79edf175-61a9-4e08-b937-a777b9b2f954", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "e0c035ca-dc33-4e93-960d-4ace82aac75b", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${couleur_2}" + }, { + "id": "bd28d542-29cf-4751-9af7-53bb7c248615", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "c34866f2-9a6d-4087-81b9-fb3c9b3027ac", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "5d518ca1-a76f-440d-a575-685836b2b92c", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "56014c7b-6ead-48f0-9806-0522c2d3eb86", + "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": "034dca36-39a8-4846-a75b-402c589518f2", + "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": "6830cf58-9c9d-41e2-abef-ea04ec4ff30c", + "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": "389736d4-f016-441d-8b9e-b7c3a72079f5", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "50b53b42-015c-4206-8b7e-1568c74f6ab5", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "0e363588-f248-4e90-9bc6-6c4df48ad694", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${courriel}" + }, { + "id": "295dabea-bed7-42aa-b3ee-069ca04b31ec", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "d6c837da-1800-451b-97d8-9a519e87b68b", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "348531dd-1150-48d6-967e-6e7e31bde3f6", + "comment": "vérifier présence couleur et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "8f7f9d0e-1bf9-414a-8e6a-3d8042ae75c9", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "8dc7d5c9-5c19-44b9-90d9-20f06cc1960e", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${couleur_2}" + }, { + "id": "a5893d98-5523-4de5-a7af-7113e9a37e3f", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "2173af64-8953-40eb-8f6d-de539a8662df", + "comment": "", + "command": "click", + "target": "xpath=//span[@class=\"datalist\"]/button", + "targets": [ + ["css=.datalist > button", "css:finder"], + ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], + ["xpath=//dd[14]/span/button", "xpath:position"] + ], + "value": "" + }, { + "id": "2bc353bb-2f12-4108-90f8-0cf719f0de33", + "comment": "", + "command": "mouseDown", + "target": "xpath=//datalist[@id=\"list-f_couleur_preferee\"]/option[text()=\"${couleur_1}\"]", + "targets": [], + "value": "" + }, { + "id": "1016d0a6-0ed5-44da-aab3-38b5c114d154", + "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": "9cd6dba1-8a53-4bf2-beaa-e943ac7f9b01", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${couleur_1}" + }, { + "id": "5108a5ed-707b-436f-83fd-eac7e9c21b63", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "345755ba-d8cd-4dba-b3df-26489ba30a7b", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "172f9532-49a9-4ba5-9b0f-1ef14724d360", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "97e79b3d-c556-41f5-b1b7-17ab038e0d7e", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "7ea143d7-5852-4400-b0c2-71c944157bdc", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "fe5fe961-e770-4b33-a116-b646e0870e0a", + "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": "4a0bb8d8-5b42-4bfc-84fa-3f5a317cb016", + "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": "6823e588-b84b-4454-97d6-8055babfcf25", + "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": "08ea7582-e1ef-4764-b587-1a0c9968fcff", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "a9b8d522-ad62-4774-94d5-3b37d9dab267", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "97dd04ea-9371-4234-83d0-58aa0724594b", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "9277f65c-feb3-4408-a08b-edf8d0e42337", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "5ac8f9c9-1c92-475b-b8d5-1e07ade098fd", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "fc0545e6-3875-4a1c-9271-053b0dc16b19", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "06ee2786-c94a-40b8-aee2-d64b822c9064", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] + }, { + "id": "7a858aed-70b7-4c7a-bc4f-799216bb455b", + "name": "11-18 ajout texte plusieurs lignes", + "commands": [{ + "id": "8592d352-6761-405d-8b97-0c542c3831e4", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "3b028d0f-53d8-4a7f-a6f9-870ff1b400c9", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "dce026b0-1dba-4002-8cd7-ea3385670548", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "7c21f555-78a6-4e46-b9a0-76b104157b05", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "4b3f6757-70b8-424f-8b93-f17bae8d18a7", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "e82856c0-de89-4ac8-a1d7-7bde81bdfc9f", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "fbc0f175-d7b8-48b0-92ca-9e3429c7e54d", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "449b7f5f-06bb-4568-8cf8-de664890bca1", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6dc8b83c-085f-4e4f-a2ad-b533192feb36", + "comment": "ajouter champ perso texte choix multiple", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "185ad369-9bdc-4333-820c-e06a420b6f75", + "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": "ba6cc7fe-7365-4aa2-90e8-049cc8fe0d03", + "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": "55c711d5-0e75-4db9-8999-0462ab25ff94", + "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": "4953e3b4-8eb0-4591-89fe-b2b128c10776", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "c3acd961-ae32-4b82-b034-cb09e32d076f", + "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": "e2b95045-82d4-4856-ae08-7b9493d64a01", + "comment": "Texte libre, plusieurs lignes", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"textarea\"]", + "targets": [], + "value": "" + }, { + "id": "c8bb4f26-c4fe-494f-89b7-0a7e6e3c71d7", + "comment": "", + "command": "store", + "target": "Biographie", + "targets": [], + "value": "libelle_champ" + }, { + "id": "65f73ed1-17ff-4865-9a4f-f42fe09abd98", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "47d2595b-7bb0-4efa-a560-5085b7322f28", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "id_champ" + }, { + "id": "814d2a1a-ca2e-40a4-b9c0-92b0b09403f3", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Remplissez votre biographie" + }, { + "id": "36e1c4bf-c4c3-4ccb-b5e7-ba6acab485d2", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "9824b759-1155-413e-925f-ecef0d077258", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "e37149c3-2d90-4da6-90d2-d2c3bb13e5b2", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "ce77b385-478e-4b64-954e-16f7678e9d5b", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "c9837dd4-4d4b-489f-a4f4-0f116d8f3303", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "bd879677-2914-4d8c-b012-c214978e22dd", + "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": "4cd0af34-c111-4746-b2ab-a3c5b31d0525", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "f551de1d-3552-4671-90c9-36c8655aadd8", + "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": "a9c0c663-4865-4835-9df2-5150e3efb5c5", + "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": "a6708cd1-6c26-4425-aab7-c5a99e010970", + "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": "courriel" + }, { + "id": "f69a0752-5668-43a0-9e09-c36281f05e31", + "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": "${courriel}" + }, { + "id": "8004afa1-0ec6-4ccd-8cc1-b6069697cbbc", + "comment": "", + "command": "store", + "target": "Je suis né\\nvoici longtemps", + "targets": [], + "value": "valeur_champ" + }, { + "id": "acc48e40-1c9b-4ad9-abc2-012e23a9d2ae", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [ + ["id=f_biographie", "id"], + ["name=biographie", "name"], + ["css=#f_biographie", "css:finder"], + ["xpath=//textarea[@id='f_biographie']", "xpath:attributes"], + ["xpath=//dd[14]/textarea", "xpath:position"] + ], + "value": "${valeur_champ}" + }, { + "id": "bc89630b-ba40-4894-940b-fa14ad7d2d6f", + "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": "be0822c2-0f61-4756-b2d2-c5bdfed99614", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "85c019c1-6859-4863-9447-7757a17227a5", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "b11356e1-ac5f-4d51-a055-2202c5efbeb9", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "74afd5f2-9981-480c-8e45-788c34a382ad", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "d1079935-c068-4c7f-a19f-54c3d6bac34f", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "9d1bc5d4-cd90-4193-9595-30311c46fd49", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "525c6f05-4dd0-402b-9582-d78a190a1b8f", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "9997e945-bfad-4f3b-993e-f8c93b64cf43", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "fbba3728-9316-4d9b-928d-bc0abe587bb7", + "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": "eca0cf05-50ea-4eb4-bffc-e518b01a043b", + "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": "924e1a96-584c-4c97-9507-b0a3ce0fb3a7", + "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": "98c3b487-72df-4ca5-a9cb-349d1c65fc0a", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "8a416856-0f3f-4987-aa96-622900e858d9", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "62c60e5c-af02-4693-b581-c7fe5b77af79", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${courriel}" + }, { + "id": "8614294e-8c19-4fc1-a63a-7e468a60789e", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "2b2d1a81-f9f0-485d-9141-14721f06b53f", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "eb492faf-9afd-40e9-903d-3ae007258b9e", + "comment": "vérifier présence bio et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "0cda0ea6-f688-4d93-b55e-a5305b987e41", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "fe72d32e-9286-42cb-9360-7ace1cb44687", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "0baa2a46-7590-4732-9aa5-20931e8ea52e", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "b6d1759d-71cd-4933-abc7-dfc9b50435b1", + "comment": "", + "command": "store", + "target": "Pas grand chose à dire\\nTout roule", + "targets": [], + "value": "valeur_champ" + }, { + "id": "f87dce78-4756-4c35-9234-1fec05e12610", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [ + ["id=f_biographie", "id"], + ["name=biographie", "name"], + ["css=#f_biographie", "css:finder"], + ["xpath=//textarea[@id='f_biographie']", "xpath:attributes"], + ["xpath=//dd[14]/textarea", "xpath:position"] + ], + "value": "${valeur_champ}" + }, { + "id": "f674b308-3cba-42db-adf6-19e1d16cd794", + "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": "f3b72b09-d9a3-44e3-a5f4-fa0bab6b1d1f", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "121538e9-bcb0-413a-9c70-f1b7831fb033", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "7062acd6-d5c4-4c4a-a9c4-c8c6aee72edd", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "31c3bf89-004f-4413-9817-e3adcd7fc733", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "b30fd4ce-c272-4b23-bd1f-bde335c355cd", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "8b160ac7-5f67-4961-8b41-a926307d710f", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "56884039-8308-40ac-ba45-2566ac030f83", + "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": "169d55fb-60fa-464f-9dff-486bfa7d5abe", + "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": "f9010180-fbac-4051-8231-9bba193a393d", + "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": "670c1c54-2aeb-495c-a98e-1f646733a371", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "2b1abbba-56e0-4cfb-9caa-1cec43ec5863", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "56a01c1c-73ba-4316-813d-260d665a5bb1", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "6fdf0cfa-0daf-4c52-ae28-ba10b89ac1a1", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "4006e736-a8f9-4d1d-a422-6db31bcc4ca1", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "d0cc7c1c-e886-4a9e-9f24-fac30cf33d8e", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "72f1d9f6-79bd-4687-9b51-2b1dbb94ee53", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] + }, { + "id": "4073d67e-c10e-4c4a-a994-b6c8e2520b19", + "name": "11-19 ajout champ calculé", + "commands": [{ + "id": "43132073-c6e7-4c99-b7da-0658b46446c4", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "1b6709af-a2b6-460b-b29c-819bfd6fd618", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "894f55ad-540c-4bfb-9f34-03c588633ece", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "9562f6ec-639a-4b9e-a1e7-1451da275ff8", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "8d9e6045-92d1-42c8-a00c-96242921eb6e", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "160c6189-35e4-44bb-afe5-26ce5a485eb1", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "d23d2c34-5c61-4ea7-8d00-e12a6012e7e1", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "06d2a221-5f6a-459f-af9e-2684286c72e5", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b3a42fdd-5ec9-4ad2-838f-d2dad7ffff16", + "comment": "ajouter champ perso calculé", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "784c5d62-6b1c-4a0e-ad41-e9ed6070ac9b", + "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": "64a0066a-a471-4b37-9a66-102c338092e6", + "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": "ba251808-0312-433a-9f34-378526b3aace", + "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": "55848734-2ab0-4a06-ae61-f3072ef934fe", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "1d6548d4-8719-4ee9-9c78-ce86e36f2131", + "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": "79820c8d-ebf5-4ec5-a6cd-1be38e27b66c", + "comment": "champ calculé", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"virtual\"]", + "targets": [], + "value": "" + }, { + "id": "235e4bff-0249-4d6e-9ae4-a5ce6cc3a427", + "comment": "", + "command": "store", + "target": "Bizarre", + "targets": [], + "value": "libelle_champ" + }, { + "id": "e55eb32a-3681-4590-bd8a-e76a6ae0a4a3", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "b9902c7a-3989-40f1-98fd-0d5ec43dc1d0", + "comment": "", + "command": "store", + "target": "CASE WHEN length(nom) < 5 THEN 777 ELSE unicode(substr(nom, 1)) + unicode(substr(nom, 2)) + unicode(substr(nom, 3)) + unicode(substr(nom, 4)) + unicode(substr(nom, 5)) END", + "targets": [], + "value": "formule" + }, { + "id": "4fc2a40f-01a7-4bb1-9c1c-aaba5ff94e78", + "comment": "", + "command": "type", + "target": "id=f_sql", + "targets": [], + "value": "${formule}" + }, { + "id": "cb83cdce-ee0a-4437-9675-a44336f5c3dd", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "27606508-47ab-45b0-b44c-8183df26709a", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "c76f4cf1-0ee2-45c5-b50d-f5128b37dac1", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "21727fb6-1d55-4199-94f5-5ba284a74090", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "067e1761-1312-4d09-93dd-0c37fb6ec27a", + "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": "731710ac-f8a7-4ebe-bdc9-5c9c0f8a5c97", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "244e7f00-2901-4ce1-8622-c43f5f918349", + "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": "83cb7c44-6163-4ad9-a763-9fd1409e2378", + "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": "e46e1cdc-7346-4266-8c85-ac6b1e75fc82", + "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": "courriel" + }, { + "id": "495dcdd4-7098-4d76-8c0f-9b22910a1102", + "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": "${courriel}" + }, { + "id": "99be26e5-0285-40ba-9582-b43ea901999a", + "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": "6600b317-a1e9-461b-8839-0b9da366481b", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "743d2afc-aa51-4491-b4e5-f39d06cf5ca1", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "05ce2500-8508-422b-bf6e-4fdac20a212e", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "756adc11-2421-411d-aec4-5537c9be96d4", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "37b42cc8-b2cc-42d5-b79d-b9df5b20df69", + "comment": "", + "command": "executeScript", + "target": "function calculer(nb, chaine){ let somme = 0; for (let i = 0; i < nb; ++i) { somme += chaine.charCodeAt(i);\t} return somme; } return calculer(5, ${nom});", + "targets": [], + "value": "code" + }, { + "id": "5e619452-54b7-465e-99bf-51e106b8bc33", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${code}" + }, { + "id": "2256aef1-4e16-49ac-a647-ac20ebff04b4", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "4b4fb86e-e444-452d-a5c0-db776f3efcff", + "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": "3d5c7385-27f1-48ed-8543-cc3d86653f55", + "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": "65098d50-8994-410f-94c0-8bda5da57599", + "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": "96496f9d-a271-405d-8f01-2f841001ff87", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "cbc00a67-2a60-4055-98ed-f9b50d70d73d", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "a1fb3b80-ca8a-475b-912a-7b0cff9d8ce7", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "2848407a-eba5-46e7-938b-b262c66c94f8", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "ee791676-1a15-4d0f-afbf-4b4a04ae8590", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "9eaa9a78-b307-463a-b9a2-cbfc39c36c26", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "53d9e84b-1c52-4288-a1d7-b1093a5d4728", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }, { "id": "2f90c2f6-6b1b-4703-abc9-a137b58f0443", "name": "11-30 ajout ancienneté", @@ -39227,13 +39425,7 @@ "comment": "", "command": "check", "target": "id=f_preset_anciennete", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], + "targets": [], "value": "" }, { "id": "f9bd4f64-6e7f-43a1-9e70-ec4b84f77405", @@ -39467,13 +39659,9 @@ }, { "id": "ccefa64b-eb44-4613-ae68-52433ba1601b", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "7f938238-1df3-4478-9e70-8964ddcd873c", @@ -39505,6 +39693,387 @@ "targets": [], "value": "" }] + }, { + "id": "c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", + "name": "11-31 ajout année naissance", + "commands": [{ + "id": "fad4e699-eb78-4fc8-8e60-a24dd2fe416a", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "1adba047-8e6f-4266-a99f-caa532b03f5c", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "d82172c5-99a1-4e09-be44-a82fbb2cc2f6", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "c67b55f1-11b2-42b2-9519-483ea34f0ef9", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "ea2ab020-7afc-4a22-a4f0-8ae3310e1a94", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "c7eacfec-63f7-4270-b872-6b1ca50f7d97", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "f86048c5-728a-40db-8702-ae6626f974a4", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "f1c9dacc-5b09-42bb-b18f-97e4c813504d", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "874df3c2-9f05-4ad0-99c8-1026c8dfa99f", + "comment": "ajouter champ année de naissance", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "15c2ce08-77f2-47c3-b726-32b9819cfe3b", + "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": "0bb8d8b4-cf62-46f9-8bdb-fab366290ddd", + "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": "6281eed2-5d22-47d9-9fd6-0a4ead3dad16", + "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": "27afead2-1dc0-4591-8922-f5653bab1ea4", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "195d7ce3-6762-494f-a9b3-2f4fbb54a8fa", + "comment": "", + "command": "check", + "target": "id=f_preset_annee_naissance", + "targets": [], + "value": "" + }, { + "id": "166cd504-cc79-480f-a667-4e3222afb8e1", + "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": "22660ae0-917a-4bf4-9ee1-311636f13f8e", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "525596a7-6693-4f0c-840c-4c334634e13b", + "comment": "", + "command": "store", + "target": "Année de naissance", + "targets": [], + "value": "libelle_champ" + }, { + "id": "8599211d-fe2e-4aa3-a14e-25667f21267f", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "5379b4c9-9fef-49ea-96ab-2929b54429d9", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "50199175-09ca-4d8f-a03a-d1a7c7530cb7", + "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": "872cd0af-2fcb-4469-b1ce-989802375f96", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "561d5365-f25d-4eb6-be76-f2a7a5bf2a90", + "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": "71fbee85-1e78-437c-ac6d-06b38dde2473", + "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": "ad917270-aed3-4571-b7b6-862972263d93", + "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": "courriel" + }, { + "id": "f499bf94-582c-4a6d-ac1b-b56e806568e1", + "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": "${courriel}" + }, { + "id": "0eef0ac6-95f1-44e2-861f-2ee24d5a6c10", + "comment": "", + "command": "store", + "target": "1987", + "targets": [], + "value": "annee_naissance" + }, { + "id": "fc6f642e-bbfe-4c30-9862-3346ab422bb3", + "comment": "", + "command": "type", + "target": "id=f_annee_naissance", + "targets": [], + "value": "${annee_naissance}" + }, { + "id": "0c006549-23e7-4413-a2aa-2d7ed6a9296c", + "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": "11c69838-26b4-4811-92bf-49f32bec5e05", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "62b3ec5d-446c-4cd7-9987-0cdd458212d2", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "58ca7144-bfe9-47fd-806e-5ab79e3068c2", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "05c7c432-f908-4d30-b8b0-ce0f7f5e4ffb", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "bc015ec8-c06a-487e-8390-ba796ee26a7d", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", + "targets": [], + "value": "${annee_naissance}" + }, { + "id": "3a54e7b8-d218-47e8-a387-b4f4b5a0486f", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b683dce5-0d0e-4110-91ee-ddb727232228", + "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": "9bb1c2aa-3374-4811-adb6-2bf3167a0972", + "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": "5b1fd4ef-7d09-4e87-a48c-50d773d4aed6", + "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": "470403fa-a396-4684-8b43-8deb18a446ab", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "4b67d3d6-e1e5-414d-88b7-39e14b4bf493", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "81b76145-9b62-41b0-b5a6-c3d774f3a086", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "30fd3fe3-b407-4461-b52e-320a17cf7bb2", + "comment": "", + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], + "value": "" + }, { + "id": "771a50f5-f4eb-4435-a84b-a2b9959c84af", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [ + ["name=delete", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='delete']", "xpath:attributes"], + ["xpath=//button", "xpath:position"], + ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "fa3d47bc-c295-4004-b7bf-e914bd7209f7", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "3eacf3bd-fae1-42c2-afa7-faf4f1b8edd3", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }, { "id": "8462cb7c-312b-4a01-a91d-bbe93166deab", "name": "11-32 ajout date naissance", @@ -39625,13 +40194,7 @@ "comment": "", "command": "check", "target": "id=f_preset_date_naissance", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], + "targets": [], "value": "" }, { "id": "07fbd75a-0a46-4826-a996-d79448860c36", @@ -39858,13 +40421,9 @@ }, { "id": "fdc44a84-607c-414c-ae5c-f81bdecb86f4", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "f25c9a8d-2f62-4712-9650-f70b0ae2e2ff", @@ -40016,13 +40575,7 @@ "comment": "", "command": "check", "target": "id=f_preset_pays", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], + "targets": [], "value": "" }, { "id": "d861bdc0-3edf-49e7-9816-fe691bc8c91d", @@ -40528,13 +41081,9 @@ }, { "id": "726e5019-8e74-4428-af3b-e65bb32a5914", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "84951c73-ef15-4870-969f-6f164bdda32a", @@ -40560,856 +41109,6 @@ "targets": [], "value": "" }] - }, { - "id": "731de8ad-89b7-4242-ab2f-27310e42f6ff", - "name": "11-06 ajout mois et année", - "commands": [{ - "id": "5ba13851-3d65-47af-9dd7-77dfc63a3708", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "cfae3fd2-3b51-40f9-a994-f037214af2a6", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "9d62b7ae-3c2a-43a2-8007-c23a35bfc46d", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "487aad09-3eb2-47f5-9bc7-47551fdf4960", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "c564be48-89ad-4c19-ad0d-095182dcbbb1", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "50780cc6-c0ad-4d45-b5de-3ad38cb00b5d", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "e9da05ec-ba8f-43bf-991f-337135b754c4", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "c696d27a-f356-4204-b7c9-0794ec946b68", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "279053f8-178c-4c1c-9e9b-f9b23f14da3c", - "comment": "ajouter champ mois et année", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "c9c04c72-eb8c-4079-a348-bae75e48aeef", - "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": "7a6d9db3-4cf4-425e-9f30-f0abbade603a", - "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": "db9c3ef2-2d91-453e-a93f-e6c81f8fee60", - "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": "dbb6ca0f-b036-4822-a948-f46d8f4438d2", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "27bd2e2e-3a30-4a4d-b7a8-1705a2354a97", - "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": "d6d58230-d3bf-4098-a2b2-3031b0f7e664", - "comment": "champ mois et année", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"month\"]", - "targets": [], - "value": "" - }, { - "id": "a662f57a-64d8-4bd4-946e-355b3490f603", - "comment": "", - "command": "store", - "target": "Permis de conduire", - "targets": [], - "value": "libelle_champ" - }, { - "id": "339023b5-3662-4ff3-9956-04d7460ee29a", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "64207991-d552-4a5e-9cc5-0a3a6563df11", - "comment": "", - "command": "executeScript", - "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", - "targets": [], - "value": "nom_champ" - }, { - "id": "0e362d36-1887-4fc2-9a05-82fd3e28a13f", - "comment": "", - "command": "executeScript", - "target": "return 'f_' + ${nom_champ}", - "targets": [], - "value": "id_champ" - }, { - "id": "421638d3-d67f-4bcc-8247-26ec707d128d", - "comment": "", - "command": "type", - "target": "id=f_help", - "targets": [], - "value": "Année et mois de ton permis de conduire" - }, { - "id": "9a2894a9-baa7-4c9b-964b-638e54011728", - "comment": "Voir et modifier ce champ", - "command": "check", - "target": "xpath=//input[@id=\"f_user_access_level_2\"]", - "targets": [], - "value": "" - }, { - "id": "6e14f3ce-d455-4dd3-8bd8-47741418649a", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "90606263-d73c-466f-a3c8-6033b9d20e6b", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class,\"confirm\")]", - "targets": [], - "value": "" - }, { - "id": "d990b139-32e9-4f89-8e3c-074fa20a7af1", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }, { - "id": "83fc0fac-805e-4fda-b8df-ae58c570be48", - "comment": "créer un membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "51691f2d-76fe-42b3-842a-8da2c49e7780", - "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": "b894e24b-87db-4c9f-b882-a99756d0b5b2", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "a73ee6c8-64ff-499a-946b-1f817bc2c6d7", - "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": "906f4daa-7fe9-4906-b60c-f111161e8c42", - "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": "eecf169e-d0a7-4601-bfb5-3a6659d821af", - "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": "3c526a31-ffdd-4dfd-91fe-4bfe5afcbb9f", - "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": "9621df99-e7b1-417c-90ca-1a555cab61da", - "comment": "", - "command": "store", - "target": "10", - "targets": [], - "value": "mois" - }, { - "id": "8d6da958-a5a1-40a0-8596-8aa6eb31f883", - "comment": "", - "command": "store", - "target": "1978", - "targets": [], - "value": "annee" - }, { - "id": "3d7271e3-db88-49e4-82a4-64980040b9fe", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${mois}" - }, { - "id": "c57ca521-400a-432c-96f1-8261c75fc855", - "comment": "", - "command": "sendKeys", - "target": "id=${id_champ}", - "targets": [], - "value": "${KEY_TAB}" - }, { - "id": "cf7196e8-eafa-4bc9-a751-24917e9ee9d4", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${annee}" - }, { - "id": "038241b6-e90d-49cf-8cb9-4ed6a18955dd", - "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": "693b60f1-5dc6-43aa-9797-56b58d51c7e4", - "comment": "vérifier infos membre", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "2b35dec9-9805-4fc0-842c-b4fd45eb5768", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "46b4edae-1544-4ed8-8659-38770b62156b", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "4168e214-d966-468b-b26e-10db46d47c64", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${email}" - }, { - "id": "4e390dff-fd4e-4401-8fa3-01da3f21b57d", - "comment": "", - "command": "executeScript", - "target": "function toText(mois, annee){ let lesMois = [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]; var mois = Number(mois); var annee = Number(annee); if (mois > 12) { annee += Math.floor(mois / 12); mois = mois % 12; } if (mois == 0) { annee -= 1; mois = 12; } return lesMois[mois - 1] + \" \" + annee;}; return toText(${mois}, ${annee});", - "targets": [], - "value": "valeur_champ" - }, { - "id": "692d8264-3602-470c-a2d9-487a41d33b73", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "14db0c77-e8f0-4cf6-a014-e8d3da78168f", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"edit_security.php\")]", - "targets": [], - "value": "" - }, { - "id": "7d66fe69-c255-4ade-9e86-812fa49cd205", - "comment": "", - "command": "store", - "target": "soin oeuf mélodieux intellectuel", - "targets": [], - "value": "mdp" - }, { - "id": "c84e274b-f0e8-4ecd-ab5e-555c91a9f303", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "eff7fb61-bb49-49e1-9b45-6aaa82d6f41b", - "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": "1a10e7c6-9912-4901-8a28-e45686809b97", - "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": "a6f36f46-6f46-4ef6-8663-c0655ae2a111", - "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": "bebf6045-1956-4f28-ac11-2a995d2a3cc3", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["relative=parent"] - ], - "value": "" - }, { - "id": "eccdde78-1aaf-4718-a88d-9204de1581e1", - "comment": "Déconnexion admin", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "af3949de-d449-4ed2-9ab1-d9158f391563", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "${email}" - }, { - "id": "0d9216cb-dd68-40f7-9a7a-8577aba6a01a", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "${mdp}" - }, { - "id": "ed2896ae-2b6c-4397-b29d-e723b2f2e3aa", - "comment": "", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "556649d3-a86d-48e9-95e3-b929d5104be9", - "comment": "vérifier date et la modifier", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "cb319359-b8f7-4012-bd25-30925c0aa331", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me\")]", - "targets": [], - "value": "" - }, { - "id": "8382a664-c285-4bcc-9aa3-0997df016cb8", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "7fe3b139-e320-4fbb-b3de-59c67a7f9173", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", - "targets": [], - "value": "" - }, { - "id": "329bd7ac-730e-4108-b80f-29256b6321f4", - "comment": "", - "command": "store", - "target": "12", - "targets": [], - "value": "mois" - }, { - "id": "9912d5f6-c362-4aff-9674-928913ff70be", - "comment": "", - "command": "store", - "target": "2005", - "targets": [], - "value": "annee" - }, { - "id": "a201a51b-8c8e-4ce5-92d8-a5c623cc8fe3", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${mois}" - }, { - "id": "96b7dfce-15a1-4754-9279-37199fdfcf19", - "comment": "", - "command": "sendKeys", - "target": "id=${id_champ}", - "targets": [], - "value": "${KEY_TAB}" - }, { - "id": "21c6b308-589a-4b69-992a-f7a283dcf261", - "comment": "", - "command": "type", - "target": "id=${id_champ}", - "targets": [], - "value": "${annee}" - }, { - "id": "8b0a3b18-0945-43fb-bac3-216f3ec64eb1", - "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": "ee11afa6-fe19-45c6-b3c0-bbd3e4c1b2a7", - "comment": "", - "command": "executeScript", - "target": "function toText(mois, annee){ let lesMois = [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]; var mois = Number(mois); var annee = Number(annee); if (mois > 12) { annee += Math.floor(mois / 12); mois = mois % 12; } if (mois == 0) { annee -= 1; mois = 12; } return lesMois[mois - 1] + \" \" + annee;}; return toText(${mois}, ${annee});", - "targets": [], - "value": "valeur_champ" - }, { - "id": "9c3b2a80-ef6a-47fa-968b-4f0d1d980322", - "comment": "", - "command": "assertText", - "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", - "targets": [], - "value": "${valeur_champ}" - }, { - "id": "3b021b2d-8c1f-4867-bbf5-742c87596744", - "comment": "Déconnexion membre", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "4a224457-33a0-408a-a788-ad2ec0d907c3", - "comment": "", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "9c57d305-0e29-41f5-8669-a18e78dbff4b", - "comment": "", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "1ec2f1be-09a7-4472-b3c1-3abb4161c883", - "comment": "Connexion admin", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "56021381-ddb4-430e-99ac-43125cd8d94c", - "comment": "supprimer le champ ajouté", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6644d23d-26f2-43c2-8d28-93f56e83b4ef", - "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": "777fc2c5-0187-4dce-b09a-a710d4a4141e", - "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": "8f7fd1c5-d051-4839-93bb-678432180e1e", - "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": "c180e07c-60cb-47ae-8043-c81bff0467a7", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//tbody/tr", - "targets": [], - "value": "nb_champs" - }, { - "id": "7e87fed4-cdc0-4e9b-b0c5-6dc42588cbb3", - "comment": "", - "command": "click", - "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", - "targets": [], - "value": "" - }, { - "id": "844903aa-3c24-4864-b9be-8a69d5f1e8ac", - "comment": "", - "command": "selectFrame", - "target": "index=0", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "3e57de2c-85e7-4ee5-865e-069a228c548b", - "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": "d7deff0c-5680-4831-933b-d39d105b2a5c", - "comment": "", - "command": "click", - "target": "name=delete", - "targets": [], - "value": "" - }, { - "id": "f241da96-bb62-42b9-86cb-e621a48db9a1", - "comment": "", - "command": "selectFrame", - "target": "relative=parent", - "targets": [ - ["index=0"] - ], - "value": "" - }, { - "id": "6c51da0c-3c76-4596-9bd7-b8d85c281d68", - "comment": "", - "command": "assertElementNotPresent", - "target": "xpath=//th[text()=\"${libelle_champ}\"]", - "targets": [], - "value": "" - }] - }, { - "id": "22bcb88c-198f-4e5d-b3b0-d58feb9100be", - "name": "11-90 ajout identifiant présent", - "commands": [{ - "id": "e4949e8e-2366-4a46-92f3-412267e47018", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "ea6afcc7-492b-4f98-afa7-9bab5a7527c8", - "comment": "", - "command": "setWindowSize", - "target": "1280x1020", - "targets": [], - "value": "" - }, { - "id": "6d881d18-94b4-49cf-bc83-d3591a3e8b2a", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "06dee00a-d5af-41fa-a0a0-f269798bee0b", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "bdcfc166-23e4-4f45-ba66-5430e1821378", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "4f3c14c2-c9e2-4627-b2d2-a2f3675a6cb5", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "315d6070-4ea7-42c8-ba78-db30009d874f", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "17a57e71-6db4-4d32-940a-164d8b3c24a8", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "51b076e2-b507-47aa-bc35-fe5405fbcb76", - "comment": "ajouter champ perso identifiant déjà présent", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "8115a203-2b2a-4875-a08d-49c0ce3a217e", - "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": "fe852c7f-5106-421c-a706-d1fda75f08aa", - "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": "ee6e00e7-0e99-441f-9dab-198cb702c859", - "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": "e23b19d8-3ca3-494a-8e17-0e2b6d7ad65d", - "comment": "", - "command": "click", - "target": "xpath=//a[@href=\"new.php\"]", - "targets": [], - "value": "" - }, { - "id": "04bdd1ba-22cb-4e18-881e-098029898e9c", - "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": "a0684597-50f2-4ece-839e-cb9f64052f90", - "comment": "champ texte", - "command": "click", - "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", - "targets": [], - "value": "" - }, { - "id": "8761f6db-4080-4a3a-853e-df466a77db5d", - "comment": "", - "command": "store", - "target": "Texte quelconque", - "targets": [], - "value": "libelle_champ" - }, { - "id": "0a0a27df-6163-4d46-baa4-4c7613182b88", - "comment": "", - "command": "type", - "target": "xpath=//input[@id=\"f_label\"]", - "targets": [], - "value": "${libelle_champ}" - }, { - "id": "506c9349-d77d-496c-9564-2891884fb3ea", - "comment": "", - "command": "store", - "target": "adresse", - "targets": [], - "value": "nom_champ" - }, { - "id": "786b8766-b7e9-4673-b2eb-f8f922517999", - "comment": "", - "command": "type", - "target": "id=f_name", - "targets": [], - "value": "${nom_champ}" - }, { - "id": "30fa3352-c786-49fe-9e0f-904d96117efe", - "comment": "", - "command": "executeScript", - "target": "return 'f_' + ${nom_champ}", - "targets": [], - "value": "id_champ" - }, { - "id": "9502ea51-9b93-4279-bb4a-136942e7d8d8", - "comment": "", - "command": "type", - "target": "id=f_help", - "targets": [], - "value": "rien, ça va planter" - }, { - "id": "cde80650-625c-4f69-86d3-b2161f6df93a", - "comment": "", - "command": "click", - "target": "xpath=//button[@name=\"save\"]", - "targets": [], - "value": "" - }, { - "id": "5c4ab1ea-d5d1-4ef7-951e-bc7154715c0c", - "comment": "", - "command": "assertElementPresent", - "target": "xpath=//div[contains(@class,\"error\")]", - "targets": [], - "value": "" - }] }, { "id": "296dd358-da84-4f5d-a1e0-e035021b288c", "name": "11-34 ajout photo", @@ -41530,13 +41229,7 @@ "comment": "", "command": "check", "target": "id=f_preset_photo", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], + "targets": [], "value": "" }, { "id": "4c1b968b-206d-4a4a-b4f9-5a5ccb789e92", @@ -41764,18 +41457,6 @@ ["index=0"] ], "value": "" - }, { - "id": "fbb1dc53-abc2-4024-bd3f-4cfa37bba039", - "comment": "", - "command": "click", - "target": "xpath=//div[@class=\"file-selector\"]/button", - "targets": [ - ["css=.icn-btn:nth-child(1)", "css:finder"], - ["xpath=//button[@type='button']", "xpath:attributes"], - ["xpath=//button", "xpath:position"], - ["xpath=//button[contains(.,'Sélectionner des fichiers')]", "xpath:innerText"] - ], - "value": "" }, { "id": "19113e99-e0d0-4420-a558-6a3da2288887", "comment": "", @@ -41800,7 +41481,7 @@ "id": "8692f36f-8899-44ef-b3f3-c04b9fc720ec", "comment": "", "command": "click", - "target": "name=upload", + "target": "xpath=//button[@name='upload']", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], @@ -41820,7 +41501,7 @@ "id": "9852c541-bc2f-4b41-bbf4-e45ced24fd98", "comment": "", "command": "assertElementPresent", - "target": "//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", + "target": "xpath=//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { @@ -41939,7 +41620,7 @@ "id": "5ff68d5b-4847-4f18-9099-cde76e3906e3", "comment": "", "command": "assertElementPresent", - "target": "//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", + "target": "xpath=//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { @@ -42019,18 +41700,6 @@ ["index=0"] ], "value": "" - }, { - "id": "c43943dc-df85-4484-9832-1f0283393cf4", - "comment": "", - "command": "click", - "target": "xpath=//div[@class=\"file-selector\"]/button", - "targets": [ - ["css=.icn-btn:nth-child(1)", "css:finder"], - ["xpath=//button[@type='button']", "xpath:attributes"], - ["xpath=//button", "xpath:position"], - ["xpath=//button[contains(.,'Sélectionner des fichiers')]", "xpath:innerText"] - ], - "value": "" }, { "id": "983d2f0b-36c2-4035-8dd7-e7c04b5524b8", "comment": "", @@ -42055,7 +41724,7 @@ "id": "c27d13a4-63c9-4552-89c3-f7733e32c498", "comment": "", "command": "click", - "target": "name=upload", + "target": "xpath=//button[@name='upload']", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], @@ -42181,13 +41850,9 @@ }, { "id": "ba9c92a8-cdf2-41a5-9c24-34b9eca0b70d", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "7c98258c-e6be-486c-91fd-49bb32b133ef", @@ -42340,13 +42005,7 @@ "comment": "", "command": "check", "target": "id=f_preset_pronom", - "targets": [ - ["css=#f_default_category > option:nth-child(2)", "css:finder"], - ["xpath=//option[@value='2']", "xpath:attributes"], - ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], - ["xpath=//option[2]", "xpath:position"], - ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] - ], + "targets": [], "value": "" }, { "id": "183ae90e-12ae-48e9-a2c2-9b93abef4303", @@ -42817,13 +42476,9 @@ }, { "id": "4df51277-00d6-40ad-9b93-0a55714f8d37", "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"] - ], + "command": "check", + "target": "xpath=//input[@id='f_confirm_delete_1']", + "targets": [], "value": "" }, { "id": "4f246e7f-314d-4ed5-bc55-7e8c50061cb5", @@ -42849,6 +42504,191 @@ "targets": [], "value": "" }] + }, { + "id": "22bcb88c-198f-4e5d-b3b0-d58feb9100be", + "name": "11-90 ajout identifiant présent", + "commands": [{ + "id": "e4949e8e-2366-4a46-92f3-412267e47018", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "ea6afcc7-492b-4f98-afa7-9bab5a7527c8", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "6d881d18-94b4-49cf-bc83-d3591a3e8b2a", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "06dee00a-d5af-41fa-a0a0-f269798bee0b", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "bdcfc166-23e4-4f45-ba66-5430e1821378", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "4f3c14c2-c9e2-4627-b2d2-a2f3675a6cb5", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "315d6070-4ea7-42c8-ba78-db30009d874f", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "17a57e71-6db4-4d32-940a-164d8b3c24a8", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "51b076e2-b507-47aa-bc35-fe5405fbcb76", + "comment": "ajouter champ perso identifiant déjà présent", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "8115a203-2b2a-4875-a08d-49c0ce3a217e", + "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": "fe852c7f-5106-421c-a706-d1fda75f08aa", + "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": "ee6e00e7-0e99-441f-9dab-198cb702c859", + "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": "e23b19d8-3ca3-494a-8e17-0e2b6d7ad65d", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "04bdd1ba-22cb-4e18-881e-098029898e9c", + "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": "a0684597-50f2-4ece-839e-cb9f64052f90", + "comment": "champ texte", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", + "targets": [], + "value": "" + }, { + "id": "8761f6db-4080-4a3a-853e-df466a77db5d", + "comment": "", + "command": "store", + "target": "Texte quelconque", + "targets": [], + "value": "libelle_champ" + }, { + "id": "0a0a27df-6163-4d46-baa4-4c7613182b88", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "506c9349-d77d-496c-9564-2891884fb3ea", + "comment": "", + "command": "store", + "target": "adresse", + "targets": [], + "value": "nom_champ" + }, { + "id": "786b8766-b7e9-4673-b2eb-f8f922517999", + "comment": "", + "command": "type", + "target": "id=f_name", + "targets": [], + "value": "${nom_champ}" + }, { + "id": "30fa3352-c786-49fe-9e0f-904d96117efe", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "9502ea51-9b93-4279-bb4a-136942e7d8d8", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "rien, ça va planter" + }, { + "id": "cde80650-625c-4f69-86d3-b2161f6df93a", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "5c4ab1ea-d5d1-4ef7-951e-bc7154715c0c", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//div[contains(@class,\"error\")]", + "targets": [], + "value": "" + }] }, { "id": "2414b9b6-6de9-4c5d-b120-30830eba1b2f", "name": "12-01 numéro non affiché liste membres",