From f5e543fdc34b56b04a831cc1291f9b36e3044305 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 13 Sep 2024 09:13:46 +0200 Subject: [PATCH] =?UTF-8?q?ajout=2012-02=20num=C3=A9ro=20non=20obligatoire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 388 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 380 insertions(+), 8 deletions(-) diff --git a/membres.side b/membres.side index f22728f..07e5649 100644 --- a/membres.side +++ b/membres.side @@ -41723,13 +41723,6 @@ "target": "xpath=//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" - }, { - "id": "8c9e73e7-6e11-4854-b452-757dc89be5b1", - "comment": "", - "command": "//assertElementPresent", - "target": "//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", - "targets": [], - "value": "" }, { "id": "6d284ec9-b5f9-4da6-9931-d009d1c269f1", "comment": "Déconnexion membre", @@ -42941,6 +42934,385 @@ "targets": [], "value": "" }] + }, { + "id": "b8768454-ae31-4cec-a902-45218cd2cd06", + "name": "12-02 numéro non obligatoire", + "commands": [{ + "id": "24436a9b-db79-4bd2-9bd4-213bc2c0e381", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "92bcfa28-4cb6-4d63-b6a2-fc7c45b74010", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "4025ad48-e5ea-46c6-a4de-081358f971f3", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "a2697a31-eb23-4637-a2e9-3af3c8bd05f8", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "d301ed5b-dc6c-46aa-b664-7de8cc1a41f4", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "05668b95-cab3-4e5a-b1c6-e100984cdd17", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "45a207b8-4d31-4557-9569-3238b988e340", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "106a7226-d85e-450d-8a66-60191a0e7ed5", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "74a0f51e-439e-4036-bae1-437094e49035", + "comment": "ajouter pronom", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "c2cc8bdf-8b89-4e07-880b-084aae3e25d7", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/\")]", + "targets": [ + ["css=li:nth-child(6) b", "css:finder"], + ["xpath=//li[6]/h3/a/b", "xpath:position"], + ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "bbf5063c-5317-49a1-9b12-8efd81661bc5", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "400cfbf5-db96-4b72-b911-445d2c599007", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "bdf8e57f-5ada-4577-aa88-12c1aed45e1c", + "comment": "rendre numéro non obligatoire", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "15985178-c0ac-4142-b437-87fcada7a681", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"Numéro de membre\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "946d5a72-a43b-4b7b-9250-36d18fb6d2ee", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "3014fc28-f8de-482d-ba31-73fce617d65d", + "comment": "", + "command": "uncheck", + "target": "id=f_required_1", + "targets": [], + "value": "" + }, { + "id": "23ac10af-eb3e-48d7-a730-b52ae710a769", + "comment": "", + "command": "click", + "target": "name=save", + "targets": [ + ["name=save", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "9ebf4b7e-7e47-4b87-a448-232b88b6e3a2", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "20decff5-77ad-4b2f-a01d-859aae43cc21", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b23bde5c-b558-43f7-9add-43e3eb3d1709", + "comment": "", + "command": "click", + "target": "linkText=Ajouter", + "targets": [ + ["linkText=Ajouter", "linkText"], + ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], + ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], + ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], + ["xpath=//li/a", "xpath:position"], + ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "aa6a9e07-85ff-4176-9848-478cf850141c", + "comment": "", + "command": "type", + "target": "id=f_numero", + "targets": [], + "value": "" + }, { + "id": "4c796e11-8819-4b30-8ebe-26ab5008e9c0", + "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": "82f9d627-acdc-4496-8e4f-23910ddfca24", + "comment": "", + "command": "type", + "target": "id=f_nom", + "targets": [ + ["id=f_nom", "id"], + ["name=nom", "name"], + ["css=#f_nom", "css:finder"], + ["xpath=//input[@id='f_nom']", "xpath:attributes"], + ["xpath=//dd[3]/input", "xpath:position"] + ], + "value": "${nom}" + }, { + "id": "77aae785-15ce-4d12-85ce-b8c61b637ed6", + "comment": "", + "command": "executeScript", + "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@\" + chaine(5) + \".fr\"", + "targets": [], + "value": "email" + }, { + "id": "e02b6ad2-8b48-48af-abc4-217e2d31df50", + "comment": "", + "command": "type", + "target": "id=f_email", + "targets": [ + ["id=f_email", "id"], + ["name=email", "name"], + ["css=#f_email", "css:finder"], + ["xpath=//input[@id='f_email']", "xpath:attributes"], + ["xpath=//dd[4]/input", "xpath:position"] + ], + "value": "${email}" + }, { + "id": "6a20db9b-482e-41a2-a072-524899846222", + "comment": "", + "command": "click", + "target": "name=save", + "targets": [ + ["name=save", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "0f6a3c2e-319d-4ecf-8bcc-03395f54f722", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "11ecf6b0-37a0-400f-a996-3a8e60980821", + "comment": "", + "command": "storeText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "numero" + }, { + "id": "81055102-1cb8-4d95-8af8-45c34bac2035", + "comment": "", + "command": "echo", + "target": "numéro=${numero}", + "targets": [], + "value": "" + }, { + "id": "0d56594c-f3c1-4404-8fd5-9d496b34c675", + "comment": "", + "command": "executeScript", + "target": "function ok(num) { return Number.isInteger(Number(num)) && Number(num) > 0; } ; return ok(${numero})", + "targets": [], + "value": "estEntier" + }, { + "id": "741d6af9-9226-4499-83d9-b54fcd32004c", + "comment": "", + "command": "assert", + "target": "estEntier", + "targets": [], + "value": "true" + }, { + "id": "40672b48-4c72-42ce-9291-fe17c29129a1", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "10d32b03-561c-4edd-9a75-0883992fedb2", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "e80cbdb0-190c-4a11-be46-c9de3e3e01ac", + "comment": "remettre à l'état initial", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "370c76d4-9974-4b9f-9a5d-d111280d5514", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/\")]", + "targets": [ + ["css=li:nth-child(6) b", "css:finder"], + ["xpath=//li[6]/h3/a/b", "xpath:position"], + ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "5ddc8c7b-f14b-46e4-b081-fd6cdea6a8b4", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "1b336eba-dd15-40e9-bb95-634c3753c0b4", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "37cd309d-9037-4f35-a2de-47116bfef2f4", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"Numéro de membre\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "70ccabb4-95ec-496d-911e-c82fe9b76435", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "cb6305f0-bf53-4dff-883b-64589f9a30db", + "comment": "", + "command": "check", + "target": "id=f_required_1", + "targets": [], + "value": "" + }, { + "id": "2531041f-8850-4986-b893-91f6f920f3a7", + "comment": "", + "command": "click", + "target": "name=save", + "targets": [ + ["name=save", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "d79136e4-8c7f-4ff4-9033-bd41350910cd", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -43025,7 +43397,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f"] + "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "b8768454-ae31-4cec-a902-45218cd2cd06"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []