paheko.side : suppression tests pays obsolètes

This commit is contained in:
Jean-Christophe Engel 2024-07-11 10:37:11 +02:00
parent a28d08e981
commit 3cf1e425eb

View File

@ -1138,448 +1138,6 @@
"targets": [],
"value": "${date}"
}]
}, {
"id": "a10913d7-dd6d-4c13-9bda-6293705343f8",
"name": "3-02 créer membre Pays hasard",
"commands": [{
"id": "cd1b3adf-7dcd-4e70-9cfb-45c8911d39a2",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
"id": "acdc5e0f-7d1b-46e7-8ee0-4abcbd25686a",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "011df170-505b-4649-a142-3eb62d7208ae",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "18b1a3b7-db73-4791-96bb-f5dc2cee1f59",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "9e67fe3b-785f-443f-bfe7-dc422d640aa6",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "aeb9d1b4-68df-4424-a5ea-10bcd3525819",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "99a70849-5f2f-4fd6-8826-0135df9c07ce",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d1932dc5-5c00-4422-b820-9e1def70b333",
"comment": "",
"command": "setWindowSize",
"target": "1280x1020",
"targets": [],
"value": ""
}, {
"id": "1419a875-6f79-48e6-aff9-bdcda72f3181",
"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": "b172d75d-be97-44b9-8e17-878777bc9185",
"comment": "Mémoriser les infos du membre",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "cf968ce5-2a90-4b39-9a22-d71ed9e224c8",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "2fbaa703-6ddc-4036-b7da-95c565f3c153",
"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": "0e59addb-c875-4ca0-be08-8db5c852a40a",
"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) + \"@\" + chaine(5) + \".fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "31a2150a-4c79-484f-8818-d62c76a6f10c",
"comment": "Choisir un pays au hasard",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_pays\"]/option",
"targets": [],
"value": "nb_pays"
}, {
"id": "d5ad8f2c-c892-4b1d-a44c-4e15fca13ac8",
"comment": "",
"command": "executeScript",
"target": "return 2 + Math.floor(Math.random() * (${nb_pays} - 1))",
"targets": [],
"value": "num_pays"
}, {
"id": "3dac9d98-9da6-4953-a910-1067776cc723",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_pays\"]/option[${num_pays}]",
"targets": [],
"value": "pays"
}, {
"id": "6bfb7453-f253-4ed2-92c1-d16a5e072d4c",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "a4277129-8287-4d44-ac81-b8cdc4b5506c",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "738d1e26-d2c3-45ec-a98e-ecc0eccd7e05",
"comment": "Ville",
"command": "store",
"target": "La Havane",
"targets": [],
"value": "ville"
}, {
"id": "afd2f570-4d60-440c-98e1-3eff825247e5",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 10);",
"targets": [],
"value": "tel"
}, {
"id": "0bd8c512-99bb-44b0-835c-394b58a35244",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "f40d1c92-c15a-4d34-a5d7-9a9d2cb862f4",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "4a33b555-5920-4683-9f15-6347e954fc35",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "de545a53-1272-4eee-b8fb-eddb0df35cbe",
"comment": "Remplir le formulaire",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "705bb55d-5756-4f18-ba8e-aae002e1d932",
"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": "df2c64e6-4a13-4116-a224-fffef3c5b77d",
"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": "a3d02a94-e276-4fb4-95ce-7f760f8d7c41",
"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": "5783a98f-6ba4-44d6-8d80-ca885dcec67a",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[${num_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": "80581213-bda0-4110-a45f-b3ffb69aa090",
"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": "1fa3cb82-2537-422d-9f2a-76b691988882",
"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": "eeb0e82d-0652-410b-abd9-08a7a0563bcc",
"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": "4ceeb0ba-f95f-4f5d-8161-9ecfb92117a7",
"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": "df224c52-3af7-4bf0-920b-779acf86504d",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "eadcc5cf-767e-4507-9257-2dbb0be0aca7",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "3672d94d-1ce2-47df-8915-86c97882086c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9b4a7137-34ec-43fa-b8ee-e0922564c878",
"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": "fee7637c-f245-42c7-8427-a73430ea72ce",
"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": "bced6da0-b1a7-4db1-9c18-ccfc30d2daf7",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "a169f017-2f5a-4dac-87e8-1681ad77bfb2",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "f1867735-60cd-40b6-abb0-cc7d3c7714b4",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "3cfad45e-2569-4e9e-afb9-89f4d5d26ed6",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "da8a9379-e38d-4599-bbff-8fee2c749f69",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "a6211476-e9f5-4686-9f67-b2ff22e74c24",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "3002b0de-954f-4ae5-ba99-af0c4905e1c0",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "c45277dd-3372-44cc-840c-f218e9fa0919",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "ae12ca29-3596-422d-99b6-042c091824a8",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "85a3fcdb-2a68-4d83-bbea-a837c75e3542",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "2b049a8d-f876-4082-a7e5-3e8f2dddcff6",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "84ca99ab-ab3c-4720-8c04-3427ad87cadf",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "318a5291-ad53-4193-a4f8-241139c21b98",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d6f5dc83-d622-4837-9e6b-c837e0a87526",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "18d8ab4b-4ef8-4d49-8c48-4e2e95388d8b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c1ea77ae-9f99-44c5-b44a-717065f050df",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "542187b1-45cd-4f09-bad6-b1220fbfc754",
"name": "3-03 créer membre catégorie ancien",
@ -6129,129 +5687,6 @@
"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": "1280x1020",
"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": "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": "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",