From 7ee116761d87103c14dc038eaeb3df334bf73a25 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 24 May 2024 11:29:00 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9organisation=20ordre=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paheko.side | 8566 +++++++++++++++++++++++++-------------------------- 1 file changed, 4283 insertions(+), 4283 deletions(-) diff --git a/paheko.side b/paheko.side index 3240efa..bccf008 100644 --- a/paheko.side +++ b/paheko.side @@ -4,105 +4,6 @@ "name": "paheko", "url": "http://test.paheko.localhost/", "tests": [{ - "id": "0849fbc2-a4f9-48a5-8698-afec02eb558f", - "name": "2-01 connexion correct", - "commands": [{ - "id": "7bbc53e7-fe56-460a-a7a6-e9139c354956", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/login.php", - "targets": [], - "value": "" - }, { - "id": "f06a2714-73cb-40d3-88a4-9779f977ecdc", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "connecte" - }, { - "id": "6f50359e-db5d-480b-9b33-23f50da83664", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "68572e57-230b-4188-a46f-714314a53e11", - "comment": "Déconnexion", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/logout.php')]", - "targets": [], - "value": "" - }, { - "id": "32c741d3-d2f5-4b81-b906-2c11c554d2d4", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6b84d76c-92d6-4eb3-b94b-f6da2b7608dc", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "f7fa777f-fd29-4f0e-ba56-86fef62e6006", - "comment": "identifiant connexion", - "command": "type", - "target": "id=f_id", - "targets": [ - ["id=f_id", "id"], - ["name=id", "name"], - ["css=#f_id", "css:finder"], - ["xpath=//input[@id='f_id']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "jckix@free.fr" - }, { - "id": "53b19364-7089-453c-8ccb-5520bb327dfd", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [ - ["id=f_password", "id"], - ["name=password", "name"], - ["css=#f_password", "css:finder"], - ["xpath=//input[@id='f_password']", "xpath:attributes"], - ["xpath=//dd[2]/input", "xpath:position"] - ], - "value": "interpeller noircir colis allumer" - }, { - "id": "7c9c73bd-21d6-4493-8281-07e86b662a59", - "comment": "", - "command": "click", - "target": "xpath=//button[@name='login']", - "targets": [ - ["name=login", "name"], - ["css=.main", "css:finder"], - ["xpath=//button[@name='login']", "xpath:attributes"], - ["xpath=//p/button", "xpath:position"], - ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "a0b40845-f16e-4a92-bb91-9c051c47b07b", - "comment": "Pas d'erreur ?", - "command": "assertElementNotPresent", - "target": "xpath=//div[contains(@class, \"error\")]", - "targets": [], - "value": "" - }, { - "id": "67e8d492-998e-4cce-aabb-5635a7f08ed0", - "comment": "Bonjour", - "command": "assertElementPresent", - "target": "xpath=//h1[contains(text(), \"Bonjour\")]", - "targets": [], - "value": "" - }] - }, { "id": "b3fdeef5-2f6f-46e8-a9db-5995bbf94957", "name": "1-01 installation", "commands": [{ @@ -397,6 +298,31 @@ "targets": [], "value": "${courriel_admin}" }] + }, { + "id": "b468a6eb-1199-460a-95f8-820df1f2c2f9", + "name": "1-01a installation échec", + "commands": [{ + "id": "fd5b9d86-7bfa-46ba-a15d-bce85f1441bb", + "comment": "Page installation", + "command": "open", + "target": "/admin/install.php", + "targets": [], + "value": "" + }, { + "id": "f653a356-df0c-4ec6-86a4-0a67e290fa6c", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "e005004f-2832-422b-8e57-f3990ed3ec3b", + "comment": "Erreur ?", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class, \"error\")]", + "targets": [], + "value": "" + }] }, { "id": "d6791401-e683-4d44-9513-24c52f1c6517", "name": "1-02 vérif 1er membre", @@ -493,189 +419,52 @@ "value": "jckix@free.fr" }] }, { - "id": "73154344-9dc7-43b7-beba-85d3f16cfe93", - "name": "3-zz lister membres (aucun intérêt)", + "id": "0849fbc2-a4f9-48a5-8698-afec02eb558f", + "name": "2-01 connexion correct", "commands": [{ - "id": "c561e0b2-5367-420e-a530-8e24d3cf9297", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "c63df998-f847-47ec-aed8-fec4934ef3b6", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "d090b2c0-814a-4a72-87d7-af0886072530", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "f6fd62aa-c1db-42da-a5f1-80e0852f2eb0", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "0f655ac2-d905-4a14-b8b1-2d92001a895b", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "453b055d-80f4-4097-ab4d-3aff80516186", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "ee961f42-9ace-4468-a030-39bf873b9a88", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "693bea62-5404-40e1-ba7f-a4ccd3323374", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "1682c797-1ef4-4826-b100-6284f9f0c928", - "comment": "Menu membres", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users')]", - "targets": [], - "value": "" - }, { - "id": "292be0eb-c74b-40dc-9b90-dafd4d0ec06c", - "comment": "Filtrer par catégorie", - "command": "executeScript", - "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); for (const l of li) { l.style.display=\"block\"; } return;", - "targets": [], - "value": "" - }, { - "id": "19a1b7ef-8969-432f-8c4d-43c9b6936237", - "comment": "Toutes même cachées", - "command": "click", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", - "targets": [], - "value": "" - }, { - "id": "ad08b4b8-9058-43e6-be28-848d6a695808", - "comment": "Nombre de membres", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_elem" - }, { - "id": "0b3f6c7c-14ab-4ede-ae49-4b659d093fbe", - "comment": "", - "command": "echo", - "target": "${nb_elem}", - "targets": [], - "value": "" - }, { - "id": "234819b7-c75f-4f15-acb8-ab293e8837e0", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "ee10387e-e8b1-4023-9edb-de63b04f51eb", - "comment": "Itérer sur les membres affichés", - "command": "while", - "target": "${num} <= ${nb_elem}", - "targets": [], - "value": "" - }, { - "id": "1c35bf5e-d7db-4389-936c-cfca34b7a04a", - "comment": "Nom du membre courant", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", - "targets": [], - "value": "nom" - }, { - "id": "24c2ff2f-ad77-4f52-b3ea-46747afdefc1", - "comment": "", - "command": "echo", - "target": "${nom}", - "targets": [], - "value": "" - }, { - "id": "b25a3810-d452-4df3-81c5-67322e8b56a5", - "comment": "", - "command": "executeScript", - "target": "return ${num} + 1", - "targets": [], - "value": "num" - }, { - "id": "b666dc38-8cd4-4e17-a56f-2eee14017c0a", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }] - }, { - "id": "c36d64ef-b5db-4c15-90aa-204431553d05", - "name": "2-03 connexion échec mdp", - "commands": [{ - "id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299", + "id": "7bbc53e7-fe56-460a-a7a6-e9139c354956", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { - "id": "65fd69db-b2db-4395-8140-6fd98d80b662", + "id": "f06a2714-73cb-40d3-88a4-9779f977ecdc", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "connecte" }, { - "id": "7168cad3-9c41-43f9-b7d4-29b70499346d", + "id": "6f50359e-db5d-480b-9b33-23f50da83664", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { - "id": "da322f69-7807-4d72-a4a2-b3a0ee786176", + "id": "68572e57-230b-4188-a46f-714314a53e11", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { - "id": "ff329f14-631f-4461-851b-1632e731bffd", + "id": "32c741d3-d2f5-4b81-b906-2c11c554d2d4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { - "id": "23420ae0-2de1-4fde-a7a4-d4965a203d0e", + "id": "6b84d76c-92d6-4eb3-b94b-f6da2b7608dc", "comment": "", "command": "setWindowSize", "target": "1080x1020", "targets": [], "value": "" }, { - "id": "9c144216-af36-4843-a761-d73fbdaa9e90", + "id": "f7fa777f-fd29-4f0e-ba56-86fef62e6006", "comment": "identifiant connexion", "command": "type", "target": "id=f_id", @@ -688,7 +477,7 @@ ], "value": "jckix@free.fr" }, { - "id": "73a8add8-f646-47a4-8de1-20099832c251", + "id": "53b19364-7089-453c-8ccb-5520bb327dfd", "comment": "mot de passe", "command": "type", "target": "id=f_password", @@ -699,9 +488,9 @@ ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], - "value": "xxx" + "value": "interpeller noircir colis allumer" }, { - "id": "4eb7de55-7b4a-41ab-b16c-5b1e4838c0cf", + "id": "7c9c73bd-21d6-4493-8281-07e86b662a59", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", @@ -714,12 +503,19 @@ ], "value": "" }, { - "id": "2072df70-2639-48a2-8b4d-00e6e42d0812", - "comment": "Erreur ?", - "command": "assertElementPresent", + "id": "a0b40845-f16e-4a92-bb91-9c051c47b07b", + "comment": "Pas d'erreur ?", + "command": "assertElementNotPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" + }, { + "id": "67e8d492-998e-4cce-aabb-5635a7f08ed0", + "comment": "Bonjour", + "command": "assertElementPresent", + "target": "xpath=//h1[contains(text(), \"Bonjour\")]", + "targets": [], + "value": "" }] }, { "id": "87aa0ef5-bb8c-496d-a196-0f92278e98b1", @@ -813,6 +609,98 @@ "targets": [], "value": "" }] + }, { + "id": "c36d64ef-b5db-4c15-90aa-204431553d05", + "name": "2-03 connexion échec mdp", + "commands": [{ + "id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "65fd69db-b2db-4395-8140-6fd98d80b662", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "connecte" + }, { + "id": "7168cad3-9c41-43f9-b7d4-29b70499346d", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "da322f69-7807-4d72-a4a2-b3a0ee786176", + "comment": "Déconnexion", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "ff329f14-631f-4461-851b-1632e731bffd", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "23420ae0-2de1-4fde-a7a4-d4965a203d0e", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "9c144216-af36-4843-a761-d73fbdaa9e90", + "comment": "identifiant connexion", + "command": "type", + "target": "id=f_id", + "targets": [ + ["id=f_id", "id"], + ["name=id", "name"], + ["css=#f_id", "css:finder"], + ["xpath=//input[@id='f_id']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "jckix@free.fr" + }, { + "id": "73a8add8-f646-47a4-8de1-20099832c251", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [ + ["id=f_password", "id"], + ["name=password", "name"], + ["css=#f_password", "css:finder"], + ["xpath=//input[@id='f_password']", "xpath:attributes"], + ["xpath=//dd[2]/input", "xpath:position"] + ], + "value": "xxx" + }, { + "id": "4eb7de55-7b4a-41ab-b16c-5b1e4838c0cf", + "comment": "", + "command": "click", + "target": "xpath=//button[@name='login']", + "targets": [ + ["name=login", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='login']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "2072df70-2639-48a2-8b4d-00e6e42d0812", + "comment": "Erreur ?", + "command": "assertElementPresent", + "target": "xpath=//div[contains(@class, \"error\")]", + "targets": [], + "value": "" + }] }, { "id": "efad291c-7700-4c1d-a0c7-393264364aa1", "name": "3-01 créer membre France", @@ -1234,433 +1122,6 @@ "targets": [], "value": "${date}" }] - }, { - "id": "efb8a434-ee82-48e0-a770-d4a668e28eec", - "name": "3-04 créer membre Inscrit lettre", - "commands": [{ - "id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "965f8db1-1ccc-49dc-8077-ca3f8288f472", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "661aed0a-884e-4eef-be1f-9a5a89cc29f3", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "873a1b1b-26cc-4313-b38f-e79e4a44f608", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "71b05198-73ab-44aa-a97f-49992ba43368", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "ef68cf00-5d1a-41df-8b10-2c48d63fa1a4", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "0ad26f7f-f3a5-447a-ac2d-6a0c11af16b6", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "d78d5e9e-c89c-4bee-895e-3759d24d9858", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "47d22a7d-8aae-45be-a9bd-824475be6756", - "comment": "", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "691ecfcc-24d0-434d-bfea-3ea059e05680", - "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": "ad21c34b-9929-471a-bea5-af7deff62c26", - "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) + \"@ailleurs.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "2f9d6666-9017-4df2-8483-d6757a42a163", - "comment": "", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "009a0309-b962-49fb-b5f6-bb67e9d84443", - "comment": "", - "command": "store", - "target": "3 rue des vagues", - "targets": [], - "value": "adresse" - }, { - "id": "680d7ee1-aa80-48e3-a37a-a16386e2d63d", - "comment": "", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "79323d74-2df4-41ef-910b-5a96fbe1035c", - "comment": "", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "98d2dc19-3680-41c4-8fdb-a81167927ef2", - "comment": "", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "927c3533-0896-4cdf-95e0-61cfc72d39c8", - "comment": "", - "command": "executeScript", - "target": "return true", - "targets": [], - "value": "lettre" - }, { - "id": "c5a70e2b-3ac7-4a4f-b099-0c55ea3b3f36", - "comment": "", - "command": "store", - "target": "03/03/2023", - "targets": [], - "value": "date" - }, { - "id": "f19d24bc-fb8f-4ef2-88cb-a9c8fe423310", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "3e9cde50-321a-4d61-9439-65b56a1c0005", - "comment": "", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "ea8da6bc-e080-4b5e-bc6f-7ad41d8efe6d", - "comment": "Catégorie", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "6cb02725-9dcb-4aea-998f-52540487b1c5", - "comment": "Nom", - "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": "88c0c06e-54b9-4da2-bbc3-76bc14d82f3e", - "comment": "Courriel", - "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": "469a96d1-5a00-42c0-ad2e-ebf5bfea2ad4", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "9a463acc-7950-4a04-806c-04669a0fb84b", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "1376637c-6418-4a61-80e3-3bc88e08ed89", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "7d5e5ea1-09c1-489e-8174-5634f51f2e09", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "b62857cd-f7cd-4feb-8c5e-e98e8bc0236d", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "910538f3-4c2f-4072-b2df-c5f6ddd60463", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "fa4683ba-1af7-4775-b044-07d3cc4d41b0", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "9fcdd36c-23d3-424a-909e-9de3f62ccb39", - "comment": "Inscription lettre info", - "command": "check", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "f933ed8c-fce5-4edf-a19c-53af6a1f22ea", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "bbf1ff6b-887e-40da-acce-e9d7f1167995", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "9ce84e89-38f3-4835-a773-e5c3dcd2fb1d", - "comment": "Enregistrer", - "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": "72b3f608-6788-449c-a841-cf5ab43b4455", - "comment": "Vérif numéro membre", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "a9a663f7-286f-4202-aa7b-402188459f70", - "comment": "Vérif nom", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "09dfe60c-4593-4e76-92c0-d738ff7ce220", - "comment": "Vérif courriel", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "2429c4fd-8a60-4731-943f-9f4364d4b515", - "comment": "Vérif pays", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd", - "targets": [], - "value": "${pays}" - }, { - "id": "3aea85a1-f5d6-48cd-a4df-0e0cd5e14a72", - "comment": "Vérif adresse", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", - "targets": [], - "value": "${adresse}" - }, { - "id": "56aa6e82-5925-46d2-8817-8fab68ced661", - "comment": "Vérif CP", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", - "targets": [], - "value": "${cp}" - }, { - "id": "caccfb3f-a54f-45e6-b4b0-0d03df713f44", - "comment": "Vérif ville", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", - "targets": [], - "value": "${ville}" - }, { - "id": "36a87f3a-cc93-4722-84ee-dbeb3fc72557", - "comment": "", - "command": "storeText", - "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", - "targets": [], - "value": "telephone" - }, { - "id": "4864681b-fbe1-481e-b41a-519331ff10bf", - "comment": "", - "command": "executeScript", - "target": "return ${telephone}.replace(/\\s/g, \"\")", - "targets": [], - "value": "telephone" - }, { - "id": "5bb863af-dcd1-4486-9934-a389e40bfae8", - "comment": "", - "command": "assert", - "target": "tel", - "targets": [], - "value": "${telephone}" - }, { - "id": "2f93b0b3-8621-4015-8142-13682c7ffe2f", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "7be4c4ee-27f8-4558-883b-740247bc3db0", - "comment": "inscription lettre : oui", - "command": "assertText", - "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", - "targets": [], - "value": "Oui" - }, { - "id": "fd2ba9ed-a620-4e7b-9fde-5217bc4e77b3", - "comment": "", - "command": "else", - "target": "", - "targets": [], - "value": "" - }, { - "id": "47218bc2-e094-4b01-bb03-27eef5ed5005", - "comment": "inscription lettre : non", - "command": "assertText", - "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", - "targets": [], - "value": "Non" - }, { - "id": "fd4c321a-ec5c-4073-a7c6-cf1c37a9eecd", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "fe919632-25c1-44bd-a554-855ab13154e1", - "comment": "Vérif date inscription", - "command": "assertText", - "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", - "targets": [], - "value": "${date}" - }] }, { "id": "a10913d7-dd6d-4c13-9bda-6293705343f8", "name": "3-02 créer membre Cuba", @@ -2529,6 +1990,433 @@ "targets": [], "value": "${cat_membre}" }] + }, { + "id": "efb8a434-ee82-48e0-a770-d4a668e28eec", + "name": "3-04 créer membre Inscrit lettre", + "commands": [{ + "id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "965f8db1-1ccc-49dc-8077-ca3f8288f472", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "661aed0a-884e-4eef-be1f-9a5a89cc29f3", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "873a1b1b-26cc-4313-b38f-e79e4a44f608", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "71b05198-73ab-44aa-a97f-49992ba43368", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "ef68cf00-5d1a-41df-8b10-2c48d63fa1a4", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "0ad26f7f-f3a5-447a-ac2d-6a0c11af16b6", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "d78d5e9e-c89c-4bee-895e-3759d24d9858", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "47d22a7d-8aae-45be-a9bd-824475be6756", + "comment": "", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "691ecfcc-24d0-434d-bfea-3ea059e05680", + "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": "ad21c34b-9929-471a-bea5-af7deff62c26", + "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) + \"@ailleurs.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "2f9d6666-9017-4df2-8483-d6757a42a163", + "comment": "", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "009a0309-b962-49fb-b5f6-bb67e9d84443", + "comment": "", + "command": "store", + "target": "3 rue des vagues", + "targets": [], + "value": "adresse" + }, { + "id": "680d7ee1-aa80-48e3-a37a-a16386e2d63d", + "comment": "", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "79323d74-2df4-41ef-910b-5a96fbe1035c", + "comment": "", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "98d2dc19-3680-41c4-8fdb-a81167927ef2", + "comment": "", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "927c3533-0896-4cdf-95e0-61cfc72d39c8", + "comment": "", + "command": "executeScript", + "target": "return true", + "targets": [], + "value": "lettre" + }, { + "id": "c5a70e2b-3ac7-4a4f-b099-0c55ea3b3f36", + "comment": "", + "command": "store", + "target": "03/03/2023", + "targets": [], + "value": "date" + }, { + "id": "f19d24bc-fb8f-4ef2-88cb-a9c8fe423310", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "3e9cde50-321a-4d61-9439-65b56a1c0005", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "ea8da6bc-e080-4b5e-bc6f-7ad41d8efe6d", + "comment": "Catégorie", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "6cb02725-9dcb-4aea-998f-52540487b1c5", + "comment": "Nom", + "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": "88c0c06e-54b9-4da2-bbc3-76bc14d82f3e", + "comment": "Courriel", + "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": "469a96d1-5a00-42c0-ad2e-ebf5bfea2ad4", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "9a463acc-7950-4a04-806c-04669a0fb84b", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "1376637c-6418-4a61-80e3-3bc88e08ed89", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "7d5e5ea1-09c1-489e-8174-5634f51f2e09", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "b62857cd-f7cd-4feb-8c5e-e98e8bc0236d", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "910538f3-4c2f-4072-b2df-c5f6ddd60463", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "fa4683ba-1af7-4775-b044-07d3cc4d41b0", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "9fcdd36c-23d3-424a-909e-9de3f62ccb39", + "comment": "Inscription lettre info", + "command": "check", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "f933ed8c-fce5-4edf-a19c-53af6a1f22ea", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "bbf1ff6b-887e-40da-acce-e9d7f1167995", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "9ce84e89-38f3-4835-a773-e5c3dcd2fb1d", + "comment": "Enregistrer", + "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": "72b3f608-6788-449c-a841-cf5ab43b4455", + "comment": "Vérif numéro membre", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "a9a663f7-286f-4202-aa7b-402188459f70", + "comment": "Vérif nom", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "09dfe60c-4593-4e76-92c0-d738ff7ce220", + "comment": "Vérif courriel", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "2429c4fd-8a60-4731-943f-9f4364d4b515", + "comment": "Vérif pays", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd", + "targets": [], + "value": "${pays}" + }, { + "id": "3aea85a1-f5d6-48cd-a4df-0e0cd5e14a72", + "comment": "Vérif adresse", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", + "targets": [], + "value": "${adresse}" + }, { + "id": "56aa6e82-5925-46d2-8817-8fab68ced661", + "comment": "Vérif CP", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", + "targets": [], + "value": "${cp}" + }, { + "id": "caccfb3f-a54f-45e6-b4b0-0d03df713f44", + "comment": "Vérif ville", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", + "targets": [], + "value": "${ville}" + }, { + "id": "36a87f3a-cc93-4722-84ee-dbeb3fc72557", + "comment": "", + "command": "storeText", + "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", + "targets": [], + "value": "telephone" + }, { + "id": "4864681b-fbe1-481e-b41a-519331ff10bf", + "comment": "", + "command": "executeScript", + "target": "return ${telephone}.replace(/\\s/g, \"\")", + "targets": [], + "value": "telephone" + }, { + "id": "5bb863af-dcd1-4486-9934-a389e40bfae8", + "comment": "", + "command": "assert", + "target": "tel", + "targets": [], + "value": "${telephone}" + }, { + "id": "2f93b0b3-8621-4015-8142-13682c7ffe2f", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "7be4c4ee-27f8-4558-883b-740247bc3db0", + "comment": "inscription lettre : oui", + "command": "assertText", + "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", + "targets": [], + "value": "Oui" + }, { + "id": "fd2ba9ed-a620-4e7b-9fde-5217bc4e77b3", + "comment": "", + "command": "else", + "target": "", + "targets": [], + "value": "" + }, { + "id": "47218bc2-e094-4b01-bb03-27eef5ed5005", + "comment": "inscription lettre : non", + "command": "assertText", + "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", + "targets": [], + "value": "Non" + }, { + "id": "fd4c321a-ec5c-4073-a7c6-cf1c37a9eecd", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "fe919632-25c1-44bd-a554-855ab13154e1", + "comment": "Vérif date inscription", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", + "targets": [], + "value": "${date}" + }] }, { "id": "71fe09f0-51bb-4d2f-8c66-91ec5e235105", "name": "3-05 créer membre date bizarre", @@ -2970,978 +2858,6 @@ "targets": [], "value": "${date_affichee}" }] - }, { - "id": "a6af2537-7860-43b2-92b6-1a93bb173a6c", - "name": "3-92a créer membre date erronée cas 1", - "commands": [{ - "id": "828addae-4a29-465c-bc17-6f6aa011a333", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "40413eb6-afdd-40fb-9081-f224a7563d19", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "1454b0b4-bf39-461e-8c34-444c7e81e143", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "8c04dc93-a051-4cf8-b13e-dc4e4f40f49d", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "8ac76b9d-cb28-4d38-92c5-38373f6e35e3", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "ec699551-382c-4405-9321-5f1cb3a877ca", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "77f14997-3795-4b97-bc6d-a8e2c15c1068", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "0553c671-79b6-4864-ba71-20d75c9adeda", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "13fa53e4-8fb3-4c09-9698-cf15ef7fa7e2", - "comment": "Catégorie du membre", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "d1639cda-f43d-4a46-8f31-a45845f18012", - "comment": "Nom & prénom", - "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": "3aa81cc3-b73f-4cbd-83cc-21f995f7fb89", - "comment": "Adresse E-Mail", - "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) + \"@ici.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "eff183bd-f7a1-4547-ba6a-88d9b5d4c906", - "comment": "Pays", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "229586b3-ab68-4d2c-9311-90e5ec230ec5", - "comment": "Adresse postale", - "command": "store", - "target": "2 rue des arbres", - "targets": [], - "value": "adresse" - }, { - "id": "295a7bca-2ad5-4c17-9ea0-e785cb350fa5", - "comment": "Code postal", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "688c9732-36ae-49da-a118-d3d51d9a8f1c", - "comment": "Ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "d46946e9-e633-454b-9c9a-ef1ecfc4b5a6", - "comment": "Numéro de téléphone", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "a25a9808-fbb6-4a95-b9b2-b950c683994f", - "comment": "Inscription à la lettre d'information", - "command": "executeScript", - "target": "return false", - "targets": [], - "value": "lettre" - }, { - "id": "4baa6042-575a-4e0d-b350-4f089d9bd8bc", - "comment": "Date d'inscription", - "command": "store", - "target": "02/02/1515", - "targets": [], - "value": "date" - }, { - "id": "4222fb5e-02b8-4bc3-b75d-e7be88205d9f", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "2836eb76-087c-43c9-978a-9ce995817dd1", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "31173028-aef1-4f73-9e60-6966b2b4c430", - "comment": "Catégorie de membre", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "96caaa3f-70a3-4504-93fd-1b615fee32f4", - "comment": "Nom", - "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": "ee25159c-d537-42c8-84d2-c32b418c66b3", - "comment": "Courriel", - "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": "9829dda7-c7fa-4de7-a185-04031e266da2", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "7ccf9ace-4194-45cf-8581-b1a4a5fb07f3", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "ef3d0879-e451-4069-9baf-54b6cb5811cf", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "252d1735-6a43-464c-b446-c737858b3e49", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "480dbe17-a9be-4467-a42a-11b8198074c4", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "3a1153c6-9a18-4e12-9b7a-c0484929a5f4", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "37a52481-ef23-4cb6-9e89-4068a9a3a5d3", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "7e74176f-2d36-4351-96f1-bd33f0d0ff2f", - "comment": "Inscription lettre info", - "command": "click", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "f4e66ef5-12d1-47e9-866d-49b2c0450543", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "a89cc104-19ba-46ae-b372-d72a88b54468", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "8f0bd285-4016-4179-a76b-a5fee22710c6", - "comment": "Enregistrer", - "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": "e9a7eab9-6c71-4dd0-a53c-9ee26d250975", - "comment": "Erreur ?", - "command": "assertElementPresent", - "target": "xpath=//div[contains(@class, \"error\")]", - "targets": [], - "value": "" - }] - }, { - "id": "155a53f2-766f-4748-b11f-722b520df2eb", - "name": "3-92b créer membre date erronée cas 2", - "commands": [{ - "id": "bae01400-5545-48b2-a212-5d4cd5c50797", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "ebda2a39-b8ae-449c-9899-aea0296c87e2", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "5e29b334-2db5-4bb8-8e23-f0e2f532eceb", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "1d983797-f698-44f0-8946-f3986c665f6f", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "3ff4319b-7f86-4412-95d3-cd13fe6cff48", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "6b9c54a7-18ac-4c39-a343-f58abfd6ec1f", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "9c0a1f61-0f78-45be-b114-d5f8eafc5696", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "f7355136-612d-46ba-9635-bf1eb273e276", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "646291e6-03dd-41f7-8d6e-4afee8bfb522", - "comment": "Catégorie du membre", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "262ee9b1-5c47-465c-9342-287c39838070", - "comment": "Nom & prénom", - "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": "ff4352b0-fa9f-4d96-bab3-b306c1e974fe", - "comment": "Adresse E-Mail", - "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) + \"@ici.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "977b4cb8-b190-41b2-be24-a3ab15880b90", - "comment": "Pays", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "3ff2f21f-b062-4265-bfb8-61d2255cd722", - "comment": "Adresse postale", - "command": "store", - "target": "2 rue des arbres", - "targets": [], - "value": "adresse" - }, { - "id": "4334f5c1-f9e5-40ef-9526-f73043072ea0", - "comment": "Code postal", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "cb59498a-7399-4952-8c12-96e5c51842d7", - "comment": "Ville", - "command": "executeScript", - "target": "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)); } return str; }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "49667317-b1cc-4705-a4e0-7a8565065d67", - "comment": "Numéro de téléphone", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "bfb9295a-650c-4050-a630-74d9ff5471bc", - "comment": "Inscription à la lettre d'information", - "command": "executeScript", - "target": "return false", - "targets": [], - "value": "lettre" - }, { - "id": "ba55dd35-73fa-4db1-9c1a-d2dfdfdbb801", - "comment": "Date d'inscription", - "command": "store", - "target": "02/02/2105", - "targets": [], - "value": "date" - }, { - "id": "c3335bd0-4144-4978-a536-f06cd2a92135", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "65c47b88-c005-43f7-83b5-96249f4f1b3d", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "b22b8275-a0ef-4e03-b82e-5dbf47b4e984", - "comment": "Catégorie de membre", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "7e1ff47f-54ff-4f8b-965c-35631d6e3d52", - "comment": "Nom", - "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": "def2b845-4e2d-4273-8f6d-c975aa21ad80", - "comment": "Courriel", - "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": "71e80643-1bd4-4f6f-901a-466e55034b11", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "3b11ec51-6d78-486d-8cb6-fbbe7525ccdb", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "d3e7886f-363f-49d8-9c4a-267dd8b4ca37", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "d68fcb4e-45d6-46eb-aa48-3f825ed3e120", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "2aef92de-5e3e-47e8-ae4f-0b49af16b143", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "6a542e83-7389-4b30-9710-e03cc080ca77", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "09c17bd0-afbf-4408-9e22-31f5b5990458", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "8438637f-0b67-49be-9cc7-8d7cbb117d4a", - "comment": "Inscription lettre info", - "command": "click", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "054c3b19-44ff-4b69-9179-b27179048ec5", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "fac99186-dd38-41a7-9297-7933794151f5", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "8c0979ad-246a-4712-b51f-e505e5a3d059", - "comment": "Enregistrer", - "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": "7e1d0aa1-4975-42fd-bdc0-096c04f082ab", - "comment": "Erreur ?", - "command": "assertElementPresent", - "target": "xpath=//div[contains(@class, \"error\")]", - "targets": [], - "value": "" - }] - }, { - "id": "c05cb267-660d-46ab-8fe9-a7e042aa9c8f", - "name": "3-91 créer membre échec numéro présent", - "commands": [{ - "id": "0a919074-cafe-4f35-97d0-dff060157b5b", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "3483834a-3c7e-4772-a30d-111072c1cafe", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "ec977d32-e903-44ff-9ee9-acbc1b7bcbd0", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "568faaec-d3f4-4bea-956e-63d35ff385b4", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "981d273d-be9b-4c6f-b8c6-d10f6d7eaa9d", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "af5c1fd7-4e8a-4aa6-a541-622d6f37a56a", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "685c60ca-ca5d-4b9e-b468-7f686ea3bff4", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6ef82a95-ee1f-4b71-9b1b-8cdca3f1b7db", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "eb273f23-27f9-4f15-a21f-4854696648e3", - "comment": "Catégorie du membre", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "0d7185be-af76-4b47-929f-fe990d527cfd", - "comment": "Nom & prénom", - "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": "7b8ebf47-a369-474a-af53-7e78575dfc09", - "comment": "Adresse E-Mail", - "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) + \"@ici.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "a04df44f-738c-4aaa-a8dd-3e8cca9eac78", - "comment": "Pays", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "cb650d21-a943-4f06-9d9a-9e9941e1efbe", - "comment": "Adresse postale", - "command": "store", - "target": "2 rue des arbres", - "targets": [], - "value": "adresse" - }, { - "id": "41b16e1e-ab01-48c5-a301-409dbdc6ea7e", - "comment": "Code postal", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "4f63c95e-f347-480b-ae1a-843f631b6726", - "comment": "Ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "c1eead33-8aed-4f05-8e72-98a3ef3427b4", - "comment": "Numéro de téléphone", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "d9f426d8-9daa-4890-b918-d1426a710a16", - "comment": "Inscription à la lettre d'information", - "command": "executeScript", - "target": "return false", - "targets": [], - "value": "lettre" - }, { - "id": "c0008cbb-b899-4ea3-92ae-cec64b66fc4d", - "comment": "Date d'inscription", - "command": "store", - "target": "02/02/2022", - "targets": [], - "value": "date" - }, { - "id": "5fe0f5a3-4faa-4b69-bc88-7add4a656c03", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "1b752fa3-3c65-4a62-909c-2cbf7150ba5a", - "comment": "", - "command": "type", - "target": "id=f_numero", - "targets": [ - ["id=f_numero", "id"], - ["name=numero", "name"], - ["css=#f_numero", "css:finder"], - ["xpath=//input[@id='f_numero']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "1" - }, { - "id": "bb96ad08-62c8-4d72-9abc-406a6791ebbb", - "comment": "Catégorie de membre", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "a4c24f08-a244-45ca-91e9-d8aa5f847bbc", - "comment": "Nom", - "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": "12c99a6f-2efa-478d-9a0b-11ce7b4ea034", - "comment": "Courriel", - "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": "0b8e7a8f-ab4a-4e7d-9914-74c445741e30", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "e9b448cf-24a8-44f0-a054-5a58e5e15c11", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "120d346c-4569-4203-ab5d-7517eed5a90d", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "40e6a573-2ed3-48f8-9782-18d5d4281e3c", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "4a11369b-4907-4a48-995e-03f3e79f7d3f", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "406b55bb-8572-4401-983d-6aa7ae0be342", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "36af241b-c825-4f71-973e-15c462851326", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "1c713af6-54c5-4bca-8e50-4432fe0daefc", - "comment": "Inscription lettre info", - "command": "click", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "6a7ff05f-f637-46e3-b23c-821fb439d964", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "40ec0740-36f7-47ad-bf48-1bf4aea22f8a", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "2abcc6d0-c97b-40aa-85c4-f073bc987c0d", - "comment": "Enregistrer", - "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": "14e83449-b1bb-4ce2-969c-e2c88cc2cd79", - "comment": "Erreur ?", - "command": "assertElementPresent", - "target": "xpath=//div[contains(@class, \"error\")]", - "targets": [], - "value": "" - }] }, { "id": "895513b5-888a-4ea2-8036-5a97569cd6df", "name": "3-06a créer membre rattaché choix unique", @@ -4474,781 +3390,6 @@ "targets": [], "value": "${date}" }] - }, { - "id": "4369d68b-3e2c-470e-b2b1-5a0825c35aa0", - "name": "3-93a créer membre nom présent refusé", - "commands": [{ - "id": "de0c9cad-cb05-4f20-ada8-fe2924b92d08", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "357dd2d2-0d7f-4f4e-9ab1-77ca73ee134b", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "9f6d9ec7-eab1-4eb8-9046-e15e479a918e", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "a45246d5-44a2-4e0d-9675-23cda2db2f3f", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "a80535d7-5cb4-413b-b809-69d990ce5ffa", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "26ef5b09-1393-4579-9c78-bb55ed484463", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "2e57f89b-eb5c-406b-98f6-68f2d9ec0e21", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "d6303a2d-1fb8-404e-9639-99726e7507f2", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "dc9a7604-8fb1-49fa-a6b2-ad079371e7c2", - "comment": "Catégorie du membre", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "b2e217e2-def6-41a8-ab30-a1a6f454f51f", - "comment": "Nom en double", - "command": "store", - "target": "Lambert Paul", - "targets": [], - "value": "nom" - }, { - "id": "32184ddd-c7a1-4abb-bd02-8d31941f661d", - "comment": "Adresse E-Mail", - "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) + \"@ici.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "a31eed35-08ed-4461-ba7f-3b2fe06f9575", - "comment": "Pays", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "0f647a3d-21f1-4831-a59f-d74bcd35d103", - "comment": "Adresse postale", - "command": "store", - "target": "2 rue des arbres", - "targets": [], - "value": "adresse" - }, { - "id": "18f94418-d7a0-4f21-9d0d-a34b3ae1eb37", - "comment": "Code postal", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "097ec1c5-8442-4d4e-aa65-128b105ca4bc", - "comment": "Ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "664cf575-3f94-4d24-adf2-5f0b9ef5307e", - "comment": "Numéro de téléphone", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "46b5f764-f3ef-45f0-9d8e-1cdaab6390af", - "comment": "Inscription à la lettre d'information", - "command": "executeScript", - "target": "return false", - "targets": [], - "value": "lettre" - }, { - "id": "a13ecf6e-0e0a-437f-9070-9e5e4ba7c28e", - "comment": "Date d'inscription", - "command": "store", - "target": "02/02/2022", - "targets": [], - "value": "date" - }, { - "id": "7a7ff05f-0cee-425d-adb9-d8d4fe9b5942", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "5081e469-29a8-4f05-bf22-2a9d9f808a54", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "49e58e12-190b-4ce3-915c-74154106477c", - "comment": "Catégorie de membre", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "b5824593-52cc-4934-ba19-deed04a17408", - "comment": "Nom", - "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": "876b2509-459f-450b-9832-efd47612e3e1", - "comment": "Courriel", - "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": "73e4e90a-f8ef-4c30-b38a-81628e545dc0", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "99c64321-6a7c-4725-9b81-a4e72d29a7de", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "9c11922d-ce4d-4b4f-a4fe-84bb6bcf98db", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "bb1b2f59-37ed-4822-8501-a45925d9d149", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "62673593-5315-41e9-a1a1-86e52a05b0ec", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "1d40a16d-0754-4cdf-a61e-f906f7721328", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "9f1bae31-b61e-4568-8bda-a07cbba34c75", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "15348857-a8d9-45d4-9ffd-9f4a801beaf3", - "comment": "Inscription lettre info", - "command": "click", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "a7d57bc4-10b6-479d-9309-ed3f8fea3fb0", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "ca0add45-148a-4053-bffa-df6390a147b8", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "36f55bb7-97c0-4710-aa16-a36f5be40379", - "comment": "Enregistrer", - "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": "aa609cd7-aa9d-4752-960c-34717346ce1c", - "comment": "Déjà présent", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class, \"alert\")]", - "targets": [], - "value": "" - }] - }, { - "id": "077fea95-219b-4ab2-a10d-800ec7f39fb1", - "name": "3-93b créer membre nom présent accepté", - "commands": [{ - "id": "d4554ace-88d7-4d2e-83d4-7cce4097aa75", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "bf1bfa0b-e029-4893-a2a5-7be8f1f65966", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "b93fb8f7-746b-4a39-b170-63bffa038554", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "6d18f281-9ed6-4d72-8408-cb237c41e733", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "2dc71349-30ab-4301-a143-d062efe8f95b", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "9bdb0cf1-8b9d-4b3c-beea-ec07e1fc40f8", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "d5ee3b2f-ef10-41f7-82f4-3f0a74312fd5", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "2b703a81-35c9-4bbc-9025-39e05814a471", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "be10eb6d-36b2-40c8-84eb-6580af51bf18", - "comment": "Catégorie du membre", - "command": "store", - "target": "Membres actifs", - "targets": [], - "value": "cat" - }, { - "id": "f32fd2e3-d4f6-4cc5-ba37-5af1352925ee", - "comment": "Nom en double", - "command": "store", - "target": "Lambert Paul", - "targets": [], - "value": "nom" - }, { - "id": "920c27e9-9949-4592-a8cf-87b4cd4ab021", - "comment": "Adresse E-Mail", - "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) + \"@ici.fr\"", - "targets": [], - "value": "courriel" - }, { - "id": "ff484a1f-8f73-45a8-adba-c9e92984e4d5", - "comment": "Pays", - "command": "store", - "target": "France", - "targets": [], - "value": "pays" - }, { - "id": "3f6f2d20-719c-43da-bffc-da4a22deb2eb", - "comment": "Adresse postale", - "command": "store", - "target": "2 rue des arbres", - "targets": [], - "value": "adresse" - }, { - "id": "d5e587e9-c742-49b4-a9f4-242c8241b1c4", - "comment": "Code postal", - "command": "executeScript", - "target": "return Math.random().toString(10).substring(2, 7);", - "targets": [], - "value": "cp" - }, { - "id": "93ef8988-e1ba-4852-9fcd-1248533bbc07", - "comment": "Ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "4a669a98-9fe4-4cbf-8016-43d5e0197f3e", - "comment": "Numéro de téléphone", - "command": "executeScript", - "target": "return '0' + Math.random().toString(10).substring(2, 11);", - "targets": [], - "value": "tel" - }, { - "id": "6528d530-c349-4034-9176-2fa6ae5db9bc", - "comment": "Inscription à la lettre d'information", - "command": "executeScript", - "target": "return false", - "targets": [], - "value": "lettre" - }, { - "id": "605b1dc2-09d1-4532-ab37-f58ea2338d60", - "comment": "Date d'inscription", - "command": "store", - "target": "02/02/2022", - "targets": [], - "value": "date" - }, { - "id": "442cc883-b598-4fd1-b9db-d85d6c04bf57", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "5330b5b0-7442-43c2-a517-1d6e7891aa46", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "aad56270-3032-42c7-b9a5-1f383ef2f20e", - "comment": "Catégorie de membre", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", - "targets": [ - ["css=#f_id_category > option:nth-child(3)", "css:finder"], - ["xpath=//option[@value='1']", "xpath:attributes"], - ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], - ["xpath=//option[3]", "xpath:position"], - ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "45f75a2e-16c7-40ff-8751-0841957beaa4", - "comment": "Nom", - "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": "3158b5d9-9f9f-4f71-88e8-0fed3c3dd631", - "comment": "Courriel", - "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": "771d68af-4baa-40ad-9b7f-a2a06ccc325c", - "comment": "", - "command": "click", - "target": "id=f_pays", - "targets": [ - ["id=f_pays", "id"], - ["name=pays", "name"], - ["css=#f_pays", "css:finder"], - ["xpath=//select[@id='f_pays']", "xpath:attributes"], - ["xpath=//dd[6]/select", "xpath:position"] - ], - "value": "" - }, { - "id": "45d063ee-0ef3-47de-ad72-46c98b072b73", - "comment": "Pays", - "command": "click", - "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", - "targets": [ - ["css=option:nth-child(69)", "css:finder"], - ["xpath=//option[@value='FR']", "xpath:attributes"], - ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], - ["xpath=//option[69]", "xpath:position"], - ["xpath=//option[contains(.,'France')]", "xpath:innerText"] - ], - "value": "" - }, { - "id": "3d1afcff-1633-4ead-8af5-fe995229c22e", - "comment": "Adresse", - "command": "type", - "target": "id=f_adresse", - "targets": [ - ["id=f_adresse", "id"], - ["name=adresse", "name"], - ["css=#f_adresse", "css:finder"], - ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], - ["xpath=//textarea", "xpath:position"] - ], - "value": "${adresse}" - }, { - "id": "7c51d5f4-a9d3-4e83-bd05-574855dced14", - "comment": "Code postal", - "command": "type", - "target": "id=f_code_postal", - "targets": [ - ["id=f_code_postal", "id"], - ["name=code_postal", "name"], - ["css=#f_code_postal", "css:finder"], - ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], - ["xpath=//dd[9]/input", "xpath:position"] - ], - "value": "${cp}" - }, { - "id": "b8623938-de5f-4a92-9761-1759986cacf4", - "comment": "Ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_ville", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "8e8a1e7b-0865-4bf7-8177-a46482c6b727", - "comment": "Téléphone", - "command": "type", - "target": "id=f_telephone", - "targets": [ - ["id=f_telephone", "id"], - ["name=telephone", "name"], - ["css=#f_telephone", "css:finder"], - ["xpath=//input[@id='f_telephone']", "xpath:attributes"], - ["xpath=//dd[11]/input", "xpath:position"] - ], - "value": "${tel}" - }, { - "id": "0d94f36f-b5ca-4e8a-9f65-3c64c8964718", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "98cf1afc-9562-43bb-8318-a0e1c18b85d3", - "comment": "Inscription lettre info", - "command": "click", - "target": "id=f_lettre_infos_1", - "targets": [], - "value": "" - }, { - "id": "79d4eea8-aee4-4f32-a83b-a8965c13f38e", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "be81785a-7ad7-4ea4-a6d8-f673d1e4024c", - "comment": "Date inscription", - "command": "type", - "target": "id=f_date_inscription", - "targets": [ - ["id=f_date_inscription", "id"], - ["name=date_inscription", "name"], - ["css=#f_date_inscription", "css:finder"], - ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], - ["xpath=//dd[13]/input", "xpath:position"] - ], - "value": "${date}" - }, { - "id": "bd7b5d55-6584-4837-b684-dcfec9255f71", - "comment": "Enregistrer", - "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": "745ff6f9-4890-4bf9-836c-f46f55ca5a37", - "comment": "Déjà présent", - "command": "assertElementPresent", - "target": "xpath=//p[contains(@class, \"alert\")]", - "targets": [], - "value": "" - }, { - "id": "a7705060-457d-4854-8a3c-9f427fce7a01", - "comment": "Accepter le doublon", - "command": "click", - "target": "name=save", - "targets": [ - ["name=save", "name"], - ["css=.icn-btn:nth-child(5)", "css:finder"], - ["xpath=//button[@name='save']", "xpath:attributes"], - ["xpath=//button", "xpath:position"] - ], - "value": "" - }, { - "id": "605865cd-94f6-4420-a15f-660a4e1975c0", - "comment": "", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "46343db0-3e17-47bb-bb70-dffd007d817d", - "comment": "Vérif numéro membre", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", - "targets": [], - "value": "${numero}" - }, { - "id": "75a52ac5-5286-409d-8591-efefa27c680b", - "comment": "Vérif nom", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", - "targets": [], - "value": "${nom}" - }, { - "id": "505dbd0f-9d76-4042-8197-3ee5b54e0a65", - "comment": "Vérif courriel", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", - "targets": [], - "value": "${courriel}" - }, { - "id": "b9f4f884-97d9-4f0d-9e21-86378f3b6afa", - "comment": "Vérif pays", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd", - "targets": [], - "value": "${pays}" - }, { - "id": "9101d731-d209-41a1-a280-307e54af0045", - "comment": "Vérif adresse", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", - "targets": [], - "value": "${adresse}" - }, { - "id": "052708c2-eb37-4f7b-a11a-4dc615aa84e5", - "comment": "Vérif CP", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", - "targets": [], - "value": "${cp}" - }, { - "id": "6d74cb87-be97-42b4-93f1-c6e9a7b41339", - "comment": "Vérif ville", - "command": "assertText", - "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", - "targets": [], - "value": "${ville}" - }, { - "id": "b48b7328-507f-4fc5-9cc0-72e2ec594aed", - "comment": "", - "command": "storeText", - "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", - "targets": [], - "value": "telephone" - }, { - "id": "00f4e960-2c86-4f72-83fc-5a6c677ac986", - "comment": "", - "command": "executeScript", - "target": "return ${telephone}.replace(/\\s/g, \"\")", - "targets": [], - "value": "telephone" - }, { - "id": "1156bdd3-b6f7-4a2d-87b3-24a4724976f0", - "comment": "", - "command": "assert", - "target": "tel", - "targets": [], - "value": "${telephone}" - }, { - "id": "ae682a21-6c75-4dcd-8415-427394d244e2", - "comment": "", - "command": "if", - "target": "${lettre}", - "targets": [], - "value": "" - }, { - "id": "109033e5-d2a9-4b96-acc8-1a8d57fd5ce8", - "comment": "inscription lettre : oui", - "command": "assertText", - "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", - "targets": [], - "value": "Oui" - }, { - "id": "00f3d6eb-5581-4a7a-bccc-9962760ad81b", - "comment": "", - "command": "else", - "target": "", - "targets": [], - "value": "" - }, { - "id": "0e16146d-d672-4b75-b446-134bbb77a17f", - "comment": "inscription lettre : non", - "command": "assertText", - "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", - "targets": [], - "value": "Non" - }, { - "id": "8fce980c-51c5-4dae-966c-6c72f35870b7", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "4e4ebdf0-40eb-4f2e-9b40-e2795ff72953", - "comment": "Vérif date inscription", - "command": "assertText", - "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", - "targets": [], - "value": "${date}" - }] }, { "id": "20360774-e683-425b-a9b9-350dc0fb6ef3", "name": "3-06b créer membre rattaché Plusieurs choix", @@ -6316,27 +4457,3736 @@ "value": "${date}" }] }, { - "id": "b468a6eb-1199-460a-95f8-820df1f2c2f9", - "name": "1-01 installation échec", + "id": "c05cb267-660d-46ab-8fe9-a7e042aa9c8f", + "name": "3-91 créer membre échec numéro présent", "commands": [{ - "id": "fd5b9d86-7bfa-46ba-a15d-bce85f1441bb", - "comment": "Page installation", + "id": "0a919074-cafe-4f35-97d0-dff060157b5b", + "comment": "", "command": "open", - "target": "/admin/install.php", + "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { - "id": "f653a356-df0c-4ec6-86a4-0a67e290fa6c", + "id": "3483834a-3c7e-4772-a30d-111072c1cafe", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "ec977d32-e903-44ff-9ee9-acbc1b7bcbd0", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "568faaec-d3f4-4bea-956e-63d35ff385b4", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "981d273d-be9b-4c6f-b8c6-d10f6d7eaa9d", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "af5c1fd7-4e8a-4aa6-a541-622d6f37a56a", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "685c60ca-ca5d-4b9e-b468-7f686ea3bff4", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6ef82a95-ee1f-4b71-9b1b-8cdca3f1b7db", "comment": "", "command": "setWindowSize", "target": "1080x1020", "targets": [], "value": "" }, { - "id": "e005004f-2832-422b-8e57-f3990ed3ec3b", + "id": "eb273f23-27f9-4f15-a21f-4854696648e3", + "comment": "Catégorie du membre", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "0d7185be-af76-4b47-929f-fe990d527cfd", + "comment": "Nom & prénom", + "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": "7b8ebf47-a369-474a-af53-7e78575dfc09", + "comment": "Adresse E-Mail", + "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) + \"@ici.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "a04df44f-738c-4aaa-a8dd-3e8cca9eac78", + "comment": "Pays", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "cb650d21-a943-4f06-9d9a-9e9941e1efbe", + "comment": "Adresse postale", + "command": "store", + "target": "2 rue des arbres", + "targets": [], + "value": "adresse" + }, { + "id": "41b16e1e-ab01-48c5-a301-409dbdc6ea7e", + "comment": "Code postal", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "4f63c95e-f347-480b-ae1a-843f631b6726", + "comment": "Ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "c1eead33-8aed-4f05-8e72-98a3ef3427b4", + "comment": "Numéro de téléphone", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "d9f426d8-9daa-4890-b918-d1426a710a16", + "comment": "Inscription à la lettre d'information", + "command": "executeScript", + "target": "return false", + "targets": [], + "value": "lettre" + }, { + "id": "c0008cbb-b899-4ea3-92ae-cec64b66fc4d", + "comment": "Date d'inscription", + "command": "store", + "target": "02/02/2022", + "targets": [], + "value": "date" + }, { + "id": "5fe0f5a3-4faa-4b69-bc88-7add4a656c03", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "1b752fa3-3c65-4a62-909c-2cbf7150ba5a", + "comment": "", + "command": "type", + "target": "id=f_numero", + "targets": [ + ["id=f_numero", "id"], + ["name=numero", "name"], + ["css=#f_numero", "css:finder"], + ["xpath=//input[@id='f_numero']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "1" + }, { + "id": "bb96ad08-62c8-4d72-9abc-406a6791ebbb", + "comment": "Catégorie de membre", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a4c24f08-a244-45ca-91e9-d8aa5f847bbc", + "comment": "Nom", + "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": "12c99a6f-2efa-478d-9a0b-11ce7b4ea034", + "comment": "Courriel", + "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": "0b8e7a8f-ab4a-4e7d-9914-74c445741e30", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "e9b448cf-24a8-44f0-a054-5a58e5e15c11", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "120d346c-4569-4203-ab5d-7517eed5a90d", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "40e6a573-2ed3-48f8-9782-18d5d4281e3c", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "4a11369b-4907-4a48-995e-03f3e79f7d3f", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "406b55bb-8572-4401-983d-6aa7ae0be342", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "36af241b-c825-4f71-973e-15c462851326", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "1c713af6-54c5-4bca-8e50-4432fe0daefc", + "comment": "Inscription lettre info", + "command": "click", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "6a7ff05f-f637-46e3-b23c-821fb439d964", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "40ec0740-36f7-47ad-bf48-1bf4aea22f8a", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "2abcc6d0-c97b-40aa-85c4-f073bc987c0d", + "comment": "Enregistrer", + "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": "14e83449-b1bb-4ce2-969c-e2c88cc2cd79", "comment": "Erreur ?", "command": "assertElementPresent", - "target": "xpath=//p[contains(@class, \"error\")]", + "target": "xpath=//div[contains(@class, \"error\")]", + "targets": [], + "value": "" + }] + }, { + "id": "a6af2537-7860-43b2-92b6-1a93bb173a6c", + "name": "3-92a créer membre date erronée cas 1", + "commands": [{ + "id": "828addae-4a29-465c-bc17-6f6aa011a333", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "40413eb6-afdd-40fb-9081-f224a7563d19", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "1454b0b4-bf39-461e-8c34-444c7e81e143", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "8c04dc93-a051-4cf8-b13e-dc4e4f40f49d", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "8ac76b9d-cb28-4d38-92c5-38373f6e35e3", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "ec699551-382c-4405-9321-5f1cb3a877ca", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "77f14997-3795-4b97-bc6d-a8e2c15c1068", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "0553c671-79b6-4864-ba71-20d75c9adeda", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "13fa53e4-8fb3-4c09-9698-cf15ef7fa7e2", + "comment": "Catégorie du membre", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "d1639cda-f43d-4a46-8f31-a45845f18012", + "comment": "Nom & prénom", + "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": "3aa81cc3-b73f-4cbd-83cc-21f995f7fb89", + "comment": "Adresse E-Mail", + "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) + \"@ici.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "eff183bd-f7a1-4547-ba6a-88d9b5d4c906", + "comment": "Pays", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "229586b3-ab68-4d2c-9311-90e5ec230ec5", + "comment": "Adresse postale", + "command": "store", + "target": "2 rue des arbres", + "targets": [], + "value": "adresse" + }, { + "id": "295a7bca-2ad5-4c17-9ea0-e785cb350fa5", + "comment": "Code postal", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "688c9732-36ae-49da-a118-d3d51d9a8f1c", + "comment": "Ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "d46946e9-e633-454b-9c9a-ef1ecfc4b5a6", + "comment": "Numéro de téléphone", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "a25a9808-fbb6-4a95-b9b2-b950c683994f", + "comment": "Inscription à la lettre d'information", + "command": "executeScript", + "target": "return false", + "targets": [], + "value": "lettre" + }, { + "id": "4baa6042-575a-4e0d-b350-4f089d9bd8bc", + "comment": "Date d'inscription", + "command": "store", + "target": "02/02/1515", + "targets": [], + "value": "date" + }, { + "id": "4222fb5e-02b8-4bc3-b75d-e7be88205d9f", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "2836eb76-087c-43c9-978a-9ce995817dd1", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "31173028-aef1-4f73-9e60-6966b2b4c430", + "comment": "Catégorie de membre", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "96caaa3f-70a3-4504-93fd-1b615fee32f4", + "comment": "Nom", + "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": "ee25159c-d537-42c8-84d2-c32b418c66b3", + "comment": "Courriel", + "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": "9829dda7-c7fa-4de7-a185-04031e266da2", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "7ccf9ace-4194-45cf-8581-b1a4a5fb07f3", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "ef3d0879-e451-4069-9baf-54b6cb5811cf", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "252d1735-6a43-464c-b446-c737858b3e49", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "480dbe17-a9be-4467-a42a-11b8198074c4", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "3a1153c6-9a18-4e12-9b7a-c0484929a5f4", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "37a52481-ef23-4cb6-9e89-4068a9a3a5d3", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "7e74176f-2d36-4351-96f1-bd33f0d0ff2f", + "comment": "Inscription lettre info", + "command": "click", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "f4e66ef5-12d1-47e9-866d-49b2c0450543", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "a89cc104-19ba-46ae-b372-d72a88b54468", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "8f0bd285-4016-4179-a76b-a5fee22710c6", + "comment": "Enregistrer", + "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": "e9a7eab9-6c71-4dd0-a53c-9ee26d250975", + "comment": "Erreur ?", + "command": "assertElementPresent", + "target": "xpath=//div[contains(@class, \"error\")]", + "targets": [], + "value": "" + }] + }, { + "id": "155a53f2-766f-4748-b11f-722b520df2eb", + "name": "3-92b créer membre date erronée cas 2", + "commands": [{ + "id": "bae01400-5545-48b2-a212-5d4cd5c50797", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "ebda2a39-b8ae-449c-9899-aea0296c87e2", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "5e29b334-2db5-4bb8-8e23-f0e2f532eceb", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "1d983797-f698-44f0-8946-f3986c665f6f", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "3ff4319b-7f86-4412-95d3-cd13fe6cff48", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "6b9c54a7-18ac-4c39-a343-f58abfd6ec1f", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "9c0a1f61-0f78-45be-b114-d5f8eafc5696", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f7355136-612d-46ba-9635-bf1eb273e276", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "646291e6-03dd-41f7-8d6e-4afee8bfb522", + "comment": "Catégorie du membre", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "262ee9b1-5c47-465c-9342-287c39838070", + "comment": "Nom & prénom", + "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": "ff4352b0-fa9f-4d96-bab3-b306c1e974fe", + "comment": "Adresse E-Mail", + "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) + \"@ici.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "977b4cb8-b190-41b2-be24-a3ab15880b90", + "comment": "Pays", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "3ff2f21f-b062-4265-bfb8-61d2255cd722", + "comment": "Adresse postale", + "command": "store", + "target": "2 rue des arbres", + "targets": [], + "value": "adresse" + }, { + "id": "4334f5c1-f9e5-40ef-9526-f73043072ea0", + "comment": "Code postal", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "cb59498a-7399-4952-8c12-96e5c51842d7", + "comment": "Ville", + "command": "executeScript", + "target": "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)); } return str; }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "49667317-b1cc-4705-a4e0-7a8565065d67", + "comment": "Numéro de téléphone", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "bfb9295a-650c-4050-a630-74d9ff5471bc", + "comment": "Inscription à la lettre d'information", + "command": "executeScript", + "target": "return false", + "targets": [], + "value": "lettre" + }, { + "id": "ba55dd35-73fa-4db1-9c1a-d2dfdfdbb801", + "comment": "Date d'inscription", + "command": "store", + "target": "02/02/2105", + "targets": [], + "value": "date" + }, { + "id": "c3335bd0-4144-4978-a536-f06cd2a92135", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "65c47b88-c005-43f7-83b5-96249f4f1b3d", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "b22b8275-a0ef-4e03-b82e-5dbf47b4e984", + "comment": "Catégorie de membre", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "7e1ff47f-54ff-4f8b-965c-35631d6e3d52", + "comment": "Nom", + "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": "def2b845-4e2d-4273-8f6d-c975aa21ad80", + "comment": "Courriel", + "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": "71e80643-1bd4-4f6f-901a-466e55034b11", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "3b11ec51-6d78-486d-8cb6-fbbe7525ccdb", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "d3e7886f-363f-49d8-9c4a-267dd8b4ca37", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "d68fcb4e-45d6-46eb-aa48-3f825ed3e120", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "2aef92de-5e3e-47e8-ae4f-0b49af16b143", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "6a542e83-7389-4b30-9710-e03cc080ca77", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "09c17bd0-afbf-4408-9e22-31f5b5990458", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "8438637f-0b67-49be-9cc7-8d7cbb117d4a", + "comment": "Inscription lettre info", + "command": "click", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "054c3b19-44ff-4b69-9179-b27179048ec5", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "fac99186-dd38-41a7-9297-7933794151f5", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "8c0979ad-246a-4712-b51f-e505e5a3d059", + "comment": "Enregistrer", + "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": "7e1d0aa1-4975-42fd-bdc0-096c04f082ab", + "comment": "Erreur ?", + "command": "assertElementPresent", + "target": "xpath=//div[contains(@class, \"error\")]", + "targets": [], + "value": "" + }] + }, { + "id": "4369d68b-3e2c-470e-b2b1-5a0825c35aa0", + "name": "3-93a créer membre nom présent refusé", + "commands": [{ + "id": "de0c9cad-cb05-4f20-ada8-fe2924b92d08", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "357dd2d2-0d7f-4f4e-9ab1-77ca73ee134b", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "9f6d9ec7-eab1-4eb8-9046-e15e479a918e", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "a45246d5-44a2-4e0d-9675-23cda2db2f3f", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "a80535d7-5cb4-413b-b809-69d990ce5ffa", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "26ef5b09-1393-4579-9c78-bb55ed484463", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "2e57f89b-eb5c-406b-98f6-68f2d9ec0e21", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "d6303a2d-1fb8-404e-9639-99726e7507f2", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "dc9a7604-8fb1-49fa-a6b2-ad079371e7c2", + "comment": "Catégorie du membre", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "b2e217e2-def6-41a8-ab30-a1a6f454f51f", + "comment": "Nom en double", + "command": "store", + "target": "Lambert Paul", + "targets": [], + "value": "nom" + }, { + "id": "32184ddd-c7a1-4abb-bd02-8d31941f661d", + "comment": "Adresse E-Mail", + "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) + \"@ici.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "a31eed35-08ed-4461-ba7f-3b2fe06f9575", + "comment": "Pays", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "0f647a3d-21f1-4831-a59f-d74bcd35d103", + "comment": "Adresse postale", + "command": "store", + "target": "2 rue des arbres", + "targets": [], + "value": "adresse" + }, { + "id": "18f94418-d7a0-4f21-9d0d-a34b3ae1eb37", + "comment": "Code postal", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "097ec1c5-8442-4d4e-aa65-128b105ca4bc", + "comment": "Ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "664cf575-3f94-4d24-adf2-5f0b9ef5307e", + "comment": "Numéro de téléphone", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "46b5f764-f3ef-45f0-9d8e-1cdaab6390af", + "comment": "Inscription à la lettre d'information", + "command": "executeScript", + "target": "return false", + "targets": [], + "value": "lettre" + }, { + "id": "a13ecf6e-0e0a-437f-9070-9e5e4ba7c28e", + "comment": "Date d'inscription", + "command": "store", + "target": "02/02/2022", + "targets": [], + "value": "date" + }, { + "id": "7a7ff05f-0cee-425d-adb9-d8d4fe9b5942", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "5081e469-29a8-4f05-bf22-2a9d9f808a54", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "49e58e12-190b-4ce3-915c-74154106477c", + "comment": "Catégorie de membre", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "b5824593-52cc-4934-ba19-deed04a17408", + "comment": "Nom", + "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": "876b2509-459f-450b-9832-efd47612e3e1", + "comment": "Courriel", + "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": "73e4e90a-f8ef-4c30-b38a-81628e545dc0", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "99c64321-6a7c-4725-9b81-a4e72d29a7de", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "9c11922d-ce4d-4b4f-a4fe-84bb6bcf98db", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "bb1b2f59-37ed-4822-8501-a45925d9d149", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "62673593-5315-41e9-a1a1-86e52a05b0ec", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "1d40a16d-0754-4cdf-a61e-f906f7721328", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "9f1bae31-b61e-4568-8bda-a07cbba34c75", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "15348857-a8d9-45d4-9ffd-9f4a801beaf3", + "comment": "Inscription lettre info", + "command": "click", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "a7d57bc4-10b6-479d-9309-ed3f8fea3fb0", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "ca0add45-148a-4053-bffa-df6390a147b8", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "36f55bb7-97c0-4710-aa16-a36f5be40379", + "comment": "Enregistrer", + "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": "aa609cd7-aa9d-4752-960c-34717346ce1c", + "comment": "Déjà présent", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class, \"alert\")]", + "targets": [], + "value": "" + }] + }, { + "id": "077fea95-219b-4ab2-a10d-800ec7f39fb1", + "name": "3-93b créer membre nom présent accepté", + "commands": [{ + "id": "d4554ace-88d7-4d2e-83d4-7cce4097aa75", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "bf1bfa0b-e029-4893-a2a5-7be8f1f65966", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "b93fb8f7-746b-4a39-b170-63bffa038554", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "6d18f281-9ed6-4d72-8408-cb237c41e733", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "2dc71349-30ab-4301-a143-d062efe8f95b", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "9bdb0cf1-8b9d-4b3c-beea-ec07e1fc40f8", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "d5ee3b2f-ef10-41f7-82f4-3f0a74312fd5", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "2b703a81-35c9-4bbc-9025-39e05814a471", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "be10eb6d-36b2-40c8-84eb-6580af51bf18", + "comment": "Catégorie du membre", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "cat" + }, { + "id": "f32fd2e3-d4f6-4cc5-ba37-5af1352925ee", + "comment": "Nom en double", + "command": "store", + "target": "Lambert Paul", + "targets": [], + "value": "nom" + }, { + "id": "920c27e9-9949-4592-a8cf-87b4cd4ab021", + "comment": "Adresse E-Mail", + "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) + \"@ici.fr\"", + "targets": [], + "value": "courriel" + }, { + "id": "ff484a1f-8f73-45a8-adba-c9e92984e4d5", + "comment": "Pays", + "command": "store", + "target": "France", + "targets": [], + "value": "pays" + }, { + "id": "3f6f2d20-719c-43da-bffc-da4a22deb2eb", + "comment": "Adresse postale", + "command": "store", + "target": "2 rue des arbres", + "targets": [], + "value": "adresse" + }, { + "id": "d5e587e9-c742-49b4-a9f4-242c8241b1c4", + "comment": "Code postal", + "command": "executeScript", + "target": "return Math.random().toString(10).substring(2, 7);", + "targets": [], + "value": "cp" + }, { + "id": "93ef8988-e1ba-4852-9fcd-1248533bbc07", + "comment": "Ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "4a669a98-9fe4-4cbf-8016-43d5e0197f3e", + "comment": "Numéro de téléphone", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "6528d530-c349-4034-9176-2fa6ae5db9bc", + "comment": "Inscription à la lettre d'information", + "command": "executeScript", + "target": "return false", + "targets": [], + "value": "lettre" + }, { + "id": "605b1dc2-09d1-4532-ab37-f58ea2338d60", + "comment": "Date d'inscription", + "command": "store", + "target": "02/02/2022", + "targets": [], + "value": "date" + }, { + "id": "442cc883-b598-4fd1-b9db-d85d6c04bf57", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "5330b5b0-7442-43c2-a517-1d6e7891aa46", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "aad56270-3032-42c7-b9a5-1f383ef2f20e", + "comment": "Catégorie de membre", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "45f75a2e-16c7-40ff-8751-0841957beaa4", + "comment": "Nom", + "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": "3158b5d9-9f9f-4f71-88e8-0fed3c3dd631", + "comment": "Courriel", + "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": "771d68af-4baa-40ad-9b7f-a2a06ccc325c", + "comment": "", + "command": "click", + "target": "id=f_pays", + "targets": [ + ["id=f_pays", "id"], + ["name=pays", "name"], + ["css=#f_pays", "css:finder"], + ["xpath=//select[@id='f_pays']", "xpath:attributes"], + ["xpath=//dd[6]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "45d063ee-0ef3-47de-ad72-46c98b072b73", + "comment": "Pays", + "command": "click", + "target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]", + "targets": [ + ["css=option:nth-child(69)", "css:finder"], + ["xpath=//option[@value='FR']", "xpath:attributes"], + ["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"], + ["xpath=//option[69]", "xpath:position"], + ["xpath=//option[contains(.,'France')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "3d1afcff-1633-4ead-8af5-fe995229c22e", + "comment": "Adresse", + "command": "type", + "target": "id=f_adresse", + "targets": [ + ["id=f_adresse", "id"], + ["name=adresse", "name"], + ["css=#f_adresse", "css:finder"], + ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], + ["xpath=//textarea", "xpath:position"] + ], + "value": "${adresse}" + }, { + "id": "7c51d5f4-a9d3-4e83-bd05-574855dced14", + "comment": "Code postal", + "command": "type", + "target": "id=f_code_postal", + "targets": [ + ["id=f_code_postal", "id"], + ["name=code_postal", "name"], + ["css=#f_code_postal", "css:finder"], + ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], + ["xpath=//dd[9]/input", "xpath:position"] + ], + "value": "${cp}" + }, { + "id": "b8623938-de5f-4a92-9761-1759986cacf4", + "comment": "Ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "8e8a1e7b-0865-4bf7-8177-a46482c6b727", + "comment": "Téléphone", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "0d94f36f-b5ca-4e8a-9f65-3c64c8964718", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "98cf1afc-9562-43bb-8318-a0e1c18b85d3", + "comment": "Inscription lettre info", + "command": "click", + "target": "id=f_lettre_infos_1", + "targets": [], + "value": "" + }, { + "id": "79d4eea8-aee4-4f32-a83b-a8965c13f38e", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "be81785a-7ad7-4ea4-a6d8-f673d1e4024c", + "comment": "Date inscription", + "command": "type", + "target": "id=f_date_inscription", + "targets": [ + ["id=f_date_inscription", "id"], + ["name=date_inscription", "name"], + ["css=#f_date_inscription", "css:finder"], + ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], + ["xpath=//dd[13]/input", "xpath:position"] + ], + "value": "${date}" + }, { + "id": "bd7b5d55-6584-4837-b684-dcfec9255f71", + "comment": "Enregistrer", + "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": "745ff6f9-4890-4bf9-836c-f46f55ca5a37", + "comment": "Déjà présent", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class, \"alert\")]", + "targets": [], + "value": "" + }, { + "id": "a7705060-457d-4854-8a3c-9f427fce7a01", + "comment": "Accepter le doublon", + "command": "click", + "target": "name=save", + "targets": [ + ["name=save", "name"], + ["css=.icn-btn:nth-child(5)", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//button", "xpath:position"] + ], + "value": "" + }, { + "id": "605865cd-94f6-4420-a15f-660a4e1975c0", + "comment": "", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "46343db0-3e17-47bb-bb70-dffd007d817d", + "comment": "Vérif numéro membre", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "75a52ac5-5286-409d-8591-efefa27c680b", + "comment": "Vérif nom", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "505dbd0f-9d76-4042-8197-3ee5b54e0a65", + "comment": "Vérif courriel", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${courriel}" + }, { + "id": "b9f4f884-97d9-4f0d-9e21-86378f3b6afa", + "comment": "Vérif pays", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd", + "targets": [], + "value": "${pays}" + }, { + "id": "9101d731-d209-41a1-a280-307e54af0045", + "comment": "Vérif adresse", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", + "targets": [], + "value": "${adresse}" + }, { + "id": "052708c2-eb37-4f7b-a11a-4dc615aa84e5", + "comment": "Vérif CP", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", + "targets": [], + "value": "${cp}" + }, { + "id": "6d74cb87-be97-42b4-93f1-c6e9a7b41339", + "comment": "Vérif ville", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", + "targets": [], + "value": "${ville}" + }, { + "id": "b48b7328-507f-4fc5-9cc0-72e2ec594aed", + "comment": "", + "command": "storeText", + "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", + "targets": [], + "value": "telephone" + }, { + "id": "00f4e960-2c86-4f72-83fc-5a6c677ac986", + "comment": "", + "command": "executeScript", + "target": "return ${telephone}.replace(/\\s/g, \"\")", + "targets": [], + "value": "telephone" + }, { + "id": "1156bdd3-b6f7-4a2d-87b3-24a4724976f0", + "comment": "", + "command": "assert", + "target": "tel", + "targets": [], + "value": "${telephone}" + }, { + "id": "ae682a21-6c75-4dcd-8415-427394d244e2", + "comment": "", + "command": "if", + "target": "${lettre}", + "targets": [], + "value": "" + }, { + "id": "109033e5-d2a9-4b96-acc8-1a8d57fd5ce8", + "comment": "inscription lettre : oui", + "command": "assertText", + "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", + "targets": [], + "value": "Oui" + }, { + "id": "00f3d6eb-5581-4a7a-bccc-9962760ad81b", + "comment": "", + "command": "else", + "target": "", + "targets": [], + "value": "" + }, { + "id": "0e16146d-d672-4b75-b446-134bbb77a17f", + "comment": "inscription lettre : non", + "command": "assertText", + "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", + "targets": [], + "value": "Non" + }, { + "id": "8fce980c-51c5-4dae-966c-6c72f35870b7", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "4e4ebdf0-40eb-4f2e-9b40-e2795ff72953", + "comment": "Vérif date inscription", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", + "targets": [], + "value": "${date}" + }] + }, { + "id": "73154344-9dc7-43b7-beba-85d3f16cfe93", + "name": "3-zz lister membres (aucun intérêt)", + "commands": [{ + "id": "c561e0b2-5367-420e-a530-8e24d3cf9297", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "c63df998-f847-47ec-aed8-fec4934ef3b6", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "d090b2c0-814a-4a72-87d7-af0886072530", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "f6fd62aa-c1db-42da-a5f1-80e0852f2eb0", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "0f655ac2-d905-4a14-b8b1-2d92001a895b", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "453b055d-80f4-4097-ab4d-3aff80516186", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "ee961f42-9ace-4468-a030-39bf873b9a88", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "693bea62-5404-40e1-ba7f-a4ccd3323374", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "1682c797-1ef4-4826-b100-6284f9f0c928", + "comment": "Menu membres", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users')]", + "targets": [], + "value": "" + }, { + "id": "292be0eb-c74b-40dc-9b90-dafd4d0ec06c", + "comment": "Filtrer par catégorie", + "command": "executeScript", + "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); for (const l of li) { l.style.display=\"block\"; } return;", + "targets": [], + "value": "" + }, { + "id": "19a1b7ef-8969-432f-8c4d-43c9b6936237", + "comment": "Toutes même cachées", + "command": "click", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", + "targets": [], + "value": "" + }, { + "id": "ad08b4b8-9058-43e6-be28-848d6a695808", + "comment": "Nombre de membres", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_elem" + }, { + "id": "0b3f6c7c-14ab-4ede-ae49-4b659d093fbe", + "comment": "", + "command": "echo", + "target": "${nb_elem}", + "targets": [], + "value": "" + }, { + "id": "234819b7-c75f-4f15-acb8-ab293e8837e0", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "ee10387e-e8b1-4023-9edb-de63b04f51eb", + "comment": "Itérer sur les membres affichés", + "command": "while", + "target": "${num} <= ${nb_elem}", + "targets": [], + "value": "" + }, { + "id": "1c35bf5e-d7db-4389-936c-cfca34b7a04a", + "comment": "Nom du membre courant", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", + "targets": [], + "value": "nom" + }, { + "id": "24c2ff2f-ad77-4f52-b3ea-46747afdefc1", + "comment": "", + "command": "echo", + "target": "${nom}", + "targets": [], + "value": "" + }, { + "id": "b25a3810-d452-4df3-81c5-67322e8b56a5", + "comment": "", + "command": "executeScript", + "target": "return ${num} + 1", + "targets": [], + "value": "num" + }, { + "id": "b666dc38-8cd4-4e17-a56f-2eee14017c0a", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }] + }, { + "id": "9d3d8f41-bff5-472e-ac87-6de5f10b4655", + "name": "4-01 lister membres toutes catégories", + "commands": [{ + "id": "9f50e061-8d46-4a07-a6ae-3e39cceb9bc7", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "78e25862-14dd-471d-8801-5bab32a275c2", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "7a9b145a-9ade-4266-b45c-aef9692a73aa", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "2cfbcda8-2ea9-43eb-939a-6dc84c27b9e8", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "357ca39a-5c70-47b1-99d9-bcde6ba80376", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "0399e45b-7cc0-4d57-a5e3-a3b362929856", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "b1083b43-25b3-41a2-85cd-095762a21a9d", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "342961e1-537c-41b6-8ad4-b353b4f62251", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "ba76fe19-56ff-4b76-bf7b-5d60bee262a6", + "comment": "Récupérer la liste des catégories", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "49602f97-bdff-487c-b268-d014d3de8178", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "targets": [ + ["linkText=Ajouter", "linkText"], + ["css=.current 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": "380b0f3e-fed1-4799-a339-9a9680c3a511", + "comment": "", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "categories_alpha" + }, { + "id": "6566abd1-a45d-4b4d-be04-c77e5a4232f7", + "comment": "", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "numeros_alpha" + }, { + "id": "aed2d227-29ff-48d7-a6b9-951d2057d992", + "comment": "Nombre de catégories", + "command": "storeXpathCount", + "target": "xpath=//select[@id=\"f_id_category\"]/option", + "targets": [], + "value": "nb_categories" + }, { + "id": "d0cf800f-4ad5-4a79-9bff-c20ae976a6d8", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "i" + }, { + "id": "afe938c7-fca3-4889-a825-27c55b318440", + "comment": "", + "command": "while", + "target": "${i} <= ${nb_categories}", + "targets": [], + "value": "" + }, { + "id": "f963d669-8577-40e0-8ff5-bf00c78a5b59", + "comment": "", + "command": "storeText", + "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", + "targets": [], + "value": "cat" + }, { + "id": "a423823d-7962-41ba-a737-48d3c66beddd", + "comment": "", + "command": "executeScript", + "target": "return ${categories_alpha}.concat(${cat})", + "targets": [], + "value": "categories_alpha" + }, { + "id": "2b84666f-fa32-4359-b65b-22a9caacd35e", + "comment": "", + "command": "storeAttribute", + "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", + "targets": [], + "value": "num_cat" + }, { + "id": "9ff2480f-a30c-4287-98bc-5d4e0049b9bd", + "comment": "", + "command": "executeScript", + "target": "return ${numeros_alpha}.concat(${num_cat})", + "targets": [], + "value": "numeros_alpha" + }, { + "id": "3dbec75a-1588-4823-9a76-fadb707eb902", + "comment": "", + "command": "echo", + "target": "${num_cat} : ${cat}", + "targets": [], + "value": "" + }, { + "id": "ea94130f-539b-4d02-8015-193340a6abde", + "comment": "", + "command": "executeScript", + "target": "return ${i} + 1", + "targets": [], + "value": "i" + }, { + "id": "3dd79e09-b9ae-48cd-8abd-f8d9391d67ca", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "70a68897-ec9f-4fd3-a01d-548328ae1e75", + "comment": "Trier les catégories par numéro", + "command": "executeScript", + "target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;", + "targets": [], + "value": "categories_num" + }, { + "id": "0dff1226-2127-497e-963d-dd7f1734bf58", + "comment": "Traiter les membres déjà présents", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6fe95231-a118-465f-b59e-20293b69f974", + "comment": "Init liste des numéros", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lesnumeros" + }, { + "id": "1c28edd0-3f87-4398-94c8-80312859fcb5", + "comment": "Init liste des noms", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lesnoms" + }, { + "id": "6e8f5b0a-05d4-444d-a6ef-f8a96a85fca1", + "comment": "Init liste des catégories", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lescategories" + }, { + "id": "d2db43c2-e379-4a0e-b4d1-f35307988d1f", + "comment": "Menu Membres", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users')]", + "targets": [], + "value": "" + }, { + "id": "c600a59c-df0c-4ba9-ae02-2760c8fc0bbe", + "comment": "Rendre visibles les options du menu Filtrer", + "command": "executeScript", + "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", + "targets": [], + "value": "" + }, { + "id": "1fae1452-7af8-4405-8127-b7842f091b3f", + "comment": "", + "command": "storeText", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", + "targets": [], + "value": "membres" + }, { + "id": "e1792ceb-1d51-45e4-a86a-3e1dd9c8eb1b", + "comment": "Nombre de membres", + "command": "executeScript", + "target": "return Number(${membres}.split(/ /)[0])", + "targets": [], + "value": "nb_total_membres" + }, { + "id": "87c6a1a7-6f43-4d1b-8944-b30a9baa9734", + "comment": "Filtrer : toutes même cachées", + "command": "click", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", + "targets": [], + "value": "" + }, { + "id": "ca6ee8f1-e083-4c60-8b96-a49464c8e197", + "comment": "Trier par numéro", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "5b19a75f-b016-499c-8db8-e907b276b093", + "comment": "inverser le tri s'il est en ordre décroissant", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b407e63f-0a39-4e30-bdc9-43aebecc38c7", + "comment": "au moins 2 membres", + "command": "if", + "target": "${nb_total_membres} >= 2", + "targets": [], + "value": "" + }, { + "id": "00256540-4d40-4fca-ab05-a10d91a1397a", + "comment": "premier numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff1" + }, { + "id": "59a07c46-205d-4cc3-b334-8a3153e9477b", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff1})", + "targets": [], + "value": "numero1" + }, { + "id": "961d3be4-bb54-48f7-abd4-d35c417b7248", + "comment": "deuxième numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff2" + }, { + "id": "56b70964-b497-48aa-b3ff-eb54ff124aca", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff2})", + "targets": [], + "value": "numero2" + }, { + "id": "77f481d8-633b-44fe-8cb0-d941ca20556d", + "comment": "", + "command": "if", + "target": "${numero1} > ${numero2}", + "targets": [], + "value": "" + }, { + "id": "50e7fb6a-c8ab-4b1b-a765-8715d1e68996", + "comment": "Inverser le sens de tri", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "42e53770-17f2-4c0f-8c78-610fc872d594", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c52202fe-83ee-4822-b1a9-b698089f794c", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "552a98c5-fb5a-4f84-af5d-0dab0f48c417", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "cee12e74-bea1-40af-97aa-4fab48cd1538", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "6c900966-b2b0-4ce6-b39b-769ec95461a6", + "comment": "", + "command": "executeScript", + "target": "return ${nb_total_membres}", + "targets": [], + "value": "nb_membres" + }, { + "id": "0e119e93-98bd-4268-91e9-20b852615a11", + "comment": "Parcourir les membres affichés", + "command": "while", + "target": "${num} <= ${nb_membres}", + "targets": [], + "value": "" + }, { + "id": "a6f6b81d-61ff-4c0f-9825-ee98a7296abf", + "comment": "fin de page ?", + "command": "if", + "target": "${num} > ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "2a42d2f6-0909-404e-980f-b00f53846cb5", + "comment": "passer à la page suivante", + "command": "click", + "target": "xpath=//li[@class=\"next\"]//a", + "targets": [], + "value": "" + }, { + "id": "1d85b23b-fc76-464f-8214-a7431d67846e", + "comment": "", + "command": "executeScript", + "target": "return ${nb_membres} - ${nb_membres_page}", + "targets": [], + "value": "nb_membres" + }, { + "id": "7df9291d-15b4-4144-841a-514abebfa193", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "6d5e7780-37cc-4440-9a3a-6c9b9c999014", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "06d7ab25-f616-4918-b1fb-4a2659246a6b", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c7566eca-44d0-4405-b19c-d5336898f1ff", + "comment": "numéro affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", + "targets": [], + "value": "numeroAffiche" + }, { + "id": "ee565b99-6a31-421d-861c-178abd1e339b", + "comment": "Ajouter numéro à la liste", + "command": "executeScript", + "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", + "targets": [], + "value": "lesnumeros" + }, { + "id": "21c0c151-eaf8-4fc3-9824-97d25f90cd0c", + "comment": "nom affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", + "targets": [], + "value": "nomAffiche" + }, { + "id": "31675346-22f0-42bc-8209-bf95f20de762", + "comment": "Ajouter nom à la liste", + "command": "executeScript", + "target": "return ${lesnoms}.concat(${nomAffiche})", + "targets": [], + "value": "lesnoms" + }, { + "id": "2913b0e9-d934-41fa-b8dc-bd826800e19c", + "comment": "afficher fiche membre", + "command": "click", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", + "targets": [], + "value": "" + }, { + "id": "bc347e5b-891d-4b07-b970-95957f8783e3", + "comment": "Catégorie du membre", + "command": "storeText", + "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", + "targets": [], + "value": "categorie" + }, { + "id": "073393c4-26d1-4ac4-a943-b7035781da27", + "comment": "Trouver le numéro de la catégorie", + "command": "executeScript", + "target": "function getNumero(cat_name, categories) { let i = 0; while (i < categories.length) { if (categories[i] == cat_name) { return i + 1; } i += 1; }}return getNumero(${categorie}, ${categories_num});", + "targets": [], + "value": "num_cat" + }, { + "id": "9a357204-3205-4dbf-bfd2-6f98a4d96564", + "comment": "ajouter numéro catégorie à la liste", + "command": "executeScript", + "target": "return ${lescategories}.concat(${num_cat})", + "targets": [], + "value": "lescategories" + }, { + "id": "a5a8dea5-7c7e-44bc-bbde-57bec1453df1", + "comment": "", + "command": "echo", + "target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}", + "targets": [], + "value": "" + }, { + "id": "2c87e770-7f2b-4119-aa11-02af4d6ff819", + "comment": "Retour page précédente", + "command": "executeScript", + "target": "history.back()", + "targets": [], + "value": "" + }, { + "id": "81f68bac-7994-4a5c-a833-65e3872a9a04", + "comment": "", + "command": "executeScript", + "target": "return ${num} + 1", + "targets": [], + "value": "num" + }, { + "id": "07ba4510-dbb0-4cbe-9ed3-86d15f8bc6f2", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "fc54fca2-285a-498c-a46c-d1d21db17b04", + "comment": "Générer de nouveaux membres", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "ddd854d8-2993-4be5-bc3e-afc5edf26a0f", + "comment": "Ajouter nouveaux noms à la liste", + "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; }; for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};", + "targets": [], + "value": "lesnoms" + }, { + "id": "c454ccfc-0327-472c-b7cd-e67327a156fb", + "comment": "", + "command": "executeScript", + "target": "return ${nb_total_membres}", + "targets": [], + "value": "i" + }, { + "id": "dbb0604b-27cb-47b0-832b-b36c21ce6d5c", + "comment": "", + "command": "executeScript", + "target": "return ${lesnoms}.length", + "targets": [], + "value": "nb_noms" + }, { + "id": "19762a03-fb00-41db-8802-9ea918454b3a", + "comment": "", + "command": "echo", + "target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}", + "targets": [], + "value": "" + }, { + "id": "f3a183e6-7872-4f75-88ca-479fc209f2be", + "comment": "Parcourir liste noms pour ajout dans la base", + "command": "while", + "target": "${i} < ${nb_noms}", + "targets": [], + "value": "" + }, { + "id": "ee448e86-3562-490a-82e6-c163cc4d504c", + "comment": "Menu ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "1fce9227-6ca2-484a-a7fd-cbc894b3bd6b", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "9e7ddbcf-97e8-4219-8860-e0c8c840e8ae", + "comment": "Ajouter numéro à la liste", + "command": "executeScript", + "target": "return ${lesnumeros}.concat(${numero})", + "targets": [], + "value": "lesnumeros" + }, { + "id": "97e14d1f-81cd-41d0-9e9a-f8df89c522cb", + "comment": "Générer numéro catégorie", + "command": "executeScript", + "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", + "targets": [], + "value": "num_cat" + }, { + "id": "05b626b7-ef5e-4309-936e-837b17e3587b", + "comment": "Ajouter numéro catégorie à la liste", + "command": "executeScript", + "target": "return ${lescategories}.concat(${num_cat})", + "targets": [], + "value": "lescategories" + }, { + "id": "cc012d70-0b06-4f46-8c28-9d7506dd2338", + "comment": "Sélectionner catégorie", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]", + "targets": [], + "value": "" + }, { + "id": "e4ee02a6-9079-4321-83b5-c09a9a7b12a8", + "comment": "", + "command": "executeScript", + "target": "return ${lesnoms}.at(${i})", + "targets": [], + "value": "nom" + }, { + "id": "fd4acfee-a918-481f-b15a-78c7d4f132aa", + "comment": "Saisir le nom", + "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": "0e7fc40b-310c-4731-bfdc-fd77031f653c", + "comment": "", + "command": "echo", + "target": "Ajout de ${nom}, catégorie = ${num_cat}", + "targets": [], + "value": "" + }, { + "id": "3e327c55-10da-4cdd-9662-35b296c93645", + "comment": "Générer ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "7ecfa494-d698-4428-8bae-4c024b2eb9a0", + "comment": "Saisir ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_vile", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "ffb5a045-2e68-4e6d-801f-37fe2d7a1ccc", + "comment": "Enregistrer les infos", + "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": "af3b1cb3-b67b-4868-ba4a-353b7a119d52", + "comment": "", + "command": "executeScript", + "target": "return ${i} + 1", + "targets": [], + "value": "i" + }, { + "id": "440e410f-fc5b-4d9f-91e4-f890b9e9c8c7", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e84077f6-9802-4529-b6bb-dd0cbe1aeb4a", + "comment": "Vérifier les membres", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "a2e1c19b-58ea-4767-b57f-946ec6f7f195", + "comment": "Menu membres", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users')]", + "targets": [], + "value": "" + }, { + "id": "ebbf611a-7799-4508-9b1a-a3262538b6aa", + "comment": "Rendre visibles les options du menu Filtrer", + "command": "executeScript", + "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", + "targets": [], + "value": "" + }, { + "id": "ea2c1424-4106-4a82-89d7-a32b7255feec", + "comment": "nombre de membres dans ces catégories", + "command": "storeText", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", + "targets": [], + "value": "membres" + }, { + "id": "aa7246b5-6626-4c83-886e-0b2f315746b2", + "comment": "idem", + "command": "executeScript", + "target": "return Number(${membres}.split(/ /)[0])", + "targets": [], + "value": "nb_membres_cat" + }, { + "id": "663a9452-4167-4c30-bb91-0cd88e32c436", + "comment": "Vérifier nombre de membres", + "command": "assert", + "target": "nb_noms", + "targets": [], + "value": "${nb_membres_cat}" + }, { + "id": "91a56875-2fba-4dd6-b1ac-4bd81d67e31f", + "comment": "Filtrer : toutes catégories même cachées", + "command": "click", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", + "targets": [], + "value": "" + }, { + "id": "5d8e2c81-7260-4f05-8e1e-b11246faa61b", + "comment": "Trier par numéro", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "4cf6dc83-4b20-4acf-b72c-3c53cb10dba6", + "comment": "inverser le tri s'il est en ordre décroissant", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "9378071d-d8e5-462b-b66d-ec5feaef05d1", + "comment": "au moins 2 membres", + "command": "if", + "target": "${nb_membres_cat} >= 2", + "targets": [], + "value": "" + }, { + "id": "e6b6655d-ad92-48c6-9620-83bb881029eb", + "comment": "premier numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff1" + }, { + "id": "e00094aa-c349-4797-9882-d5294c04b7ef", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff1})", + "targets": [], + "value": "numero1" + }, { + "id": "65e9ac84-966a-4c49-8b20-d9e42dc8fad2", + "comment": "deuxième numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff2" + }, { + "id": "31cbb4ee-2e40-45ae-bd14-ea0c99de7928", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff2})", + "targets": [], + "value": "numero2" + }, { + "id": "9090989b-ebb1-4b13-9c0b-3f1b38065390", + "comment": "", + "command": "if", + "target": "${numero1} > ${numero2}", + "targets": [], + "value": "" + }, { + "id": "d785aea8-bdda-426e-ab41-2eaee8abe7aa", + "comment": "Inverser le sens de tri", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "614cbd41-9342-4cde-a9f1-9fbe590ace11", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f6a9acea-f89f-4f7c-9482-4f535bc2841b", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "67105636-1763-4157-a571-a321eb2c01af", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "821f0e68-9ae8-4e06-bd04-5d7cecd84050", + "comment": "", + "command": "echo", + "target": "nombre de membres sur la page = ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "5830c22e-3ad6-4bd1-b721-fa927b18a6b0", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "4a6b8e85-6600-480b-8e16-f4ecc449e5a9", + "comment": "", + "command": "executeScript", + "target": "return 0", + "targets": [], + "value": "i" + }, { + "id": "00ac421b-cac4-4a8d-8b24-308a7ec91ee6", + "comment": "Parcourir les membres affichés", + "command": "while", + "target": "${num} <= ${nb_membres_cat}", + "targets": [], + "value": "" + }, { + "id": "7042fa0d-3c09-4ce4-8407-cf2d7d876405", + "comment": "fin de page ?", + "command": "if", + "target": "${num} > ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "c9bc890b-135e-4895-ae62-3477caca40dc", + "comment": "passer à la page suivante", + "command": "click", + "target": "xpath=//li[@class=\"next\"]//a", + "targets": [], + "value": "" + }, { + "id": "962bfd5c-bc2d-435c-b026-994195c8d2e3", + "comment": "", + "command": "executeScript", + "target": "return ${nb_membres_cat} - ${nb_membres_page}", + "targets": [], + "value": "nb_membres_cat" + }, { + "id": "6390b5f3-3691-4a0b-bc9b-90a6fe718d3b", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "784be5d2-2683-48cb-b6cd-473c524fa654", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "94aa7f6e-1c40-4ef5-b0de-e3cf12bde373", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "74565202-176e-4a11-a97a-c9b1cac0018c", + "comment": "numéro affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", + "targets": [], + "value": "numeroAffiche" + }, { + "id": "1585f6e5-197e-4b40-a88b-1cf29918c7e6", + "comment": "nom affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", + "targets": [], + "value": "nomAffiche" + }, { + "id": "d058737f-0fed-4d12-a472-120c811851f5", + "comment": "numéro mémorisé", + "command": "executeScript", + "target": "return ${lesnumeros}.at(${i})", + "targets": [], + "value": "numero" + }, { + "id": "7018c3d9-7f40-460d-9905-856e25ba15ce", + "comment": "nom mémorisé", + "command": "executeScript", + "target": "return ${lesnoms}.at(${i})", + "targets": [], + "value": "nom" + }, { + "id": "4ce0cc02-c622-4657-a584-a69c212b4db4", + "comment": "catégorie mémorisée", + "command": "executeScript", + "target": "return ${lescategories}.at(${i})", + "targets": [], + "value": "categorie" + }, { + "id": "47a145be-cac7-4f16-a824-58929ee6d613", + "comment": "", + "command": "echo", + "target": "n=${num} ${numeroAffiche} ${nomAffiche}", + "targets": [], + "value": "" + }, { + "id": "dee281d1-e24f-4c2a-8c9b-844e180f6c7e", + "comment": "", + "command": "echo", + "target": "i=${i} ${numero} ${nom} cat=${categorie}", + "targets": [], + "value": "" + }, { + "id": "7baf6514-7c7a-4c19-9860-2ff69f919b35", + "comment": "", + "command": "executeScript", + "target": "return Number(${numeroAffiche})", + "targets": [], + "value": "numaff" + }, { + "id": "63b60f9e-d4ef-4db1-8c73-8ed958872e41", + "comment": "", + "command": "assert", + "target": "numeroAffiche", + "targets": [], + "value": "${numero}" + }, { + "id": "10fc39a5-a9ad-4e11-96be-e934245e699e", + "comment": "", + "command": "assert", + "target": "nomAffiche", + "targets": [], + "value": "${nom}" + }, { + "id": "165772cf-fb63-4262-b414-5cede2505a89", + "comment": "", + "command": "executeScript", + "target": "return ${num} + 1", + "targets": [], + "value": "num" + }, { + "id": "0cda4ee9-fde0-4f55-af55-9fcf08644a86", + "comment": "", + "command": "executeScript", + "target": "return ${i} +1", + "targets": [], + "value": "i" + }, { + "id": "4472d9b5-ee32-4778-a905-847cd4d99a22", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }] + }, { + "id": "25e25640-41c1-4a8c-a8f3-288fed7fb46e", + "name": "4-01a lister membres plusieurs pages", + "commands": [{ + "id": "5f9c60ae-6864-4bc4-b51d-dc19cd9e7866", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/", + "targets": [], + "value": "" + }, { + "id": "b8a5a88a-c6d5-459c-9fef-ea83dd92c0c1", + "comment": "", + "command": "setWindowSize", + "target": "1080x1020", + "targets": [], + "value": "" + }, { + "id": "690a17dc-9419-41c7-a111-6df27be8f641", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "30bfade9-b8a8-440a-afa0-b23f48cdaa3b", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "044ab6fe-0b3f-4b23-8e1a-4c856acec3ce", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "17295ad3-f1ae-4065-8f82-49bda8bd052a", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "edc3fcfe-859d-4694-8ec8-26ea83165645", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "68cefb5c-341a-4a31-a8b0-85b9caa64bf6", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "db2fa63b-7ef1-4fd5-8717-8779a189355a", + "comment": "Récupérer la liste des catégories", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "05a27d05-d3f4-45c7-91f5-55ad386927f7", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "targets": [ + ["linkText=Ajouter", "linkText"], + ["css=.current 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": "e87fa67d-19e7-49b4-bb16-b88f0b51e991", + "comment": "", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "categories_alpha" + }, { + "id": "16b24312-282e-47b9-8499-4a30e3fb90a0", + "comment": "", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "numeros_alpha" + }, { + "id": "af51a31f-e5f7-4c72-9484-e3c7350e655c", + "comment": "Nombre de catégories", + "command": "storeXpathCount", + "target": "xpath=//select[@id=\"f_id_category\"]/option", + "targets": [], + "value": "nb_categories" + }, { + "id": "3dc0bad8-4459-4df2-9bfa-f3afcd2db927", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "i" + }, { + "id": "88be8d31-706d-4bdd-8c1b-1c328d8db8c1", + "comment": "", + "command": "while", + "target": "${i} <= ${nb_categories}", + "targets": [], + "value": "" + }, { + "id": "5c4da75e-4754-4190-82d2-5abbb1cd38d1", + "comment": "", + "command": "storeText", + "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", + "targets": [], + "value": "cat" + }, { + "id": "b4b6d496-8900-4abb-b464-b25fed2846d8", + "comment": "", + "command": "executeScript", + "target": "return ${categories_alpha}.concat(${cat})", + "targets": [], + "value": "categories_alpha" + }, { + "id": "c17e10ba-d942-43c7-954c-4a2e0852db31", + "comment": "", + "command": "storeAttribute", + "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", + "targets": [], + "value": "num_cat" + }, { + "id": "80b1036c-9b14-4faf-ad12-ec628dc74a70", + "comment": "", + "command": "executeScript", + "target": "return ${numeros_alpha}.concat(${num_cat})", + "targets": [], + "value": "numeros_alpha" + }, { + "id": "2b6bfcba-d84e-4f56-b57b-da2bf57de568", + "comment": "", + "command": "echo", + "target": "${num_cat} : ${cat}", + "targets": [], + "value": "" + }, { + "id": "602459cf-be74-4cf7-9b8d-d28b36efc75d", + "comment": "", + "command": "executeScript", + "target": "return ${i} + 1", + "targets": [], + "value": "i" + }, { + "id": "854610f7-a1cf-4a96-b117-08a841fdddfc", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "93717242-ae25-4829-acd7-89de3a8121a7", + "comment": "Trier les catégories par numéro", + "command": "executeScript", + "target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;", + "targets": [], + "value": "categories_num" + }, { + "id": "b4896366-a9ff-481d-9dcc-5b0e7f57d9e8", + "comment": "Traiter les membres déjà présents", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b4c47201-65d8-4e6e-a41c-812818b897f2", + "comment": "Init liste des numéros", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lesnumeros" + }, { + "id": "bd418adf-947a-4cc9-9d90-7db4c87778c8", + "comment": "Init liste des noms", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lesnoms" + }, { + "id": "7ed8a670-17d3-42c1-a9d7-0bd2bc7480c2", + "comment": "Init liste des catégories", + "command": "executeScript", + "target": "return []", + "targets": [], + "value": "lescategories" + }, { + "id": "7177e705-6fb4-4897-aa2c-97cd0d2e3c5f", + "comment": "Menu Membres", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users')]", + "targets": [], + "value": "" + }, { + "id": "0c1d2e63-90bd-475c-b726-0fe1c9cbadcd", + "comment": "Rendre visibles les options du menu Filtrer", + "command": "executeScript", + "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", + "targets": [], + "value": "" + }, { + "id": "865ff171-767f-41bf-9867-8bda00465648", + "comment": "", + "command": "storeText", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", + "targets": [], + "value": "membres" + }, { + "id": "7f454abf-e347-4846-a516-22457335ef88", + "comment": "Nombre de membres", + "command": "executeScript", + "target": "return Number(${membres}.split(/ /)[0])", + "targets": [], + "value": "nb_total_membres" + }, { + "id": "3ed185b3-11b2-49e9-954a-98a68bdf5214", + "comment": "Filtrer : toutes même cachées", + "command": "click", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", + "targets": [], + "value": "" + }, { + "id": "36b16814-da4c-4ebd-ae34-fba5c978aaab", + "comment": "Trier par numéro", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "e9d993a2-0177-4a8e-8d39-a2a37acd209e", + "comment": "inverser le tri s'il est en ordre décroissant", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "16ec5b60-7d89-48f4-acb3-fdfbb915eb1b", + "comment": "au moins 2 membres", + "command": "if", + "target": "${nb_total_membres} >= 2", + "targets": [], + "value": "" + }, { + "id": "8a82c16a-2df5-44e1-8fce-abc0164a1568", + "comment": "premier numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff1" + }, { + "id": "a7d28a28-f2d3-4ee4-b61d-3efd2c186a40", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff1})", + "targets": [], + "value": "numero1" + }, { + "id": "d692a876-28f1-4b22-8260-4b0d5aeac1c5", + "comment": "deuxième numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff2" + }, { + "id": "4a4f944c-af73-4baf-a964-158279f6e9d4", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff2})", + "targets": [], + "value": "numero2" + }, { + "id": "24fd1eca-7866-4134-b190-4929523bcfe1", + "comment": "", + "command": "if", + "target": "${numero1} > ${numero2}", + "targets": [], + "value": "" + }, { + "id": "e9b413a9-515a-488a-a87e-618c9748eda9", + "comment": "Inverser le sens de tri", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "a199a6bd-5a45-41c3-9125-89b8635806c8", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "86212fb9-2054-47bb-983e-8647afdbf26d", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e8bbd22e-a1af-4518-9c61-9e41fd6ae5ab", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "97213ee1-efc9-4974-8e62-48bf842f0427", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "4714e8cc-23cc-478b-af99-f823544dd236", + "comment": "", + "command": "executeScript", + "target": "return ${nb_total_membres}", + "targets": [], + "value": "nb_membres" + }, { + "id": "4343fd37-6bbc-488e-8dda-eff13a6057b9", + "comment": "Parcourir les membres affichés", + "command": "while", + "target": "${num} <= ${nb_membres}", + "targets": [], + "value": "" + }, { + "id": "d26b8be3-b041-4d2a-a30c-d3e6e36ad75f", + "comment": "fin de page ?", + "command": "if", + "target": "${num} > ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "7287cf8b-b5bd-46c8-a56c-20029d94d9ad", + "comment": "passer à la page suivante", + "command": "click", + "target": "xpath=//li[@class=\"next\"]//a", + "targets": [], + "value": "" + }, { + "id": "614a98c2-639c-41d1-a62d-04877bc3ec65", + "comment": "", + "command": "executeScript", + "target": "return ${nb_membres} - ${nb_membres_page}", + "targets": [], + "value": "nb_membres" + }, { + "id": "7d9219fa-7a57-4ec4-94e2-9a856a41f398", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "9dc0d635-24ec-41a6-86ec-58b9b727a3f5", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "40b68cca-77f4-4ee5-8cbb-de37268667dc", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "dc40dc15-00c9-4706-bca5-1deeec1dbe5a", + "comment": "numéro affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", + "targets": [], + "value": "numeroAffiche" + }, { + "id": "ea890997-4608-436e-b0b0-f879f1d4017c", + "comment": "Ajouter numéro à la liste", + "command": "executeScript", + "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", + "targets": [], + "value": "lesnumeros" + }, { + "id": "529d1349-1152-4522-bfc5-2d20e969dfab", + "comment": "nom affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", + "targets": [], + "value": "nomAffiche" + }, { + "id": "335d25c9-2c94-4e8a-b1df-b81f4befb4fb", + "comment": "Ajouter nom à la liste", + "command": "executeScript", + "target": "return ${lesnoms}.concat(${nomAffiche})", + "targets": [], + "value": "lesnoms" + }, { + "id": "2383220d-756d-43af-9d4c-f87798e552fe", + "comment": "afficher fiche membre", + "command": "click", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", + "targets": [], + "value": "" + }, { + "id": "fe06cb0c-8a1f-461a-9bf9-73c698a3b0ab", + "comment": "Catégorie du membre", + "command": "storeText", + "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", + "targets": [], + "value": "categorie" + }, { + "id": "a383bbaa-91db-42da-aaad-56c221470ac4", + "comment": "Trouver le numéro de la catégorie", + "command": "executeScript", + "target": "function getNumero(cat_name, categories) { let i = 0; while (i < categories.length) { if (categories[i] == cat_name) { return i + 1; } i += 1; }}return getNumero(${categorie}, ${categories_num});", + "targets": [], + "value": "num_cat" + }, { + "id": "4e48564f-68dd-41c8-a161-084bacbc8111", + "comment": "ajouter numéro catégorie à la liste", + "command": "executeScript", + "target": "return ${lescategories}.concat(${num_cat})", + "targets": [], + "value": "lescategories" + }, { + "id": "e908fdf3-47ba-4ba4-9ea7-61b5f1043adb", + "comment": "", + "command": "echo", + "target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}", + "targets": [], + "value": "" + }, { + "id": "2457ab44-59f3-47e5-b504-e9cde127dfb7", + "comment": "Retour page précédente", + "command": "executeScript", + "target": "history.back()", + "targets": [], + "value": "" + }, { + "id": "15c1b8e1-319f-4c17-b49a-ec3297de940f", + "comment": "", + "command": "executeScript", + "target": "return ${num} + 1", + "targets": [], + "value": "num" + }, { + "id": "d82498f4-70d7-4142-b97c-f6d14d7ca14c", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6700a179-f23e-4ce7-bcbb-da896ed6a5a7", + "comment": "Générer de nouveaux membres", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "114dbda5-9986-48a1-b8fc-6cd93cbfa2e1", + "comment": "Ajouter nouveaux noms à la liste", + "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; }; for (let i = 0; i < 200 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};", + "targets": [], + "value": "lesnoms" + }, { + "id": "508ba7a8-bff0-4f73-bb20-8bbac0c9f8ee", + "comment": "", + "command": "executeScript", + "target": "return ${nb_total_membres}", + "targets": [], + "value": "i" + }, { + "id": "87b6e8ea-58ca-490f-b1f4-44c3a312d1af", + "comment": "", + "command": "executeScript", + "target": "return ${lesnoms}.length", + "targets": [], + "value": "nb_noms" + }, { + "id": "479ad9dd-09d8-41c6-aaf2-3c569916e1c0", + "comment": "", + "command": "echo", + "target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}", + "targets": [], + "value": "" + }, { + "id": "3b4a56ae-7165-4b82-827e-93623ef83a7c", + "comment": "Parcourir liste noms pour ajout dans la base", + "command": "while", + "target": "${i} < ${nb_noms}", + "targets": [], + "value": "" + }, { + "id": "028a8c9d-02b8-444c-b3d0-7b0caa0d9500", + "comment": "Menu ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "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": "3b6965db-f603-4d4d-9d49-619142bf0360", + "comment": "Mémoriser numéro de membre", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "13af1ffd-ac19-4087-bed1-0c56a790171a", + "comment": "Ajouter numéro à la liste", + "command": "executeScript", + "target": "return ${lesnumeros}.concat(${numero})", + "targets": [], + "value": "lesnumeros" + }, { + "id": "7714f38b-f0d8-4a8f-8da8-8324765b1f46", + "comment": "Générer numéro catégorie", + "command": "executeScript", + "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", + "targets": [], + "value": "num_cat" + }, { + "id": "6d1e059f-8af1-4cb2-835c-982007ba64d6", + "comment": "Ajouter numéro catégorie à la liste", + "command": "executeScript", + "target": "return ${lescategories}.concat(${num_cat})", + "targets": [], + "value": "lescategories" + }, { + "id": "fbd08b97-7529-4015-9422-60d7ec9ea1f9", + "comment": "Sélectionner catégorie", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]", + "targets": [], + "value": "" + }, { + "id": "f6f7f579-35db-4dc8-bebc-67be762902a9", + "comment": "", + "command": "executeScript", + "target": "return ${lesnoms}.at(${i})", + "targets": [], + "value": "nom" + }, { + "id": "ffe51133-32f8-4b35-93f5-70e5a981cca8", + "comment": "Saisir le nom", + "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": "fc2f00be-7ae5-40c8-b9af-94ab48c73744", + "comment": "", + "command": "echo", + "target": "Ajout de ${nom}, catégorie = ${num_cat}", + "targets": [], + "value": "" + }, { + "id": "9eda34ba-83b4-486f-9670-8ea1d3787d1c", + "comment": "Générer ville", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "d3c14c43-efce-4c6d-b561-70089f26b99c", + "comment": "Saisir ville", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_vile", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "5258cac1-c8da-4cff-8c06-13d7e3bcb626", + "comment": "Enregistrer les infos", + "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": "e04e6e07-2918-4035-b8a6-a0d0de2bf236", + "comment": "", + "command": "executeScript", + "target": "return ${i} + 1", + "targets": [], + "value": "i" + }, { + "id": "825221da-e063-4271-a2dc-96d1603de589", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e1de0677-7d2b-40cc-9389-f884574fe373", + "comment": "Vérifier les membres", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "d9ede09d-9a87-421a-be52-c3d51cf2d9c8", + "comment": "Menu membres", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users')]", + "targets": [], + "value": "" + }, { + "id": "6739f069-d0ae-4347-9d14-b6b5ba1f75af", + "comment": "Rendre visibles les options du menu Filtrer", + "command": "executeScript", + "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", + "targets": [], + "value": "" + }, { + "id": "b6315ef7-8655-4285-993e-6d858e00255c", + "comment": "nombre de membres dans ces catégories", + "command": "storeText", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", + "targets": [], + "value": "membres" + }, { + "id": "574f25d9-b11b-4b42-9ed5-30f5425ec66e", + "comment": "idem", + "command": "executeScript", + "target": "return Number(${membres}.split(/ /)[0])", + "targets": [], + "value": "nb_membres_cat" + }, { + "id": "f91f6c36-ad5f-4237-a45c-b4199802d706", + "comment": "Vérifier nombre de membres", + "command": "assert", + "target": "nb_noms", + "targets": [], + "value": "${nb_membres_cat}" + }, { + "id": "6295f9cf-164e-4c90-b329-37d8152d66e8", + "comment": "Filtrer : toutes catégories même cachées", + "command": "click", + "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", + "targets": [], + "value": "" + }, { + "id": "cb02a6f2-90b8-42df-aedb-a33901822c37", + "comment": "Trier par numéro", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "9d780d99-318f-4d86-a34d-6643c95d1054", + "comment": "inverser le tri s'il est en ordre décroissant", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "e2fe96bd-875a-419b-9cdd-65ee346cd8be", + "comment": "au moins 2 membres", + "command": "if", + "target": "${nb_membres_cat} >= 2", + "targets": [], + "value": "" + }, { + "id": "5bb4df35-2cdd-481d-8b30-682723a6ae0c", + "comment": "premier numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff1" + }, { + "id": "02e2d975-ea03-4ade-8d2b-244c46bc71ac", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff1})", + "targets": [], + "value": "numero1" + }, { + "id": "eb229a97-6b19-4015-981d-5929a60b982d", + "comment": "deuxième numéro", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", + "targets": [], + "value": "numaff2" + }, { + "id": "5e6cd241-3f16-434b-8215-0710c5fe96f1", + "comment": "", + "command": "executeScript", + "target": "return Number(${numaff2})", + "targets": [], + "value": "numero2" + }, { + "id": "ceed1d9f-ca7d-4fb3-bc95-56c51f92866a", + "comment": "", + "command": "if", + "target": "${numero1} > ${numero2}", + "targets": [], + "value": "" + }, { + "id": "844396e5-bdbe-49fd-a918-61865e79cd03", + "comment": "Inverser le sens de tri", + "command": "click", + "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", + "targets": [], + "value": "" + }, { + "id": "17d90fe8-6460-4e77-a98a-33793c794bb1", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "43e73ac7-bece-487d-b827-6d631c7d80f9", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "605fe194-1320-4466-9dc0-451d830f7eb7", + "comment": "Nombre de membres sur la page", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "3f7540b5-a026-465e-af47-0e0a523f74a8", + "comment": "", + "command": "echo", + "target": "nombre de membres sur la page = ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "85aabfcd-08f9-4b66-b52d-38d522fdfea7", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "b83b19ba-c1df-463e-b475-86fb579896fe", + "comment": "", + "command": "executeScript", + "target": "return 0", + "targets": [], + "value": "i" + }, { + "id": "799af842-53fb-4499-b4ce-c11e07336dbf", + "comment": "Parcourir les membres affichés", + "command": "while", + "target": "${num} <= ${nb_membres_cat}", + "targets": [], + "value": "" + }, { + "id": "3cbc31e4-1896-4bc5-a805-3e134b264d4a", + "comment": "fin de page ?", + "command": "if", + "target": "${num} > ${nb_membres_page}", + "targets": [], + "value": "" + }, { + "id": "c8647fb6-4f7e-4d09-bfec-4ead1c35bd49", + "comment": "passer à la page suivante", + "command": "click", + "target": "xpath=//li[@class=\"next\"]//a", + "targets": [], + "value": "" + }, { + "id": "81ba53ec-a01b-4dff-8258-1e45a3bd4ace", + "comment": "", + "command": "executeScript", + "target": "return ${nb_membres_cat} - ${nb_membres_page}", + "targets": [], + "value": "nb_membres_cat" + }, { + "id": "e67245e8-18bf-4216-b4d1-9a8577250e88", + "comment": "", + "command": "executeScript", + "target": "return 1", + "targets": [], + "value": "num" + }, { + "id": "cef5916c-3baa-44ef-b179-09bc12cec949", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", + "targets": [], + "value": "nb_membres_page" + }, { + "id": "f40340cb-c7f2-4d62-b3fb-e71d024f12dc", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "27f4c57e-ee66-49c3-8553-189bff01144f", + "comment": "numéro affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", + "targets": [], + "value": "numeroAffiche" + }, { + "id": "b75c820c-8cd8-4908-9da4-860004173bb9", + "comment": "nom affiché", + "command": "storeText", + "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", + "targets": [], + "value": "nomAffiche" + }, { + "id": "fa1e8789-53f1-4896-9baf-c36a78739b19", + "comment": "numéro mémorisé", + "command": "executeScript", + "target": "return ${lesnumeros}.at(${i})", + "targets": [], + "value": "numero" + }, { + "id": "af746f85-7a5e-4c53-aaa6-c6868f4b8bac", + "comment": "nom mémorisé", + "command": "executeScript", + "target": "return ${lesnoms}.at(${i})", + "targets": [], + "value": "nom" + }, { + "id": "a36e2b0c-0592-4986-b29b-f459f2bedeaf", + "comment": "catégorie mémorisée", + "command": "executeScript", + "target": "return ${lescategories}.at(${i})", + "targets": [], + "value": "categorie" + }, { + "id": "ab8a0b81-b0ba-4a98-b2a6-21d1e0f0e1d6", + "comment": "", + "command": "echo", + "target": "n=${num} ${numeroAffiche} ${nomAffiche}", + "targets": [], + "value": "" + }, { + "id": "a9272408-2d37-48d1-8595-35aeeb43462a", + "comment": "", + "command": "echo", + "target": "i=${i} ${numero} ${nom} cat=${categorie}", + "targets": [], + "value": "" + }, { + "id": "cfab7f82-617f-47ba-ad58-9d7faf8a6864", + "comment": "", + "command": "executeScript", + "target": "return Number(${numeroAffiche})", + "targets": [], + "value": "numaff" + }, { + "id": "dac4b1ec-1e0a-4d78-9a8b-24f0b16033bd", + "comment": "", + "command": "assert", + "target": "numeroAffiche", + "targets": [], + "value": "${numero}" + }, { + "id": "30271924-fa9f-4cc4-ada8-71097044dc98", + "comment": "", + "command": "assert", + "target": "nomAffiche", + "targets": [], + "value": "${nom}" + }, { + "id": "6a9b4aa6-b054-4215-8178-a82c8e3f3618", + "comment": "", + "command": "executeScript", + "target": "return ${num} + 1", + "targets": [], + "value": "num" + }, { + "id": "d202cce0-29c4-48ae-9b7b-08d8c99e8da3", + "comment": "", + "command": "executeScript", + "target": "return ${i} +1", + "targets": [], + "value": "i" + }, { + "id": "5d00e23a-57ef-46a0-becb-4091ffa47ed7", + "comment": "", + "command": "end", + "target": "", "targets": [], "value": "" }] @@ -7321,931 +9171,6 @@ "targets": [], "value": "" }] - }, { - "id": "25e25640-41c1-4a8c-a8f3-288fed7fb46e", - "name": "4-01a lister membres plusieurs pages", - "commands": [{ - "id": "5f9c60ae-6864-4bc4-b51d-dc19cd9e7866", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "b8a5a88a-c6d5-459c-9fef-ea83dd92c0c1", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "690a17dc-9419-41c7-a111-6df27be8f641", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "30bfade9-b8a8-440a-afa0-b23f48cdaa3b", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "044ab6fe-0b3f-4b23-8e1a-4c856acec3ce", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "17295ad3-f1ae-4065-8f82-49bda8bd052a", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "edc3fcfe-859d-4694-8ec8-26ea83165645", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "68cefb5c-341a-4a31-a8b0-85b9caa64bf6", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "db2fa63b-7ef1-4fd5-8717-8779a189355a", - "comment": "Récupérer la liste des catégories", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "05a27d05-d3f4-45c7-91f5-55ad386927f7", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "targets": [ - ["linkText=Ajouter", "linkText"], - ["css=.current 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": "e87fa67d-19e7-49b4-bb16-b88f0b51e991", - "comment": "", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "categories_alpha" - }, { - "id": "16b24312-282e-47b9-8499-4a30e3fb90a0", - "comment": "", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "numeros_alpha" - }, { - "id": "af51a31f-e5f7-4c72-9484-e3c7350e655c", - "comment": "Nombre de catégories", - "command": "storeXpathCount", - "target": "xpath=//select[@id=\"f_id_category\"]/option", - "targets": [], - "value": "nb_categories" - }, { - "id": "3dc0bad8-4459-4df2-9bfa-f3afcd2db927", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "i" - }, { - "id": "88be8d31-706d-4bdd-8c1b-1c328d8db8c1", - "comment": "", - "command": "while", - "target": "${i} <= ${nb_categories}", - "targets": [], - "value": "" - }, { - "id": "5c4da75e-4754-4190-82d2-5abbb1cd38d1", - "comment": "", - "command": "storeText", - "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", - "targets": [], - "value": "cat" - }, { - "id": "b4b6d496-8900-4abb-b464-b25fed2846d8", - "comment": "", - "command": "executeScript", - "target": "return ${categories_alpha}.concat(${cat})", - "targets": [], - "value": "categories_alpha" - }, { - "id": "c17e10ba-d942-43c7-954c-4a2e0852db31", - "comment": "", - "command": "storeAttribute", - "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", - "targets": [], - "value": "num_cat" - }, { - "id": "80b1036c-9b14-4faf-ad12-ec628dc74a70", - "comment": "", - "command": "executeScript", - "target": "return ${numeros_alpha}.concat(${num_cat})", - "targets": [], - "value": "numeros_alpha" - }, { - "id": "2b6bfcba-d84e-4f56-b57b-da2bf57de568", - "comment": "", - "command": "echo", - "target": "${num_cat} : ${cat}", - "targets": [], - "value": "" - }, { - "id": "602459cf-be74-4cf7-9b8d-d28b36efc75d", - "comment": "", - "command": "executeScript", - "target": "return ${i} + 1", - "targets": [], - "value": "i" - }, { - "id": "854610f7-a1cf-4a96-b117-08a841fdddfc", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "93717242-ae25-4829-acd7-89de3a8121a7", - "comment": "Trier les catégories par numéro", - "command": "executeScript", - "target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;", - "targets": [], - "value": "categories_num" - }, { - "id": "b4896366-a9ff-481d-9dcc-5b0e7f57d9e8", - "comment": "Traiter les membres déjà présents", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "b4c47201-65d8-4e6e-a41c-812818b897f2", - "comment": "Init liste des numéros", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lesnumeros" - }, { - "id": "bd418adf-947a-4cc9-9d90-7db4c87778c8", - "comment": "Init liste des noms", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lesnoms" - }, { - "id": "7ed8a670-17d3-42c1-a9d7-0bd2bc7480c2", - "comment": "Init liste des catégories", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lescategories" - }, { - "id": "7177e705-6fb4-4897-aa2c-97cd0d2e3c5f", - "comment": "Menu Membres", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users')]", - "targets": [], - "value": "" - }, { - "id": "0c1d2e63-90bd-475c-b726-0fe1c9cbadcd", - "comment": "Rendre visibles les options du menu Filtrer", - "command": "executeScript", - "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", - "targets": [], - "value": "" - }, { - "id": "865ff171-767f-41bf-9867-8bda00465648", - "comment": "", - "command": "storeText", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", - "targets": [], - "value": "membres" - }, { - "id": "7f454abf-e347-4846-a516-22457335ef88", - "comment": "Nombre de membres", - "command": "executeScript", - "target": "return Number(${membres}.split(/ /)[0])", - "targets": [], - "value": "nb_total_membres" - }, { - "id": "3ed185b3-11b2-49e9-954a-98a68bdf5214", - "comment": "Filtrer : toutes même cachées", - "command": "click", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", - "targets": [], - "value": "" - }, { - "id": "36b16814-da4c-4ebd-ae34-fba5c978aaab", - "comment": "Trier par numéro", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "e9d993a2-0177-4a8e-8d39-a2a37acd209e", - "comment": "inverser le tri s'il est en ordre décroissant", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "16ec5b60-7d89-48f4-acb3-fdfbb915eb1b", - "comment": "au moins 2 membres", - "command": "if", - "target": "${nb_total_membres} >= 2", - "targets": [], - "value": "" - }, { - "id": "8a82c16a-2df5-44e1-8fce-abc0164a1568", - "comment": "premier numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff1" - }, { - "id": "a7d28a28-f2d3-4ee4-b61d-3efd2c186a40", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff1})", - "targets": [], - "value": "numero1" - }, { - "id": "d692a876-28f1-4b22-8260-4b0d5aeac1c5", - "comment": "deuxième numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff2" - }, { - "id": "4a4f944c-af73-4baf-a964-158279f6e9d4", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff2})", - "targets": [], - "value": "numero2" - }, { - "id": "24fd1eca-7866-4134-b190-4929523bcfe1", - "comment": "", - "command": "if", - "target": "${numero1} > ${numero2}", - "targets": [], - "value": "" - }, { - "id": "e9b413a9-515a-488a-a87e-618c9748eda9", - "comment": "Inverser le sens de tri", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "a199a6bd-5a45-41c3-9125-89b8635806c8", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "86212fb9-2054-47bb-983e-8647afdbf26d", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "e8bbd22e-a1af-4518-9c61-9e41fd6ae5ab", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "97213ee1-efc9-4974-8e62-48bf842f0427", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "4714e8cc-23cc-478b-af99-f823544dd236", - "comment": "", - "command": "executeScript", - "target": "return ${nb_total_membres}", - "targets": [], - "value": "nb_membres" - }, { - "id": "4343fd37-6bbc-488e-8dda-eff13a6057b9", - "comment": "Parcourir les membres affichés", - "command": "while", - "target": "${num} <= ${nb_membres}", - "targets": [], - "value": "" - }, { - "id": "d26b8be3-b041-4d2a-a30c-d3e6e36ad75f", - "comment": "fin de page ?", - "command": "if", - "target": "${num} > ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "7287cf8b-b5bd-46c8-a56c-20029d94d9ad", - "comment": "passer à la page suivante", - "command": "click", - "target": "xpath=//li[@class=\"next\"]//a", - "targets": [], - "value": "" - }, { - "id": "614a98c2-639c-41d1-a62d-04877bc3ec65", - "comment": "", - "command": "executeScript", - "target": "return ${nb_membres} - ${nb_membres_page}", - "targets": [], - "value": "nb_membres" - }, { - "id": "7d9219fa-7a57-4ec4-94e2-9a856a41f398", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "9dc0d635-24ec-41a6-86ec-58b9b727a3f5", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "40b68cca-77f4-4ee5-8cbb-de37268667dc", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "dc40dc15-00c9-4706-bca5-1deeec1dbe5a", - "comment": "numéro affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", - "targets": [], - "value": "numeroAffiche" - }, { - "id": "ea890997-4608-436e-b0b0-f879f1d4017c", - "comment": "Ajouter numéro à la liste", - "command": "executeScript", - "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", - "targets": [], - "value": "lesnumeros" - }, { - "id": "529d1349-1152-4522-bfc5-2d20e969dfab", - "comment": "nom affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", - "targets": [], - "value": "nomAffiche" - }, { - "id": "335d25c9-2c94-4e8a-b1df-b81f4befb4fb", - "comment": "Ajouter nom à la liste", - "command": "executeScript", - "target": "return ${lesnoms}.concat(${nomAffiche})", - "targets": [], - "value": "lesnoms" - }, { - "id": "2383220d-756d-43af-9d4c-f87798e552fe", - "comment": "afficher fiche membre", - "command": "click", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", - "targets": [], - "value": "" - }, { - "id": "fe06cb0c-8a1f-461a-9bf9-73c698a3b0ab", - "comment": "Catégorie du membre", - "command": "storeText", - "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", - "targets": [], - "value": "categorie" - }, { - "id": "a383bbaa-91db-42da-aaad-56c221470ac4", - "comment": "Trouver le numéro de la catégorie", - "command": "executeScript", - "target": "function getNumero(cat_name, categories) { let i = 0; while (i < categories.length) { if (categories[i] == cat_name) { return i + 1; } i += 1; }}return getNumero(${categorie}, ${categories_num});", - "targets": [], - "value": "num_cat" - }, { - "id": "4e48564f-68dd-41c8-a161-084bacbc8111", - "comment": "ajouter numéro catégorie à la liste", - "command": "executeScript", - "target": "return ${lescategories}.concat(${num_cat})", - "targets": [], - "value": "lescategories" - }, { - "id": "e908fdf3-47ba-4ba4-9ea7-61b5f1043adb", - "comment": "", - "command": "echo", - "target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}", - "targets": [], - "value": "" - }, { - "id": "2457ab44-59f3-47e5-b504-e9cde127dfb7", - "comment": "Retour page précédente", - "command": "executeScript", - "target": "history.back()", - "targets": [], - "value": "" - }, { - "id": "15c1b8e1-319f-4c17-b49a-ec3297de940f", - "comment": "", - "command": "executeScript", - "target": "return ${num} + 1", - "targets": [], - "value": "num" - }, { - "id": "d82498f4-70d7-4142-b97c-f6d14d7ca14c", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6700a179-f23e-4ce7-bcbb-da896ed6a5a7", - "comment": "Générer de nouveaux membres", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "114dbda5-9986-48a1-b8fc-6cd93cbfa2e1", - "comment": "Ajouter nouveaux noms à la liste", - "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; }; for (let i = 0; i < 200 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};", - "targets": [], - "value": "lesnoms" - }, { - "id": "508ba7a8-bff0-4f73-bb20-8bbac0c9f8ee", - "comment": "", - "command": "executeScript", - "target": "return ${nb_total_membres}", - "targets": [], - "value": "i" - }, { - "id": "87b6e8ea-58ca-490f-b1f4-44c3a312d1af", - "comment": "", - "command": "executeScript", - "target": "return ${lesnoms}.length", - "targets": [], - "value": "nb_noms" - }, { - "id": "479ad9dd-09d8-41c6-aaf2-3c569916e1c0", - "comment": "", - "command": "echo", - "target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}", - "targets": [], - "value": "" - }, { - "id": "3b4a56ae-7165-4b82-827e-93623ef83a7c", - "comment": "Parcourir liste noms pour ajout dans la base", - "command": "while", - "target": "${i} < ${nb_noms}", - "targets": [], - "value": "" - }, { - "id": "028a8c9d-02b8-444c-b3d0-7b0caa0d9500", - "comment": "Menu ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "3b6965db-f603-4d4d-9d49-619142bf0360", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "13af1ffd-ac19-4087-bed1-0c56a790171a", - "comment": "Ajouter numéro à la liste", - "command": "executeScript", - "target": "return ${lesnumeros}.concat(${numero})", - "targets": [], - "value": "lesnumeros" - }, { - "id": "7714f38b-f0d8-4a8f-8da8-8324765b1f46", - "comment": "Générer numéro catégorie", - "command": "executeScript", - "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", - "targets": [], - "value": "num_cat" - }, { - "id": "6d1e059f-8af1-4cb2-835c-982007ba64d6", - "comment": "Ajouter numéro catégorie à la liste", - "command": "executeScript", - "target": "return ${lescategories}.concat(${num_cat})", - "targets": [], - "value": "lescategories" - }, { - "id": "fbd08b97-7529-4015-9422-60d7ec9ea1f9", - "comment": "Sélectionner catégorie", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]", - "targets": [], - "value": "" - }, { - "id": "f6f7f579-35db-4dc8-bebc-67be762902a9", - "comment": "", - "command": "executeScript", - "target": "return ${lesnoms}.at(${i})", - "targets": [], - "value": "nom" - }, { - "id": "ffe51133-32f8-4b35-93f5-70e5a981cca8", - "comment": "Saisir le nom", - "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": "fc2f00be-7ae5-40c8-b9af-94ab48c73744", - "comment": "", - "command": "echo", - "target": "Ajout de ${nom}, catégorie = ${num_cat}", - "targets": [], - "value": "" - }, { - "id": "9eda34ba-83b4-486f-9670-8ea1d3787d1c", - "comment": "Générer ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "d3c14c43-efce-4c6d-b561-70089f26b99c", - "comment": "Saisir ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_vile", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "5258cac1-c8da-4cff-8c06-13d7e3bcb626", - "comment": "Enregistrer les infos", - "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": "e04e6e07-2918-4035-b8a6-a0d0de2bf236", - "comment": "", - "command": "executeScript", - "target": "return ${i} + 1", - "targets": [], - "value": "i" - }, { - "id": "825221da-e063-4271-a2dc-96d1603de589", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "e1de0677-7d2b-40cc-9389-f884574fe373", - "comment": "Vérifier les membres", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "d9ede09d-9a87-421a-be52-c3d51cf2d9c8", - "comment": "Menu membres", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users')]", - "targets": [], - "value": "" - }, { - "id": "6739f069-d0ae-4347-9d14-b6b5ba1f75af", - "comment": "Rendre visibles les options du menu Filtrer", - "command": "executeScript", - "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", - "targets": [], - "value": "" - }, { - "id": "b6315ef7-8655-4285-993e-6d858e00255c", - "comment": "nombre de membres dans ces catégories", - "command": "storeText", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", - "targets": [], - "value": "membres" - }, { - "id": "574f25d9-b11b-4b42-9ed5-30f5425ec66e", - "comment": "idem", - "command": "executeScript", - "target": "return Number(${membres}.split(/ /)[0])", - "targets": [], - "value": "nb_membres_cat" - }, { - "id": "f91f6c36-ad5f-4237-a45c-b4199802d706", - "comment": "Vérifier nombre de membres", - "command": "assert", - "target": "nb_noms", - "targets": [], - "value": "${nb_membres_cat}" - }, { - "id": "6295f9cf-164e-4c90-b329-37d8152d66e8", - "comment": "Filtrer : toutes catégories même cachées", - "command": "click", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", - "targets": [], - "value": "" - }, { - "id": "cb02a6f2-90b8-42df-aedb-a33901822c37", - "comment": "Trier par numéro", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "9d780d99-318f-4d86-a34d-6643c95d1054", - "comment": "inverser le tri s'il est en ordre décroissant", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "e2fe96bd-875a-419b-9cdd-65ee346cd8be", - "comment": "au moins 2 membres", - "command": "if", - "target": "${nb_membres_cat} >= 2", - "targets": [], - "value": "" - }, { - "id": "5bb4df35-2cdd-481d-8b30-682723a6ae0c", - "comment": "premier numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff1" - }, { - "id": "02e2d975-ea03-4ade-8d2b-244c46bc71ac", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff1})", - "targets": [], - "value": "numero1" - }, { - "id": "eb229a97-6b19-4015-981d-5929a60b982d", - "comment": "deuxième numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff2" - }, { - "id": "5e6cd241-3f16-434b-8215-0710c5fe96f1", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff2})", - "targets": [], - "value": "numero2" - }, { - "id": "ceed1d9f-ca7d-4fb3-bc95-56c51f92866a", - "comment": "", - "command": "if", - "target": "${numero1} > ${numero2}", - "targets": [], - "value": "" - }, { - "id": "844396e5-bdbe-49fd-a918-61865e79cd03", - "comment": "Inverser le sens de tri", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "17d90fe8-6460-4e77-a98a-33793c794bb1", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "43e73ac7-bece-487d-b827-6d631c7d80f9", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "605fe194-1320-4466-9dc0-451d830f7eb7", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "3f7540b5-a026-465e-af47-0e0a523f74a8", - "comment": "", - "command": "echo", - "target": "nombre de membres sur la page = ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "85aabfcd-08f9-4b66-b52d-38d522fdfea7", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "b83b19ba-c1df-463e-b475-86fb579896fe", - "comment": "", - "command": "executeScript", - "target": "return 0", - "targets": [], - "value": "i" - }, { - "id": "799af842-53fb-4499-b4ce-c11e07336dbf", - "comment": "Parcourir les membres affichés", - "command": "while", - "target": "${num} <= ${nb_membres_cat}", - "targets": [], - "value": "" - }, { - "id": "3cbc31e4-1896-4bc5-a805-3e134b264d4a", - "comment": "fin de page ?", - "command": "if", - "target": "${num} > ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "c8647fb6-4f7e-4d09-bfec-4ead1c35bd49", - "comment": "passer à la page suivante", - "command": "click", - "target": "xpath=//li[@class=\"next\"]//a", - "targets": [], - "value": "" - }, { - "id": "81ba53ec-a01b-4dff-8258-1e45a3bd4ace", - "comment": "", - "command": "executeScript", - "target": "return ${nb_membres_cat} - ${nb_membres_page}", - "targets": [], - "value": "nb_membres_cat" - }, { - "id": "e67245e8-18bf-4216-b4d1-9a8577250e88", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "cef5916c-3baa-44ef-b179-09bc12cec949", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "f40340cb-c7f2-4d62-b3fb-e71d024f12dc", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "27f4c57e-ee66-49c3-8553-189bff01144f", - "comment": "numéro affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", - "targets": [], - "value": "numeroAffiche" - }, { - "id": "b75c820c-8cd8-4908-9da4-860004173bb9", - "comment": "nom affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", - "targets": [], - "value": "nomAffiche" - }, { - "id": "fa1e8789-53f1-4896-9baf-c36a78739b19", - "comment": "numéro mémorisé", - "command": "executeScript", - "target": "return ${lesnumeros}.at(${i})", - "targets": [], - "value": "numero" - }, { - "id": "af746f85-7a5e-4c53-aaa6-c6868f4b8bac", - "comment": "nom mémorisé", - "command": "executeScript", - "target": "return ${lesnoms}.at(${i})", - "targets": [], - "value": "nom" - }, { - "id": "a36e2b0c-0592-4986-b29b-f459f2bedeaf", - "comment": "catégorie mémorisée", - "command": "executeScript", - "target": "return ${lescategories}.at(${i})", - "targets": [], - "value": "categorie" - }, { - "id": "ab8a0b81-b0ba-4a98-b2a6-21d1e0f0e1d6", - "comment": "", - "command": "echo", - "target": "n=${num} ${numeroAffiche} ${nomAffiche}", - "targets": [], - "value": "" - }, { - "id": "a9272408-2d37-48d1-8595-35aeeb43462a", - "comment": "", - "command": "echo", - "target": "i=${i} ${numero} ${nom} cat=${categorie}", - "targets": [], - "value": "" - }, { - "id": "cfab7f82-617f-47ba-ad58-9d7faf8a6864", - "comment": "", - "command": "executeScript", - "target": "return Number(${numeroAffiche})", - "targets": [], - "value": "numaff" - }, { - "id": "dac4b1ec-1e0a-4d78-9a8b-24f0b16033bd", - "comment": "", - "command": "assert", - "target": "numeroAffiche", - "targets": [], - "value": "${numero}" - }, { - "id": "30271924-fa9f-4cc4-ada8-71097044dc98", - "comment": "", - "command": "assert", - "target": "nomAffiche", - "targets": [], - "value": "${nom}" - }, { - "id": "6a9b4aa6-b054-4215-8178-a82c8e3f3618", - "comment": "", - "command": "executeScript", - "target": "return ${num} + 1", - "targets": [], - "value": "num" - }, { - "id": "d202cce0-29c4-48ae-9b7b-08d8c99e8da3", - "comment": "", - "command": "executeScript", - "target": "return ${i} +1", - "targets": [], - "value": "i" - }, { - "id": "5d00e23a-57ef-46a0-becb-4091ffa47ed7", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }] }, { "id": "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf", "name": "4-03 lister membres d'une catégorie", @@ -9287,931 +10212,6 @@ "targets": [], "value": "" }] - }, { - "id": "9d3d8f41-bff5-472e-ac87-6de5f10b4655", - "name": "4-01 lister membres toutes catégories", - "commands": [{ - "id": "9f50e061-8d46-4a07-a6ae-3e39cceb9bc7", - "comment": "", - "command": "open", - "target": "http://test.paheko.localhost/admin/", - "targets": [], - "value": "" - }, { - "id": "78e25862-14dd-471d-8801-5bab32a275c2", - "comment": "", - "command": "setWindowSize", - "target": "1080x1020", - "targets": [], - "value": "" - }, { - "id": "7a9b145a-9ade-4266-b45c-aef9692a73aa", - "comment": "Vérifier si déjà connecté", - "command": "storeXpathCount", - "target": "xpath=//button[@name='login']", - "targets": [], - "value": "connecte" - }, { - "id": "2cfbcda8-2ea9-43eb-939a-6dc84c27b9e8", - "comment": "", - "command": "if", - "target": "${connecte} > 0", - "targets": [], - "value": "" - }, { - "id": "357ca39a-5c70-47b1-99d9-bcde6ba80376", - "comment": "identifiant", - "command": "type", - "target": "id=f_id", - "targets": [], - "value": "jckix@free.fr" - }, { - "id": "0399e45b-7cc0-4d57-a5e3-a3b362929856", - "comment": "mot de passe", - "command": "type", - "target": "id=f_password", - "targets": [], - "value": "interpeller noircir colis allumer" - }, { - "id": "b1083b43-25b3-41a2-85cd-095762a21a9d", - "comment": "Connexion", - "command": "click", - "target": "name=login", - "targets": [], - "value": "" - }, { - "id": "342961e1-537c-41b6-8ad4-b353b4f62251", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "ba76fe19-56ff-4b76-bf7b-5d60bee262a6", - "comment": "Récupérer la liste des catégories", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "49602f97-bdff-487c-b268-d014d3de8178", - "comment": "", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "targets": [ - ["linkText=Ajouter", "linkText"], - ["css=.current 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": "380b0f3e-fed1-4799-a339-9a9680c3a511", - "comment": "", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "categories_alpha" - }, { - "id": "6566abd1-a45d-4b4d-be04-c77e5a4232f7", - "comment": "", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "numeros_alpha" - }, { - "id": "aed2d227-29ff-48d7-a6b9-951d2057d992", - "comment": "Nombre de catégories", - "command": "storeXpathCount", - "target": "xpath=//select[@id=\"f_id_category\"]/option", - "targets": [], - "value": "nb_categories" - }, { - "id": "d0cf800f-4ad5-4a79-9bff-c20ae976a6d8", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "i" - }, { - "id": "afe938c7-fca3-4889-a825-27c55b318440", - "comment": "", - "command": "while", - "target": "${i} <= ${nb_categories}", - "targets": [], - "value": "" - }, { - "id": "f963d669-8577-40e0-8ff5-bf00c78a5b59", - "comment": "", - "command": "storeText", - "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", - "targets": [], - "value": "cat" - }, { - "id": "a423823d-7962-41ba-a737-48d3c66beddd", - "comment": "", - "command": "executeScript", - "target": "return ${categories_alpha}.concat(${cat})", - "targets": [], - "value": "categories_alpha" - }, { - "id": "2b84666f-fa32-4359-b65b-22a9caacd35e", - "comment": "", - "command": "storeAttribute", - "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", - "targets": [], - "value": "num_cat" - }, { - "id": "9ff2480f-a30c-4287-98bc-5d4e0049b9bd", - "comment": "", - "command": "executeScript", - "target": "return ${numeros_alpha}.concat(${num_cat})", - "targets": [], - "value": "numeros_alpha" - }, { - "id": "3dbec75a-1588-4823-9a76-fadb707eb902", - "comment": "", - "command": "echo", - "target": "${num_cat} : ${cat}", - "targets": [], - "value": "" - }, { - "id": "ea94130f-539b-4d02-8015-193340a6abde", - "comment": "", - "command": "executeScript", - "target": "return ${i} + 1", - "targets": [], - "value": "i" - }, { - "id": "3dd79e09-b9ae-48cd-8abd-f8d9391d67ca", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "70a68897-ec9f-4fd3-a01d-548328ae1e75", - "comment": "Trier les catégories par numéro", - "command": "executeScript", - "target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;", - "targets": [], - "value": "categories_num" - }, { - "id": "0dff1226-2127-497e-963d-dd7f1734bf58", - "comment": "Traiter les membres déjà présents", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "6fe95231-a118-465f-b59e-20293b69f974", - "comment": "Init liste des numéros", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lesnumeros" - }, { - "id": "1c28edd0-3f87-4398-94c8-80312859fcb5", - "comment": "Init liste des noms", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lesnoms" - }, { - "id": "6e8f5b0a-05d4-444d-a6ef-f8a96a85fca1", - "comment": "Init liste des catégories", - "command": "executeScript", - "target": "return []", - "targets": [], - "value": "lescategories" - }, { - "id": "d2db43c2-e379-4a0e-b4d1-f35307988d1f", - "comment": "Menu Membres", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users')]", - "targets": [], - "value": "" - }, { - "id": "c600a59c-df0c-4ba9-ae02-2760c8fc0bbe", - "comment": "Rendre visibles les options du menu Filtrer", - "command": "executeScript", - "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", - "targets": [], - "value": "" - }, { - "id": "1fae1452-7af8-4405-8127-b7842f091b3f", - "comment": "", - "command": "storeText", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", - "targets": [], - "value": "membres" - }, { - "id": "e1792ceb-1d51-45e4-a86a-3e1dd9c8eb1b", - "comment": "Nombre de membres", - "command": "executeScript", - "target": "return Number(${membres}.split(/ /)[0])", - "targets": [], - "value": "nb_total_membres" - }, { - "id": "87c6a1a7-6f43-4d1b-8944-b30a9baa9734", - "comment": "Filtrer : toutes même cachées", - "command": "click", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", - "targets": [], - "value": "" - }, { - "id": "ca6ee8f1-e083-4c60-8b96-a49464c8e197", - "comment": "Trier par numéro", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "5b19a75f-b016-499c-8db8-e907b276b093", - "comment": "inverser le tri s'il est en ordre décroissant", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "b407e63f-0a39-4e30-bdc9-43aebecc38c7", - "comment": "au moins 2 membres", - "command": "if", - "target": "${nb_total_membres} >= 2", - "targets": [], - "value": "" - }, { - "id": "00256540-4d40-4fca-ab05-a10d91a1397a", - "comment": "premier numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff1" - }, { - "id": "59a07c46-205d-4cc3-b334-8a3153e9477b", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff1})", - "targets": [], - "value": "numero1" - }, { - "id": "961d3be4-bb54-48f7-abd4-d35c417b7248", - "comment": "deuxième numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff2" - }, { - "id": "56b70964-b497-48aa-b3ff-eb54ff124aca", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff2})", - "targets": [], - "value": "numero2" - }, { - "id": "77f481d8-633b-44fe-8cb0-d941ca20556d", - "comment": "", - "command": "if", - "target": "${numero1} > ${numero2}", - "targets": [], - "value": "" - }, { - "id": "50e7fb6a-c8ab-4b1b-a765-8715d1e68996", - "comment": "Inverser le sens de tri", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "42e53770-17f2-4c0f-8c78-610fc872d594", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "c52202fe-83ee-4822-b1a9-b698089f794c", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "552a98c5-fb5a-4f84-af5d-0dab0f48c417", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "cee12e74-bea1-40af-97aa-4fab48cd1538", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "6c900966-b2b0-4ce6-b39b-769ec95461a6", - "comment": "", - "command": "executeScript", - "target": "return ${nb_total_membres}", - "targets": [], - "value": "nb_membres" - }, { - "id": "0e119e93-98bd-4268-91e9-20b852615a11", - "comment": "Parcourir les membres affichés", - "command": "while", - "target": "${num} <= ${nb_membres}", - "targets": [], - "value": "" - }, { - "id": "a6f6b81d-61ff-4c0f-9825-ee98a7296abf", - "comment": "fin de page ?", - "command": "if", - "target": "${num} > ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "2a42d2f6-0909-404e-980f-b00f53846cb5", - "comment": "passer à la page suivante", - "command": "click", - "target": "xpath=//li[@class=\"next\"]//a", - "targets": [], - "value": "" - }, { - "id": "1d85b23b-fc76-464f-8214-a7431d67846e", - "comment": "", - "command": "executeScript", - "target": "return ${nb_membres} - ${nb_membres_page}", - "targets": [], - "value": "nb_membres" - }, { - "id": "7df9291d-15b4-4144-841a-514abebfa193", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "6d5e7780-37cc-4440-9a3a-6c9b9c999014", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "06d7ab25-f616-4918-b1fb-4a2659246a6b", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "c7566eca-44d0-4405-b19c-d5336898f1ff", - "comment": "numéro affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", - "targets": [], - "value": "numeroAffiche" - }, { - "id": "ee565b99-6a31-421d-861c-178abd1e339b", - "comment": "Ajouter numéro à la liste", - "command": "executeScript", - "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", - "targets": [], - "value": "lesnumeros" - }, { - "id": "21c0c151-eaf8-4fc3-9824-97d25f90cd0c", - "comment": "nom affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", - "targets": [], - "value": "nomAffiche" - }, { - "id": "31675346-22f0-42bc-8209-bf95f20de762", - "comment": "Ajouter nom à la liste", - "command": "executeScript", - "target": "return ${lesnoms}.concat(${nomAffiche})", - "targets": [], - "value": "lesnoms" - }, { - "id": "2913b0e9-d934-41fa-b8dc-bd826800e19c", - "comment": "afficher fiche membre", - "command": "click", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", - "targets": [], - "value": "" - }, { - "id": "bc347e5b-891d-4b07-b970-95957f8783e3", - "comment": "Catégorie du membre", - "command": "storeText", - "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", - "targets": [], - "value": "categorie" - }, { - "id": "073393c4-26d1-4ac4-a943-b7035781da27", - "comment": "Trouver le numéro de la catégorie", - "command": "executeScript", - "target": "function getNumero(cat_name, categories) { let i = 0; while (i < categories.length) { if (categories[i] == cat_name) { return i + 1; } i += 1; }}return getNumero(${categorie}, ${categories_num});", - "targets": [], - "value": "num_cat" - }, { - "id": "9a357204-3205-4dbf-bfd2-6f98a4d96564", - "comment": "ajouter numéro catégorie à la liste", - "command": "executeScript", - "target": "return ${lescategories}.concat(${num_cat})", - "targets": [], - "value": "lescategories" - }, { - "id": "a5a8dea5-7c7e-44bc-bbde-57bec1453df1", - "comment": "", - "command": "echo", - "target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}", - "targets": [], - "value": "" - }, { - "id": "2c87e770-7f2b-4119-aa11-02af4d6ff819", - "comment": "Retour page précédente", - "command": "executeScript", - "target": "history.back()", - "targets": [], - "value": "" - }, { - "id": "81f68bac-7994-4a5c-a833-65e3872a9a04", - "comment": "", - "command": "executeScript", - "target": "return ${num} + 1", - "targets": [], - "value": "num" - }, { - "id": "07ba4510-dbb0-4cbe-9ed3-86d15f8bc6f2", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "fc54fca2-285a-498c-a46c-d1d21db17b04", - "comment": "Générer de nouveaux membres", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "ddd854d8-2993-4be5-bc3e-afc5edf26a0f", - "comment": "Ajouter nouveaux noms à la liste", - "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; }; for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};", - "targets": [], - "value": "lesnoms" - }, { - "id": "c454ccfc-0327-472c-b7cd-e67327a156fb", - "comment": "", - "command": "executeScript", - "target": "return ${nb_total_membres}", - "targets": [], - "value": "i" - }, { - "id": "dbb0604b-27cb-47b0-832b-b36c21ce6d5c", - "comment": "", - "command": "executeScript", - "target": "return ${lesnoms}.length", - "targets": [], - "value": "nb_noms" - }, { - "id": "19762a03-fb00-41db-8802-9ea918454b3a", - "comment": "", - "command": "echo", - "target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}", - "targets": [], - "value": "" - }, { - "id": "f3a183e6-7872-4f75-88ca-479fc209f2be", - "comment": "Parcourir liste noms pour ajout dans la base", - "command": "while", - "target": "${i} < ${nb_noms}", - "targets": [], - "value": "" - }, { - "id": "ee448e86-3562-490a-82e6-c163cc4d504c", - "comment": "Menu ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "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": "1fce9227-6ca2-484a-a7fd-cbc894b3bd6b", - "comment": "Mémoriser numéro de membre", - "command": "storeValue", - "target": "id=f_numero", - "targets": [], - "value": "numero" - }, { - "id": "9e7ddbcf-97e8-4219-8860-e0c8c840e8ae", - "comment": "Ajouter numéro à la liste", - "command": "executeScript", - "target": "return ${lesnumeros}.concat(${numero})", - "targets": [], - "value": "lesnumeros" - }, { - "id": "97e14d1f-81cd-41d0-9e9a-f8df89c522cb", - "comment": "Générer numéro catégorie", - "command": "executeScript", - "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", - "targets": [], - "value": "num_cat" - }, { - "id": "05b626b7-ef5e-4309-936e-837b17e3587b", - "comment": "Ajouter numéro catégorie à la liste", - "command": "executeScript", - "target": "return ${lescategories}.concat(${num_cat})", - "targets": [], - "value": "lescategories" - }, { - "id": "cc012d70-0b06-4f46-8c28-9d7506dd2338", - "comment": "Sélectionner catégorie", - "command": "click", - "target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]", - "targets": [], - "value": "" - }, { - "id": "e4ee02a6-9079-4321-83b5-c09a9a7b12a8", - "comment": "", - "command": "executeScript", - "target": "return ${lesnoms}.at(${i})", - "targets": [], - "value": "nom" - }, { - "id": "fd4acfee-a918-481f-b15a-78c7d4f132aa", - "comment": "Saisir le nom", - "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": "0e7fc40b-310c-4731-bfdc-fd77031f653c", - "comment": "", - "command": "echo", - "target": "Ajout de ${nom}, catégorie = ${num_cat}", - "targets": [], - "value": "" - }, { - "id": "3e327c55-10da-4cdd-9662-35b296c93645", - "comment": "Générer ville", - "command": "executeScript", - "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", - "targets": [], - "value": "ville" - }, { - "id": "7ecfa494-d698-4428-8bae-4c024b2eb9a0", - "comment": "Saisir ville", - "command": "type", - "target": "id=f_ville", - "targets": [ - ["id=f_vile", "id"], - ["name=ville", "name"], - ["css=#f_ville", "css:finder"], - ["xpath=//input[@id='f_ville']", "xpath:attributes"], - ["xpath=//dd[10]/input", "xpath:position"] - ], - "value": "${ville}" - }, { - "id": "ffb5a045-2e68-4e6d-801f-37fe2d7a1ccc", - "comment": "Enregistrer les infos", - "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": "af3b1cb3-b67b-4868-ba4a-353b7a119d52", - "comment": "", - "command": "executeScript", - "target": "return ${i} + 1", - "targets": [], - "value": "i" - }, { - "id": "440e410f-fc5b-4d9f-91e4-f890b9e9c8c7", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "e84077f6-9802-4529-b6bb-dd0cbe1aeb4a", - "comment": "Vérifier les membres", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "a2e1c19b-58ea-4767-b57f-946ec6f7f195", - "comment": "Menu membres", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users')]", - "targets": [], - "value": "" - }, { - "id": "ebbf611a-7799-4508-9b1a-a3262538b6aa", - "comment": "Rendre visibles les options du menu Filtrer", - "command": "executeScript", - "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", - "targets": [], - "value": "" - }, { - "id": "ea2c1424-4106-4a82-89d7-a32b7255feec", - "comment": "nombre de membres dans ces catégories", - "command": "storeText", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", - "targets": [], - "value": "membres" - }, { - "id": "aa7246b5-6626-4c83-886e-0b2f315746b2", - "comment": "idem", - "command": "executeScript", - "target": "return Number(${membres}.split(/ /)[0])", - "targets": [], - "value": "nb_membres_cat" - }, { - "id": "663a9452-4167-4c30-bb91-0cd88e32c436", - "comment": "Vérifier nombre de membres", - "command": "assert", - "target": "nb_noms", - "targets": [], - "value": "${nb_membres_cat}" - }, { - "id": "91a56875-2fba-4dd6-b1ac-4bd81d67e31f", - "comment": "Filtrer : toutes catégories même cachées", - "command": "click", - "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", - "targets": [], - "value": "" - }, { - "id": "5d8e2c81-7260-4f05-8e1e-b11246faa61b", - "comment": "Trier par numéro", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "4cf6dc83-4b20-4acf-b72c-3c53cb10dba6", - "comment": "inverser le tri s'il est en ordre décroissant", - "command": "", - "target": "", - "targets": [], - "value": "" - }, { - "id": "9378071d-d8e5-462b-b66d-ec5feaef05d1", - "comment": "au moins 2 membres", - "command": "if", - "target": "${nb_membres_cat} >= 2", - "targets": [], - "value": "" - }, { - "id": "e6b6655d-ad92-48c6-9620-83bb881029eb", - "comment": "premier numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff1" - }, { - "id": "e00094aa-c349-4797-9882-d5294c04b7ef", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff1})", - "targets": [], - "value": "numero1" - }, { - "id": "65e9ac84-966a-4c49-8b20-d9e42dc8fad2", - "comment": "deuxième numéro", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", - "targets": [], - "value": "numaff2" - }, { - "id": "31cbb4ee-2e40-45ae-bd14-ea0c99de7928", - "comment": "", - "command": "executeScript", - "target": "return Number(${numaff2})", - "targets": [], - "value": "numero2" - }, { - "id": "9090989b-ebb1-4b13-9c0b-3f1b38065390", - "comment": "", - "command": "if", - "target": "${numero1} > ${numero2}", - "targets": [], - "value": "" - }, { - "id": "d785aea8-bdda-426e-ab41-2eaee8abe7aa", - "comment": "Inverser le sens de tri", - "command": "click", - "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", - "targets": [], - "value": "" - }, { - "id": "614cbd41-9342-4cde-a9f1-9fbe590ace11", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "f6a9acea-f89f-4f7c-9482-4f535bc2841b", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "67105636-1763-4157-a571-a321eb2c01af", - "comment": "Nombre de membres sur la page", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "821f0e68-9ae8-4e06-bd04-5d7cecd84050", - "comment": "", - "command": "echo", - "target": "nombre de membres sur la page = ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "5830c22e-3ad6-4bd1-b721-fa927b18a6b0", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "4a6b8e85-6600-480b-8e16-f4ecc449e5a9", - "comment": "", - "command": "executeScript", - "target": "return 0", - "targets": [], - "value": "i" - }, { - "id": "00ac421b-cac4-4a8d-8b24-308a7ec91ee6", - "comment": "Parcourir les membres affichés", - "command": "while", - "target": "${num} <= ${nb_membres_cat}", - "targets": [], - "value": "" - }, { - "id": "7042fa0d-3c09-4ce4-8407-cf2d7d876405", - "comment": "fin de page ?", - "command": "if", - "target": "${num} > ${nb_membres_page}", - "targets": [], - "value": "" - }, { - "id": "c9bc890b-135e-4895-ae62-3477caca40dc", - "comment": "passer à la page suivante", - "command": "click", - "target": "xpath=//li[@class=\"next\"]//a", - "targets": [], - "value": "" - }, { - "id": "962bfd5c-bc2d-435c-b026-994195c8d2e3", - "comment": "", - "command": "executeScript", - "target": "return ${nb_membres_cat} - ${nb_membres_page}", - "targets": [], - "value": "nb_membres_cat" - }, { - "id": "6390b5f3-3691-4a0b-bc9b-90a6fe718d3b", - "comment": "", - "command": "executeScript", - "target": "return 1", - "targets": [], - "value": "num" - }, { - "id": "784be5d2-2683-48cb-b6cd-473c524fa654", - "comment": "", - "command": "storeXpathCount", - "target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span", - "targets": [], - "value": "nb_membres_page" - }, { - "id": "94aa7f6e-1c40-4ef5-b0de-e3cf12bde373", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }, { - "id": "74565202-176e-4a11-a97a-c9b1cac0018c", - "comment": "numéro affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", - "targets": [], - "value": "numeroAffiche" - }, { - "id": "1585f6e5-197e-4b40-a88b-1cf29918c7e6", - "comment": "nom affiché", - "command": "storeText", - "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span", - "targets": [], - "value": "nomAffiche" - }, { - "id": "d058737f-0fed-4d12-a472-120c811851f5", - "comment": "numéro mémorisé", - "command": "executeScript", - "target": "return ${lesnumeros}.at(${i})", - "targets": [], - "value": "numero" - }, { - "id": "7018c3d9-7f40-460d-9905-856e25ba15ce", - "comment": "nom mémorisé", - "command": "executeScript", - "target": "return ${lesnoms}.at(${i})", - "targets": [], - "value": "nom" - }, { - "id": "4ce0cc02-c622-4657-a584-a69c212b4db4", - "comment": "catégorie mémorisée", - "command": "executeScript", - "target": "return ${lescategories}.at(${i})", - "targets": [], - "value": "categorie" - }, { - "id": "47a145be-cac7-4f16-a824-58929ee6d613", - "comment": "", - "command": "echo", - "target": "n=${num} ${numeroAffiche} ${nomAffiche}", - "targets": [], - "value": "" - }, { - "id": "dee281d1-e24f-4c2a-8c9b-844e180f6c7e", - "comment": "", - "command": "echo", - "target": "i=${i} ${numero} ${nom} cat=${categorie}", - "targets": [], - "value": "" - }, { - "id": "7baf6514-7c7a-4c19-9860-2ff69f919b35", - "comment": "", - "command": "executeScript", - "target": "return Number(${numeroAffiche})", - "targets": [], - "value": "numaff" - }, { - "id": "63b60f9e-d4ef-4db1-8c73-8ed958872e41", - "comment": "", - "command": "assert", - "target": "numeroAffiche", - "targets": [], - "value": "${numero}" - }, { - "id": "10fc39a5-a9ad-4e11-96be-e934245e699e", - "comment": "", - "command": "assert", - "target": "nomAffiche", - "targets": [], - "value": "${nom}" - }, { - "id": "165772cf-fb63-4262-b414-5cede2505a89", - "comment": "", - "command": "executeScript", - "target": "return ${num} + 1", - "targets": [], - "value": "num" - }, { - "id": "0cda4ee9-fde0-4f55-af55-9fcf08644a86", - "comment": "", - "command": "executeScript", - "target": "return ${i} +1", - "targets": [], - "value": "i" - }, { - "id": "4472d9b5-ee32-4778-a905-847cd4d99a22", - "comment": "", - "command": "end", - "target": "", - "targets": [], - "value": "" - }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",