2024-04-22 11:19:25 +02:00
{
"id": "33c8862c-14bd-405e-882f-5b3a904a2e90",
"version": "2.0",
"name": "paheko",
2024-05-18 11:17:47 +02:00
"url": "http://test.paheko.localhost/",
2024-04-22 11:19:25 +02:00
"tests": [{
"id": "0849fbc2-a4f9-48a5-8698-afec02eb558f",
2024-05-15 10:55:33 +02:00
"name": "2-01 connexion correct",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "7bbc53e7-fe56-460a-a7a6-e9139c354956",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/login.php",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"name": "1-01 installation",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "61bab7ef-9d04-40de-8b87-98999729b832",
"comment": "Page installation",
"command": "open",
2024-05-20 09:06:06 +02:00
"target": "/admin/install.php?__reset_test",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "71275c7f-557e-4df3-8cea-df31739292c6",
"comment": "",
"command": "setWindowSize",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "fe3f8eb9-deb5-4c83-8a0f-4959dc795db9",
"comment": "Liste pays",
"command": "click",
"target": "id=f_country",
"targets": [
["id=f_country", "id"],
["name=country", "name"],
["css=#f_country", "css:finder"],
["xpath=//select[@id='f_country']", "xpath:attributes"],
["xpath=//select", "xpath:position"]
],
"value": ""
}, {
"id": "1616fb13-8f21-42df-85a1-02c9438654cd",
"comment": "France",
"command": "click",
"target": "css=option:nth-child(2)",
"targets": [
["css=option:nth-child(2)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_country']/option[2]", "xpath:idRelative"],
["xpath=//option[2]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5e44cad4-268c-4953-a40d-6e72a99c28ec",
"comment": "",
"command": "click",
"target": "id=f_name",
"targets": [
["id=f_name", "id"],
["name=name", "name"],
["css=#f_name", "css:finder"],
["xpath=//input[@id='f_name']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "3e9d9317-5b89-4af3-bc6b-d1408beaf235",
"comment": "",
"command": "store",
"target": "Cassiopée",
"targets": [],
"value": "nom_asso"
}, {
"id": "a6ebba35-2e98-46d1-8733-f46c696aab48",
"comment": "Nom de l'asso",
"command": "type",
"target": "id=f_name",
"targets": [
["id=f_name", "id"],
["name=name", "name"],
["css=#f_name", "css:finder"],
["xpath=//input[@id='f_name']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "${nom_asso}"
}, {
"id": "7f6615a1-b7a9-4a61-be99-2118c6efe3bf",
"comment": "",
"command": "click",
"target": "id=f_user_name",
"targets": [
["id=f_user_name", "id"],
["name=user_name", "name"],
["css=#f_user_name", "css:finder"],
["xpath=//input[@id='f_user_name']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": ""
}, {
"id": "c9801d83-4da1-4895-a3a6-9bb2de318da8",
"comment": "",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom_admin"
}, {
"id": "61706b69-8a95-4f55-b53e-79eb8317f5e8",
"comment": "Nom premier membre",
"command": "type",
"target": "id=f_user_name",
"targets": [
["id=f_user_name", "id"],
["name=user_name", "name"],
["css=#f_user_name", "css:finder"],
["xpath=//input[@id='f_user_name']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": "${nom_admin}"
}, {
"id": "0bc0fe40-75cc-4ac3-be1f-3f97b9325194",
"comment": "",
"command": "store",
"target": "jckix@free.fr",
"targets": [],
"value": "courriel_admin"
}, {
"id": "697ca21a-79b7-4138-9e21-e6f00a28321d",
"comment": "Adresse courriel",
"command": "type",
"target": "id=f_user_email",
"targets": [
["id=f_user_email", "id"],
["name=user_email", "name"],
["css=#f_user_email", "css:finder"],
["xpath=//input[@id='f_user_email']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "${courriel_admin}"
}, {
"id": "0bb8f2ed-f15d-45f8-bfa7-545612b85893",
"comment": "",
"command": "click",
"target": "css=input:nth-child(2)",
"targets": [
["css=input:nth-child(2)", "css:finder"],
["xpath=//input[@value='Copier']", "xpath:attributes"],
["xpath=//input[2]", "xpath:position"]
],
"value": ""
}, {
"id": "aa08301f-53d7-4fa4-92e2-5dd1cb6224ae",
"comment": "",
"command": "store",
"target": "interpeller noircir colis allumer",
"targets": [],
"value": "mdp_admin"
}, {
"id": "9c99910e-2797-4608-b056-52018171ed7f",
"comment": "",
"command": "click",
"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=//dl[2]/dd[3]/input", "xpath:position"]
],
"value": ""
}, {
"id": "43f025a8-6dd0-4f60-9484-0069c6e19c3b",
"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=//dl[2]/dd[3]/input", "xpath:position"]
],
"value": "${mdp_admin}"
}, {
"id": "86d5dff6-1cd7-4ac2-a8f5-885f9ed6c6d5",
"comment": "",
"command": "click",
"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": ""
}, {
"id": "69e59788-0f98-46b1-8362-39f979b44073",
"comment": "Mot de passe (bis)",
"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_admin}"
}, {
"id": "f9af3a0d-0d68-44a9-ad9d-a603cf45f9cb",
"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(.,'Commencer à gérer mon association')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8bdb6048-f614-4e87-ad22-fb451fa8c225",
"comment": "Menu Configuration",
"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": "18965af9-b3ad-4b6b-85a1-c924b283fb1d",
"comment": "Nom de l'asso",
"command": "assertValue",
"target": "id=f_org_name",
"targets": [],
"value": "${nom_asso}"
}, {
"id": "6d51ef7f-5a72-490c-a636-aa8c4126a719",
"comment": "Adresse e-mail de contact",
"command": "assertValue",
"target": "id=f_org_email",
"targets": [],
"value": "${courriel_admin}"
}, {
"id": "0d10eb36-b5d6-4004-8272-e03fe4e6647e",
"comment": "Pays",
"command": "assertSelectedLabel",
"target": "id=f_country",
"targets": [],
"value": "France"
}, {
"id": "65740c53-7195-40a2-8829-0549149244af",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [
["css=li:nth-child(2) b", "css:finder"],
["xpath=//li[2]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Membres')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b6df3153-03ec-4b6e-92fb-80077dcd6d40",
"comment": "Nom premier membre",
"command": "assertText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/th//span",
"targets": [],
"value": "${nom_admin}"
}, {
"id": "44fc6c36-f8b6-457c-a3ef-01d968672885",
"comment": "Bouton Fiche membre",
"command": "click",
"target": "xpath=//span[contains(.,'Fiche membre')]",
"targets": [
["css=.actions > .icn-btn:nth-child(1) > span", "css:finder"],
["xpath=//tbody/tr/td[4]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Fiche membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5f6a5b2b-501d-4e56-b8df-cb35005b3255",
"comment": "Numéro de membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "1"
}, {
"id": "33022e6f-811b-4192-9180-0a99f3243855",
"comment": "Nom et prénom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom_admin}"
}, {
"id": "64e9103a-370c-4737-9882-685d7feaf552",
"comment": "Adresse E-Mail",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel_admin}"
}]
}, {
"id": "d6791401-e683-4d44-9513-24c52f1c6517",
2024-05-15 10:55:33 +02:00
"name": "1-02 vérif 1er membre",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "992c77f4-75bc-4088-bcd9-331061c0b221",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "ab795561-bb95-49b5-8f1d-349fc94639fe",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "a447d087-f8b2-4b38-a421-80ac394cb2dc",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "45323dd1-34c7-4aaa-9c11-70e0e34cb7b5",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "531ed78b-af27-4299-86ee-282277904118",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "d88c7f2f-2542-4372-a75e-fb57c2b82f95",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "13ebff0e-a939-4ee0-b2f4-ecde90b63440",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "01fba9c8-9062-4044-bfbc-6b8bcb101e1b",
"comment": "Menu membres",
2024-05-17 15:39:11 +02:00
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [
["css=li:nth-child(2) span", "css:finder"],
["xpath=//li[2]/h3/a/span", "xpath:position"]
],
2024-04-22 11:19:25 +02:00
"value": ""
}, {
2024-05-17 15:39:11 +02:00
"id": "7c6a4d16-05fe-4bb7-901e-72b5e41d486d",
"comment": "Fiche 1er membre",
"command": "click",
"target": "xpath=//span[contains(.,'Fiche membre')]",
"targets": [
["css=.actions > .icn-btn:nth-child(1) > span", "css:finder"],
["xpath=//tbody/tr/td[4]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Fiche membre')]", "xpath:innerText"]
],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
2024-05-17 15:39:11 +02:00
"id": "26b9a995-9c09-46ab-b733-65bbb238eae3",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
2024-04-22 11:19:25 +02:00
"targets": [],
2024-05-17 15:39:11 +02:00
"value": "1"
2024-04-22 11:19:25 +02:00
}, {
2024-05-17 15:39:11 +02:00
"id": "3b461e26-0b8d-41ce-93b5-e34892ef7a0c",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
2024-04-22 11:19:25 +02:00
"targets": [],
2024-05-17 15:39:11 +02:00
"value": "Lambert Paul"
2024-04-22 11:19:25 +02:00
}, {
2024-05-17 15:39:11 +02:00
"id": "556f6757-8033-4979-9686-5d5bac639f2c",
"comment": "Vérif e-mail",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
2024-04-22 11:19:25 +02:00
"targets": [],
2024-05-17 15:39:11 +02:00
"value": "jckix@free.fr"
2024-04-22 11:19:25 +02:00
}]
}, {
"id": "73154344-9dc7-43b7-beba-85d3f16cfe93",
2024-05-15 10:55:33 +02:00
"name": "3-zz lister membres (aucun intérêt)",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "c561e0b2-5367-420e-a530-8e24d3cf9297",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"comment": "Filtrer par catégorie",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); for (const l of li) { l.style.display=\"block\"; } return;",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "19a1b7ef-8969-432f-8c4d-43c9b6936237",
2024-05-15 10:55:33 +02:00
"comment": "Toutes même cachées",
2024-04-22 11:19:25 +02:00
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "ad08b4b8-9058-43e6-be28-848d6a695808",
2024-05-15 10:55:33 +02:00
"comment": "Nombre de membres",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"comment": "Itérer sur les membres affichés",
2024-04-22 11:19:25 +02:00
"command": "while",
"target": "${num} <= ${nb_elem}",
"targets": [],
"value": ""
}, {
"id": "1c35bf5e-d7db-4389-936c-cfca34b7a04a",
2024-05-15 10:55:33 +02:00
"comment": "Nom du membre courant",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"name": "2-03 connexion échec mdp",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/login.php",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"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": "87aa0ef5-bb8c-496d-a196-0f92278e98b1",
2024-05-15 10:55:33 +02:00
"name": "2-02 connexion échec identifiant",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "5a8e495b-987a-4099-b397-70c9650e111a",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/login.php",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "db829ee6-696b-4d70-840d-bb79282e5b2d",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": "connecte"
}, {
"id": "5be6f2f3-5435-4462-b7a1-3e2a2b09f50f",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "656ae9a9-cc40-463a-9f4d-2529d4f502d4",
"comment": "Déconnexion",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
"id": "be452c2a-8050-4054-a04e-5486ef12bc6b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e969ce2e-9cb5-47a4-a8fc-476fb67ba4f9",
"comment": "",
"command": "setWindowSize",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "d4e49a22-2897-459f-9169-2d1e6adbe0df",
"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": "polo@free.fr"
}, {
"id": "ab9f41ed-6165-4b4c-b24a-2f4a505f86cf",
"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": "8dc91265-cc24-4929-8bf8-9811f04095eb",
"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": "63ae88e9-f6a2-4bcf-8d13-5a4c5d8a1897",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "efad291c-7700-4c1d-a0c7-393264364aa1",
2024-05-15 10:55:33 +02:00
"name": "3-01 créer membre France",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "b14ce7cc-11db-4a3b-bfbf-12ec4765eeeb",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "74f82a04-3947-4f4a-9990-924324a08f6e",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "c52c2703-b6f7-4988-9903-9e7f5eae7ccd",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "3f9393ee-6b4f-4b3d-a846-770cf3a2043f",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "d4cca7c7-3bab-4099-8f0c-5a0447e6ace8",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "fb388499-5851-4b7e-b22d-8e7256159d62",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "e5e6b042-3da1-462b-a315-2ec15973bc67",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "89c0f0f6-2d9c-459f-846e-a78946f5905a",
"comment": "",
"command": "setWindowSize",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "4d1a1742-d8e9-4481-a97a-eeea7d5c70f7",
2024-05-15 10:55:33 +02:00
"comment": "Catégorie du membre",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "ad938cad-27c2-4945-a24b-e3b40ec90c74",
2024-05-15 10:55:33 +02:00
"comment": "Nom & prénom",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "nom"
}, {
"id": "4348c18a-7fb2-4ab6-b429-e3beb3c052c0",
2024-05-15 10:55:33 +02:00
"comment": "Adresse E-Mail",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"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\"",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "courriel"
}, {
"id": "ef6a56e3-8ec9-47dd-a1b5-2025df5012a5",
2024-05-15 10:55:33 +02:00
"comment": "Pays",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0abd1709-be5d-4042-81f0-93700b43c1f8",
2024-05-15 10:55:33 +02:00
"comment": "Adresse postale",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "5d8bb54b-1be1-44ab-902e-124fe9819cc0",
2024-05-15 10:55:33 +02:00
"comment": "Code postal",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "95b41cf8-950a-4157-8bbd-5e8959fb4230",
2024-05-15 10:55:33 +02:00
"comment": "Ville",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
"id": "44c5177c-dce7-4702-a31a-08b791368b0a",
2024-05-15 10:55:33 +02:00
"comment": "Numéro de téléphone",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "tel"
}, {
"id": "8051aed2-39c2-48a7-8d00-101f9d26a508",
2024-05-15 10:55:33 +02:00
"comment": "Inscription à la lettre d'information",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "c0d7b692-3a8f-408d-8b0e-4ec4385cfae3",
2024-05-15 10:55:33 +02:00
"comment": "Date d'inscription",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "beb2f78b-8a2a-4e7d-bb48-772c5ade5b49",
"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": "8dc7d09d-1019-4987-91c3-1fd882700650",
2024-05-15 10:55:33 +02:00
"comment": "Mémoriser numéro de membre",
2024-04-22 11:19:25 +02:00
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "786b3eab-e51b-46ca-a9f7-b5f0a46ed43b",
2024-05-15 10:55:33 +02:00
"comment": "Catégorie de membre",
2024-04-22 11:19:25 +02:00
"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": "91cb43db-cac3-4d72-b364-6e912697b71a",
"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": "372ef039-8e00-46d1-b6d6-e14a9e1a0a2a",
"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": "9ca7bf72-7213-4edf-9d20-13589ec9d8d3",
"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": "c84e6073-7d7e-4116-b825-83f0a245141b",
"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": "84552c91-deed-4d0f-aae1-8933597eec1d",
"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": "389a2d01-5eac-4590-9358-87e741da1b99",
"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": "e8255b4f-3597-4d55-b32e-277b081c8a8b",
"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": "41e693e8-4f2e-44ce-ab5f-6396217d89d5",
"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": "de8dae66-cbd2-46db-af11-798dfe544d96",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "5d054771-d040-43f6-b91c-33969b7c2947",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "99c18ac1-66f3-4133-944b-519254ae277c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8ee205d2-b206-4407-b6cb-bc07eb3ad40c",
"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}"
}, {
2024-05-15 10:55:33 +02:00
"id": "46e2408d-9a9f-4c62-80ce-3cfa08c33e62",
2024-04-22 11:19:25 +02:00
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
2024-05-15 10:55:33 +02:00
"targets": [],
2024-04-22 11:19:25 +02:00
"value": ""
}, {
"id": "328116f9-cef6-4508-a26c-62789787c2d1",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "af297835-cb69-4675-a63b-3df85c8b2ab5",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "85367a29-1f35-493b-8172-161dd625c5c1",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "c414ed84-69e1-4069-8d89-76cc7d94d985",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "fa560762-3b6c-4f64-a0ce-4f92805a5503",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "f26e25ab-c200-4a13-b350-000781f1b781",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "77fa9b84-b444-4ab3-a220-b9b98866286c",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "d1bacf54-ff6c-45cb-9f40-2a91f90360e7",
2024-05-15 10:55:33 +02:00
"comment": "",
"command": "storeText",
2024-04-22 11:19:25 +02:00
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
2024-05-15 10:55:33 +02:00
"value": "telephone"
}, {
"id": "4d4515b8-c135-4cbd-a1bc-12562e1f9f35",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "e18777ad-f909-4898-92dc-e48733dbf8a4",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
2024-04-22 11:19:25 +02:00
}, {
"id": "26026b3b-602f-4cda-b57d-89aa834d5c9a",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "c1e4769a-c485-45ee-aa79-0c2a317b36a6",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "c743f7d1-bfd0-4b91-95c9-c61a1807e839",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f5d093a4-7d04-4751-a695-f2cd4b270ca1",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "782f3943-b137-49bc-8178-ea9b8923282b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "37a555eb-1147-4375-ad85-7fd52d37792e",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "efb8a434-ee82-48e0-a770-d4a668e28eec",
2024-05-15 10:55:33 +02:00
"name": "3-04 créer membre Inscrit lettre",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "47d22a7d-8aae-45be-a9bd-824475be6756",
"comment": "",
"command": "store",
2024-05-15 10:55:33 +02:00
"target": "Membres actifs",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "cat"
}, {
"id": "691ecfcc-24d0-434d-bfea-3ea059e05680",
"comment": "",
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "nom"
}, {
"id": "ad21c34b-9929-471a-bea5-af7deff62c26",
"comment": "",
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"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\"",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "courriel"
}, {
"id": "2f9d6666-9017-4df2-8483-d6757a42a163",
"comment": "",
"command": "store",
2024-05-15 10:55:33 +02:00
"target": "France",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
"id": "98d2dc19-3680-41c4-8fdb-a81167927ef2",
"comment": "",
"command": "executeScript",
2024-05-15 10:55:33 +02:00
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
2024-04-22 11:19:25 +02:00
"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",
2024-05-15 10:55:33 +02:00
"comment": "",
"command": "storeText",
2024-04-22 11:19:25 +02:00
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
2024-05-15 10:55:33 +02:00
"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}"
2024-04-22 11:19:25 +02:00
}, {
"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}"
}]
2024-05-15 11:09:26 +02:00
}, {
"id": "a10913d7-dd6d-4c13-9bda-6293705343f8",
"name": "3-02 créer membre Cuba",
"commands": [{
"id": "cd1b3adf-7dcd-4e70-9cfb-45c8911d39a2",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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": "1080x1020",
"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) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "d5ad8f2c-c892-4b1d-a44c-4e15fca13ac8",
"comment": "Pays",
"command": "store",
"target": "Cuba",
"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": "34c8202c-c40a-46ec-a7e3-d4441c0f63b5",
"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": "4a33b555-5920-4683-9f15-6347e954fc35",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"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": "21f60530-c4c9-4e23-816d-eec1df4fa006",
"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": "5783a98f-6ba4-44d6-8d80-ca885dcec67a",
"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": "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",
"commands": [{
"id": "a8bc6b39-fd0c-4bd0-ac5c-5c6de1e7973b",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"targets": [],
"value": ""
}, {
"id": "9a2b2d5f-8aa4-46f6-98af-11f060699459",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "5b205564-f777-4ad1-abfd-a8492d906f45",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "a66e1002-12f4-4f65-a21a-1af67f0ce8f0",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "eb7cbe6a-128b-463f-a2e0-18d36fe1c0e2",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "21765375-4b9a-49ab-81f1-5dfa33434ceb",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "5ba9ea26-6ced-4595-831d-869e11ab2cf6",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "2016dc21-0e94-4464-a2aa-aa6fba171702",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "a3d96f44-f1b6-4cb0-b575-9a577ad3e0fc",
"comment": "Catégorie du membre",
"command": "store",
"target": "Anciens membres",
"targets": [],
"value": "cat"
}, {
"id": "70a188d0-500f-4e7f-b4cc-b729d8b14b49",
"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": "a19c958f-5619-4721-b532-97af4b24ab96",
"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": "014f1bc2-059b-4731-b9b8-959b3a046e7b",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "3d52af5d-6637-4424-8179-e7b1a10bf24b",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "93a82799-df8c-43db-8d27-a3b04662fc8c",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "7ce7e1eb-4892-4296-bc86-e71031b8b2a4",
"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": "1056a2ee-4e5a-4bf4-a1c0-2155b00af5e4",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "9e76f500-d05e-4f67-93b6-a9064c7d1ff8",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "9e64999d-9bee-4b7d-aa2d-4da11d50817f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f0cef9ba-c0f3-46f1-8bff-0fa9674d0b40",
"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": "2fc843d2-be98-4426-9433-3f3458f97e2a",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "c4e38f50-5403-4d2c-9b3e-ab40ef48f1f5",
"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": "2c0e46de-b4d3-4bc0-91d2-673d0c5a623e",
"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": "fd75ac9e-66a0-4413-b94e-0242112d8f57",
"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": "a4aa9ecd-b849-4009-b6ee-c04007b17ad4",
"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": "c8a2357e-a3b3-47d9-98dd-a2ab3034dbea",
"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": "ba793090-3027-4217-875b-f3209ece7a9b",
"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": "e718fcad-6dc4-42d4-a20d-34603e88fd5a",
"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": "d5e3c0ba-3f4e-4b21-abc4-2268d2acc6cc",
"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": "1ac5dc35-ca1c-4426-8569-ad17e4f0a7e3",
"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": "0120e17a-437a-44b3-ba96-bef536372503",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "ca16f01a-365e-4c10-8036-257b209fe1ba",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "20e796aa-55fc-40e1-91e5-d0843786b263",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0cc12d6f-b5c9-4c6f-ae13-bfa420a0f54e",
"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": "f45dec33-a4c2-4cdc-83fc-dcf48e22fd87",
"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": "ec1dc916-aedb-4b23-8a61-fcbbe6d7fa65",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "0c720acd-08ac-4b80-9569-fcb1ff4f9687",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "897fcf68-a122-487c-a4bb-beea5bcb0a42",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "28a6cc2b-5d0b-4032-affd-38fe234e4b55",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "57d9e90b-4e62-44cb-88b6-240cc937cbb7",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "732b550b-713a-4d71-ac8e-b39cd8b5f7e3",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "0f769f80-11a5-4931-97f6-ee48ede02ac2",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "bed84971-ddff-4b27-af87-5c710f8df251",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "8d8f01b0-e669-47c4-8e45-2ee0e7d4910e",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "c45e4383-5d3e-4173-9a3e-1ce04fd8f7fe",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "44961419-af5c-4064-96fa-e50f350a7429",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "4804b34c-68b0-41aa-898b-98ae271b8ca8",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "2668188e-680f-4276-83b8-2a6294c4b310",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4a6e1e0d-d5d5-4c4a-b56f-d9f0418b9e84",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "76f9bf91-fc1c-460c-8db7-a7ac0dc68858",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d760d487-3e61-4030-96f7-4c889d1e6df3",
"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",
"commands": [{
"id": "32553fb9-6558-466f-90c0-31471c43187e",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"targets": [],
"value": ""
}, {
"id": "4a190edd-637a-4f52-94cc-25ae3f84b8b9",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "54e94108-5ead-496d-9607-c44adb4f272a",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "409faadb-00e7-4a63-bf4c-a215d21c66ed",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "874a6349-1535-4a98-9db2-bd7b31649af4",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "fc48899a-134c-4874-b53c-2e2dcce9d339",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "f9616679-abfb-4ea1-aa19-f91fb7d7aea9",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "481d5dd0-ef2a-4329-85a4-b76412b01a98",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "70c0c835-6920-4bdf-9eec-6a1dd1e90a6c",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "07b86442-7ea1-457a-b517-0dd4710f5743",
"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": "4756e0f7-7435-4269-b2d9-4d0578a248bc",
"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": "4d196958-b7f4-4f7e-bfd0-846e304767f1",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "5896a2ab-c2f0-4a1f-b6c8-2bfa024e835f",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "a7b6db66-a516-4744-b8ed-e6bca89fdf62",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "49db377e-0fad-4b10-8a6e-8cf4f087f98a",
"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": "e739c2a5-d60f-4af7-b6e7-a4c24189eb49",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "c478a9ed-2317-4272-bb80-c6ebcdc6dffc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "1f654505-cd0e-45cb-8e9e-74df1afb61cb",
"comment": "Date d'inscription",
"command": "store",
"target": "95/31/2020",
"targets": [],
"value": "date"
}, {
"id": "78670de0-b279-4e37-ac87-f837ece72faa",
"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": "03b93d25-c1d3-43e8-b9ed-ac763565dd72",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "0d2a4755-db45-4773-8ed2-d8d57b9c4b75",
"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": "4f00e4dd-d9d9-474f-b3b7-e9afd63b4680",
"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": "1ddfe1a4-2c08-4562-9fd7-270d6ba33861",
"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": "77d2378d-a83c-4076-9907-23d3aea1c0b4",
"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": "73871e9e-1857-49ff-a572-9c893ba1e6b3",
"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": "8521c5bd-a29a-4688-8217-bc2877757382",
"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": "5a306c9d-f979-4c35-b2e9-1153664fb67d",
"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": "65e39991-4968-40fe-ae84-a5c5e0a68e4a",
"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": "c2bfc3e3-6ca8-424b-8dc8-4f1df61d00cf",
"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": "7b61142a-69da-47f3-96cc-6eb7ad6b904f",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "fdbb47ab-7aeb-42e7-a9c1-875003eb071d",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "b2545c4e-8b48-4002-8f32-e49289285669",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5776a36d-28b7-45e5-a923-24f26a42631b",
"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": "26000250-ebb2-422a-b0b2-49503bfdfa39",
"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": "f77af470-496f-43e2-bd30-539109685105",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "c9005e28-4d5c-401e-b299-18c916e4cd27",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "b4b51d1a-509b-4851-9529-3981dd3a8c8a",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "c6cb668d-47fd-411c-bb75-a26128af03ec",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "1d5966a8-b875-48fd-b56f-ee2c9ae23d8a",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "2cf267c8-49b4-4769-9830-485f5a241ecf",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "f78944db-fb67-4791-ab65-5d73faef62e2",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "1d279688-a9d5-4164-8e8a-fb31e354712f",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "1b131ce0-3f25-4962-af3b-ec5d92864bbf",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "c6a16bc9-3393-4282-9a95-f08d155324f6",
"comment": "Vérif téléphone",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "1cf499d7-0026-4074-abb5-850efd958e04",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "6cfdeb15-0085-436d-ac26-b15577d40cf0",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "8af9eb6b-6972-480d-a199-e61664a01f0f",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "7373abb6-1b87-42ad-bc96-cc524230e224",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "d46f966f-dec0-4956-98ea-400660f9a947",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e383f517-b5ae-4cdf-83c6-66ab5d0b1ede",
"comment": "Vérif date inscription",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "date_affichee"
}, {
"id": "8734fa90-92e3-42ae-9a19-9b5f407f8eeb",
"comment": "Calcul date réelle",
"command": "executeScript",
"target": "function joursMois (annee, mois) { return new Date(annee, mois, 0).getDate(); } function getDate(chaine) { var ds = chaine.split('/'); var jour=ds[0]; var an = Math.floor(ds[1]/12); var annee = Number(ds[2]) + an; var mois = ds[1] - 12 * an; var dm = joursMois(annee, mois); while (jour > dm) { jour -= dm; ++mois; if (mois > 12) { mois = 1; ++annee; } dm = joursMois(annee, mois); } if (jour < 10) { jour = '0' + jour; } if (mois < 10) { mois = '0' + mois; } return(jour + '/' + mois + '/' + annee); } return getDate(${date});",
"targets": [],
"value": "date_calculee"
}, {
"id": "54ccfc65-eec8-492e-a6ed-5a085a493022",
"comment": "",
"command": "assert",
"target": "date_calculee",
"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",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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",
"commands": [{
"id": "fadb5d39-1907-417b-9d02-79547c3dc04a",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"targets": [],
"value": ""
}, {
"id": "3cf5a905-7576-4cd1-97a5-a6d532691208",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "a30539dd-0977-463a-b842-cb10e7349fc0",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "2def971c-6153-4e19-9c7e-f99232413cae",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "c8a19e64-7093-4477-ad3b-bf290d6faf72",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "7369fff8-a63c-4b59-aa2b-bc1e13782c5f",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "ccef399a-525f-4b3e-910c-a861db874cfd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0e239b08-1665-403a-bd19-4dc43eff8724",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "e4abd389-b84d-4765-ac92-e6b81f98aa9f",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "9c7bbbc2-230e-4801-977a-4c68176f49a6",
"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": "27686919-327a-4850-9bf5-b846a2872f02",
"comment": "Nom du responsable",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom_responsable"
}, {
"id": "e211cc9b-6075-420b-b6e8-8ec5b01b52a0",
"comment": "Numéro du responsable",
"command": "store",
"target": "1",
"targets": [],
"value": "numero_responsable"
}, {
"id": "9a06fd19-ed46-460b-9a90-69f38435f6e9",
"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": "acfc959b-04c2-415d-870a-a798c4b1d107",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "5e02f2f1-585f-40d1-8b31-3d8b725c1f45",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "597b48f1-3a27-450a-881a-4b6ff46b89f6",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "3c543bc9-4f56-4c5d-b43d-2b55b9c3018e",
"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": "4e43bf74-a10b-42ac-b64e-436d89e5e51b",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "2b1b82a9-016a-4c6e-9c7d-8a92b5182888",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "f382f8d8-6a34-4c74-8952-1c225420bfc4",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f4949ce4-37ae-4f1a-ad5b-43ef180a1f9c",
"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": "4c8764cb-88c6-4bf0-b19a-a2c0e2e55691",
"comment": "Rattacher à un membre",
"command": "click",
"target": "xpath=//span[@id=\"f_id_parent_container\"]//button",
"targets": [
["css=#f_id_parent_container > .icn-btn", "css:finder"],
2024-05-18 11:17:47 +02:00
["xpath=//button[@value='http://test.paheko.localhost/admin/users/selector.php?no_children=1']", "xpath:attributes"],
2024-05-15 11:09:26 +02:00
["xpath=//span[@id='f_id_parent_container']/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Sélectionner')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "aff4df02-ad45-45a9-9064-59f0d0fb86a4",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "8a5ca567-f988-43ec-a80d-1bb41bca727f",
"comment": "Nom du responsable",
"command": "type",
"target": "name=q",
"targets": [
["name=q", "name"],
["css=input:nth-child(1)", "css:finder"],
["xpath=//input[@name='q']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "${nom_responsable}"
}, {
"id": "63c14a33-a012-4d63-adb6-867c89d23e78",
"comment": "",
"command": "click",
"target": "xpath=//input[@type=\"submit\"]",
"targets": [
["css=input:nth-child(2)", "css:finder"],
["xpath=//input[@value='Chercher →']", "xpath:attributes"],
["xpath=//input[2]", "xpath:position"]
],
"value": ""
}, {
"id": "93f0c6ec-4186-4c52-8949-35e0be359567",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [],
"value": ""
}, {
"id": "5117f3c7-a2bb-48de-906e-8f4ae28551cc",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "0123bc0a-5762-4dbf-af01-a64ddcbfd06e",
"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": "87220dbd-595f-45c8-b25d-f26b12dd57f4",
"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": "7179000d-31a9-4bda-a7f6-82c97a9f8816",
"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": "207196a5-8de9-4883-881f-ec0ba8d496c5",
"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": "34ee90e0-b301-4d20-b988-b1820ce5566a",
"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": "2580aabe-3ebf-4fc3-a275-2013947b9c2f",
"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": "89b70650-203a-4e4b-86c3-e49a42c57c4c",
"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": "47a06ec2-25bf-4942-ad52-b68b5c4b75ac",
"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": "116ddb48-4dc9-405a-ac47-dce8fd3e6f63",
"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": "9b5410e2-24da-4620-89f9-714db8bbeccc",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "4d6fa971-0517-49c3-b342-e53e4093a2a5",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "64bebdd9-e465-42ef-a40d-d04659803932",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "71f41783-8a82-4a83-acfc-c6e2dace3d26",
"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": "6c49dbc2-f385-4976-86ce-a2823c746281",
"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": "574e8477-a4ed-46c7-a3ce-e019cda8f132",
"comment": "Vérifier Membre responsable",
"command": "assertText",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [],
"value": "${nom_responsable}"
}, {
"id": "5c694f9f-2e9f-4367-9b7f-cf742b9c10c3",
"comment": "Afficher fiche du responsable",
"command": "click",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [
["css=dd:nth-child(5) span", "css:finder"],
["xpath=//dd[3]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a798423d-11fd-4a30-afee-422d143ac052",
"comment": "Vérifier numéro responsable",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero_responsable}"
}, {
"id": "75a18d53-6a37-422d-b3c0-ee8214774ec9",
"comment": "Vérifier présence membre rattaché",
"command": "assertElementPresent",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "b80eb8cd-4154-4216-a7f2-0f3ba28600ec",
"comment": "Retour fiche nouveau membre",
"command": "click",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "6613c9f0-d47d-48a6-b396-68bc5e3c5721",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "d4a803d2-5b84-4cda-a7a3-c5b5142c6812",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "63619154-1f63-429c-9be0-7e014283ddd4",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "4c9e3aab-19df-4812-9702-6aa5fb68b051",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "c4a67d17-17ef-4af3-89ef-42dc59c5db55",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "547562da-703c-40d9-aa51-795ac6d63dfa",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "8a979c72-c25f-4140-809c-af964bc07efb",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "bfa25d47-d5d8-4544-a06b-0686f18c6e08",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "5a1d9eaa-772b-4e45-8667-3ad65ba557f6",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "4b43fbd3-1da6-4eed-94d1-ec2af53980e0",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "16d27d73-b816-4cbf-b4e4-e83dcfd6c75a",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "7bffacb6-36e7-4eff-ae72-816231e3d7aa",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "270e237e-edeb-4cd0-821f-3aaae082002e",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5a5d7b3e-c066-4355-bf66-026861e775dd",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "83db0aa0-420f-4c52-9af4-4b9059825bb7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "edf49f14-1b94-4bf7-b9de-f456035369a9",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"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",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"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",
"commands": [{
"id": "f2ae936e-54ea-4773-82b2-581ded63ce85",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"targets": [],
"value": ""
}, {
"id": "97b81218-28eb-46a8-905f-692459d24c28",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "babda5cf-a571-42b3-b3b5-7a668153cade",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "d964a6e7-eaca-4008-879b-ae56fd2e8fe5",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "f8c8d715-ecd7-4417-a26e-181520963dec",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "60703fc4-811b-41de-90d5-3334475e50d1",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "a21ed2e8-9e3f-4687-9d02-17bcb53a0a90",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "55db0a06-ae98-44a3-9ba2-d24c5faad807",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "48e88160-9e46-42c8-92b9-98ea1f10b772",
"comment": "Créer un responsable",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "a82b78fc-30dd-4265-bfc7-e6ab8ce21efa",
"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": "bc2b3008-e73a-45d5-865a-1de7c9d64a71",
"comment": "Mémoriser numéro du responsable",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numresponsable"
}, {
"id": "d4da98a2-1f99-4b36-a056-2a9617c77f6c",
"comment": "Le responsable",
"command": "type",
"target": "id=f_nom",
"targets": [],
"value": "Zhamberlain Luuc"
}, {
"id": "8a8ab9cc-8d39-4462-9acc-611144afaab0",
"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": "2f94bd66-13fc-4a51-9d2b-92a73a8ff064",
"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": "9c4d5fc5-0925-434d-928f-8696ad7e0f6e",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "08ab8378-1cf9-4309-9ad7-d08caf770986",
"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": "9cda4c46-e4df-4959-9cd7-b06c69e958b3",
"comment": "",
"command": "store",
"target": "amber",
"targets": [],
"value": "responsable"
}, {
"id": "bfedc5a3-ede2-4b22-bd92-b41fc938aaa0",
"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": "8afb2f34-46b3-410c-b733-20f45e1ff657",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "a660f928-50a3-4a6b-b546-987e13b853d1",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "d6004a7d-2ba3-402b-951d-28b88e2f8748",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "df681c95-e148-4183-90d2-9336eeb2c1f7",
"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": "6132c6ba-d8e9-4071-b578-1b1ec23cad93",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "67eb1920-fca1-4e10-8f85-1f2e115b140d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "2b93bfdf-8047-4db9-b8ae-ac7b72a83213",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f0416e70-9d9d-4a3b-80c6-340b126a7cd6",
"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": "ab243806-0d90-4a82-97e2-4042e5a4ffa4",
"comment": "Rattacher à un membre",
"command": "click",
"target": "xpath=//span[@id=\"f_id_parent_container\"]//button",
"targets": [
["css=#f_id_parent_container > .icn-btn", "css:finder"],
2024-05-18 11:17:47 +02:00
["xpath=//button[@value='http://test.paheko.localhost/admin/users/selector.php?no_children=1']", "xpath:attributes"],
2024-05-15 11:09:26 +02:00
["xpath=//span[@id='f_id_parent_container']/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Sélectionner')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "33fc4b2d-332e-4939-b42c-a93f4534fa7f",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "fa5dcb95-9a58-4dd3-9e66-7cc921aeba50",
"comment": "Nom du « responsable »",
"command": "type",
"target": "name=q",
"targets": [
["name=q", "name"],
["css=input:nth-child(1)", "css:finder"],
["xpath=//input[@name='q']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "${responsable}"
}, {
"id": "9e314338-511d-47a3-8a78-8cc505c9cd90",
"comment": "Chercher",
"command": "click",
"target": "xpath=//input[@type=\"submit\"]",
"targets": [
["css=input:nth-child(2)", "css:finder"],
["xpath=//input[@value='Chercher →']", "xpath:attributes"],
["xpath=//input[2]", "xpath:position"]
],
"value": ""
}, {
"id": "7b040013-c87b-4a7b-a4f9-2c62b25d9458",
"comment": "Nombre de résultats",
"command": "storeXpathCount",
"target": "xpath=//tr[@class=\"clickable\"]",
"targets": [],
"value": "nbres"
}, {
"id": "e6597a7a-00f4-4e29-88ca-7b9620fb90be",
"comment": "Mémoriser le nom du responsable choisi",
"command": "storeText",
"target": "xpath=//tr[@class=\"clickable\"][${nbres}]/th",
"targets": [],
"value": "nom_responsable"
}, {
"id": "ab5fc475-a753-4794-a079-9e56aa934044",
"comment": "Mémoriser le numéro du responsable choisi",
"command": "storeText",
"target": "xpath=//tr[@class=\"clickable\"][${nbres}]/td[@class=\"num\"]",
"targets": [],
"value": "numero_responsable"
}, {
"id": "39259fec-6864-408e-a2cb-63de066be762",
"comment": "Choisir le dernier",
"command": "click",
"target": "xpath=//tr[@class=\"clickable\"][${nbres}]/th",
"targets": [
["css=.clickable:nth-child(2) > th", "css:finder"],
["xpath=//tr[2]/th", "xpath:position"],
["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b956a3ca-b6cc-4f2d-87eb-fe57569c5f14",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [],
"value": ""
}, {
"id": "c204ecde-b1bd-4d13-8197-5ff66eac6e26",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "ef7bbdd6-6bd7-42fc-adf5-c5b7541ffd86",
"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": "e7352d9a-e97d-4d65-ab0f-78de2d460c1b",
"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": "c1d15edf-5f8a-41bb-af79-ac49c8f9947f",
"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": "04adad26-3b22-413a-9d2a-86fef5d8ddbe",
"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": "79382d6c-5cf7-4ba2-b168-02d0b02ff62e",
"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": "91702519-b59f-4ed3-8074-fdbc639ece86",
"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": "77b09efa-dd77-4722-8560-a1fca6f42aa3",
"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": "7d7c8ff8-fe9e-4f64-a245-23314e6059a8",
"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": "b4abda30-1256-435a-b3d1-43c9778003d7",
"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": "6f82bfd4-4519-4413-ad9f-fb6e8ff936df",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "cbe9b2a5-b3dd-4400-a9a6-d04333460420",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "020cf20b-4554-4fc8-b7f5-ee73663838dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9c7b5cef-20c9-467d-942e-6c720d384fcc",
"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": "d24383f5-2919-4803-9cb5-1377a51c0d27",
"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": "b13a885d-232a-4678-a650-80d6bc68be78",
"comment": "Vérifier Membre responsable",
"command": "assertText",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [],
"value": "${nom_responsable}"
}, {
"id": "c4a7e9b9-43dd-4b45-bf6a-358cd126a91f",
"comment": "Afficher fiche du responsable",
"command": "click",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [
["css=dd:nth-child(5) span", "css:finder"],
["xpath=//dd[3]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "63b99000-3d03-4c2a-a00e-bcbf14248841",
"comment": "Vérifier numéro responsable",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero_responsable}"
}, {
"id": "de2bad37-9847-4022-9021-319c58b14139",
"comment": "Vérifier présence membre rattaché",
"command": "assertElementPresent",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "0fc66279-d61c-4fa7-ba80-19dbc9ebd359",
"comment": "Retour fiche nouveau membre",
"command": "click",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "e8bb762d-76f0-4ae8-9725-d2bca0741b1b",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "001e8d83-d171-4503-ba2f-d6ffd72dd9db",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "f7765c6d-d42f-4af5-a939-87a0cd971447",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "ec1f5103-aeeb-4a1c-be84-26c93b7bbefc",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "2e5d7700-563d-4e05-a605-3314c332f2d7",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "b4833f59-a9ea-40cb-a316-3f270fb7173f",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "63cff9d3-1cdb-46a3-a670-76b0bc53a743",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "ae725152-288c-4c63-9646-267fbbaee64d",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "60ee30c9-c42f-4b07-820c-5c1c76eac0fd",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "1bf4a8a0-7b6f-4db9-a28e-900fcd898944",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "c0550765-8b44-46f9-b642-895e54386c81",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "e01cf96b-63e8-433c-b510-0e738e52078c",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "ed16361f-1057-476e-8ce9-df70ff70ed6e",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b13e8002-3893-465c-b756-9e64366868e4",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "76f4cd12-e93c-48d7-9afe-ebcc651ac749",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "137c3d09-9d21-407c-95dd-2fd5df6783ba",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "91ad3d23-dd66-4084-beeb-ea89ec4bfabc",
"name": "3-07 créer membre numéro choisi",
"commands": [{
"id": "a6972706-0c56-46c5-9a2f-5f9ca9e7a52b",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:09:26 +02:00
"targets": [],
"value": ""
}, {
"id": "018973f7-b11d-484d-aa28-c6a4f285ae02",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "22dc193e-b428-4fbb-8b56-bd18df5953cf",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "febc4e85-ef86-4e24-a3dc-59d93a851213",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "6a85ce0e-3646-481f-bb6b-1289ea0263c9",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "b9ef151b-b129-4875-87cc-a1c5abe41daa",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "1ecc6344-fe94-4259-b248-66196528f5da",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "dcf673d5-479f-49ef-8d5b-52e0216ca13f",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "09066653-b8a8-4ec6-ba3f-b1defc04890a",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "f97e3190-ae0f-4de0-bfbb-1e03852597b2",
"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": "50e4310d-b75e-4990-8bd3-b8b385cc0b37",
"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": "e71c0422-9471-4d62-a43e-7da5200052b1",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0e7fc5d1-d5aa-4efc-b5e6-396ba22331c8",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "8e11d770-9756-4f0f-a779-b90b730fc91b",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "299ec2d6-d8e7-43f5-ba7c-002612ea8bd9",
"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": "57b91f4c-9c1c-4466-933e-8be7d3ddf839",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "32ba984a-1f16-44b3-bddf-5992ad65c69d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "7db8cce3-6e38-4098-92b0-be0f3bccd28f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "ff2f7191-51e1-4318-a9fa-1a37b3f201b8",
"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": "d7ceb825-e0fe-414b-950c-10ec99ddceae",
"comment": "Numéro proposé",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "cf4d7e4d-dc1a-44e2-a396-f5fc9481f207",
"comment": "Choisir numéro de membre",
"command": "executeScript",
"target": "return Number(${numero}) + 100",
"targets": [],
"value": "numero"
}, {
"id": "20bbc394-9977-4ee8-b73f-982cf0ddcbc4",
"comment": "Imposer numéro calculé",
"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": "${numero}"
}, {
"id": "efcd239c-6ffc-4192-9af0-870c6104e888",
"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": "d0de6beb-a913-4891-b324-9ac0223721de",
"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": "7126a123-f17b-4004-966d-98e86c56ae31",
"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": "63bf7072-1fde-4f84-b892-dd4cee1abcea",
"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": "01040a1a-37be-4440-9270-10ab30450d39",
"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": "22d15378-fe16-45ff-aec5-c4058e9a6f75",
"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": "ce92e5c8-dd7d-4bbc-9c44-f805198b1e04",
"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": "9fe5fc12-5736-46e0-8223-2eb77ed6f15f",
"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": "725835ff-a614-4269-8547-6a324fdd2d31",
"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": "b2f53dae-3338-4514-b7fd-2d51971ffd18",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "19e8f3a7-f81a-4b37-9d4e-5d7a84b2808c",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "088478f0-dbef-4e9b-9ecf-373eab3191cf",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "23c1e1e1-b5cd-45fd-ba68-6e74343d52ed",
"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": "4ac05314-10df-4c87-8d6d-1a65bb4eb81f",
"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": "270079c9-9f95-4185-bbec-22cc6df3c073",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "119b0281-b232-4ecf-b61b-05b21d4fc470",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "0ef3c9dc-98fb-4b14-9828-b0c423cae1ea",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "86f2975c-c56e-4b59-86f9-9d3c4fe10bcb",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "ce79a6a6-5eed-4afe-9144-68b090310bfc",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "7a61578f-d2dd-4a70-965b-1b758171579b",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "e5a2d5f7-625d-46a0-9de3-7505744a0cf5",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "1a91161f-ae27-419a-a04c-c70a22fa74e8",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "c2d4331d-2881-4725-9ed2-cf6d37b18460",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "57244951-2db2-495c-90ad-5512f9190928",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "b846e886-d7a1-45a6-ae7b-152a77e60713",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "975edcd9-969a-430c-bc91-9ffc65061d1c",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "a6b351bb-d426-47aa-8437-fe7c482d2bd2",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "3d490bef-7264-4433-ac9e-159667490349",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "2c89a233-08fd-43e8-85f1-b2ef7ed45fc8",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4575eea8-fb0b-4933-a58c-4695d5e3b84e",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
2024-05-15 11:36:16 +02:00
}, {
"id": "1e422ed1-1291-44bc-beb9-6028a68474e7",
"name": "4-01 lister membres toutes catégories",
"commands": [{
"id": "2fd6d4c7-9f15-40ca-9f96-3b9cc2948cdf",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-15 11:36:16 +02:00
"targets": [],
"value": ""
}, {
"id": "b5f5863a-dbd9-4623-a842-72f4de989285",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "e57bb132-ce68-4464-967f-95aab07d45dc",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "4080279f-86be-4bb4-9847-e72bc1d22e9d",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "3683fd22-fbcf-4fed-975f-6e1068fe5c91",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "e43a2329-60cf-4f3f-99b1-d8e1c930a319",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "cbf069b3-9981-43ab-85a9-980b0f40ea5d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5fe6c28a-a78c-4a51-9777-2fd6e29cd064",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "36208941-ab41-44be-9a9c-ddf241fa818b",
2024-05-16 17:28:24 +02:00
"comment": "",
2024-05-15 11:36:16 +02:00
"command": "storeXpathCount",
"target": "xpath=//nav[@class=\"dropdown\"]//a[contains(@href, \"?cat=\")]",
"targets": [],
"value": "nb_categories"
}, {
"id": "1dbf5b56-db31-486e-b46d-d624381663d1",
2024-05-16 17:28:24 +02:00
"comment": "Nombre catégories",
2024-05-15 11:36:16 +02:00
"command": "executeScript",
"target": "return ${nb_categories} - 2",
"targets": [],
"value": "nb_categories"
}, {
"id": "7fed4008-6d13-40c6-b50c-f4f8a97e8f1f",
"comment": "",
"command": "echo",
"target": "nb catégories = ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "d05d2440-f8a0-4b5c-85b7-4a3bbe8ce936",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [],
"value": ""
}, {
"id": "8c26b180-80ae-41c6-81b2-6c20ebd7e961",
"comment": "Mémoriser premier numéro disponible",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "premier_numero"
}, {
"id": "4740bfc0-1687-405e-8996-0053a2b00e8d",
"comment": "",
"command": "executeScript",
"target": "return Number(${premier_numero})",
"targets": [],
"value": "premierNumero"
}, {
"id": "88f11538-5654-4744-b477-4c984c67b19e",
"comment": "",
"command": "echo",
"target": "Premier numéro = ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "7e279d37-2086-406b-8936-e31c19f0dbed",
"comment": "Init liste noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "291c6fbd-72b4-4128-8a6a-c573033277ae",
"comment": "Remplir liste des noms",
"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": "54daebab-d468-45ba-aa07-fab2d262532c",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "342c4bfd-8ae1-4fdb-9428-3373d19bc85a",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "d298c94a-8bbb-430a-bb70-44b5b2aa0013",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "forEach",
"target": "lesnoms",
"targets": [],
"value": "nom"
}, {
"id": "f2e81172-7810-4526-a5e0-8fe86233ec86",
"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": "073c5011-c04e-459a-96d2-da8bab40a767",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "55e94304-2e8c-4454-bd42-50fca46ef272",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "77f23aa1-3c1b-4e95-83a4-5786a9ce2e7d",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "a3c53c4a-a555-4080-b47d-0e8bf1842871",
"comment": "Ajouter catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "8a1ab6ce-6722-41d7-b6c8-68df46747152",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "ffc7fd11-ba0f-4171-8812-5b9770ebca2b",
"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": "a9a2445b-3e01-4986-8f45-b62d63c2d2c5",
"comment": "Afficher nom catégorie",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "f92ea725-4791-4c31-ada2-55a176d56bf0",
"comment": "Générer courriel",
"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": "401f35fc-be6d-4355-bf1e-8c5a7db9aab7",
"comment": "Saisir 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": "488335cb-fae7-483d-975f-cf955aa7c0fb",
"comment": "Générer code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "bf3e0d8c-1a24-4941-bf9a-08205fee35e9",
"comment": "Saisir 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": "9a09459c-61e7-432c-9478-934a732c7885",
"comment": "Générer numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "a169d4a1-f937-4594-8507-70fc194f082f",
"comment": "Saisir numéro de 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": "d618999e-b168-4d46-9ae0-dbe990eb0da1",
"comment": "Saisir 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": "01/01/2001"
}, {
"id": "4accaa57-86c6-42dc-b27c-c08af547ce5e",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_date_inscription",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "6e1c1e28-bb76-4e98-b506-6b9ade8d9ccd",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "xpath=//span[@class=\"datepicker-parent\"]//button",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "f6c96446-cfc7-4dbb-962e-5533e670a903",
"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": "ec7876c0-4b38-4537-9a46-a764dda97204",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "190bf88c-f44d-4c0f-b8d6-d27cb3bfc357",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "484b17fb-b89b-4d3b-8055-4c1dd05b7e17",
"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": ""
2024-05-16 17:28:24 +02:00
}, {
"id": "f6afe9da-372d-45b8-9596-da9ac2490068",
"comment": "Sélectionner tous les membres",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
"id": "b4a29afa-dae4-48a1-b0b6-cbebd87fd10d",
"comment": "Nombre total de membres ",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "7bf2177d-5bcb-4e55-aee4-f77b61b7cfd3",
"comment": "",
"command": "echo",
"target": "nombre total de membres = ${nb_total_membres}",
"targets": [],
"value": ""
2024-05-15 11:36:16 +02:00
}, {
"id": "ffa88538-fe57-4796-9619-ea43deae3932",
2024-05-16 17:28:24 +02:00
"comment": "Filtrer : toutes même cachées",
2024-05-15 11:36:16 +02:00
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "719535c3-c0a3-4c3c-868e-551cf9c7b99f",
2024-05-16 17:28:24 +02:00
"comment": "Nombre de membres sur la page",
2024-05-15 11:36:16 +02:00
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
2024-05-16 17:28:24 +02:00
"value": "nb_membres_page"
2024-05-15 11:36:16 +02:00
}, {
"id": "d5978b1b-d519-4973-b89a-658bf4c53584",
"comment": "",
"command": "echo",
2024-05-16 17:28:24 +02:00
"target": "nombre de membres sur la page = ${nb_membres_page}",
2024-05-15 11:36:16 +02:00
"targets": [],
"value": ""
}, {
"id": "30572695-e0fa-4fee-831b-a38d69c55faa",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "78cac4da-2c9a-466c-8c54-ef4d7bf4fc87",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "6b67c901-3fcd-436a-adbf-c9d95321c0c8",
"comment": "Parcourir les membres affichés",
"command": "while",
2024-05-16 17:28:24 +02:00
"target": "${num} <= ${nb_total_membres}",
"targets": [],
"value": ""
}, {
"id": "791c5ccd-c132-4ad8-bf74-5c3e14613d9b",
2024-05-17 15:39:11 +02:00
"comment": "fin de page ?",
2024-05-16 17:28:24 +02:00
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "ee718f8d-03fe-464f-87fd-417db36dd34e",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]",
"targets": [],
"value": ""
}, {
"id": "966f6ca4-836b-4efa-bf53-091c8d51e837",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "ed4b8f75-9e7c-46e2-83ae-f4d43f4d3305",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "bd9bdb4d-1272-40c5-8bce-5b4a54fdd2be",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "c1f7a83d-d1db-45c6-94ac-898a0c39ec5d",
"comment": "",
"command": "end",
"target": "",
2024-05-15 11:36:16 +02:00
"targets": [],
"value": ""
}, {
"id": "8685ee29-2bc7-44c0-9860-2117a94aacfc",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "44091abf-a12d-4c18-ae2a-9d9a54f7503e",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "845fc9ce-c67b-47d4-87ae-1a72393bc3e1",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "229a6712-eca4-4100-b65a-580330d42f8f",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
2024-05-16 17:28:24 +02:00
}, {
"id": "5e629575-fd12-4a40-a1d2-eb982b92c687",
"comment": "Catégorie du membre",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
2024-05-15 11:36:16 +02:00
}, {
"id": "59bb5518-8ad4-4e7d-ade7-fd959512436b",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
2024-05-16 17:28:24 +02:00
"id": "3f3ae760-b607-44c5-bcc5-e5977b8a34fb",
2024-05-15 11:36:16 +02:00
"comment": "",
"command": "echo",
2024-05-16 17:28:24 +02:00
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
2024-05-15 11:36:16 +02:00
"targets": [],
"value": ""
}, {
"id": "e5c33df5-6b7e-49ba-b016-f82c17d4ffda",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "bc993cb3-3cc6-4951-aa48-66ca1bac8553",
"comment": "Si c'est un des noms générés",
"command": "if",
"target": "${numaff} >= ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "1f66de5e-1137-47b9-9f72-e1e1540eb682",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "82978c13-826c-4185-b298-fd21c8862341",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "964d6ebe-951f-4e83-a358-70b699d95bcb",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "d7c971a6-3cb0-4c80-bee9-15868eed12b2",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "ca7fbf8f-379e-4956-85c7-9e387bea07ee",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "fb5060a6-4685-4efd-aa10-77d177aaa28c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-05-15 11:29:19 +02:00
}, {
"id": "b468a6eb-1199-460a-95f8-820df1f2c2f9",
"name": "1-01 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": ""
}]
2024-05-16 17:28:24 +02:00
}, {
"id": "573e0c0d-763b-4403-9b0a-4685604cabdb",
"name": "4-02 lister membres sauf catégories cachées",
"commands": [{
"id": "f8c892f4-a03f-421a-8d7c-d0f72cb6fe8d",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-16 17:28:24 +02:00
"targets": [],
"value": ""
}, {
"id": "eac4d374-91a2-48a3-803f-e05ddf28b349",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "2f6ad60d-0fae-4e50-b9e5-705ef672328e",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "1accd95b-b025-4b22-85f5-4ab61437360b",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "c0bdd339-0e81-4603-a20c-77c60c4f8eb3",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "90558872-d926-4dd8-a91b-8a7016a4d721",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "4e156bda-b170-427e-9071-8a2e05317235",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "07e01da2-e319-4396-9724-5fd5e25ba649",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "7d2fe52d-b343-4593-9c6e-204adf81e1eb",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//nav[@class=\"dropdown\"]//a[contains(@href, \"?cat=\")]",
"targets": [],
"value": "nb_categories"
}, {
"id": "9889bf00-e512-4a3e-9c95-214852edf0c9",
"comment": "Nombre catégories",
"command": "executeScript",
"target": "return ${nb_categories} - 2",
"targets": [],
"value": "nb_categories"
}, {
"id": "d9350003-939f-48a9-8aa0-5572c41db257",
"comment": "",
"command": "echo",
"target": "nb catégories = ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "99d93dd7-dd3f-4e29-9377-c9726f4e52b3",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [],
"value": ""
}, {
"id": "e32eeacb-1e33-408c-92a2-0facf4d7c08f",
"comment": "Mémoriser premier numéro disponible",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "premier_numero"
}, {
"id": "c1569bd9-e711-49e9-9ec5-895b02e3e1e8",
"comment": "",
"command": "executeScript",
"target": "return Number(${premier_numero})",
"targets": [],
"value": "premierNumero"
}, {
"id": "77358384-2699-40db-a524-761542888efd",
"comment": "",
"command": "echo",
"target": "Premier numéro = ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "fbff2b7e-b0b9-4cbb-ab21-5cb152b33927",
"comment": "Init liste noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "eb199834-6755-40a0-b56e-f9bb77197e49",
"comment": "Remplir liste des noms",
"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": "5d1658e6-c7e4-46ae-8b2d-534edae0f143",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "67b0f005-658e-419c-83ad-5f597af23883",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "63d42c55-4d4d-46a4-b259-8078238c7e85",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "forEach",
"target": "lesnoms",
"targets": [],
"value": "nom"
}, {
"id": "b14e10fc-505c-4a5c-bedd-e5a312c4a518",
"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": "173afb60-8aa7-4bf7-a980-66e619be3909",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "5898991c-0294-49dc-a0a5-81c8f2d031e1",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "f3c177b0-574b-4750-bb5a-daf962fdcb0c",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "88518dc9-2d13-4f20-b4fd-9557440ab27a",
"comment": "Ajouter catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "de72edb6-a3ad-4c91-9421-227606a91b25",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "69459edb-c2dd-4a1c-95a9-bea14d57688c",
"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": "d660aa7e-8c57-4fe4-81f1-43154ad15c89",
"comment": "Afficher nom catégorie",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "01144e2b-84e0-401f-8328-c71d60fadd6b",
"comment": "Générer courriel",
"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": "90553611-9472-4f7a-bf82-441527af8aee",
"comment": "Saisir 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": "d98fa1ef-445e-4aea-8eda-263440a9b14e",
"comment": "Générer code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "9cabebb6-9ede-48c1-a9bf-3b77ee24695e",
"comment": "Saisir 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": "338c874a-a971-445c-81dc-b12e0b5dde7b",
"comment": "Générer numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "f9056eaf-1c12-4949-be6c-1429a9f98487",
"comment": "Saisir numéro de 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": "baa88081-1c2e-4c6f-9539-c5f573e01e21",
"comment": "Saisir 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": "01/01/2001"
}, {
"id": "a0c78134-eb31-42ad-9705-fd965efa8a3c",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_date_inscription",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "e3c969ba-7ed9-4db4-bd1a-f53078d989be",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "xpath=//span[@class=\"datepicker-parent\"]//button",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "735fa121-9fad-42c4-86c3-b9601d7c9bf3",
"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": "e25bc90a-b87b-44ac-b304-9f48520587c0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "99a50015-e8fe-4d06-bbd6-8d0392c2bfd6",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "75515b67-31ff-40f6-9256-abe2a2c44cc9",
"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": "1ac54b08-91ea-413c-8a05-6fd8d8d3d3e2",
"comment": "Sélectionner les membres non cachés",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]//small",
"targets": [],
"value": "membres_select"
}, {
"id": "be7e6b2c-2f8a-430f-ae31-3eef54680d86",
"comment": "Nombre de membres dans la catégorie",
"command": "executeScript",
"target": "return Number(${membres_select}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "28b4800c-582d-434d-812d-23cb396b7686",
"comment": "",
"command": "echo",
"target": "nombre de membres dans la catégorie = ${nb_total_membres}",
"targets": [],
"value": ""
}, {
"id": "3e3d1f19-4588-4ce6-ada4-035a190c9d17",
"comment": "Filtrer : toutes sauf cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]",
"targets": [],
"value": ""
}, {
"id": "86669cc3-c2db-4ea3-809f-8ea742a784ea",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "1ee745c6-ce73-4337-b8a5-161c260ef864",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "c8a1e837-f163-4b6b-94a4-2944a03924d7",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "e866d071-544e-4486-8249-cad011bcfd34",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "8a3d42c9-4c65-4865-8550-a8908f540418",
"comment": "Parcourir les membres affichés",
"command": "while",
"target": "${num} <= ${nb_total_membres}",
"targets": [],
"value": ""
}, {
"id": "fbfb1c86-d269-467a-ad24-69599e652464",
"comment": "",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "52330878-a1f9-4a52-8038-34fd282b4c29",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]",
"targets": [],
"value": ""
}, {
"id": "6138bd34-e8b2-4513-8ffe-57f6b0f72aba",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "5eb9c15f-0b7e-4e60-ac45-7ba260673de7",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "02ae1159-56ec-487e-87c4-5167b0948911",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "d68aba7d-9b37-477b-8dd7-b886759ba60f",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "67648e53-49cb-4191-b44e-3ec5425bd194",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "945cda0b-0ea7-4c64-a706-9c4e541176f3",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "49904774-b9b9-486c-a77e-fe464c9380cb",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "8413395b-f90a-4260-89b7-3936845fd7c4",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "900ecf1f-95d7-4211-9a0b-ee4821566d1a",
"comment": "Catégorie du membre",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "c1cacb08-1d84-4344-a772-f75cfb12b21e",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "d3504d02-7f61-4e3d-b182-2aae0ea628ea",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
"id": "1b169576-548a-4f8d-ad64-0873b2579aea",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "e40924bc-4efa-4256-972f-98ce9e52faa6",
"comment": "Si c'est un des noms générés",
"command": "if",
"target": "${numaff} >= ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "44303520-e7d4-459d-bd61-163e7de8801a",
"comment": "Catégorie non cachée ?",
"command": "if",
"target": "${categorie} != 2",
"targets": [],
"value": ""
}, {
"id": "1162c5b9-00bf-4dbc-baaa-6bbd8362cd89",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "54eef252-fc7e-46f3-9d83-1573dde4c16a",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "2eee5cd9-1219-4d3a-9c47-6a6a647e61a6",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "34e519d0-02e8-4770-b792-f9e04e74a56f",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "dc14b87b-4519-45eb-afc8-7e75e9175ef5",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "362f3910-6e80-4f76-9431-21cd2a5c9c0c",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e7bb2415-93a8-45c9-bdb4-7aff2f079968",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "e7af04b9-0d02-4ad6-8c06-8f708fc292b8",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "361657f6-d4fa-47a0-99ff-7a7ab8f19e95",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "480c3e63-6791-490d-8867-b46ba24a0751",
"name": "4-01a lister membres plusieurs pages",
"commands": [{
"id": "484f5367-e267-4e8d-82b0-f20672f193e5",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-16 17:28:24 +02:00
"targets": [],
"value": ""
}, {
"id": "20f37b71-dfa1-4f6b-b5da-eddacf4b7287",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "9bfcefcd-929f-4322-b7c0-2e56e371d7a6",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "4d369259-e799-4be1-803b-8813b4d265f0",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "eae2acac-76f9-478a-bcff-bbf01419b066",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "f8f3f0c1-9cb5-4a14-bcb4-a81becfdde6e",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "731c2948-f85a-4779-90ff-bb0f7c5e9e9e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "6dc6ff4d-18ac-40a8-837a-3157b7895cab",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "7833f33e-deca-413b-9b1d-ae175c002c62",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//nav[@class=\"dropdown\"]//a[contains(@href, \"?cat=\")]",
"targets": [],
"value": "nb_categories"
}, {
"id": "65af2eaf-a184-4bd1-9a54-801e405f44a0",
"comment": "Nombre catégories",
"command": "executeScript",
"target": "return ${nb_categories} - 2",
"targets": [],
"value": "nb_categories"
}, {
"id": "32fd07f9-b272-47c5-83ba-63923588da31",
"comment": "",
"command": "echo",
"target": "nb catégories = ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "724377b5-b3fb-4eaf-b30e-1a3e5e5f3e60",
"comment": "Menu ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [],
"value": ""
}, {
"id": "f88e95c7-eeca-48b2-984d-040abec1ecd6",
"comment": "Mémoriser premier numéro disponible",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "premier_numero"
}, {
"id": "a2ae5fd0-a366-4ba5-8832-919fcbb4b005",
"comment": "",
"command": "executeScript",
"target": "return Number(${premier_numero})",
"targets": [],
"value": "premierNumero"
}, {
"id": "07c1ce65-be6c-4da9-af2e-cbae40c9a842",
"comment": "",
"command": "echo",
"target": "Premier numéro = ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "b0873587-6c25-41ce-b1b2-6d02180b6bbf",
"comment": "Init liste noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "ce6297ff-d1d1-4acf-a3ff-197191c6b904",
"comment": "Remplir liste des noms",
"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": "5b39c0ac-a3a7-4634-93b9-f7c8d9a7e565",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "aa13b22a-661b-4bfb-89cd-3c7be92a1b73",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "3ce9bc4a-6756-4151-9e91-d28346129470",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "forEach",
"target": "lesnoms",
"targets": [],
"value": "nom"
}, {
"id": "79383ca4-7ba0-4aa6-a56b-e27b41324b21",
"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": "50d13081-4932-46f0-9a18-8d19bfe841ef",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "afc31b46-bec3-4230-bb60-9950de76026c",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "31055b79-46c2-4ca8-9afd-c7bfff2070ad",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "587d762f-11c5-4e32-9e4d-7d2412ebe2af",
"comment": "Ajouter catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "c4ab1d1a-9170-4918-b746-7e4b28a40e04",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "20ee3859-d58d-42c5-bb9d-07fca91322a0",
"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": "8a5e75ee-b0c9-42d7-bc55-321bb17405b1",
"comment": "Afficher nom catégorie",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "cfa0de2f-9bcc-4f94-86c8-83066a02cc77",
"comment": "Générer courriel",
"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": "4b6d4549-121f-4f60-85db-b946b89bb71b",
"comment": "Saisir 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": "e06f4a34-93b9-4d02-99fd-9d9001297acf",
"comment": "Générer code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "1f807df9-f64d-4e99-8ae6-5bae487fd6ad",
"comment": "Saisir 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": "186f9188-1f3a-41dc-9513-e4849004c89c",
"comment": "Générer numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "9c9f213c-1d06-442b-acd8-55394bc7f32a",
"comment": "Saisir numéro de 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": "949414a0-41f7-4e8d-8d46-b619f530db59",
"comment": "Saisir 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": "01/01/2001"
}, {
"id": "743663c1-23eb-4a90-a02e-4e60567b6f55",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_date_inscription",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "ddbe3f71-239e-46f6-952e-6dfaad9a0edd",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "xpath=//span[@class=\"datepicker-parent\"]//button",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "eb9cc374-781f-446b-988d-c27834c29337",
"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": "c65aaf26-7956-4644-943f-77af0c3d9a72",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9d2d5204-742c-4127-8281-fd1e2e21354e",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "e2309f2f-fd83-4c8f-a9a4-579d07365caf",
"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": "3f0f1784-a5b8-4cdd-b4c8-0608b8b533a0",
"comment": "Sélectionner tous les membres",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres_select"
}, {
"id": "c2ce7e39-5e27-4426-b37f-a496ea241f5d",
"comment": "Nombre total de membres",
"command": "executeScript",
"target": "return Number(${membres_select}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "b800c180-a85c-48e8-a33e-4a40795a4955",
"comment": "",
"command": "echo",
"target": "nombre total de membres = ${nb_total_membres}",
"targets": [],
"value": ""
}, {
"id": "f5a931f6-9ac2-4a53-9d35-bf1ec2c72c07",
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "1fb42d79-11ca-452f-977d-34bb869961ff",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "de0c8322-63b3-45d5-afcd-02021c60b8f7",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "c1ca85d1-dda6-41c2-acbf-3af872b5df09",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "f670461b-e46a-48b8-a79f-30a953e8cf43",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "10c28ac2-de2b-4e67-b480-01e5557ac6da",
"comment": "Parcourir les membres affichés",
"command": "while",
"target": "${num} <= ${nb_total_membres}",
"targets": [],
"value": ""
}, {
"id": "1dfa5612-f750-4561-bf48-da7b25d651ef",
"comment": "",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "32f4da15-2464-4827-8852-57e5e119b247",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]",
"targets": [],
"value": ""
}, {
"id": "4a94afe5-62e9-4855-b705-76ead8e5ba99",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "0c6a4b37-1379-43a9-ae3f-8876083239da",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "864767ca-99b6-4cc9-bc42-9918e75a27a8",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "3f96129b-beec-4916-9d45-f285401d4d4b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "130d374e-1e70-4e98-b291-8ee7b82de04b",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "10d4b570-4eae-48e1-bf7b-d076ea15879c",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "7739c957-333c-4dac-a6b5-2dd8bbe2b9df",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "7571deaa-35be-4023-a287-9443b1d3fb47",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "0ba0a485-8a25-4e00-8c07-de5d2ad8f7b1",
"comment": "Catégorie du membre",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "9ec539d0-90ac-4680-9ce4-bbed5e117d38",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "f4694778-6688-4f03-bec6-36eb5263df3f",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
"id": "acae4adc-e716-4433-ac2a-2a8bc0f1f2a5",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "bc269120-2512-4af9-a3df-54c93afc762c",
"comment": "Si c'est un des noms générés",
"command": "if",
"target": "${numaff} >= ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "9269a461-d357-44c9-b408-3a83b4de7364",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "731178c4-d7db-45cd-9943-90792d51b940",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "fa9438b1-3486-494f-9fcb-ce58ab532796",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "1d8c7503-e229-4cd6-97aa-1a5af0e4feb0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "bf9ee5e1-9952-4f95-87ce-ae858db3f870",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "62870741-be9e-49d6-a1a6-1736b815f281",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-05-17 18:02:50 +02:00
}, {
"id": "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf",
"name": "4-03 lister membres d'une catégorie",
"commands": [{
"id": "d56e4c68-de82-463b-89e7-7ad64f95f9b2",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
2024-05-17 18:02:50 +02:00
"targets": [],
"value": ""
}, {
"id": "4d200ae2-3464-44b2-a4fc-d139e7d1674d",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "f858b24e-6a6c-4293-a030-457b09457441",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "7781354f-dd6c-4745-86c5-ea49a4fee814",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "99ad8fd2-6491-4e56-9aed-f652ab312e9d",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "36203ae6-1ab9-4595-804e-48e0e579e350",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "0f6329ff-2446-4915-8254-c926951597c1",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "917499e6-fbea-4bca-9daa-8a36b1ebc514",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "83d31864-7e84-4bda-ac64-2ad75c740b64",
"comment": "Générer la liste des catégories triée par numéro croissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "66d74a62-d622-4ec0-a4cb-7c7fd506b407",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [
["css=li:nth-child(2) b", "css:finder"],
["xpath=//li[2]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Membres')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4a79191e-c4c8-4a92-b797-7d7722e1d736",
"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": "4b641991-eedb-4176-a37c-4d0a85e5045f",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
"id": "c0450afd-3299-485e-9eb3-b2ab85daf1f3",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "98e08f06-67b8-4f1c-8239-6a54d0234c95",
"comment": "Nombre de catégories",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_id_category\"]/option",
"targets": [],
"value": "nb_categories"
}, {
"id": "d2d05a94-f4ee-4de3-ac47-214cf2e41523",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
"id": "b4271895-cd39-4736-98df-68305fb123e9",
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "6ab6904a-8b83-4148-bcc9-33eb807aa5c4",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
"id": "a6a239ef-4432-4b90-b6da-ef5b46592333",
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
"id": "a69be34d-71c0-436e-9d54-ff18fbef103c",
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
"id": "751aae9c-fcc4-44c7-a049-884963981c29",
"comment": "",
"command": "executeScript",
"target": "return ${numeros_alpha}.concat(${num_cat})",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "335345c1-50ec-49c3-9a31-f8dbd38bed78",
"comment": "",
"command": "echo",
"target": "${num_cat} : ${cat}",
"targets": [],
"value": ""
}, {
"id": "9d6293a8-63bc-48b7-8808-2aac0f347a34",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "e2283ec0-00fd-4c07-987d-ec96032df8fa",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "00db03e5-1e51-4a28-bfaf-06e1eac26a43",
"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": "a7fd532c-fb17-4042-b101-8ea51aaba965",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "3e85589e-6011-4f7b-9046-79a0163caec9",
"comment": "",
"command": "while",
"target": "${i} < ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "5e909f07-e8f9-4199-9a82-51048300f5b2",
"comment": "",
"command": "executeScript",
"target": "return ${categories_num}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "9db7adab-7a4e-403e-bd3b-4837e28aab34",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "61d7a3d8-4e33-427c-9289-fffffc2bfb1c",
"comment": "",
"command": "echo",
"target": "${i} : ${categorie}",
"targets": [],
"value": ""
}, {
"id": "385ca0c6-9f1e-47b8-93d0-ddf8c81fb06c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9aaaa7b6-7190-4874-94c7-43c4229dfe6f",
"comment": "Traiter les membres déjà présents",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d0cd179f-d57a-4bf1-b3ed-9f9f6c6d75a8",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "7cf137db-4fec-4eac-98e4-cca0bf8f9f7f",
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "a289aa01-6e01-4bc9-a241-2477117a2232",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "a36849f9-8eae-47a4-94fa-dfc944b2fd90",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "7d222cb4-c94e-4627-a8d5-0226a4f1eba7",
"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": "d3905ed9-1492-4301-a1f3-eb2b132239b5",
"comment": "Toutes les catégories",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres_select"
}, {
"id": "73a6e625-87c0-452b-a0cf-50b6fdd249b3",
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres_select}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "bf354704-b77e-4cc7-a95b-db3a3b684fc8",
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "1e6925a8-754c-4283-a774-0999207cd2ab",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "1d77ac00-6edd-4e30-b5ec-2f393133cd61",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "27dfae14-a50c-421d-9863-88ec3f74712d",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
"id": "6da61310-6df0-4c8f-af2d-ddaf148b9b23",
"comment": "Parcourir les membres affichés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
"id": "1b094189-c71e-4862-978f-6fc2604936ce",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "09a257c1-da2e-4edb-9eb6-f316793a5cc4",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]",
"targets": [],
"value": ""
}, {
"id": "dc32607b-03ef-415f-956a-f1d85e2ef1c6",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
"id": "332de2d1-0a28-4ca5-b5c4-d59afa19e7d8",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "26809156-4d04-4195-9e4f-7737966f6105",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "cba63ad7-df7e-4c89-8140-677c198ebe31",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b3676664-c6a5-4dd7-a4a4-362a2634bef7",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "8a0862b2-7da7-4051-80bc-3faa5354fe66",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
"value": "lesnumeros"
}, {
"id": "5ff86d7e-b086-4084-b551-e58e113593ce",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "41808bda-2512-4a4f-b467-a0db3c1a69f3",
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
"id": "2a0cd4fa-43dd-4fa5-9ab7-a765fc7ef4fe",
"comment": "afficher fiche membre",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a",
"targets": [],
"value": ""
}, {
"id": "d4bc3219-01a1-4d73-a633-7a3b874f827b",
"comment": "Catégorie du membre",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]",
"targets": [],
"value": "categorie"
}, {
"id": "67eb90d5-427d-4d07-a902-ec4b1afe9688",
"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": "59958a98-a26c-4ecb-9d1d-390b08ccb457",
"comment": "",
"command": "echo",
"target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "e7fdf091-31ef-44ea-ad9d-ad09ea767c9b",
"comment": "ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "79d1d84f-6210-4d0b-8754-164206b07cdf",
"comment": "Retour page précédente",
"command": "executeScript",
"target": "history.back()",
"targets": [],
"value": ""
}, {
"id": "ed7f874a-1dd2-405a-85f8-daef27c4b214",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "efb790f8-0464-4565-83a8-b10d661eeb7e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8b9580b5-d8d5-43b0-9bdb-63a4aa1394d0",
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "509635c9-bd6b-4dc9-b992-26b23348d09e",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [],
"value": ""
}, {
"id": "0eff7ea0-c69e-4f6d-a072-d95b63f3421c",
"comment": "Mémoriser premier numéro disponible",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "premier_numero"
}, {
"id": "14a6caa9-0f12-42ea-acb5-63028ce56b84",
"comment": "",
"command": "executeScript",
"target": "return Number(${premier_numero})",
"targets": [],
"value": "premierNumero"
}, {
"id": "1e0bd419-ca41-452c-970e-db6870305d11",
"comment": "",
"command": "echo",
"target": "Premier numéro = ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "6f79f713-83eb-4cd4-bf5d-c0176cffabae",
"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": "d8ed8e81-a1ab-430c-9c96-4c0655e2e53b",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "i"
}, {
"id": "bd195c84-72ec-4beb-a0d8-18ea9206020e",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.length",
"targets": [],
"value": "nb_noms"
}, {
"id": "2cd909e4-29ea-4980-9234-fec73248cb3f",
"comment": "",
"command": "echo",
"target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}",
"targets": [],
"value": ""
}, {
"id": "608e596c-a258-42c3-9b67-6aaf9f24458c",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
"value": ""
}, {
"id": "28edb89a-5d72-447c-8dff-412f28057687",
"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": "ec54e45a-4c2f-4e4b-ae09-e725d148908b",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "f5ee520a-509c-4273-b3dd-129e99a866fa",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "2be794df-410b-4502-bc3d-0d948ce34bac",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "87dcb491-ba02-40ea-953c-3d5413b56c6c",
"comment": "Ajouter catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "eece70d4-dfa1-46c9-b546-109a71dc176b",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "ebeaf6cc-a9fd-4a12-a113-a7a01387b5ac",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "c27e36e2-4182-44f7-85f2-18d48ad9d90c",
"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": "6bec2cff-8d48-43b9-a49e-762f5c2c125f",
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "876ce548-9f68-4016-ba84-fca1e93242ac",
"comment": "Générer courriel",
"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": "e42f8cba-842e-4c69-ac79-2018f5411b94",
"comment": "Saisir 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": "4f9e3a44-86dd-4039-8d32-b1368677a09a",
"comment": "Générer code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "bb59a1fe-60e6-4c3d-a392-a197bd1db369",
"comment": "Saisir 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": "f6b2abcb-8e1d-4b4f-b9bb-9a23e1ec8ff9",
"comment": "Générer numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "aaf71aca-7f4c-43eb-bf32-c867f9006992",
"comment": "Saisir numéro de 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": "7508b010-f684-4d2d-a483-ead41d0aac6a",
"comment": "Saisir 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": "01/01/2001"
}, {
"id": "01a6ff69-b8fb-452e-a625-0bc8ae143c06",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_date_inscription",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "10ee015c-6b3e-4365-aeb9-4971574531ad",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "xpath=//span[@class=\"datepicker-parent\"]//button",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "2764d85f-e4b7-4ee8-b671-eca8ef3e7a96",
"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": "ebf58d38-6459-4d96-8682-13281a853e78",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "ad068305-bbad-4c8b-9e0f-09ee29762e99",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "05f8b4d1-4836-44c5-b87d-82ebf94aba36",
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "31d4e3a3-a702-4a2e-9ff5-bfdfece5194e",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "faa478ea-a005-4883-b711-545ee6467311",
"comment": "Choisir une catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_categorie"
}, {
"id": "4bb4fbe1-a230-4780-aa3d-e5c30420a551",
"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": "e84e5bf6-d95e-42e5-9431-be271a3cc160",
"comment": "Sélectionner la catégorie choisie",
"command": "storeText",
"target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]//small",
"targets": [],
"value": "membres_select"
}, {
"id": "ede3cb4b-0697-4b51-9cbd-bd2d5ece6aad",
"comment": "Nombre de membres dans la catégorie",
"command": "executeScript",
"target": "return Number(${membres_select}.split(/ /)[0])",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "9e450853-15c1-47f8-bb5a-8fbccf03daa5",
"comment": "",
"command": "echo",
"target": "nombre de membres dans la catégorie ${num_categorie} = ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
"id": "78c4caf5-7f2a-4c85-a985-789651423ef7",
"comment": "Filtrer : catégorie choisie",
"command": "click",
"target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]",
"targets": [],
"value": ""
}, {
"id": "bd957d5a-93fd-4700-98ec-f40cc7ea396d",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "57849947-9003-4a3f-8293-15389de5d83a",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "952aff21-5099-4f7b-b407-f83969dae7d2",
"comment": "au moins 2 membres dans la catégorie",
"command": "if",
"target": "${nb_membres_cat} >= 2",
"targets": [],
"value": ""
}, {
"id": "3dc23459-3cc8-4837-97ee-6b9829871cdf",
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
"id": "ca29eeb5-b43e-4fa8-951a-0ef1fe627584",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
"id": "a75c9a33-352c-4268-8083-25f87719185e",
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
"id": "5c4a41df-cc20-45bd-a95b-0d70433f7aba",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
"id": "cebfb04f-538b-4e6b-8795-c7dc82bfff02",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
"id": "776938c5-bf86-47a7-947e-f702f5ef4d22",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "95956761-4a75-4426-a47a-38b762c5e1dd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "a469eab1-825f-4538-b01b-04106df281fb",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8ffb7d91-2ca3-4114-8e3d-56836a37c1cb",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "e6c1a7a6-af4e-4c5a-b552-cc1c567574d0",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "cdbcea32-d3c3-4361-a86b-df4e67c43850",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "2877628e-6596-4f33-b9de-f7be8eeb69f3",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "f034b1d3-a489-4604-bd30-18d6b91c7722",
"comment": "Parcourir les membres affichés",
"command": "while",
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
"id": "08b56187-4d2f-4242-8cb8-828910810b50",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "be58dd04-4119-468c-b4f0-631be0a68e51",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]",
"targets": [],
"value": ""
}, {
"id": "0589fb6b-3c55-46f5-bd6d-1873ee8ec922",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "4adcb85f-e352-4d3f-9c86-93cbc82b161d",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "55203e0e-99bd-4b68-a0bf-7af85e094fb7",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "3d0c62a0-d98d-4ec9-a9ac-c81ad900d41b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "51b4a1cc-2a98-4d1d-abcf-b8c29eb60efe",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "0cc31ccc-c915-4c0d-b650-21be38317551",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "07ac8ef0-6775-4b2c-844e-0b2455e6060c",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "6b4ab061-0e5f-4788-a7a4-a7b2ac4f5981",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "a8a0cbbf-6225-41a6-8c79-9dab3b40096d",
"comment": "catégorie mémorisée",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "b76359fc-56db-478c-9f21-f76e453d7882",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "153a2dc9-d3ea-436a-852d-e91e73e276db",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
"id": "8db0fac1-9192-45e0-abe9-9cf95d22a7ff",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "4cd42154-011f-477f-abc6-5fdf1fc3d9a2",
"comment": "Catégorie choisie ?",
"command": "if",
"target": "${categorie} == ${num_categorie}",
"targets": [],
"value": ""
}, {
"id": "cd29c223-5fce-4859-b329-2498aadad152",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "ea653d4e-6a58-4dd8-85ee-ed20fe8e0f38",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "56191866-212b-4ac5-b734-d9f90450fa85",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "2c3165ad-c5c0-4c26-9066-58098bc1f4d3",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "28a9d3ea-bbc7-45de-a8de-1b3318f4d9d7",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "7471f693-79b7-4e17-810d-195d48bbbcde",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-04-22 11:19:25 +02:00
}],
"suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
2024-05-15 10:55:33 +02:00
"name": "1 Installation",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-15 11:29:19 +02:00
"tests": ["b3fdeef5-2f6f-46e8-a9db-5995bbf94957", "b468a6eb-1199-460a-95f8-820df1f2c2f9", "d6791401-e683-4d44-9513-24c52f1c6517"]
2024-04-22 11:19:25 +02:00
}, {
"id": "7fc1abfa-640b-438d-8357-d16f42212a22",
2024-05-15 10:55:33 +02:00
"name": "3 Créer membre",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-15 11:17:06 +02:00
"tests": ["efad291c-7700-4c1d-a0c7-393264364aa1", "9ce868ad-3dac-4107-af91-50101a81fec0", "a10913d7-dd6d-4c13-9bda-6293705343f8", "542187b1-45cd-4f09-bad6-b1220fbfc754", "efb8a434-ee82-48e0-a770-d4a668e28eec", "71fe09f0-51bb-4d2f-8c66-91ec5e235105", "895513b5-888a-4ea2-8036-5a97569cd6df", "20360774-e683-425b-a9b9-350dc0fb6ef3", "91ad3d23-dd66-4084-beeb-ea89ec4bfabc", "c05cb267-660d-46ab-8fe9-a7e042aa9c8f", "a6af2537-7860-43b2-92b6-1a93bb173a6c", "155a53f2-766f-4748-b11f-722b520df2eb", "4369d68b-3e2c-470e-b2b1-5a0825c35aa0", "077fea95-219b-4ab2-a10d-800ec7f39fb1"]
2024-04-22 11:19:25 +02:00
}, {
"id": "d35b71cd-b332-4210-ad59-1a0742386aac",
2024-05-15 10:55:33 +02:00
"name": "2 Connexion",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["0849fbc2-a4f9-48a5-8698-afec02eb558f", "87aa0ef5-bb8c-496d-a196-0f92278e98b1", "c36d64ef-b5db-4c15-90aa-204431553d05"]
2024-05-15 11:09:26 +02:00
}, {
"id": "3b9945ba-2eb9-4f38-82ec-9a225b926d5c",
"name": "4 Lister membres",
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-16 17:28:24 +02:00
"tests": ["1e422ed1-1291-44bc-beb9-6028a68474e7", "480c3e63-6791-490d-8867-b46ba24a0751", "573e0c0d-763b-4403-9b0a-4685604cabdb"]
2024-05-15 11:36:16 +02:00
}, {
"id": "f7119734-cb63-4c70-b0d6-6c1ff8281761",
"name": "test",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["1e422ed1-1291-44bc-beb9-6028a68474e7"]
2024-04-22 11:19:25 +02:00
}],
2024-05-18 11:17:47 +02:00
"urls": ["http://test.paheko.localhost/"],
2024-04-22 11:19:25 +02:00
"plugins": []
2024-05-15 10:55:33 +02:00
}