diff --git a/membres.side b/membres.side index 458f848..9a9ddfc 100644 --- a/membres.side +++ b/membres.side @@ -35127,6 +35127,621 @@ "targets": [], "value": "" }] + }, { + "id": "950a6823-ce21-4ddc-a5f8-75902d8d59a0", + "name": "11-14 ajout nombre", + "commands": [{ + "id": "9f8dcc01-b6b1-4c05-bd36-6ce7dbe13b64", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "8f9c8ff7-1427-4f85-ba81-8bd7f7726c34", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "4eb2af40-120e-4350-a85a-169cd8bdffd5", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "cda1f16b-10c3-4594-a64d-96d1ad74505b", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "22a413cf-6f8b-4d0c-b88b-5c1c5e86021d", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "a99cd245-c4a6-49d0-a5d4-e13fbbd7ac3f", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "28e3a933-bf2e-46ca-8cb5-6bff127eae4f", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "f3e236ad-7cde-43cf-a1f6-88dd4d047b21", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "9f495834-3118-420a-9b5f-613a2e117619", + "comment": "ajouter champ perso nombre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "cc25be87-dd39-488b-9daf-c3a1c9a6f626", + "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": "4b4247e6-e5f8-4b92-a010-0db10a6605c8", + "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": "11a0033a-cb9f-4d63-baf9-f9389e50dff3", + "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": "87b05ba6-9184-4320-86a1-055fb18dca23", + "comment": "", + "command": "click", + "target": "xpath=//a[@href=\"new.php\"]", + "targets": [], + "value": "" + }, { + "id": "88027eed-d536-4cec-8dd1-c8d6f82d69f9", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"add\"]", + "targets": [ + ["name=save", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "4f1bdf0d-c09c-46a8-9448-e0212a676649", + "comment": "champ nombre", + "command": "click", + "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"number\"]", + "targets": [], + "value": "" + }, { + "id": "44122256-6a3c-46bf-9f7c-6cfc47f5a52d", + "comment": "", + "command": "store", + "target": "Âge du capitaine", + "targets": [], + "value": "libelle_champ" + }, { + "id": "cfd920cd-5807-450e-8e99-5526aeafa2c2", + "comment": "", + "command": "type", + "target": "xpath=//input[@id=\"f_label\"]", + "targets": [], + "value": "${libelle_champ}" + }, { + "id": "cd0b2efc-19ff-4005-9ad6-6dfc15fada4d", + "comment": "", + "command": "executeScript", + "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", + "targets": [], + "value": "nom_champ" + }, { + "id": "f641952f-8eb1-4183-97e0-ed4cd9946203", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "65b72616-5ea7-4917-b3c4-a2b2b1379683", + "comment": "", + "command": "type", + "target": "id=f_help", + "targets": [], + "value": "Dis-nous ton âge" + }, { + "id": "f4009af5-77e2-4e1d-b09e-15f6563f01b4", + "comment": "Voir et modifier ce champ", + "command": "check", + "target": "xpath=//input[@id=\"f_user_access_level_2\"]", + "targets": [], + "value": "" + }, { + "id": "8ed35219-73ee-4b90-832b-ea02028369ed", + "comment": "", + "command": "click", + "target": "xpath=//button[@name=\"save\"]", + "targets": [], + "value": "" + }, { + "id": "4b2361eb-e1b6-4177-8bb7-4c2bf7ede35a", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//p[contains(@class,\"confirm\")]", + "targets": [], + "value": "" + }, { + "id": "02a890dc-8a4d-42bc-89ae-540a41aca28f", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "8f2a13b5-d7ee-485a-811e-ef1e9b93d2f6", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "92b62468-7913-46c4-8877-b6e104dfaac8", + "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": "c30fb792-cdfe-4fb6-880d-ee602ab54292", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "7ed42d05-ea92-4dbc-a254-2c6b3f5f661c", + "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": "6f6a418a-653d-4526-bb8a-cccc7de275b3", + "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": "59ee5f55-d268-4e9d-81a1-fec17800146e", + "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": "24ddea5c-75b9-4002-a34c-2832a944f75d", + "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": "86a757de-be22-4b44-b0d0-3850a8a7db30", + "comment": "", + "command": "store", + "target": "77", + "targets": [], + "value": "valeur_champ" + }, { + "id": "69cbcce8-2eef-4fee-a4be-6841cb5a32f7", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "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": "${valeur_champ}" + }, { + "id": "4359f002-ba4a-4d5a-8f0c-06f691e1e8a5", + "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": "423b7433-8068-40ce-8527-a96c48ef21eb", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "0bf1be5c-d947-4aa5-985a-f6d85190cf35", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "59c93f94-223c-4f7b-b808-29301036aea9", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "1e8ec3e4-a29e-4b21-bff9-8409a8f3a370", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "5139e793-287d-45f9-a23e-eb7f65ae3a63", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "9f48774b-6873-47cf-91b8-48dba3a35248", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "25a1c0fd-1d21-452b-bfaf-d5cdaf75bb60", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "dc993ad3-d850-4da8-9a33-d750ac431637", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "dc40b9f3-bebd-4985-92cf-71b4b79caf38", + "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": "c52a9320-284f-4c57-b4bd-20e2d88ca301", + "comment": "", + "command": "type", + "target": "id=f_password_confirmed", + "targets": [ + ["id=f_password_confirmed", "id"], + ["name=password_confirmed", "name"], + ["css=#f_password_confirmed", "css:finder"], + ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], + ["xpath=//dd[5]/input", "xpath:position"] + ], + "value": "${mdp}" + }, { + "id": "0e9c6d3d-42ba-48b3-965e-2ff9dceb7aa7", + "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": "1e241a3f-1294-46ee-ac7f-170c2ec467bf", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "94f048c9-f46b-4080-9449-aafb93c3c802", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "67da07a9-d11d-4b72-8cd2-93e0f5a2eb99", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${email}" + }, { + "id": "f368efa7-7609-4c9e-8bf1-9ab34d9d1e61", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "831b6b1d-cd3d-4930-9ef4-d4a2c34f7798", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "9a4edda0-f560-4ff6-8bb5-5315cb37d028", + "comment": "vérifier présence url et la modifier", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "887d6e6a-bfd1-438b-aa89-ac05cc7cb24f", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "98b8790d-1d98-49a7-8444-d2166c8d98c8", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "85194cdf-a3eb-48f2-b5a8-69c6a4c00a3e", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "8b16a0bb-cd26-44c6-b84f-4c277926dd8c", + "comment": "", + "command": "store", + "target": "45", + "targets": [], + "value": "valeur_champ" + }, { + "id": "8b24f978-87ec-4db3-8e85-9f95fd5dce85", + "comment": "", + "command": "type", + "target": "id=${id_champ}", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "65e12989-f966-4f12-8d50-74e2b7735f67", + "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": "cdb97ab4-d205-4b90-be48-d2028c2cc50f", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,\"${libelle_champ}\")]/following-sibling::dd", + "targets": [], + "value": "${valeur_champ}" + }, { + "id": "3296fb10-2e42-4e91-b38b-fc223c9930b8", + "comment": "Déconnexion membre", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "85a5ede3-741f-45dc-bf35-d1be2f8836b0", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "977863e9-9059-489d-bc2e-1008897fea25", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "8a4cda5f-1c54-4010-9aa3-bfb695c6b2eb", + "comment": "Connexion admin", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "fe45cd26-072f-4d3a-ba2e-d52202b77f0f", + "comment": "supprimer le champ ajouté", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "eca23414-2641-43c5-ba66-19d398ed2b8e", + "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": "7264055a-d01f-4e68-bc6b-a72ba052be36", + "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": "3805dfc6-70a3-49dc-a14a-4047d9350d12", + "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": "ae2623b9-2738-48df-8cf7-4168899828cb", + "comment": "", + "command": "storeXpathCount", + "target": "xpath=//tbody/tr", + "targets": [], + "value": "nb_champs" + }, { + "id": "9e5650ca-c5f2-44b0-87b7-f0a7e8d238ef", + "comment": "", + "command": "click", + "target": "xpath=//tbody/tr[${nb_champs}]//td//a[contains(@href, \"delete.php\")]", + "targets": [], + "value": "" + }, { + "id": "9539e56c-8215-4556-824c-97c1d97271a5", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "362c6df0-a598-40ef-abf3-61c76dd2e529", + "comment": "", + "command": "click", + "target": "css=label", + "targets": [ + ["css=label", "css:finder"], + ["xpath=//label", "xpath:position"], + ["xpath=//label[contains(.,'Cocher cette case pour supprimer le champ, cela effacera de manière permanente cette donnée de toutes les fiches membres.')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "df5e4450-7581-4b60-bedc-5a49cf73c903", + "comment": "", + "command": "click", + "target": "name=delete", + "targets": [], + "value": "" + }, { + "id": "67695f33-80e6-4096-aff5-9e3678f3f61b", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "687a457a-20c8-48d0-86d8-f4c7c9db7465", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -35204,7 +35819,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "340b4d62-de7f-4c00-a559-e4f6a2246f08", "7a858aed-70b7-4c7a-bc4f-799216bb455b", "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "ba5e6368-646b-447e-9e5e-3c3cdded211a", "482dfae4-a690-4334-a7f0-6207ab17e15b", "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "4ca407f4-01a9-466a-89ee-c7d772a0281e", "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e", "ee2ad930-7a67-41d0-9723-fec221c087e3", "a0a6c815-f9c9-49ae-ab27-4163b3938ca6", "34ba9dd6-5286-4f13-8258-f3250cc09186"] + "tests": ["c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "340b4d62-de7f-4c00-a559-e4f6a2246f08", "7a858aed-70b7-4c7a-bc4f-799216bb455b", "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "ba5e6368-646b-447e-9e5e-3c3cdded211a", "482dfae4-a690-4334-a7f0-6207ab17e15b", "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "4ca407f4-01a9-466a-89ee-c7d772a0281e", "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e", "ee2ad930-7a67-41d0-9723-fec221c087e3", "a0a6c815-f9c9-49ae-ab27-4163b3938ca6", "34ba9dd6-5286-4f13-8258-f3250cc09186", "950a6823-ce21-4ddc-a5f8-75902d8d59a0"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []