tests_paheko/paheko.side

11131 lines
367 KiB
Plaintext
Raw Normal View History

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": "b3fdeef5-2f6f-46e8-a9db-5995bbf94957",
"name": "1-01 installation",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "61bab7ef-9d04-40de-8b87-98999729b832",
"comment": "Page installation",
"command": "open",
"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",
"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}"
}]
2024-05-24 11:29:00 +02:00
}, {
"id": "b468a6eb-1199-460a-95f8-820df1f2c2f9",
"name": "1-01a 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-04-22 11:19:25 +02:00
}, {
"id": "d6791401-e683-4d44-9513-24c52f1c6517",
"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
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "0849fbc2-a4f9-48a5-8698-afec02eb558f",
"name": "2-01 connexion correct",
2024-04-22 11:19:25 +02:00
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "7bbc53e7-fe56-460a-a7a6-e9139c354956",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "open",
2024-05-24 11:29:00 +02:00
"target": "http://test.paheko.localhost/admin/login.php",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f06a2714-73cb-40d3-88a4-9779f977ecdc",
2024-04-22 11:19:25 +02:00
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "6f50359e-db5d-480b-9b33-23f50da83664",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "68572e57-230b-4188-a46f-714314a53e11",
"comment": "Déconnexion",
2024-04-22 11:19:25 +02:00
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "32c741d3-d2f5-4b81-b906-2c11c554d2d4",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6b84d76c-92d6-4eb3-b94b-f6da2b7608dc",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": "",
2024-04-22 11:19:25 +02:00
"command": "click",
2024-05-24 11:29:00 +02:00
"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"]
],
2024-04-22 11:19:25 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a0b40845-f16e-4a92-bb91-9c051c47b07b",
"comment": "Pas d'erreur ?",
"command": "assertElementNotPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "67e8d492-998e-4cce-aabb-5635a7f08ed0",
"comment": "Bonjour",
"command": "assertElementPresent",
"target": "xpath=//h1[contains(text(), \"Bonjour\")]",
"targets": [],
"value": ""
}]
}, {
"id": "87aa0ef5-bb8c-496d-a196-0f92278e98b1",
"name": "2-02 connexion échec identifiant",
"commands": [{
"id": "5a8e495b-987a-4099-b397-70c9650e111a",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/login.php",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "db829ee6-696b-4d70-840d-bb79282e5b2d",
"comment": "Vérifier si déjà connecté",
2024-04-22 11:19:25 +02:00
"command": "storeXpathCount",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
2024-04-22 11:19:25 +02:00
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "connecte"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "5be6f2f3-5435-4462-b7a1-3e2a2b09f50f",
2024-04-22 11:19:25 +02:00
"comment": "",
2024-05-24 11:29:00 +02:00
"command": "if",
"target": "${connecte} > 0",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "656ae9a9-cc40-463a-9f4d-2529d4f502d4",
"comment": "Déconnexion",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
2024-04-22 11:19:25 +02:00
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "be452c2a-8050-4054-a04e-5486ef12bc6b",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e969ce2e-9cb5-47a4-a8fc-476fb67ba4f9",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d4e49a22-2897-459f-9169-2d1e6adbe0df",
2024-04-22 11:19:25 +02:00
"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"]
],
2024-05-24 11:29:00 +02:00
"value": "polo@free.fr"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "ab9f41ed-6165-4b4c-b24a-2f4a505f86cf",
2024-04-22 11:19:25 +02:00
"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"]
],
2024-05-24 11:29:00 +02:00
"value": "interpeller noircir colis allumer"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "8dc91265-cc24-4929-8bf8-9811f04095eb",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "63ae88e9-f6a2-4bcf-8d13-5a4c5d8a1897",
2024-04-22 11:19:25 +02:00
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "c36d64ef-b5db-4c15-90aa-204431553d05",
"name": "2-03 connexion échec mdp",
2024-04-22 11:19:25 +02:00
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "65fd69db-b2db-4395-8140-6fd98d80b662",
2024-04-22 11:19:25 +02:00
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "7168cad3-9c41-43f9-b7d4-29b70499346d",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "da322f69-7807-4d72-a4a2-b3a0ee786176",
2024-04-22 11:19:25 +02:00
"comment": "Déconnexion",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/logout.php')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ff329f14-631f-4461-851b-1632e731bffd",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "23420ae0-2de1-4fde-a7a4-d4965a203d0e",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9c144216-af36-4843-a761-d73fbdaa9e90",
2024-04-22 11:19:25 +02:00
"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"]
],
2024-05-24 11:29:00 +02:00
"value": "jckix@free.fr"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "73a8add8-f646-47a4-8de1-20099832c251",
2024-04-22 11:19:25 +02:00
"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"]
],
2024-05-24 11:29:00 +02:00
"value": "xxx"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "4eb7de55-7b4a-41ab-b16c-5b1e4838c0cf",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2072df70-2639-48a2-8b4d-00e6e42d0812",
2024-04-22 11:19:25 +02:00
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "efad291c-7700-4c1d-a0c7-393264364aa1",
"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",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "4d1a1742-d8e9-4481-a97a-eeea7d5c70f7",
"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",
"comment": "Nom & prénom",
2024-04-22 11:19:25 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "nom"
}, {
"id": "4348c18a-7fb2-4ab6-b429-e3beb3c052c0",
"comment": "Adresse E-Mail",
2024-04-22 11:19:25 +02:00
"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\"",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "courriel"
}, {
"id": "ef6a56e3-8ec9-47dd-a1b5-2025df5012a5",
"comment": "Pays",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0abd1709-be5d-4042-81f0-93700b43c1f8",
"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",
"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",
"comment": "Ville",
2024-04-22 11:19:25 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
"id": "44c5177c-dce7-4702-a31a-08b791368b0a",
"comment": "Numéro de téléphone",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"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",
"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",
"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",
"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",
"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}"
}, {
"id": "46e2408d-9a9f-4c62-80ce-3cfa08c33e62",
2024-04-22 11:19:25 +02:00
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"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",
"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": [],
"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}"
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "a10913d7-dd6d-4c13-9bda-6293705343f8",
"name": "3-02 créer membre Pays hasard",
2024-04-22 11:19:25 +02:00
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "cd1b3adf-7dcd-4e70-9cfb-45c8911d39a2",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "acdc5e0f-7d1b-46e7-8ee0-4abcbd25686a",
2024-04-22 11:19:25 +02:00
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "011df170-505b-4649-a142-3eb62d7208ae",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "18b1a3b7-db73-4791-96bb-f5dc2cee1f59",
2024-04-22 11:19:25 +02:00
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "9e67fe3b-785f-443f-bfe7-dc422d640aa6",
2024-04-22 11:19:25 +02:00
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "aeb9d1b4-68df-4424-a5ea-10bcd3525819",
2024-04-22 11:19:25 +02:00
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "99a70849-5f2f-4fd6-8826-0135df9c07ce",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d1932dc5-5c00-4422-b820-9e1def70b333",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "1419a875-6f79-48e6-aff9-bdcda72f3181",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b172d75d-be97-44b9-8e17-878777bc9185",
"comment": "Mémoriser les infos du membre",
"command": "",
"target": "",
"targets": [],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "cf968ce5-2a90-4b39-9a22-d71ed9e224c8",
"comment": "Catégorie du membre",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "Membres actifs",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "2fbaa703-6ddc-4036-b7da-95c565f3c153",
"comment": "Nom & prénom",
2024-04-22 11:19:25 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "0e59addb-c875-4ca0-be08-8db5c852a40a",
"comment": "Adresse E-Mail",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-24 11:29:00 +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": "31a2150a-4c79-484f-8818-d62c76a6f10c",
"comment": "Choisir un pays au hasard",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_pays\"]/option",
"targets": [],
"value": "nb_pays"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "d5ad8f2c-c892-4b1d-a44c-4e15fca13ac8",
"comment": "",
"command": "executeScript",
"target": "return 2 + Math.floor(Math.random() * (${nb_pays} - 1))",
"targets": [],
"value": "num_pays"
}, {
"id": "3dac9d98-9da6-4953-a910-1067776cc723",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_pays\"]/option[${num_pays}]",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "6bfb7453-f253-4ed2-92c1-d16a5e072d4c",
"comment": "Adresse postale",
2024-04-22 11:19:25 +02:00
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "2 rue des arbres",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "a4277129-8287-4d44-ac81-b8cdc4b5506c",
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "738d1e26-d2c3-45ec-a98e-ecc0eccd7e05",
"comment": "Ville",
"command": "store",
"target": "La Havane",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"id": "afd2f570-4d60-440c-98e1-3eff825247e5",
"comment": "Numéro de téléphone",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-24 11:29:00 +02:00
"target": "return Math.random().toString(10).substring(2, 10);",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "tel"
}, {
2024-05-24 11:29:00 +02:00
"id": "0bd8c512-99bb-44b0-835c-394b58a35244",
"comment": "Inscription à la lettre d'information",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
2024-05-24 11:29:00 +02:00
"target": "return false",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "f40d1c92-c15a-4d34-a5d7-9a9d2cb862f4",
"comment": "Date d'inscription",
2024-04-22 11:19:25 +02:00
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "02/02/2022",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"id": "4a33b555-5920-4683-9f15-6347e954fc35",
"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": "de545a53-1272-4eee-b8fb-eddb0df35cbe",
"comment": "Remplir le formulaire",
"command": "",
"target": "",
"targets": [],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "705bb55d-5756-4f18-ba8e-aae002e1d932",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "df2c64e6-4a13-4116-a224-fffef3c5b77d",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "a3d02a94-e276-4fb4-95ce-7f760f8d7c41",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "5783a98f-6ba4-44d6-8d80-ca885dcec67a",
2024-04-22 11:19:25 +02:00
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[${num_pays}]",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "80581213-bda0-4110-a45f-b3ffb69aa090",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "1fa3cb82-2537-422d-9f2a-76b691988882",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "eeb0e82d-0652-410b-abd9-08a7a0563bcc",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "4ceeb0ba-f95f-4f5d-8161-9ecfb92117a7",
2024-04-22 11:19:25 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "df224c52-3af7-4bf0-920b-779acf86504d",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "eadcc5cf-767e-4507-9257-2dbb0be0aca7",
2024-04-22 11:19:25 +02:00
"comment": "Inscription lettre info",
2024-05-24 11:29:00 +02:00
"command": "click",
2024-04-22 11:19:25 +02:00
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3672d94d-1ce2-47df-8915-86c97882086c",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9b4a7137-34ec-43fa-b8ee-e0922564c878",
2024-04-22 11:19:25 +02:00
"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-24 11:29:00 +02:00
"id": "fee7637c-f245-42c7-8427-a73430ea72ce",
2024-04-22 11:19:25 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "bced6da0-b1a7-4db1-9c18-ccfc30d2daf7",
2024-04-22 11:19:25 +02:00
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
2024-05-24 11:29:00 +02:00
"id": "a169f017-2f5a-4dac-87e8-1681ad77bfb2",
2024-04-22 11:19:25 +02:00
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
2024-05-24 11:29:00 +02:00
"id": "f1867735-60cd-40b6-abb0-cc7d3c7714b4",
2024-04-22 11:19:25 +02:00
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
2024-05-24 11:29:00 +02:00
"id": "3cfad45e-2569-4e9e-afb9-89f4d5d26ed6",
2024-04-22 11:19:25 +02:00
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
2024-05-24 11:29:00 +02:00
"id": "da8a9379-e38d-4599-bbff-8fee2c749f69",
2024-04-22 11:19:25 +02:00
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
2024-05-24 11:29:00 +02:00
"id": "a6211476-e9f5-4686-9f67-b2ff22e74c24",
2024-04-22 11:19:25 +02:00
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
2024-05-24 11:29:00 +02:00
"id": "3002b0de-954f-4ae5-ba99-af0c4905e1c0",
2024-04-22 11:19:25 +02:00
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"id": "c45277dd-3372-44cc-840c-f218e9fa0919",
"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": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "ae12ca29-3596-422d-99b6-042c091824a8",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "85a3fcdb-2a68-4d83-bbea-a837c75e3542",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
2024-04-22 11:19:25 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "2b049a8d-f876-4082-a7e5-3e8f2dddcff6",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "84ca99ab-ab3c-4720-8c04-3427ad87cadf",
2024-04-22 11:19:25 +02:00
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
2024-05-24 11:29:00 +02:00
"id": "318a5291-ad53-4193-a4f8-241139c21b98",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d6f5dc83-d622-4837-9e6b-c837e0a87526",
2024-04-22 11:19:25 +02:00
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
2024-05-24 11:29:00 +02:00
"id": "18d8ab4b-4ef8-4d49-8c48-4e2e95388d8b",
2024-04-22 11:19:25 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c1ea77ae-9f99-44c5-b44a-717065f050df",
2024-04-22 11:19:25 +02:00
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
2024-05-24 11:29:00 +02:00
"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/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9a2b2d5f-8aa4-46f6-98af-11f060699459",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "5b205564-f777-4ad1-abfd-a8492d906f45",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a66e1002-12f4-4f65-a21a-1af67f0ce8f0",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "eb7cbe6a-128b-463f-a2e0-18d36fe1c0e2",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "21765375-4b9a-49ab-81f1-5dfa33434ceb",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "5ba9ea26-6ced-4595-831d-869e11ab2cf6",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2016dc21-0e94-4464-a2aa-aa6fba171702",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a3d96f44-f1b6-4cb0-b575-9a577ad3e0fc",
"comment": "Catégorie du membre",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "Anciens membres",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "cat_membre"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "014f1bc2-059b-4731-b9b8-959b3a046e7b",
"comment": "Pays",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "3d52af5d-6637-4424-8179-e7b1a10bf24b",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "93a82799-df8c-43db-8d27-a3b04662fc8c",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"id": "7ce7e1eb-4892-4296-bc86-e71031b8b2a4",
"comment": "Ville",
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "1056a2ee-4e5a-4bf4-a1c0-2155b00af5e4",
"comment": "Numéro de téléphone",
"command": "executeScript",
2024-05-24 11:29:00 +02:00
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
2024-05-24 11:29:00 +02:00
"id": "9e76f500-d05e-4f67-93b6-a9064c7d1ff8",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "9e64999d-9bee-4b7d-aa2d-4da11d50817f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2fc843d2-be98-4426-9433-3f3458f97e2a",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "c4e38f50-5403-4d2c-9b3e-ab40ef48f1f5",
"comment": "Catégorie de membre",
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat_membre}\")]",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "0120e17a-437a-44b3-ba96-bef536372503",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ca16f01a-365e-4c10-8036-257b209fe1ba",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "20e796aa-55fc-40e1-91e5-d0843786b263",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "28a6cc2b-5d0b-4032-affd-38fe234e4b55",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
2024-05-24 11:29:00 +02:00
"id": "57d9e90b-4e62-44cb-88b6-240cc937cbb7",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
2024-05-24 11:29:00 +02:00
"id": "732b550b-713a-4d71-ac8e-b39cd8b5f7e3",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
2024-05-24 11:29:00 +02:00
"id": "0f769f80-11a5-4931-97f6-ee48ede02ac2",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "8d8f01b0-e669-47c4-8e45-2ee0e7d4910e",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "c45e4383-5d3e-4173-9a3e-1ce04fd8f7fe",
"comment": "vérif téléphone",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
2024-05-24 11:29:00 +02:00
"id": "44961419-af5c-4064-96fa-e50f350a7429",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4804b34c-68b0-41aa-898b-98ae271b8ca8",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
2024-05-24 11:29:00 +02:00
"id": "2668188e-680f-4276-83b8-2a6294c4b310",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4a6e1e0d-d5d5-4c4a-b56f-d9f0418b9e84",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
2024-05-24 11:29:00 +02:00
"id": "76f9bf91-fc1c-460c-8db7-a7ac0dc68858",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
2024-05-24 11:29:00 +02:00
}, {
"id": "004fbb35-316a-473f-aa0d-bb51351e3efb",
"comment": "Catégorie du membre",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]",
"targets": [],
"value": "categorie"
}, {
"id": "8f38b4e2-2804-4ebf-8f6e-1de6edf09412",
"comment": "Vérifier catégorie",
"command": "assert",
"target": "categorie",
"targets": [],
"value": "${cat_membre}"
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "efb8a434-ee82-48e0-a770-d4a668e28eec",
"name": "3-04 créer membre Inscrit lettre",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "965f8db1-1ccc-49dc-8077-ca3f8288f472",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "661aed0a-884e-4eef-be1f-9a5a89cc29f3",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "873a1b1b-26cc-4313-b38f-e79e4a44f608",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "71b05198-73ab-44aa-a97f-49992ba43368",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "ef68cf00-5d1a-41df-8b10-2c48d63fa1a4",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0ad26f7f-f3a5-447a-ac2d-6a0c11af16b6",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d78d5e9e-c89c-4bee-895e-3759d24d9858",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "47d22a7d-8aae-45be-a9bd-824475be6756",
"comment": "",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "Membres actifs",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "691ecfcc-24d0-434d-bfea-3ea059e05680",
"comment": "",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "ad21c34b-9929-471a-bea5-af7deff62c26",
"comment": "",
"command": "executeScript",
2024-05-24 11:29:00 +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\"",
"targets": [],
"value": "courriel"
}, {
2024-05-24 11:29:00 +02:00
"id": "2f9d6666-9017-4df2-8483-d6757a42a163",
"comment": "",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "009a0309-b962-49fb-b5f6-bb67e9d84443",
"comment": "",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "3 rue des vagues",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "680d7ee1-aa80-48e3-a37a-a16386e2d63d",
"comment": "",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"id": "79323d74-2df4-41ef-910b-5a96fbe1035c",
"comment": "",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"id": "98d2dc19-3680-41c4-8fdb-a81167927ef2",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
2024-05-24 11:29:00 +02:00
"id": "927c3533-0896-4cdf-95e0-61cfc72d39c8",
"comment": "",
"command": "executeScript",
2024-05-24 11:29:00 +02:00
"target": "return true",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "c5a70e2b-3ac7-4a4f-b099-0c55ea3b3f36",
"comment": "",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "03/03/2023",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3e9cde50-321a-4d61-9439-65b56a1c0005",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "ea8da6bc-e080-4b5e-bc6f-7ad41d8efe6d",
"comment": "Catégorie",
"command": "click",
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "fa4683ba-1af7-4775-b044-07d3cc4d41b0",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9fcdd36c-23d3-424a-909e-9de3f62ccb39",
"comment": "Inscription lettre info",
2024-05-24 11:29:00 +02:00
"command": "check",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f933ed8c-fce5-4edf-a19c-53af6a1f22ea",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "2429c4fd-8a60-4731-943f-9f4364d4b515",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
2024-05-24 11:29:00 +02:00
"id": "3aea85a1-f5d6-48cd-a4df-0e0cd5e14a72",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
2024-05-24 11:29:00 +02:00
"id": "56aa6e82-5925-46d2-8817-8fab68ced661",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
2024-05-24 11:29:00 +02:00
"id": "caccfb3f-a54f-45e6-b4b0-0d03df713f44",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"id": "36a87f3a-cc93-4722-84ee-dbeb3fc72557",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "4864681b-fbe1-481e-b41a-519331ff10bf",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "5bb863af-dcd1-4486-9934-a389e40bfae8",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
2024-05-24 11:29:00 +02:00
"id": "2f93b0b3-8621-4015-8142-13682c7ffe2f",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7be4c4ee-27f8-4558-883b-740247bc3db0",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
2024-05-24 11:29:00 +02:00
"id": "fd2ba9ed-a620-4e7b-9fde-5217bc4e77b3",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "47218bc2-e094-4b01-bb03-27eef5ed5005",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
2024-05-24 11:29:00 +02:00
"id": "fd4c321a-ec5c-4073-a7c6-cf1c37a9eecd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}]
}, {
"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/",
"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}"
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "895513b5-888a-4ea2-8036-5a97569cd6df",
"name": "3-06a créer membre rattaché choix unique",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "fadb5d39-1907-417b-9d02-79547c3dc04a",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3cf5a905-7576-4cd1-97a5-a6d532691208",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "a30539dd-0977-463a-b842-cb10e7349fc0",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2def971c-6153-4e19-9c7e-f99232413cae",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "c8a19e64-7093-4477-ad3b-bf290d6faf72",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "7369fff8-a63c-4b59-aa2b-bc1e13782c5f",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ccef399a-525f-4b3e-910c-a861db874cfd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0e239b08-1665-403a-bd19-4dc43eff8724",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e4abd389-b84d-4765-ac92-e6b81f98aa9f",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "acfc959b-04c2-415d-870a-a798c4b1d107",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "5e02f2f1-585f-40d1-8b31-3d8b725c1f45",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "597b48f1-3a27-450a-881a-4b6ff46b89f6",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "2b1b82a9-016a-4c6e-9c7d-8a92b5182888",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "f382f8d8-6a34-4c74-8952-1c225420bfc4",
"comment": "Date d'inscription",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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"],
["xpath=//button[@value='http://test.paheko.localhost/admin/users/selector.php?no_children=1']", "xpath:attributes"],
["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"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "9b5410e2-24da-4620-89f9-714db8bbeccc",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4d6fa971-0517-49c3-b342-e53e4093a2a5",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "64bebdd9-e465-42ef-a40d-d04659803932",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "574e8477-a4ed-46c7-a3ce-e019cda8f132",
"comment": "Vérifier Membre responsable",
"command": "assertText",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "${nom_responsable}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": [],
2024-05-24 11:29:00 +02:00
"value": "${numero_responsable}"
}, {
2024-05-24 11:29:00 +02:00
"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": [],
2024-05-24 11:29:00 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "b80eb8cd-4154-4216-a7f2-0f3ba28600ec",
"comment": "Retour fiche nouveau membre",
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": [],
2024-05-24 11:29:00 +02:00
"value": "${numero}"
}, {
2024-05-24 11:29:00 +02:00
"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": "20360774-e683-425b-a9b9-350dc0fb6ef3",
"name": "3-06b créer membre rattaché Plusieurs choix",
"commands": [{
"id": "f2ae936e-54ea-4773-82b2-581ded63ce85",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "8afb2f34-46b3-410c-b733-20f45e1ff657",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "a660f928-50a3-4a6b-b546-987e13b853d1",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "d6004a7d-2ba3-402b-951d-28b88e2f8748",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"id": "df681c95-e148-4183-90d2-9336eeb2c1f7",
"comment": "Ville",
"command": "executeScript",
2024-05-24 11:29:00 +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)",
"targets": [],
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "67eb1920-fca1-4e10-8f85-1f2e115b140d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "2b93bfdf-8047-4db9-b8ae-ac7b72a83213",
"comment": "Date d'inscription",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"id": "f0416e70-9d9d-4a3b-80c6-340b126a7cd6",
"comment": "Membres/Ajouter",
"command": "click",
2024-05-24 11:29:00 +02:00
"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"],
["xpath=//button[@value='http://test.paheko.localhost/admin/users/selector.php?no_children=1']", "xpath:attributes"],
["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": [
2024-05-24 11:29:00 +02:00
["css=.clickable:nth-child(2) > th", "css:finder"],
["xpath=//tr[2]/th", "xpath:position"],
["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"]
],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "6f82bfd4-4519-4413-ad9f-fb6e8ff936df",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "cbe9b2a5-b3dd-4400-a9a6-d04333460420",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "020cf20b-4554-4fc8-b7f5-ee73663838dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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",
2024-05-24 11:29:00 +02:00
"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": ""
2024-05-24 11:29:00 +02:00
}, {
"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}"
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "91ad3d23-dd66-4084-beeb-ea89ec4bfabc",
"name": "3-07 créer membre numéro choisi",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "a6972706-0c56-46c5-9a2f-5f9ca9e7a52b",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "018973f7-b11d-484d-aa28-c6a4f285ae02",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "22dc193e-b428-4fbb-8b56-bd18df5953cf",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "febc4e85-ef86-4e24-a3dc-59d93a851213",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "6a85ce0e-3646-481f-bb6b-1289ea0263c9",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "b9ef151b-b129-4875-87cc-a1c5abe41daa",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1ecc6344-fe94-4259-b248-66196528f5da",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dcf673d5-479f-49ef-8d5b-52e0216ca13f",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "09066653-b8a8-4ec6-ba3f-b1defc04890a",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "e71c0422-9471-4d62-a43e-7da5200052b1",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "0e7fc5d1-d5aa-4efc-b5e6-396ba22331c8",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "8e11d770-9756-4f0f-a779-b90b730fc91b",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "32ba984a-1f16-44b3-bddf-5992ad65c69d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "7db8cce3-6e38-4098-92b0-be0f3bccd28f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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"]
],
2024-05-24 11:29:00 +02:00
"value": "${numero}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "b2f53dae-3338-4514-b7fd-2d51971ffd18",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "19e8f3a7-f81a-4b37-9d4e-5d7a84b2808c",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "088478f0-dbef-4e9b-9ecf-373eab3191cf",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
2024-05-24 11:29:00 +02:00
}, {
"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-24 11:29:00 +02:00
"id": "c05cb267-660d-46ab-8fe9-a7e042aa9c8f",
"name": "3-91 créer membre échec numéro présent",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "0a919074-cafe-4f35-97d0-dff060157b5b",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3483834a-3c7e-4772-a30d-111072c1cafe",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "ec977d32-e903-44ff-9ee9-acbc1b7bcbd0",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "568faaec-d3f4-4bea-956e-63d35ff385b4",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "981d273d-be9b-4c6f-b8c6-d10f6d7eaa9d",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "af5c1fd7-4e8a-4aa6-a541-622d6f37a56a",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "685c60ca-ca5d-4b9e-b468-7f686ea3bff4",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6ef82a95-ee1f-4b71-9b1b-8cdca3f1b7db",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "eb273f23-27f9-4f15-a21f-4854696648e3",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "a04df44f-738c-4aaa-a8dd-3e8cca9eac78",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "cb650d21-a943-4f06-9d9a-9e9941e1efbe",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "41b16e1e-ab01-48c5-a301-409dbdc6ea7e",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "d9f426d8-9daa-4890-b918-d1426a710a16",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "c0008cbb-b899-4ea3-92ae-cec64b66fc4d",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"id": "5fe0f5a3-4faa-4b69-bc88-7add4a656c03",
"comment": "Membres/Ajouter",
"command": "click",
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1b752fa3-3c65-4a62-909c-2cbf7150ba5a",
"comment": "",
2024-05-24 11:29:00 +02:00
"command": "type",
"target": "id=f_numero",
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "36af241b-c825-4f71-973e-15c462851326",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1c713af6-54c5-4bca-8e50-4432fe0daefc",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6a7ff05f-f637-46e3-b23c-821fb439d964",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "14e83449-b1bb-4ce2-969c-e2c88cc2cd79",
"comment": "Erreur ?",
"command": "assertElementPresent",
2024-05-24 11:29:00 +02:00
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "a6af2537-7860-43b2-92b6-1a93bb173a6c",
"name": "3-92a créer membre date erronée cas 1",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "828addae-4a29-465c-bc17-6f6aa011a333",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "40413eb6-afdd-40fb-9081-f224a7563d19",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "1454b0b4-bf39-461e-8c34-444c7e81e143",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "8c04dc93-a051-4cf8-b13e-dc4e4f40f49d",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "8ac76b9d-cb28-4d38-92c5-38373f6e35e3",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "ec699551-382c-4405-9321-5f1cb3a877ca",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "77f14997-3795-4b97-bc6d-a8e2c15c1068",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0553c671-79b6-4864-ba71-20d75c9adeda",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "13fa53e4-8fb3-4c09-9698-cf15ef7fa7e2",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "eff183bd-f7a1-4547-ba6a-88d9b5d4c906",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "229586b3-ab68-4d2c-9311-90e5ec230ec5",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "295a7bca-2ad5-4c17-9ea0-e785cb350fa5",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "a25a9808-fbb6-4a95-b9b2-b950c683994f",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "4baa6042-575a-4e0d-b350-4f089d9bd8bc",
"comment": "Date d'inscription",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "02/02/1515",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2836eb76-087c-43c9-978a-9ce995817dd1",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "37a52481-ef23-4cb6-9e89-4068a9a3a5d3",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7e74176f-2d36-4351-96f1-bd33f0d0ff2f",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f4e66ef5-12d1-47e9-866d-49b2c0450543",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e9a7eab9-6c71-4dd0-a53c-9ee26d250975",
"comment": "Erreur ?",
"command": "assertElementPresent",
2024-05-24 11:29:00 +02:00
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "155a53f2-766f-4748-b11f-722b520df2eb",
"name": "3-92b créer membre date erronée cas 2",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "bae01400-5545-48b2-a212-5d4cd5c50797",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ebda2a39-b8ae-449c-9899-aea0296c87e2",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "5e29b334-2db5-4bb8-8e23-f0e2f532eceb",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1d983797-f698-44f0-8946-f3986c665f6f",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "3ff4319b-7f86-4412-95d3-cd13fe6cff48",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "6b9c54a7-18ac-4c39-a343-f58abfd6ec1f",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9c0a1f61-0f78-45be-b114-d5f8eafc5696",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f7355136-612d-46ba-9635-bf1eb273e276",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "646291e6-03dd-41f7-8d6e-4afee8bfb522",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "977b4cb8-b190-41b2-be24-a3ab15880b90",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "3ff2f21f-b062-4265-bfb8-61d2255cd722",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "4334f5c1-f9e5-40ef-9526-f73043072ea0",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"id": "cb59498a-7399-4952-8c12-96e5c51842d7",
"comment": "Ville",
"command": "executeScript",
2024-05-24 11:29:00 +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; }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "bfb9295a-650c-4050-a630-74d9ff5471bc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "ba55dd35-73fa-4db1-9c1a-d2dfdfdbb801",
"comment": "Date d'inscription",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "02/02/2105",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "65c47b88-c005-43f7-83b5-96249f4f1b3d",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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"],
2024-05-24 11:29:00 +02:00
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
2024-05-24 11:29:00 +02:00
"id": "09c17bd0-afbf-4408-9e22-31f5b5990458",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "8438637f-0b67-49be-9cc7-8d7cbb117d4a",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "054c3b19-44ff-4b69-9179-b27179048ec5",
"comment": "",
2024-05-24 11:29:00 +02:00
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7e1d0aa1-4975-42fd-bdc0-096c04f082ab",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "4369d68b-3e2c-470e-b2b1-5a0825c35aa0",
"name": "3-93a créer membre nom présent refusé",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "de0c9cad-cb05-4f20-ada8-fe2924b92d08",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "357dd2d2-0d7f-4f4e-9ab1-77ca73ee134b",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "9f6d9ec7-eab1-4eb8-9046-e15e479a918e",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a45246d5-44a2-4e0d-9675-23cda2db2f3f",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "a80535d7-5cb4-413b-b809-69d990ce5ffa",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "26ef5b09-1393-4579-9c78-bb55ed484463",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2e57f89b-eb5c-406b-98f6-68f2d9ec0e21",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d6303a2d-1fb8-404e-9639-99726e7507f2",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dc9a7604-8fb1-49fa-a6b2-ad079371e7c2",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "b2e217e2-def6-41a8-ab30-a1a6f454f51f",
"comment": "Nom en double",
"command": "store",
2024-05-24 11:29:00 +02:00
"target": "Lambert Paul",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "a31eed35-08ed-4461-ba7f-3b2fe06f9575",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "0f647a3d-21f1-4831-a59f-d74bcd35d103",
"comment": "Adresse postale",
2024-05-24 11:29:00 +02:00
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "18f94418-d7a0-4f21-9d0d-a34b3ae1eb37",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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": [],
2024-05-24 11:29:00 +02:00
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"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": [],
2024-05-24 11:29:00 +02:00
"value": "tel"
}, {
2024-05-24 11:29:00 +02:00
"id": "46b5f764-f3ef-45f0-9d8e-1cdaab6390af",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"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",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
2024-05-24 11:29:00 +02:00
["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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "5081e469-29a8-4f05-bf22-2a9d9f808a54",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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"],
2024-05-24 11:29:00 +02:00
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "9f1bae31-b61e-4568-8bda-a07cbba34c75",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "15348857-a8d9-45d4-9ffd-9f4a801beaf3",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a7d57bc4-10b6-479d-9309-ed3f8fea3fb0",
"comment": "",
2024-05-24 11:29:00 +02:00
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "aa609cd7-aa9d-4752-960c-34717346ce1c",
"comment": "Déjà présent",
"command": "assertElementPresent",
"target": "xpath=//p[contains(@class, \"alert\")]",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "077fea95-219b-4ab2-a10d-800ec7f39fb1",
"name": "3-93b créer membre nom présent accepté",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "d4554ace-88d7-4d2e-83d4-7cce4097aa75",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "bf1bfa0b-e029-4893-a2a5-7be8f1f65966",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "b93fb8f7-746b-4a39-b170-63bffa038554",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6d18f281-9ed6-4d72-8408-cb237c41e733",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "2dc71349-30ab-4301-a143-d062efe8f95b",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "9bdb0cf1-8b9d-4b3c-beea-ec07e1fc40f8",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d5ee3b2f-ef10-41f7-82f4-3f0a74312fd5",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2b703a81-35c9-4bbc-9025-39e05814a471",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "be10eb6d-36b2-40c8-84eb-6580af51bf18",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "f32fd2e3-d4f6-4cc5-ba37-5af1352925ee",
"comment": "Nom en double",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "ff484a1f-8f73-45a8-adba-c9e92984e4d5",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
2024-05-24 11:29:00 +02:00
"id": "3f6f2d20-719c-43da-bffc-da4a22deb2eb",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
2024-05-24 11:29:00 +02:00
"id": "d5e587e9-c742-49b4-a9f4-242c8241b1c4",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "6528d530-c349-4034-9176-2fa6ae5db9bc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
2024-05-24 11:29:00 +02:00
"id": "605b1dc2-09d1-4532-ab37-f58ea2338d60",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "5330b5b0-7442-43c2-a517-1d6e7891aa46",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "0d94f36f-b5ca-4e8a-9f65-3c64c8964718",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "98cf1afc-9562-43bb-8318-a0e1c18b85d3",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "79d4eea8-aee4-4f32-a83b-a8965c13f38e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "b9f4f884-97d9-4f0d-9e21-86378f3b6afa",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
2024-05-24 11:29:00 +02:00
"id": "9101d731-d209-41a1-a280-307e54af0045",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
2024-05-24 11:29:00 +02:00
"id": "052708c2-eb37-4f7b-a11a-4dc615aa84e5",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
2024-05-24 11:29:00 +02:00
"id": "6d74cb87-be97-42b4-93f1-c6e9a7b41339",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "00f4e960-2c86-4f72-83fc-5a6c677ac986",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
2024-05-24 11:29:00 +02:00
"id": "1156bdd3-b6f7-4a2d-87b3-24a4724976f0",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
2024-05-24 11:29:00 +02:00
"id": "ae682a21-6c75-4dcd-8415-427394d244e2",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "109033e5-d2a9-4b96-acc8-1a8d57fd5ce8",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
2024-05-24 11:29:00 +02:00
"id": "00f3d6eb-5581-4a7a-bccc-9962760ad81b",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0e16146d-d672-4b75-b446-134bbb77a17f",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
2024-05-24 11:29:00 +02:00
"id": "8fce980c-51c5-4dae-966c-6c72f35870b7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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}"
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "73154344-9dc7-43b7-beba-85d3f16cfe93",
"name": "3-zz lister membres (aucun intérêt)",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "c561e0b2-5367-420e-a530-8e24d3cf9297",
"comment": "",
"command": "open",
2024-05-24 11:29:00 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c63df998-f847-47ec-aed8-fec4934ef3b6",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "d090b2c0-814a-4a72-87d7-af0886072530",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "f6fd62aa-c1db-42da-a5f1-80e0852f2eb0",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "0f655ac2-d905-4a14-b8b1-2d92001a895b",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "453b055d-80f4-4097-ab4d-3aff80516186",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "ee961f42-9ace-4468-a030-39bf873b9a88",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "693bea62-5404-40e1-ba7f-a4ccd3323374",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1682c797-1ef4-4826-b100-6284f9f0c928",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "292be0eb-c74b-40dc-9b90-dafd4d0ec06c",
"comment": "Filtrer par catégorie",
"command": "executeScript",
"target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); for (const l of li) { l.style.display=\"block\"; } return;",
"targets": [],
"value": ""
}, {
"id": "19a1b7ef-8969-432f-8c4d-43c9b6936237",
"comment": "Toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "ad08b4b8-9058-43e6-be28-848d6a695808",
"comment": "Nombre de membres",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_elem"
}, {
"id": "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",
"comment": "Itérer sur les membres affichés",
"command": "while",
"target": "${num} <= ${nb_elem}",
"targets": [],
"value": ""
}, {
"id": "1c35bf5e-d7db-4389-936c-cfca34b7a04a",
"comment": "Nom du membre courant",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nom"
}, {
"id": "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": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "9d3d8f41-bff5-472e-ac87-6de5f10b4655",
"name": "4-01 lister membres toutes catégories",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "9f50e061-8d46-4a07-a6ae-3e39cceb9bc7",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "78e25862-14dd-471d-8801-5bab32a275c2",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7a9b145a-9ade-4266-b45c-aef9692a73aa",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "2cfbcda8-2ea9-43eb-939a-6dc84c27b9e8",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "357ca39a-5c70-47b1-99d9-bcde6ba80376",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "0399e45b-7cc0-4d57-a5e3-a3b362929856",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "b1083b43-25b3-41a2-85cd-095762a21a9d",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "342961e1-537c-41b6-8ad4-b353b4f62251",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ba76fe19-56ff-4b76-bf7b-5d60bee262a6",
2024-05-24 11:00:36 +02:00
"comment": "Récupérer la liste des catégories",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "49602f97-bdff-487c-b268-d014d3de8178",
2024-05-24 11:00:36 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "380b0f3e-fed1-4799-a339-9a9680c3a511",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "6566abd1-a45d-4b4d-be04-c77e5a4232f7",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "aed2d227-29ff-48d7-a6b9-951d2057d992",
2024-05-24 11:00:36 +02:00
"comment": "Nombre de catégories",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_id_category\"]/option",
"targets": [],
"value": "nb_categories"
}, {
2024-05-24 11:29:00 +02:00
"id": "d0cf800f-4ad5-4a79-9bff-c20ae976a6d8",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "afe938c7-fca3-4889-a825-27c55b318440",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f963d669-8577-40e0-8ff5-bf00c78a5b59",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "a423823d-7962-41ba-a737-48d3c66beddd",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "2b84666f-fa32-4359-b65b-22a9caacd35e",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "9ff2480f-a30c-4287-98bc-5d4e0049b9bd",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
2024-05-24 11:29:00 +02:00
"target": "return ${numeros_alpha}.concat(${num_cat})",
2024-05-24 11:00:36 +02:00
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "numeros_alpha"
2024-05-24 11:00:36 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "3dbec75a-1588-4823-9a76-fadb707eb902",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "echo",
2024-05-24 11:29:00 +02:00
"target": "${num_cat} : ${cat}",
2024-05-24 11:00:36 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ea94130f-539b-4d02-8015-193340a6abde",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "3dd79e09-b9ae-48cd-8abd-f8d9391d67ca",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "70a68897-ec9f-4fd3-a01d-548328ae1e75",
"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": "0dff1226-2127-497e-963d-dd7f1734bf58",
2024-05-24 11:00:36 +02:00
"comment": "Traiter les membres déjà présents",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6fe95231-a118-465f-b59e-20293b69f974",
2024-05-24 11:00:36 +02:00
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "1c28edd0-3f87-4398-94c8-80312859fcb5",
2024-05-24 11:00:36 +02:00
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"id": "6e8f5b0a-05d4-444d-a6ef-f8a96a85fca1",
2024-05-24 11:00:36 +02:00
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "d2db43c2-e379-4a0e-b4d1-f35307988d1f",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c600a59c-df0c-4ba9-ae02-2760c8fc0bbe",
2024-05-24 11:00:36 +02:00
"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-24 11:29:00 +02:00
"id": "1fae1452-7af8-4405-8127-b7842f091b3f",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "e1792ceb-1d51-45e4-a86a-3e1dd9c8eb1b",
2024-05-24 11:00:36 +02:00
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "87c6a1a7-6f43-4d1b-8944-b30a9baa9734",
2024-05-24 11:00:36 +02:00
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ca6ee8f1-e083-4c60-8b96-a49464c8e197",
2024-05-24 11:00:36 +02:00
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "5b19a75f-b016-499c-8db8-e907b276b093",
2024-05-24 11:00:36 +02:00
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "b407e63f-0a39-4e30-bdc9-43aebecc38c7",
2024-05-24 11:00:36 +02:00
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_total_membres} >= 2",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "00256540-4d40-4fca-ab05-a10d91a1397a",
2024-05-24 11:00:36 +02:00
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
2024-05-24 11:29:00 +02:00
"id": "59a07c46-205d-4cc3-b334-8a3153e9477b",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"id": "961d3be4-bb54-48f7-abd4-d35c417b7248",
2024-05-24 11:00:36 +02:00
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
2024-05-24 11:29:00 +02:00
"id": "56b70964-b497-48aa-b3ff-eb54ff124aca",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "77f481d8-633b-44fe-8cb0-d941ca20556d",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "50e7fb6a-c8ab-4b1b-a765-8715d1e68996",
2024-05-24 11:00:36 +02:00
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "42e53770-17f2-4c0f-8c78-610fc872d594",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c52202fe-83ee-4822-b1a9-b698089f794c",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "552a98c5-fb5a-4f84-af5d-0dab0f48c417",
2024-05-24 11:00:36 +02:00
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "cee12e74-bea1-40af-97aa-4fab48cd1538",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "6c900966-b2b0-4ce6-b39b-769ec95461a6",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "0e119e93-98bd-4268-91e9-20b852615a11",
"comment": "Parcourir les membres enregistrés",
2024-05-24 11:00:36 +02:00
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a6f6b81d-61ff-4c0f-9825-ee98a7296abf",
2024-05-24 11:00:36 +02:00
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2a42d2f6-0909-404e-980f-b00f53846cb5",
2024-05-24 11:00:36 +02:00
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1d85b23b-fc76-464f-8214-a7431d67846e",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "7df9291d-15b4-4144-841a-514abebfa193",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "6d5e7780-37cc-4440-9a3a-6c9b9c999014",
2024-05-24 11:00:36 +02:00
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
2024-05-24 11:00:36 +02:00
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "06d7ab25-f616-4918-b1fb-4a2659246a6b",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c7566eca-44d0-4405-b19c-d5336898f1ff",
2024-05-24 11:00:36 +02:00
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "ee565b99-6a31-421d-861c-178abd1e339b",
2024-05-24 11:00:36 +02:00
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "21c0c151-eaf8-4fc3-9824-97d25f90cd0c",
2024-05-24 11:00:36 +02:00
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "31675346-22f0-42bc-8209-bf95f20de762",
2024-05-24 11:00:36 +02:00
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"id": "2913b0e9-d934-41fa-b8dc-bd826800e19c",
2024-05-24 11:00:36 +02:00
"comment": "afficher fiche membre",
"command": "click",
2024-05-24 11:00:36 +02:00
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "bc347e5b-891d-4b07-b970-95957f8783e3",
2024-05-24 11:00:36 +02:00
"comment": "Catégorie du membre",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "073393c4-26d1-4ac4-a943-b7035781da27",
2024-05-24 11:00:36 +02:00
"comment": "Trouver le numéro de la catégorie",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"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": [],
2024-05-24 11:00:36 +02:00
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "9a357204-3205-4dbf-bfd2-6f98a4d96564",
2024-05-24 11:00:36 +02:00
"comment": "ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "a5a8dea5-7c7e-44bc-bbde-57bec1453df1",
"comment": "",
"command": "echo",
2024-05-24 11:00:36 +02:00
"target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "2c87e770-7f2b-4119-aa11-02af4d6ff819",
2024-05-24 11:00:36 +02:00
"comment": "Retour page précédente",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"target": "history.back()",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "81f68bac-7994-4a5c-a833-65e3872a9a04",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "07ba4510-dbb0-4cbe-9ed3-86d15f8bc6f2",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "fc54fca2-285a-498c-a46c-d1d21db17b04",
2024-05-24 11:00:36 +02:00
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0dfb30d4-f667-40b0-a30b-ac570fc27408",
"comment": "si pas assez de membres",
"command": "if",
"target": "${nb_total_membres} < 20",
"targets": [],
"value": ""
2024-05-24 11:00:36 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "ddd854d8-2993-4be5-bc3e-afc5edf26a0f",
2024-05-24 11:00:36 +02:00
"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": "5f4e6a59-0099-4eab-9320-462fc11ee963",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c454ccfc-0327-472c-b7cd-e67327a156fb",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"target": "return ${nb_total_membres}",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "dbb0604b-27cb-47b0-832b-b36c21ce6d5c",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"target": "return ${lesnoms}.length",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "nb_noms"
}, {
2024-05-24 11:29:00 +02:00
"id": "19762a03-fb00-41db-8802-9ea918454b3a",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "echo",
"target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f3a183e6-7872-4f75-88ca-479fc209f2be",
"comment": "Parcourir liste noms pour ajout dans la base",
2024-05-24 11:00:36 +02:00
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ee448e86-3562-490a-82e6-c163cc4d504c",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1fce9227-6ca2-484a-a7fd-cbc894b3bd6b",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "9e7ddbcf-97e8-4219-8860-e0c8c840e8ae",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "97e14d1f-81cd-41d0-9e9a-f8df89c522cb",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "05b626b7-ef5e-4309-936e-837b17e3587b",
2024-05-24 11:00:36 +02:00
"comment": "Ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "cc012d70-0b06-4f46-8c28-9d7506dd2338",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e4ee02a6-9079-4321-83b5-c09a9a7b12a8",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "fd4acfee-a918-481f-b15a-78c7d4f132aa",
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "0e7fc40b-310c-4731-bfdc-fd77031f653c",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3e327c55-10da-4cdd-9662-35b296c93645",
2024-05-24 11:00:36 +02:00
"comment": "Générer ville",
"command": "executeScript",
2024-05-24 11:00:36 +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)",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "ville"
}, {
2024-05-24 11:29:00 +02:00
"id": "7ecfa494-d698-4428-8bae-4c024b2eb9a0",
2024-05-24 11:00:36 +02:00
"comment": "Saisir ville",
"command": "type",
2024-05-24 11:00:36 +02:00
"target": "id=f_ville",
"targets": [
2024-05-24 11:29:00 +02:00
["id=f_vile", "id"],
2024-05-24 11:00:36 +02:00
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
2024-05-24 11:29:00 +02:00
["xpath=//dd[10]/input", "xpath:position"]
],
2024-05-24 11:00:36 +02:00
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"id": "ffb5a045-2e68-4e6d-801f-37fe2d7a1ccc",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "af3b1cb3-b67b-4868-ba4a-353b7a119d52",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "440e410f-fc5b-4d9f-91e4-f890b9e9c8c7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e84077f6-9802-4529-b6bb-dd0cbe1aeb4a",
2024-05-24 11:00:36 +02:00
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a2e1c19b-58ea-4767-b57f-946ec6f7f195",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ebbf611a-7799-4508-9b1a-a3262538b6aa",
"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-24 11:29:00 +02:00
"id": "ea2c1424-4106-4a82-89d7-a32b7255feec",
"comment": "nombre de membres dans ces catégories",
"command": "storeText",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "aa7246b5-6626-4c83-886e-0b2f315746b2",
2024-05-21 14:41:21 +02:00
"comment": "idem",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "663a9452-4167-4c30-bb91-0cd88e32c436",
"comment": "Vérifier nombre de membres",
"command": "assert",
"target": "nb_noms",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "${nb_membres_cat}"
}, {
2024-05-24 11:29:00 +02:00
"id": "91a56875-2fba-4dd6-b1ac-4bd81d67e31f",
"comment": "Filtrer : toutes catégories même cachées",
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
2024-05-21 14:41:21 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "5d8e2c81-7260-4f05-8e1e-b11246faa61b",
2024-05-21 14:41:21 +02:00
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4cf6dc83-4b20-4acf-b72c-3c53cb10dba6",
2024-05-21 14:41:21 +02:00
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9378071d-d8e5-462b-b66d-ec5feaef05d1",
"comment": "au moins 2 membres",
2024-05-21 14:41:21 +02:00
"command": "if",
2024-05-24 11:00:36 +02:00
"target": "${nb_membres_cat} >= 2",
2024-05-21 14:41:21 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e6b6655d-ad92-48c6-9620-83bb881029eb",
2024-05-21 14:41:21 +02:00
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
2024-05-24 11:29:00 +02:00
"id": "e00094aa-c349-4797-9882-d5294c04b7ef",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"id": "65e9ac84-966a-4c49-8b20-d9e42dc8fad2",
2024-05-21 14:41:21 +02:00
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
2024-05-24 11:29:00 +02:00
"id": "31cbb4ee-2e40-45ae-bd14-ea0c99de7928",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "9090989b-ebb1-4b13-9c0b-3f1b38065390",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d785aea8-bdda-426e-ab41-2eaee8abe7aa",
2024-05-21 14:41:21 +02:00
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "614cbd41-9342-4cde-a9f1-9fbe590ace11",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f6a9acea-f89f-4f7c-9482-4f535bc2841b",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "67105636-1763-4157-a571-a321eb2c01af",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "5830c22e-3ad6-4bd1-b721-fa927b18a6b0",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "4a6b8e85-6600-480b-8e16-f4ecc449e5a9",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "00ac421b-cac4-4a8d-8b24-308a7ec91ee6",
"comment": "Parcourir les membres enregistrés",
"command": "while",
2024-05-24 11:00:36 +02:00
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7042fa0d-3c09-4ce4-8407-cf2d7d876405",
2024-05-17 15:39:11 +02:00
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c9bc890b-135e-4895-ae62-3477caca40dc",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "962bfd5c-bc2d-435c-b026-994195c8d2e3",
"comment": "",
"command": "executeScript",
2024-05-24 11:00:36 +02:00
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
2024-05-24 11:00:36 +02:00
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "6390b5f3-3691-4a0b-bc9b-90a6fe718d3b",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "784be5d2-2683-48cb-b6cd-473c524fa654",
2024-05-24 11:00:36 +02:00
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "94aa7f6e-1c40-4ef5-b0de-e3cf12bde373",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "74565202-176e-4a11-a97a-c9b1cac0018c",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "1585f6e5-197e-4b40-a88b-1cf29918c7e6",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "d058737f-0fed-4d12-a472-120c811851f5",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "7018c3d9-7f40-460d-9905-856e25ba15ce",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "4ce0cc02-c622-4657-a584-a69c212b4db4",
2024-05-24 11:00:36 +02:00
"comment": "catégorie mémorisée",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "47a145be-cac7-4f16-a824-58929ee6d613",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dee281d1-e24f-4c2a-8c9b-844e180f6c7e",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7baf6514-7c7a-4c19-9860-2ff69f919b35",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": "numaff"
}, {
2024-05-24 11:29:00 +02:00
"id": "63b60f9e-d4ef-4db1-8c73-8ed958872e41",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
2024-05-24 11:29:00 +02:00
"id": "10fc39a5-a9ad-4e11-96be-e934245e699e",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
2024-05-24 11:29:00 +02:00
"id": "165772cf-fb63-4262-b414-5cede2505a89",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "0cda4ee9-fde0-4f55-af55-9fcf08644a86",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "4472d9b5-ee32-4778-a905-847cd4d99a22",
"comment": "",
"command": "end",
"target": "",
2024-05-15 11:29:19 +02:00
"targets": [],
"value": ""
}]
}, {
"id": "25e25640-41c1-4a8c-a8f3-288fed7fb46e",
"name": "4-01a lister membres plusieurs pages",
"commands": [{
"id": "5f9c60ae-6864-4bc4-b51d-dc19cd9e7866",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
"id": "b8a5a88a-c6d5-459c-9fef-ea83dd92c0c1",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "690a17dc-9419-41c7-a111-6df27be8f641",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "30bfade9-b8a8-440a-afa0-b23f48cdaa3b",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "044ab6fe-0b3f-4b23-8e1a-4c856acec3ce",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "17295ad3-f1ae-4065-8f82-49bda8bd052a",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "edc3fcfe-859d-4694-8ec8-26ea83165645",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "68cefb5c-341a-4a31-a8b0-85b9caa64bf6",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "db2fa63b-7ef1-4fd5-8717-8779a189355a",
"comment": "Récupérer la liste des catégories",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "05a27d05-d3f4-45c7-91f5-55ad386927f7",
"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": "e87fa67d-19e7-49b4-bb16-b88f0b51e991",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
"id": "16b24312-282e-47b9-8499-4a30e3fb90a0",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "af51a31f-e5f7-4c72-9484-e3c7350e655c",
"comment": "Nombre de catégories",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_id_category\"]/option",
"targets": [],
"value": "nb_categories"
}, {
"id": "3dc0bad8-4459-4df2-9bfa-f3afcd2db927",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
"id": "88be8d31-706d-4bdd-8c1b-1c328d8db8c1",
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "5c4da75e-4754-4190-82d2-5abbb1cd38d1",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
"id": "b4b6d496-8900-4abb-b464-b25fed2846d8",
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
"id": "c17e10ba-d942-43c7-954c-4a2e0852db31",
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
"id": "80b1036c-9b14-4faf-ad12-ec628dc74a70",
"comment": "",
"command": "executeScript",
"target": "return ${numeros_alpha}.concat(${num_cat})",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "2b6bfcba-d84e-4f56-b57b-da2bf57de568",
"comment": "",
"command": "echo",
"target": "${num_cat} : ${cat}",
"targets": [],
"value": ""
}, {
"id": "602459cf-be74-4cf7-9b8d-d28b36efc75d",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "854610f7-a1cf-4a96-b117-08a841fdddfc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "93717242-ae25-4829-acd7-89de3a8121a7",
"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": "b4896366-a9ff-481d-9dcc-5b0e7f57d9e8",
"comment": "Traiter les membres déjà présents",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b4c47201-65d8-4e6e-a41c-812818b897f2",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "bd418adf-947a-4cc9-9d90-7db4c87778c8",
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "7ed8a670-17d3-42c1-a9d7-0bd2bc7480c2",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "7177e705-6fb4-4897-aa2c-97cd0d2e3c5f",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "0c1d2e63-90bd-475c-b726-0fe1c9cbadcd",
"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": "865ff171-767f-41bf-9867-8bda00465648",
"comment": "",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
"id": "7f454abf-e347-4846-a516-22457335ef88",
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "3ed185b3-11b2-49e9-954a-98a68bdf5214",
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "36b16814-da4c-4ebd-ae34-fba5c978aaab",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "e9d993a2-0177-4a8e-8d39-a2a37acd209e",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "16ec5b60-7d89-48f4-acb3-fdfbb915eb1b",
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_total_membres} >= 2",
"targets": [],
"value": ""
}, {
"id": "8a82c16a-2df5-44e1-8fce-abc0164a1568",
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
"id": "a7d28a28-f2d3-4ee4-b61d-3efd2c186a40",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
"id": "d692a876-28f1-4b22-8260-4b0d5aeac1c5",
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
"id": "4a4f944c-af73-4baf-a964-158279f6e9d4",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
"id": "24fd1eca-7866-4134-b190-4929523bcfe1",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
"id": "e9b413a9-515a-488a-a87e-618c9748eda9",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "a199a6bd-5a45-41c3-9125-89b8635806c8",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "86212fb9-2054-47bb-983e-8647afdbf26d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e8bbd22e-a1af-4518-9c61-9e41fd6ae5ab",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "97213ee1-efc9-4974-8e62-48bf842f0427",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "4714e8cc-23cc-478b-af99-f823544dd236",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
"id": "4343fd37-6bbc-488e-8dda-eff13a6057b9",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
"id": "d26b8be3-b041-4d2a-a30c-d3e6e36ad75f",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "7287cf8b-b5bd-46c8-a56c-20029d94d9ad",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
"id": "614a98c2-639c-41d1-a62d-04877bc3ec65",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
"id": "7d9219fa-7a57-4ec4-94e2-9a856a41f398",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "9dc0d635-24ec-41a6-86ec-58b9b727a3f5",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "40b68cca-77f4-4ee5-8cbb-de37268667dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "dc40dc15-00c9-4706-bca5-1deeec1dbe5a",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "ea890997-4608-436e-b0b0-f879f1d4017c",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
"value": "lesnumeros"
}, {
"id": "529d1349-1152-4522-bfc5-2d20e969dfab",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "335d25c9-2c94-4e8a-b1df-b81f4befb4fb",
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
"id": "2383220d-756d-43af-9d4c-f87798e552fe",
"comment": "afficher fiche membre",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a",
"targets": [],
"value": ""
}, {
"id": "fe06cb0c-8a1f-461a-9bf9-73c698a3b0ab",
"comment": "Catégorie du membre",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]",
"targets": [],
"value": "categorie"
}, {
"id": "a383bbaa-91db-42da-aaad-56c221470ac4",
"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": "4e48564f-68dd-41c8-a161-084bacbc8111",
"comment": "ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "e908fdf3-47ba-4ba4-9ea7-61b5f1043adb",
"comment": "",
"command": "echo",
"target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "2457ab44-59f3-47e5-b504-e9cde127dfb7",
"comment": "Retour page précédente",
"command": "executeScript",
"target": "history.back()",
"targets": [],
"value": ""
}, {
"id": "15c1b8e1-319f-4c17-b49a-ec3297de940f",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "d82498f4-70d7-4142-b97c-f6d14d7ca14c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "6700a179-f23e-4ce7-bcbb-da896ed6a5a7",
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5ab90d68-84a5-4c23-924f-86e9b8ea6d4a",
"comment": "si pas assez de membres",
"command": "if",
"target": "${nb_total_membres} < 120",
"targets": [],
"value": ""
}, {
"id": "114dbda5-9986-48a1-b8fc-6cd93cbfa2e1",
"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 < 100 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};",
"targets": [],
"value": "lesnoms"
}, {
"id": "9c71e5b5-1bd5-44a3-b402-42e278926389",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "508ba7a8-bff0-4f73-bb20-8bbac0c9f8ee",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "i"
}, {
"id": "87b6e8ea-58ca-490f-b1f4-44c3a312d1af",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.length",
"targets": [],
"value": "nb_noms"
}, {
"id": "479ad9dd-09d8-41c6-aaf2-3c569916e1c0",
"comment": "",
"command": "echo",
"target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}",
"targets": [],
"value": ""
}, {
"id": "3b4a56ae-7165-4b82-827e-93623ef83a7c",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
"value": ""
}, {
"id": "028a8c9d-02b8-444c-b3d0-7b0caa0d9500",
"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": "3b6965db-f603-4d4d-9d49-619142bf0360",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "13af1ffd-ac19-4087-bed1-0c56a790171a",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "7714f38b-f0d8-4a8f-8da8-8324765b1f46",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "6d1e059f-8af1-4cb2-835c-982007ba64d6",
"comment": "Ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "fbd08b97-7529-4015-9422-60d7ec9ea1f9",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "f6f7f579-35db-4dc8-bebc-67be762902a9",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "ffe51133-32f8-4b35-93f5-70e5a981cca8",
"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": "fc2f00be-7ae5-40c8-b9af-94ab48c73744",
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "9eda34ba-83b4-486f-9670-8ea1d3787d1c",
"comment": "Générer 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": "d3c14c43-efce-4c6d-b561-70089f26b99c",
"comment": "Saisir ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_vile", "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": "5258cac1-c8da-4cff-8c06-13d7e3bcb626",
"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": "e04e6e07-2918-4035-b8a6-a0d0de2bf236",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "825221da-e063-4271-a2dc-96d1603de589",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e1de0677-7d2b-40cc-9389-f884574fe373",
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d9ede09d-9a87-421a-be52-c3d51cf2d9c8",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "6739f069-d0ae-4347-9d14-b6b5ba1f75af",
"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": "b6315ef7-8655-4285-993e-6d858e00255c",
"comment": "nombre de membres dans ces catégories",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
2024-05-21 14:41:21 +02:00
"value": "membres"
}, {
"id": "574f25d9-b11b-4b42-9ed5-30f5425ec66e",
2024-05-21 14:41:21 +02:00
"comment": "idem",
"command": "executeScript",
2024-05-21 14:41:21 +02:00
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "f91f6c36-ad5f-4237-a45c-b4199802d706",
"comment": "Vérifier nombre de membres",
"command": "assert",
"target": "nb_noms",
"targets": [],
"value": "${nb_membres_cat}"
}, {
"id": "6295f9cf-164e-4c90-b329-37d8152d66e8",
"comment": "Filtrer : toutes catégories même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
2024-05-21 14:41:21 +02:00
}, {
"id": "cb02a6f2-90b8-42df-aedb-a33901822c37",
2024-05-21 14:41:21 +02:00
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "9d780d99-318f-4d86-a34d-6643c95d1054",
2024-05-21 14:41:21 +02:00
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e2fe96bd-875a-419b-9cdd-65ee346cd8be",
"comment": "au moins 2 membres",
2024-05-21 14:41:21 +02:00
"command": "if",
"target": "${nb_membres_cat} >= 2",
2024-05-21 14:41:21 +02:00
"targets": [],
"value": ""
}, {
"id": "5bb4df35-2cdd-481d-8b30-682723a6ae0c",
2024-05-21 14:41:21 +02:00
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
"id": "02e2d975-ea03-4ade-8d2b-244c46bc71ac",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
"id": "eb229a97-6b19-4015-981d-5929a60b982d",
2024-05-21 14:41:21 +02:00
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
"id": "5e6cd241-3f16-434b-8215-0710c5fe96f1",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
"id": "ceed1d9f-ca7d-4fb3-bc95-56c51f92866a",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
"id": "844396e5-bdbe-49fd-a918-61865e79cd03",
2024-05-21 14:41:21 +02:00
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "17d90fe8-6460-4e77-a98a-33793c794bb1",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "43e73ac7-bece-487d-b827-6d631c7d80f9",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "605fe194-1320-4466-9dc0-451d830f7eb7",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "3f7540b5-a026-465e-af47-0e0a523f74a8",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "85aabfcd-08f9-4b66-b52d-38d522fdfea7",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "b83b19ba-c1df-463e-b475-86fb579896fe",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "799af842-53fb-4499-b4ce-c11e07336dbf",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
"id": "3cbc31e4-1896-4bc5-a805-3e134b264d4a",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "c8647fb6-4f7e-4d09-bfec-4ead1c35bd49",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
"id": "81ba53ec-a01b-4dff-8258-1e45a3bd4ace",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "e67245e8-18bf-4216-b4d1-9a8577250e88",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "cef5916c-3baa-44ef-b179-09bc12cec949",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "f40340cb-c7f2-4d62-b3fb-e71d024f12dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "27f4c57e-ee66-49c3-8553-189bff01144f",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "b75c820c-8cd8-4908-9da4-860004173bb9",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "fa1e8789-53f1-4896-9baf-c36a78739b19",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "af746f85-7a5e-4c53-aaa6-c6868f4b8bac",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "a36e2b0c-0592-4986-b29b-f459f2bedeaf",
"comment": "catégorie mémorisée",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "ab8a0b81-b0ba-4a98-b2a6-21d1e0f0e1d6",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "a9272408-2d37-48d1-8595-35aeeb43462a",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
"id": "cfab7f82-617f-47ba-ad58-9d7faf8a6864",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "dac4b1ec-1e0a-4d78-9a8b-24f0b16033bd",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "30271924-fa9f-4cc4-ada8-71097044dc98",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "6a9b4aa6-b054-4215-8178-a82c8e3f3618",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "d202cce0-29c4-48ae-9b7b-08d8c99e8da3",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "5d00e23a-57ef-46a0-becb-4091ffa47ed7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "91ef7a3d-27a5-4d1a-bb91-5ffdb927bb64",
"name": "4-02 lister membres sauf catégories cachées",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "44094def-5892-4f3f-a645-1170d72de5b4",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0fb96b1f-04a5-4d84-8d42-8ad59a7d996f",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a508b0ea-759a-4c9f-a806-e5aff4164e23",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "e29fff9a-d6a2-404d-a2f7-e2fcb3b05bc4",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3e2dd02a-1a68-4327-ae00-6ae88ccb86ed",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "423ce3d8-c9e4-4ad2-abba-6c20a76659c1",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "777b3fbc-4d2a-4823-b41f-cd3e56a88849",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "b36a32c3-ece0-4338-a300-895c14d4d965",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "226e9450-ebba-4f29-8237-5a0999b7d819",
"comment": "Récupérer la liste des catégories",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7143ddd7-d2d0-4aef-8626-fcbc1b2e4002",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dbad02d1-8460-4433-82de-90c40bf622b9",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "05d8419c-7c86-4f67-9731-d6f298468a96",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "f846c378-f798-4a98-84e3-3eb346a0f5b4",
"comment": "Nombre de catégories",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_id_category\"]/option",
"targets": [],
"value": "nb_categories"
}, {
2024-05-24 11:29:00 +02:00
"id": "8e6c8a0d-02a8-4e63-90f0-aa109fec26c1",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "499a79a4-44f2-4ff7-ba23-3c8e158bcba9",
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d781aab1-dd4d-479e-ab8c-a391c6a450f0",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "9fce64d5-e4c2-4389-b8f0-0ba41d140c8c",
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "a71654df-b584-4fbe-a325-ba98fd10c577",
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "5143da8e-ba7d-4918-aa57-6efaa6acf405",
"comment": "",
"command": "executeScript",
"target": "return ${numeros_alpha}.concat(${num_cat})",
"targets": [],
"value": "numeros_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "ff06723a-4e7a-40b7-9266-3354e358cf6f",
"comment": "",
"command": "echo",
"target": "${num_cat} : ${cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4b9c1dbe-52e3-4f74-9fb8-f18103d0c4a5",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "fa89a209-7173-49af-81fb-54ee9523f0ba",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4839ebe0-e441-4f4d-af1f-324a378db89e",
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "e06c9e97-2f70-4651-8689-47a5f3a3a2bd",
"comment": "Afficher les catégories",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "7909c8e3-5efc-401f-9b78-cbe6cb99e182",
"comment": "",
"command": "while",
"target": "${i} < ${nb_categories}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9e47641a-d5a9-42da-b622-328bc1dabe22",
"comment": "",
"command": "executeScript",
"target": "return ${categories_num}.at(${i})",
"targets": [],
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "c6c7d10f-b87f-4e18-9f8c-42e794a2c548",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "df80777b-02ae-4f4b-8df5-c42240e70f9e",
"comment": "",
"command": "echo",
"target": "${i} : ${categorie}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c0df0e94-678e-42d1-a144-afd399fec3a1",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "91ff712c-4a7b-44c8-852e-55b81d47a4cc",
"comment": "Traiter les membres déjà présents",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4e349809-3a92-4239-9ae2-eb1888e351f9",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "8fdeb066-bbd2-4acf-921b-97f22290b7a2",
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"id": "38440cf4-eb2b-470f-844a-39fe9e8cc636",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "921fa05f-324c-4b64-93a7-99f38653c8be",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "b0d7dd5d-43ea-4cc6-9411-408fca036655",
"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-24 11:29:00 +02:00
"id": "e269bead-588c-44f0-8c28-8bd4f6203a4f",
"comment": "",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "8d008c57-be62-4b85-acc2-6112bc5e7770",
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "de1c30f0-79bd-4618-9921-67eef1aeb0bd",
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f5ec189c-e49f-44e2-82e5-6a8ff06c84bc",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7daaa007-177b-464d-92d7-5a579f923fda",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "65036379-9b6f-47bf-b035-4cfb2c5224db",
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_total_membres} >= 2",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "fb051cd6-1781-4d85-8c12-141727ebadc0",
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
2024-05-24 11:29:00 +02:00
"id": "a12e6ac3-44ad-4dc4-9cf8-9ddb3307310d",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"id": "0b5e990a-a563-4804-8c8c-ff3c72a25ac7",
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
2024-05-24 11:29:00 +02:00
"id": "de6299ad-2c41-4d4f-9be3-03b52570cd29",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "30e1f657-1c26-4bad-b40f-baf7e534c38e",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "eac1e541-5f49-4381-bd1d-7b9940e5d8be",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3b6f25ab-de35-42ae-8e10-45e8897e3086",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c337335c-9802-41b2-9039-2330661fa9c3",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ae2de33d-e456-42ff-bab9-b22e81278490",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "2bc01878-0396-4c1e-829c-5269db265d17",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "1b0d6414-b1a0-4cbb-ace7-e0773333ef5d",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "c65bd666-3468-42a3-a08b-b9123bf518ce",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1ba32db7-8161-4b92-959b-c91dae085f83",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6f3aef8b-133f-45be-97ec-053a89359a6f",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "5648db01-774f-4524-a485-ccc8f601c770",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "ce22ed1a-78ae-4cdf-b891-cd0f0ca92fa7",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "c9951ea1-ce87-41fa-9abc-34799278e179",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "b40f475f-b890-4295-91c0-6a9c4bd950dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "91d75ba7-e12b-43a1-ac78-e132326a9f51",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "a3337044-bcf4-4ed6-9e83-f4fee3fe0484",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "a0203550-7e83-49df-bd5d-708bcd34b0a0",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "eb4cfd97-d688-4b13-9a22-6dccc472770c",
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"id": "a7870754-5bee-41e4-b293-7050ea0731e3",
"comment": "afficher fiche membre",
"command": "click",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "80975742-8dbf-4c88-b0a1-12684a81d18c",
"comment": "Catégorie du membre",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]",
"targets": [],
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "da73d314-a4df-497d-a538-5ec456f2b7ea",
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "18e8efe9-1991-48bc-a0ae-441f08baac6c",
"comment": "ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "d99af581-f989-48a6-a186-1be1ffd27e4d",
"comment": "",
"command": "echo",
"target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "09757cfc-8f04-4456-8676-90bb91dbad74",
"comment": "Retour page précédente",
"command": "executeScript",
"target": "history.back()",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e4b1f50a-0d73-436e-b080-d5ac18901c78",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "6f66696f-9095-42a7-a3d5-a5d529cc2dbe",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "29d28440-1138-4051-8e64-874fd06db9c5",
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "49841a76-f86c-40d2-9775-4dee82495130",
"comment": "si pas assez de membres",
"command": "if",
"target": "${nb_total_membres} < 20",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9be59ed8-d69c-41e3-bd30-b98128307369",
"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": "ca1bbf28-07e8-4c08-951c-091e496a9038",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4eae93aa-d7e1-4387-8fd1-5e35f25550c6",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "64c5a987-1244-4304-8aa1-c5f832c9fb39",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.length",
"targets": [],
"value": "nb_noms"
}, {
2024-05-24 11:29:00 +02:00
"id": "45e4e37a-fdcf-4176-a987-bf3aee9a3dbb",
"comment": "",
"command": "echo",
"target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4f3b6610-df08-4e94-9def-70c61b777ec9",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d8a7fb49-a1d0-41ba-b254-697aac66ab02",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3aba2105-2f80-40b7-a087-b09792cbd359",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "0eba07c9-5569-429d-9b4d-4e17412871ce",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "a0a91628-3459-4eb1-b079-5c7e72c59151",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "ce64b9de-0b72-4a11-9665-6c4d18777f9c",
"comment": "Ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "b8c1924e-3d93-45a2-9d10-c6fe6931e451",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d9b7da2c-a458-4406-ad66-8ba48e9b171d",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "ee491f78-921e-4217-ad0b-12da3515c00c",
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "248c7a3b-af8c-4430-b3dd-c08774c7fc02",
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "fd59fdfa-40e1-40d5-b487-8311c41fdc86",
"comment": "Générer 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"
}, {
2024-05-24 11:29:00 +02:00
"id": "79918399-a69e-4815-a44c-daa9533ac10c",
"comment": "Saisir 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[4]/input", "xpath:position"]
],
2024-05-24 11:29:00 +02:00
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"id": "b8312fab-db26-4c94-bf73-a92975a2df9d",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "de229a07-6a36-4519-8c46-3e7097fc485e",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "e8d3bc93-8eab-4fd4-b24a-e85112abad20",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "17e53936-341c-4176-8b27-3494afd028d2",
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "54b32a82-a7d6-4a4e-bd86-a93ce8a9cce7",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "35c7f1ee-c6d4-4c68-8105-52f683ed4a42",
"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-24 11:29:00 +02:00
"id": "f9f322c8-0de9-48e9-8990-2f021c278f01",
"comment": "Nombre de membres non cachés",
"command": "storeText",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]//small",
"targets": [],
2024-05-21 14:41:21 +02:00
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "4d07de3a-06d5-40ef-ba31-9053846c1fe1",
2024-05-21 14:41:21 +02:00
"comment": "idem",
"command": "executeScript",
2024-05-21 14:41:21 +02:00
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "56ab778a-c590-4196-8168-533eaa8ab61e",
"comment": "",
"command": "echo",
2024-05-24 11:29:00 +02:00
"target": "nombre de membres non cachés = ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3ed9c9d2-68a3-40fc-a135-bc73703f1505",
"comment": "Filtrer : toutes sauf cachées",
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]",
"targets": [],
"value": ""
2024-05-21 14:41:21 +02:00
}, {
2024-05-24 11:29:00 +02:00
"id": "0b82dd50-4d42-4002-a889-e16a258839a8",
2024-05-21 14:41:21 +02:00
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "c8368860-7f40-48b4-aec8-9543f9ffeecd",
2024-05-21 14:41:21 +02:00
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e17bc397-b18c-42d7-8146-4acd2351a3f6",
"comment": "au moins 2 membres dans la catégorie",
2024-05-21 14:41:21 +02:00
"command": "if",
"target": "${nb_membres_cat} >= 2",
2024-05-21 14:41:21 +02:00
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "49a1742a-5cb0-4cb3-8847-34b3652da717",
2024-05-21 14:41:21 +02:00
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
2024-05-24 11:29:00 +02:00
"id": "60e9ac85-6fa3-4c79-8202-4f3731f25b48",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"id": "95bb3f2c-ffcf-4baf-883e-8a38857de1b8",
2024-05-21 14:41:21 +02:00
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
2024-05-24 11:29:00 +02:00
"id": "427d7499-800f-48c5-9ccc-42978c99d3b1",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "8902ea3d-d6bd-4290-98c5-9bac2d0f3449",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "af6f0b44-a25a-4b66-884e-e4ad1e47e416",
2024-05-21 14:41:21 +02:00
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "3a95b6da-d2a0-40fa-9b78-e1c3a6b88328",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4a0770b1-3a7c-41f0-ac7e-a080d846c12b",
2024-05-21 14:41:21 +02:00
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0e64841b-3923-40d2-a8b3-0c2dddaddf13",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "779f1ee1-cf59-40c2-818b-f971069bd983",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9c99a149-7ce1-45de-a63e-e6d235d81078",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "1baf6e10-120c-43ec-a572-1ff5140871fc",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "8fdd620d-447b-4122-be2a-3a908d4855e8",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "fee67cf0-f500-4c82-b724-e7a8739674c8",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "625eb23c-a659-4f9a-8f1a-88e33f123834",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dbf0ae36-18b8-48ea-a665-27a138ae8a11",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "178ac47f-e78b-41a0-a1c2-2f46307f3c9d",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "bdda7799-804f-4755-b4ea-3fe26a983750",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "5111d81d-063e-414c-97ca-3334f6420fac",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "206637b0-0b6e-47c7-bffd-7a67602a6581",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "31c08e88-7eff-4b43-a4f3-67fca427f742",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "58019ba1-317d-459c-b6be-6940ee58c43c",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "a2c25509-995c-4694-8f38-07f7eb46dc11",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "e1dfa8bf-f6d2-44ef-86d3-6459b3a8c434",
"comment": "catégorie mémorisée",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "c519db38-1a13-4778-b8ab-886a0735a6b1",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "666e71ac-3851-42d2-b266-4a8d1a6e25c0",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "7b8dcbb8-6572-4f62-ba4f-95fff0fadad9",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
2024-05-24 11:29:00 +02:00
"id": "40ec0b9a-9cf2-4d44-bdc3-31334001f309",
"comment": "Catégorie non cachée ?",
"command": "if",
2024-05-24 11:29:00 +02:00
"target": "${categorie} != 2",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9203bc8a-d5fc-4a31-9e00-420cb71a8ac5",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
2024-05-24 11:29:00 +02:00
"id": "6788d22a-aad1-40da-b1fb-29aeddda7f16",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
2024-05-24 11:29:00 +02:00
"id": "4fab279e-5973-4e6a-91fb-d39407661b32",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "ad985ad0-5709-4a25-a31e-557f0c6513ad",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a252f259-7a82-4e86-9af9-3622a048850e",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "4ef9d97b-6b5d-40f2-98c7-5bf3737fcc87",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
2024-05-24 11:29:00 +02:00
"id": "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf",
"name": "4-03 lister membres d'une catégorie",
"commands": [{
2024-05-24 11:29:00 +02:00
"id": "d56e4c68-de82-463b-89e7-7ad64f95f9b2",
"comment": "",
"command": "open",
2024-05-18 11:17:47 +02:00
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4d200ae2-3464-44b2-a4fc-d139e7d1674d",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "f858b24e-6a6c-4293-a030-457b09457441",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
2024-05-24 11:29:00 +02:00
"id": "7781354f-dd6c-4745-86c5-ea49a4fee814",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "99ad8fd2-6491-4e56-9aed-f652ab312e9d",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
2024-05-24 11:29:00 +02:00
"id": "36203ae6-1ab9-4595-804e-48e0e579e350",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
2024-05-24 11:29:00 +02:00
"id": "0f6329ff-2446-4915-8254-c926951597c1",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "917499e6-fbea-4bca-9daa-8a36b1ebc514",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "83d31864-7e84-4bda-ac64-2ad75c740b64",
"comment": "Récupérer la liste des catégories",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "4b641991-eedb-4176-a37c-4d0a85e5045f",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "c0450afd-3299-485e-9eb3-b2ab85daf1f3",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "d2d05a94-f4ee-4de3-ac47-214cf2e41523",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "b4271895-cd39-4736-98df-68305fb123e9",
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "6ab6904a-8b83-4148-bcc9-33eb807aa5c4",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "a6a239ef-4432-4b90-b6da-ef5b46592333",
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "a69be34d-71c0-436e-9d54-ff18fbef103c",
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "751aae9c-fcc4-44c7-a049-884963981c29",
"comment": "",
"command": "executeScript",
"target": "return ${numeros_alpha}.concat(${num_cat})",
"targets": [],
"value": "numeros_alpha"
}, {
2024-05-24 11:29:00 +02:00
"id": "335345c1-50ec-49c3-9a31-f8dbd38bed78",
"comment": "",
"command": "echo",
"target": "${num_cat} : ${cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9d6293a8-63bc-48b7-8808-2aac0f347a34",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "e2283ec0-00fd-4c07-987d-ec96032df8fa",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "a7fd532c-fb17-4042-b101-8ea51aaba965",
"comment": "Afficher les catégories",
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d0cd179f-d57a-4bf1-b3ed-9f9f6c6d75a8",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "7cf137db-4fec-4eac-98e4-cca0bf8f9f7f",
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"id": "a289aa01-6e01-4bc9-a241-2477117a2232",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"id": "a36849f9-8eae-47a4-94fa-dfc944b2fd90",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d3905ed9-1492-4301-a1f3-eb2b132239b5",
"comment": "",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
2024-05-21 14:41:21 +02:00
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "73a6e625-87c0-452b-a0cf-50b6fdd249b3",
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "fcd6e32d-48d0-4b14-8dfb-b38632b44680",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1955755b-3581-4846-9396-e3d725a94293",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "93993815-52df-4730-a581-4ae1df772f44",
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_total_membres} >= 2",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "160220dd-aed6-4643-be17-5305c847fa08",
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
2024-05-24 11:29:00 +02:00
"id": "c1aec9fa-d5cc-4ed5-9091-991ba4c11ac8",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"id": "0ab9a590-3f37-4e71-b687-8e8c268228fe",
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
2024-05-24 11:29:00 +02:00
"id": "de057e1f-599c-4573-bf97-1bc1e81b3395",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "a8d6090c-20ba-41ab-be9e-b7a7b278e500",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "32e43f66-3c46-48bb-b583-fca28a65edac",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "9cf6b00f-f6de-44e6-a981-e7bd8f819a7a",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "36d022e6-d557-4e37-973f-9fc4adb08a11",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "1d77ac00-6edd-4e30-b5ec-2f393133cd61",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "27dfae14-a50c-421d-9863-88ec3f74712d",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "6da61310-6df0-4c8f-af2d-ddaf148b9b23",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "1b094189-c71e-4862-978f-6fc2604936ce",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "09a257c1-da2e-4edb-9eb6-f316793a5cc4",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "dc32607b-03ef-415f-956a-f1d85e2ef1c6",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "332de2d1-0a28-4ca5-b5c4-d59afa19e7d8",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "cba63ad7-df7e-4c89-8140-677c198ebe31",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "8a0862b2-7da7-4051-80bc-3faa5354fe66",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"id": "5ff86d7e-b086-4084-b551-e58e113593ce",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "41808bda-2512-4a4f-b467-a0db3c1a69f3",
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "59958a98-a26c-4ecb-9d1d-390b08ccb457",
"comment": "",
"command": "echo",
"target": "${numeroAffiche} : ${nomAffiche} - ${categorie} - ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "79d1d84f-6210-4d0b-8754-164206b07cdf",
"comment": "Retour page précédente",
"command": "executeScript",
"target": "history.back()",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ed7f874a-1dd2-405a-85f8-daef27c4b214",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "efb790f8-0464-4565-83a8-b10d661eeb7e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "8b9580b5-d8d5-43b0-9bdb-63a4aa1394d0",
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b5bc60a1-69f7-445d-ae9d-6401aee0cd90",
"comment": "si pas assez de membres",
"command": "if",
"target": "${nb_total_membres} < 20",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": "c1b83aaf-5ea1-42d6-9a1c-7c485df19be1",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "d8ed8e81-a1ab-430c-9c96-4c0655e2e53b",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "bd195c84-72ec-4beb-a0d8-18ea9206020e",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.length",
"targets": [],
"value": "nb_noms"
}, {
2024-05-24 11:29:00 +02:00
"id": "2cd909e4-29ea-4980-9234-fec73248cb3f",
"comment": "",
"command": "echo",
"target": "i=${i}, nb_total_membres=${nb_total_membres}, nb_noms=${nb_noms}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "608e596c-a258-42c3-9b67-6aaf9f24458c",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ec54e45a-4c2f-4e4b-ae09-e725d148908b",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "f5ee520a-509c-4273-b3dd-129e99a866fa",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "87dcb491-ba02-40ea-953c-3d5413b56c6c",
"comment": "Ajouter numéro catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ebeaf6cc-a9fd-4a12-a113-a7a01387b5ac",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "6bec2cff-8d48-43b9-a49e-762f5c2c125f",
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "876ce548-9f68-4016-ba84-fca1e93242ac",
"comment": "Générer 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"
}, {
2024-05-24 11:29:00 +02:00
"id": "e42f8cba-842e-4c69-ac79-2018f5411b94",
"comment": "Saisir ville",
"command": "type",
"target": "id=f_ville",
"targets": [
2024-05-24 11:29:00 +02:00
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
2024-05-24 11:29:00 +02:00
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${ville}"
}, {
2024-05-24 11:29:00 +02:00
"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": "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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "ebf58d38-6459-4d96-8682-13281a853e78",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "ad068305-bbad-4c8b-9e0f-09ee29762e99",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "05f8b4d1-4836-44c5-b87d-82ebf94aba36",
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "31d4e3a3-a702-4a2e-9ff5-bfdfece5194e",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "e84e5bf6-d95e-42e5-9431-be271a3cc160",
"comment": "nombre de membres dans la catégorie choisie",
"command": "storeText",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]//small",
"targets": [],
2024-05-21 14:41:21 +02:00
"value": "membres"
}, {
2024-05-24 11:29:00 +02:00
"id": "ede3cb4b-0697-4b51-9cbd-bd2d5ece6aad",
2024-05-21 14:41:21 +02:00
"comment": "idem",
"command": "executeScript",
2024-05-21 14:41:21 +02:00
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "9e450853-15c1-47f8-bb5a-8fbccf03daa5",
"comment": "",
"command": "echo",
"target": "nombre de membres dans la catégorie ${num_categorie} = ${nb_membres_cat}",
"targets": [],
2024-05-24 11:29:00 +02:00
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "78c4caf5-7f2a-4c85-a985-789651423ef7",
"comment": "Filtrer : catégorie choisie",
"command": "click",
2024-05-24 11:29:00 +02:00
"target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "bd957d5a-93fd-4700-98ec-f40cc7ea396d",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "57849947-9003-4a3f-8293-15389de5d83a",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "952aff21-5099-4f7b-b407-f83969dae7d2",
"comment": "au moins 2 membres dans la catégorie",
"command": "if",
"target": "${nb_membres_cat} >= 2",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "ca29eeb5-b43e-4fa8-951a-0ef1fe627584",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "5c4a41df-cc20-45bd-a95b-0d70433f7aba",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
2024-05-24 11:29:00 +02:00
"id": "cebfb04f-538b-4e6b-8795-c7dc82bfff02",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "95956761-4a75-4426-a47a-38b762c5e1dd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "a469eab1-825f-4538-b01b-04106df281fb",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "e6c1a7a6-af4e-4c5a-b552-cc1c567574d0",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "cdbcea32-d3c3-4361-a86b-df4e67c43850",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "2877628e-6596-4f33-b9de-f7be8eeb69f3",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
2024-05-24 11:29:00 +02:00
"id": "f034b1d3-a489-4604-bd30-18d6b91c7722",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "08b56187-4d2f-4242-8cb8-828910810b50",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "be58dd04-4119-468c-b4f0-631be0a68e51",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "0589fb6b-3c55-46f5-bd6d-1873ee8ec922",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres_cat"
}, {
2024-05-24 11:29:00 +02:00
"id": "4adcb85f-e352-4d3f-9c86-93cbc82b161d",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"id": "55203e0e-99bd-4b68-a0bf-7af85e094fb7",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
2024-05-24 11:29:00 +02:00
"id": "3d0c62a0-d98d-4ec9-a9ac-c81ad900d41b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "0cc31ccc-c915-4c0d-b650-21be38317551",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
2024-05-24 11:29:00 +02:00
"id": "07ac8ef0-6775-4b2c-844e-0b2455e6060c",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
2024-05-24 11:29:00 +02:00
"id": "6b4ab061-0e5f-4788-a7a4-a7b2ac4f5981",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
2024-05-24 11:29:00 +02:00
"id": "a8a0cbbf-6225-41a6-8c79-9dab3b40096d",
"comment": "catégorie mémorisée",
"command": "executeScript",
"target": "return ${lescategories}.at(${i})",
"targets": [],
"value": "categorie"
}, {
2024-05-24 11:29:00 +02:00
"id": "b76359fc-56db-478c-9f21-f76e453d7882",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "153a2dc9-d3ea-436a-852d-e91e73e276db",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom} cat=${categorie}",
"targets": [],
"value": ""
}, {
2024-05-24 11:29:00 +02:00
"id": "8db0fac1-9192-45e0-abe9-9cf95d22a7ff",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
2024-05-24 11:29:00 +02:00
"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}"
}, {
2024-05-24 11:29:00 +02:00
"id": "ea653d4e-6a58-4dd8-85ee-ed20fe8e0f38",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
2024-05-24 11:29:00 +02:00
"id": "56191866-212b-4ac5-b734-d9f90450fa85",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
2024-05-24 11:29:00 +02:00
"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"
}, {
2024-05-24 11:29:00 +02:00
"id": "7471f693-79b7-4e17-810d-195d48bbbcde",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "2f1dd424-4188-4ff9-ba9b-63c1085b89d0",
"name": "4-04 lister membres tri nom croissant ",
"commands": [{
"id": "e64962e4-bae9-440d-9189-76cd2fa7f16d",
"comment": "",
"command": "open",
"target": "http://test.paheko.localhost/admin/",
"targets": [],
"value": ""
}, {
"id": "8fc4d07c-4a4a-4ba1-b502-4efdae84cdba",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "93227c14-1dd9-4720-a53d-fee9e3dfeb9f",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "a2d7b0c4-336a-412b-acf4-fd1d2711c847",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "6a19498f-fc5e-4917-a70e-ad8632a8aad6",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "8aa29ec9-ae3d-4eb4-84f6-0a741ed0028e",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "9f1f0ced-486d-40a6-b00b-2f52d4d826d5",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "f4da4637-660c-4afc-917b-d426c9b11119",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "ef65ebfe-c096-48da-80c2-b803809b18c1",
"comment": "Traiter les membres déjà présents",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4ab36927-82ac-4ce2-a210-06e94bf58b80",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "e9a4f284-bdf9-4d9c-ac19-d2a64d7039bd",
"comment": "Init liste des noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "d143dc86-7f62-4318-b8bc-ed4088803953",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "08ca6a60-d1a8-42b7-a342-d82982cc03a0",
"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": "239f4280-e9ee-40ad-98c3-3655bdb00a6a",
"comment": "",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
"id": "45449b12-411c-47e3-bb80-cbf18c7c9a72",
"comment": "Nombre de membres",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_total_membres"
}, {
"id": "c3a99808-32d2-42ca-b834-3d76b2a3b565",
"comment": "Filtrer : toutes même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "d3f76be5-24d2-44b9-a2f1-4df523f0518b",
"comment": "Trier par numéro",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "05674758-e12d-470f-8f6e-9f64474be287",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c83e0b1f-2905-4d9b-801a-910a102b9a26",
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_total_membres} >= 2",
"targets": [],
"value": ""
}, {
"id": "0167c208-055e-465c-bb77-fd24fd6d3e15",
"comment": "premier numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff1"
}, {
"id": "4c0734c8-ab66-48ff-9ec5-cdbbfa63188f",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff1})",
"targets": [],
"value": "numero1"
}, {
"id": "10873a35-d125-465f-947f-6bb3048626cf",
"comment": "deuxième numéro",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span",
"targets": [],
"value": "numaff2"
}, {
"id": "c554483c-0e35-4205-89eb-24b4c56b5345",
"comment": "",
"command": "executeScript",
"target": "return Number(${numaff2})",
"targets": [],
"value": "numero2"
}, {
"id": "700a53cb-a9bc-4cc0-ab25-e013f6d08ce2",
"comment": "",
"command": "if",
"target": "${numero1} > ${numero2}",
"targets": [],
"value": ""
}, {
"id": "b7edaa53-da41-48c1-b55e-e0914991ebad",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]",
"targets": [],
"value": ""
}, {
"id": "d3618994-c650-4ee7-9eac-fcfc27c9b5c3",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4de276df-e05c-4860-8943-7087c7c3bb64",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b6ca1c3c-a512-4fd2-8ab8-b5d9fc4ce4e5",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "7c192679-bb22-4be6-b2dc-c937545ba880",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "0ccdcc1e-9dd8-4341-8d6c-b2925c352ebd",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "nb_membres"
}, {
"id": "5f8669a8-2d5c-4d06-947a-317c385da090",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
"id": "0fd03bca-021e-4a1e-8621-777ce6aada58",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "1f79c618-d024-405a-afc6-59ccf798cf4f",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
"id": "fb584f9d-9003-435e-a022-a11f9444c8f2",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres"
}, {
"id": "4b0afe47-a133-4ade-b40f-f444c012d6b1",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "5fef2f36-43a9-47c7-bf5d-270bb05e5e06",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "77dc720f-ecca-4afe-8226-fe7aba7a0b23",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "88dadd06-75e0-4867-be31-7c76bb102fbe",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "952a0b02-5931-406a-b0a4-4a24ec5844d6",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))",
"targets": [],
"value": "lesnumeros"
}, {
"id": "6ea880e7-39fd-4ca2-8c5c-98d77656c159",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "c383ed9e-ff7d-498c-89ea-c59b6c67a93d",
"comment": "Ajouter nom à la liste",
"command": "executeScript",
"target": "return ${lesnoms}.concat(${nomAffiche})",
"targets": [],
"value": "lesnoms"
}, {
"id": "f6f9ec50-8ad1-4188-b923-615b143e4dc3",
"comment": "",
"command": "echo",
"target": "${numeroAffiche} : ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "bed29913-86be-4b83-b139-8ed3df2fb4b3",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "55e9d64b-f4eb-46a4-b992-221d50119dd8",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "1e99dfc8-f50e-47d3-977a-2cdcf0d432f3",
"comment": "Générer de nouveaux membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8bdb469c-a5d1-457c-bbcb-8aa766a9860d",
"comment": "si pas assez de membres",
"command": "if",
"target": "${nb_total_membres} < 20",
"targets": [],
"value": ""
}, {
"id": "83d5fd46-5f0a-40d0-acf8-8e20eaeefef6",
"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": "2db011c1-0697-4f86-9bb6-655551b069a2",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "087a4952-fb5d-4919-8a30-e44b81639d98",
"comment": "",
"command": "executeScript",
"target": "return ${nb_total_membres}",
"targets": [],
"value": "i"
}, {
"id": "48fab53a-085a-4e52-b30a-bee5c6b659a2",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.length",
"targets": [],
"value": "nb_noms"
}, {
"id": "b2655aa9-b4f0-476f-bca3-f99a9dc74c1a",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "while",
"target": "${i} < ${nb_noms}",
"targets": [],
"value": ""
}, {
"id": "b12d620e-05a4-45ac-8360-b9e5251a936b",
"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": "11af7873-5914-46c9-94fe-454a6969e1ca",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "0ac9130f-c43e-490a-a899-8b8c8ef1be92",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "a4ac6c5a-0d98-42c7-87a1-91c5668ef4a2",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "48f23123-f0c9-47a5-8651-bf573f9449fa",
"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": "4c8e8aae-d457-4170-a566-cb8fa6525faa",
"comment": "",
"command": "echo",
"target": "Ajout de ${nom}",
"targets": [],
"value": ""
}, {
"id": "d5be3f05-2703-475f-a740-fd4a8834c9e0",
"comment": "Générer 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": "46cc72ca-6556-48f8-a7aa-e904ea441a0b",
"comment": "Saisir ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_vile", "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": "91aed930-5be2-480f-a064-293104ef5c3d",
"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": "889082e3-5f3c-4096-8274-e915481cee31",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "1fd5a72e-2d74-4d69-8132-6967633ca863",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e17bbbd2-5468-4aff-a35d-f50728b59718",
"comment": "Trier les membre par nom croissant",
"command": "executeScript",
"target": "let tab = []; for (let i = 0; i < ${lesnumeros}.length; ++i) { let o = Object(); o.num=${lesnumeros}[i]; o.nom=${lesnoms}[i]; tab.push(o); } ; tab.sort((a, b) => {\treturn a.nom.localeCompare(b.nom); }); let noms = []; tab.forEach((e) => { noms.push(e.nom); }); return noms;",
"targets": [],
"value": "lesnoms_alpha"
}, {
"id": "ddbe0044-8e6e-4188-90fa-53893ed54ea8",
"comment": "idem pour les numéros",
"command": "executeScript",
"target": "let tab = []; for (let i = 0; i < ${lesnumeros}.length; ++i) { let o = Object(); o.num=${lesnumeros}[i]; o.nom=${lesnoms}[i]; tab.push(o); } ; tab.sort((a, b) => {\treturn a.nom.localeCompare(b.nom); }); let nums = []; tab.forEach((e) => { nums.push(e.num); }); return nums;",
"targets": [],
"value": "lesnumeros_alpha"
}, {
"id": "16da5cf7-423e-4c61-bdf7-858740d9c0db",
"comment": "Afficher les noms triés",
"command": "echo",
"target": "Tableau des noms triés",
"targets": [],
"value": ""
}, {
"id": "42e1a859-0743-4dcc-86b9-4132ece09bc0",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "71cb079a-de1b-4043-a3b2-5be6cdfd42e5",
"comment": "",
"command": "while",
"target": "${i} < ${lesnumeros_alpha}.length",
"targets": [],
"value": ""
}, {
"id": "e9571b96-1cff-41f5-ba4c-2f0645310f03",
"comment": "",
"command": "executeScript",
"target": "return ${lesnumeros_alpha}.at(${i})",
"targets": [],
"value": "num"
}, {
"id": "2093e80a-76ee-4c17-ae32-3a7a96b7752c",
"comment": "",
"command": "executeScript",
"target": "return ${lesnoms_alpha}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "95ef120d-e00f-45bc-81d9-c9e6d34eaae4",
"comment": "",
"command": "echo",
"target": "${num} : ${nom}",
"targets": [],
"value": ""
}, {
"id": "4435ffff-14ec-415c-a4bb-fa1113c1bee0",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "1b0183b4-0169-4b2d-93fb-6604b8c41ccf",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "463f6e21-e4d4-4486-85e3-358d327b0406",
"comment": "Vérifier les membres",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "89ed4246-ad91-4b1e-bb1c-5b85800fc91f",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "5918f687-f08f-4a1b-b62d-5331dc89b22c",
"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": "41551d04-8449-4477-b917-23f09e714661",
"comment": "nombre de membres dans ces catégories",
"command": "storeText",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
"targets": [],
"value": "membres"
}, {
"id": "8eca30a9-c806-48d3-9139-e635d2e0e8c2",
"comment": "idem",
"command": "executeScript",
"target": "return Number(${membres}.split(/ /)[0])",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "23f2868a-9036-471b-a8ae-34dd133ec5d8",
"comment": "Vérifier nombre de membres",
"command": "assert",
"target": "nb_noms",
"targets": [],
"value": "${nb_membres_cat}"
}, {
"id": "834f2a2a-4fba-4aa2-bc78-4286b0de415b",
"comment": "Filtrer : toutes catégories même cachées",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "12f52c5d-2788-4089-ada8-9536aa0eaba9",
"comment": "Nombre de membres sur la page",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "7377c6d0-36e4-4017-96ab-29a975443631",
"comment": "Trier par nom croissant",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"identity\")]",
"targets": [],
"value": ""
}, {
"id": "ff6342ae-dcc7-4d66-9405-e732b5c57029",
"comment": "inverser le tri s'il est en ordre décroissant",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "fc859ed1-b3d8-46b6-8636-4e392a764729",
"comment": "au moins 2 membres",
"command": "if",
"target": "${nb_membres_cat} >= 2",
"targets": [],
"value": ""
}, {
"id": "1d5eb444-2bac-43e5-97bc-b5ee41784bd8",
"comment": "premier nom",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/th//span",
"targets": [],
"value": "nom1"
}, {
"id": "5098badc-0505-4cf0-9252-0b43e57f167d",
"comment": "deuxième nom",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/th//span",
"targets": [],
"value": "nom2"
}, {
"id": "d01a9e87-44b1-4424-9776-56bcc062a2dc",
"comment": "",
"command": "echo",
"target": "premier = ${nom1}, deuxième = ${nom2}",
"targets": [],
"value": ""
}, {
"id": "8d077606-6bfa-4957-96d0-d7e66b32b5e3",
"comment": "",
"command": "if",
"target": "${nom1}.localeCompare(${nom2}) > 0",
"targets": [],
"value": ""
}, {
"id": "010b81ec-8d45-42fd-a299-99daa52d2772",
"comment": "Inverser le sens de tri",
"command": "click",
"target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"identity\")]",
"targets": [],
"value": ""
}, {
"id": "e262265a-4b5e-4573-8d76-fcdabd6464a6",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c02f5201-8fbe-4890-901a-913df2e001dd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d4f79eee-b23e-485b-8c72-82496276bdb6",
"comment": "",
"command": "echo",
"target": "nombre de membres sur la page = ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "28f0bbe5-a0bc-4b18-ae41-365d8def70e1",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "f9c6d8e9-8079-48fa-829e-0982d2a04f99",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "82b7d906-db62-4fc0-bfba-0eb538a88bb5",
"comment": "Parcourir les membres enregistrés",
"command": "while",
"target": "${num} <= ${nb_membres_cat}",
"targets": [],
"value": ""
}, {
"id": "765a5ee0-72d6-4a4d-acd1-417013afaecf",
"comment": "fin de page ?",
"command": "if",
"target": "${num} > ${nb_membres_page}",
"targets": [],
"value": ""
}, {
"id": "52dd5d8d-7e7e-4c2d-8cc0-9f856af1be33",
"comment": "passer à la page suivante",
"command": "click",
"target": "xpath=//li[@class=\"next\"]//a",
"targets": [],
"value": ""
}, {
"id": "e1d5d8f2-b7a2-4944-a0ed-9b4772a5e0de",
"comment": "",
"command": "executeScript",
"target": "return ${nb_membres_cat} - ${nb_membres_page}",
"targets": [],
"value": "nb_membres_cat"
}, {
"id": "eefdb828-4a8a-4a9c-8dd4-bdd99b135c4e",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "529e74d2-801e-403d-a508-4d5d5942205b",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres_page"
}, {
"id": "f5e419a5-7d0e-4eb2-a710-39ee95f4ac6d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "37d4e8ba-286c-407c-aa5e-5d708c007d30",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "b63dea9f-1926-4a73-8a74-5072ee1c5a9b",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "4295f50c-5918-4411-88cc-ce0f8a580780",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros_alpha}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "14637acf-dcc9-4d5e-8f63-419972ef35be",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms_alpha}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "29944800-9989-4a1e-8b54-487bba8c6598",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "a9cac2d7-81f8-43bc-8526-0c9e1f0deb02",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom}",
"targets": [],
"value": ""
}, {
"id": "f3b7be45-e0d0-4a06-a82d-18bd402bba71",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "605a9a9a-d3dd-4fd2-9c7c-4b6295ade95d",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "e0497598-6882-4c9c-b13e-156164ccf741",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "9b3afb82-e409-4417-93f1-d425cced07aa",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "c2e73b7f-da0d-4249-b433-381e661afaa0",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "79eace7a-8289-4998-afaf-e43825e387d0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-04-22 11:19:25 +02:00
}],
"suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
"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",
"name": "3 Créer membre",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-21 14:41:21 +02:00
"tests": ["efad291c-7700-4c1d-a0c7-393264364aa1", "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",
"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"]
}, {
"id": "3b9945ba-2eb9-4f38-82ec-9a225b926d5c",
"name": "4 Lister membres",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["9d3d8f41-bff5-472e-ac87-6de5f10b4655", "91ef7a3d-27a5-4d1a-bb91-5ffdb927bb64", "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf", "25e25640-41c1-4a8c-a8f3-288fed7fb46e"]
}, {
"id": "f7119734-cb63-4c70-b0d6-6c1ff8281761",
"name": "test",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": []
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": []
}