ajout 14-11 interdire connexion

This commit is contained in:
Jean-Christophe Engel 2024-10-07 15:47:39 +02:00
parent e4b6716b8a
commit 68c3cb03f6

View File

@ -50557,6 +50557,406 @@
"targets": [], "targets": [],
"value": "${nb_visibles_attendu}" "value": "${nb_visibles_attendu}"
}] }]
}, {
"id": "d92eebc8-c916-44e0-8f75-0472e7bb52dd",
"name": "14-11 interdire connexion",
"commands": [{
"id": "606f2d0c-e2dc-4bf3-89b0-247301351d89",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/login.php",
"targets": [],
"value": ""
}, {
"id": "b46bd7e4-2798-4f76-9996-42f44adfe3f3",
"comment": "",
"command": "setWindowSize",
"target": "1280x1020",
"targets": [],
"value": ""
}, {
"id": "e123b69f-6144-4308-b4f6-15b95312a299",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "79294f93-f3cf-4ce8-a959-a02cbaefb493",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "e537311b-e458-4802-b0fc-9b1aeac9ef2f",
"comment": "",
"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": "04753624-0ce8-42cc-b0da-eb1f39d4a1d4",
"comment": "",
"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": "07ad79b1-62ca-437c-a9ce-9218e1df4eaa",
"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": "5d26e6d7-d207-4468-824d-30200c66e78e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0ba0587e-2f61-428a-a988-1b889b3942a6",
"comment": "",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "nom_categorie"
}, {
"id": "e2249d5e-8bfa-4258-be09-bcd1d208a2c2",
"comment": "Créer un membre dans la catégorie",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b57c1d70-2029-460c-933b-132890326572",
"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": "55e00e42-bb78-4691-8d0c-e6005308023d",
"comment": "",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@\" + chaine(5) + \".fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "5b442582-9c85-4718-977b-85a23a55ff65",
"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": "ffe91b38-41f8-4958-b839-6e015a0350ba",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "4de6bc3b-c127-44d0-86ba-dcc722c09cae",
"comment": "",
"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": "7b22dcdf-5a72-418c-a202-a0f9d1700f08",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "a8879887-a765-4ad9-b4e1-c67ffc4feb03",
"comment": "",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]",
"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": "b7db4d7c-6b3e-4b53-87fd-69e2dbe9bacd",
"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": "d0195658-51f6-4f92-bc22-31e4f41d1b75",
"comment": "",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "ca44f036-34b3-42db-8c3f-51033aa5c936",
"comment": "",
"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": "de7c2700-8cfa-4bd8-847c-ec548f6a1f78",
"comment": "",
"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": "5a1dcb98-b94f-419d-b17a-1f4f129098ad",
"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": "7d76ec37-45dc-4d03-a41f-99b721902783",
"comment": "attribuer un mot de passe au membre",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "7ff95a31-1ac9-4f87-8111-d885dcb02ac7",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, \"edit_security.php\")]",
"targets": [],
"value": ""
}, {
"id": "0e268e30-b810-4c97-9dd4-cbe96a6011be",
"comment": "",
"command": "store",
"target": "soin oeuf mélodieux intellectuel",
"targets": [],
"value": "mdp"
}, {
"id": "f315d153-72d2-4e91-ac3b-cfd53feb17ad",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "9c7119e0-9b34-408e-a5c5-f6c8393eb11d",
"comment": "",
"command": "type",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${mdp}"
}, {
"id": "8c4ba525-6655-4c39-9013-aacb880e709f",
"comment": "",
"command": "type",
"target": "id=f_password_confirmed",
"targets": [
["id=f_password", "id"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${mdp}"
}, {
"id": "c27665b4-ad37-4ff3-aa6a-a004f2152122",
"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": "f7c16c45-b037-4fc6-8c2f-372db64d1305",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [
["relative=parent"]
],
"value": ""
}, {
"id": "85b8852f-8bb0-4e8c-b3ba-08ccbda2c31a",
"comment": "modifier la catégorie",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "dff81ef3-b836-41c5-8bd7-3f966ee81e3c",
"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": "7de112a4-3444-41dd-ac89-e30e8d41e6bc",
"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": "7bd314a6-7b25-43f3-8593-54e8cc3ede38",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, \"/admin/config/categories\")]",
"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": "f2bf7f51-8860-475f-bd5a-c9e58f3107f6",
"comment": "",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]",
"targets": [],
"value": ""
}, {
"id": "64eff831-3b84-4d87-a8a1-8a6e2dda743c",
"comment": "",
"command": "check",
"target": "id=f_perm_connect_0",
"targets": [],
"value": ""
}, {
"id": "405ce0be-7a4a-4a1c-ba3f-a68c46bf2a9f",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}, {
"id": "2c98ac2b-7624-415f-b1bc-41daa3eb7cc1",
"comment": "Vérifier qu'un membre de cette catégorie ne peut se connecter",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "1f95afff-9215-4812-9387-dac506cae297",
"comment": "Déconnexion admin",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
"id": "34de8508-8a84-4353-bf56-67105790eddf",
"comment": "",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "${courriel}"
}, {
"id": "b21f3583-2d62-420e-a5af-65eaf460d9c5",
"comment": "",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "${mdp}"
}, {
"id": "14ebedce-ca61-4ce7-8ee1-a99df5cd2250",
"comment": "",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "179e0607-f483-4bc9-8743-7c314acc3e97",
"comment": "",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}], }],
"suites": [{ "suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
@ -50655,8 +51055,8 @@
"persistSession": false, "persistSession": false,
"parallel": false, "parallel": false,
"timeout": 300, "timeout": 300,
"tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7"] "tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd"]
}], }],
"urls": ["http://test.paheko.localhost/"], "urls": ["http://test.paheko.localhost/"],
"plugins": [] "plugins": []
} }