{ "id": "33c8862c-14bd-405e-882f-5b3a904a2e90", "version": "2.0", "name": "membres", "url": "http://test.paheko.localhost/", "tests": [{ "id": "b3fdeef5-2f6f-46e8-a9db-5995bbf94957", "name": "01-01 installation", "commands": [{ "id": "61bab7ef-9d04-40de-8b87-98999729b832", "comment": "Page installation", "command": "open", "target": "/admin/install.php?__reset_test", "targets": [], "value": "" }, { "id": "71275c7f-557e-4df3-8cea-df31739292c6", "comment": "", "command": "setWindowSize", "target": "1280x1020", "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": "7cd9b766-02e9-4591-984c-076e6198d909", "comment": "infos premier membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "61706b69-8a95-4f55-b53e-79eb8317f5e8", "comment": "", "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": "", "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": "", "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": "", "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": "", "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": "f20209b8-66c3-42ff-bf71-632904d61ec7", "comment": "Vérifier infos asso", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8bdb6048-f614-4e87-ad22-fb451fa8c225", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/config')]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "18965af9-b3ad-4b6b-85a1-c924b283fb1d", "comment": "", "command": "assertValue", "target": "id=f_org_name", "targets": [], "value": "${nom_asso}" }, { "id": "6d51ef7f-5a72-490c-a636-aa8c4126a719", "comment": "", "command": "assertValue", "target": "id=f_org_email", "targets": [], "value": "${courriel_admin}" }, { "id": "0d10eb36-b5d6-4004-8272-e03fe4e6647e", "comment": "", "command": "assertSelectedLabel", "target": "id=f_country", "targets": [], "value": "France" }, { "id": "65740c53-7195-40a2-8829-0549149244af", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=li:nth-child(2) b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "b6df3153-03ec-4b6e-92fb-80077dcd6d40", "comment": "", "command": "assertText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/th//span", "targets": [], "value": "${nom_admin}" }, { "id": "7a44082a-2101-4fa4-a562-bcd4d5e771d6", "comment": "ajouter numéro téléphone", "command": "", "target": "", "targets": [], "value": "" }, { "id": "44fc6c36-f8b6-457c-a3ef-01d968672885", "comment": "", "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": "ebe4d09d-1988-40ca-950c-7100fbf289f7", "comment": "", "command": "click", "target": "//a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "7616cd98-a0b8-4ee7-9b3b-02f628fa7718", "comment": "", "command": "store", "target": "0123456789", "targets": [], "value": "num_tel" }, { "id": "900b3a32-e46b-4df3-9d07-4e74c7ba594d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [], "value": "${num_tel}" }, { "id": "c550bad4-93ed-43cc-930f-4e2364a44420", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "ec6e2e6d-9229-42da-8364-81124d74ed31", "comment": "Vérifier infos admin", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5f6a5b2b-501d-4e56-b8df-cb35005b3255", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "1" }, { "id": "33022e6f-811b-4192-9180-0a99f3243855", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom_admin}" }, { "id": "64e9103a-370c-4737-9882-685d7feaf552", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel_admin}" }, { "id": "4db2876d-616f-4c1b-b02a-98228dc23225", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "b414fd1f-9102-4f9c-9466-3565b745d1a5", "comment": "", "command": "assert", "target": "categorie", "targets": [], "value": "Administrateurs" }, { "id": "09a935eb-dbe1-4b08-817b-14a17b7c7fc2", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "d0d44ad4-c737-41db-97d3-548934a1b46d", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "14b28143-7979-4c27-9143-9e4923dc60d4", "comment": "", "command": "assert", "target": "telephone", "targets": [], "value": "${num_tel}" }] }, { "id": "b468a6eb-1199-460a-95f8-820df1f2c2f9", "name": "01-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": "1280x1020", "targets": [], "value": "" }, { "id": "e005004f-2832-422b-8e57-f3990ed3ec3b", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "d6791401-e683-4d44-9513-24c52f1c6517", "name": "01-02 vérif 1er membre", "commands": [{ "id": "992c77f4-75bc-4088-bcd9-331061c0b221", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "a61e7b27-e911-44a7-9c0a-abc030b9a4e1", "comment": "", "command": "setWindowSize", "target": "1280x1020", "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", "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"] ], "value": "" }, { "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": "" }, { "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", "targets": [], "value": "1" }, { "id": "3b461e26-0b8d-41ce-93b5-e34892ef7a0c", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "Lambert Paul" }, { "id": "556f6757-8033-4979-9686-5d5bac639f2c", "comment": "Vérif e-mail", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "jckix@free.fr" }, { "id": "0d567127-5cb6-447a-89ae-fa31a513ff9d", "comment": "Catégorie du membre", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "d3804084-f0dc-4a3a-aa5b-670dfdfefe6e", "comment": "Vérifier catégorie", "command": "assert", "target": "categorie", "targets": [], "value": "Administrateurs" }] }, { "id": "0849fbc2-a4f9-48a5-8698-afec02eb558f", "name": "02-01 connexion correct", "commands": [{ "id": "7bbc53e7-fe56-460a-a7a6-e9139c354956", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "f06a2714-73cb-40d3-88a4-9779f977ecdc", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "connecte" }, { "id": "6f50359e-db5d-480b-9b33-23f50da83664", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "68572e57-230b-4188-a46f-714314a53e11", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "32c741d3-d2f5-4b81-b906-2c11c554d2d4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6b84d76c-92d6-4eb3-b94b-f6da2b7608dc", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f7fa777f-fd29-4f0e-ba56-86fef62e6006", "comment": "identifiant connexion", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "53b19364-7089-453c-8ccb-5520bb327dfd", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "7c9c73bd-21d6-4493-8281-07e86b662a59", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "a0b40845-f16e-4a92-bb91-9c051c47b07b", "comment": "Pas d'erreur ?", "command": "assertElementNotPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "67e8d492-998e-4cce-aabb-5635a7f08ed0", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[contains(text(), \"Bonjour\")]", "targets": [], "value": "" }] }, { "id": "87aa0ef5-bb8c-496d-a196-0f92278e98b1", "name": "02-02 connexion échec identifiant", "commands": [{ "id": "5a8e495b-987a-4099-b397-70c9650e111a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "db829ee6-696b-4d70-840d-bb79282e5b2d", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "connecte" }, { "id": "5be6f2f3-5435-4462-b7a1-3e2a2b09f50f", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "656ae9a9-cc40-463a-9f4d-2529d4f502d4", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "be452c2a-8050-4054-a04e-5486ef12bc6b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e969ce2e-9cb5-47a4-a8fc-476fb67ba4f9", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "d4e49a22-2897-459f-9169-2d1e6adbe0df", "comment": "identifiant connexion", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "polo@free.fr" }, { "id": "ab9f41ed-6165-4b4c-b24a-2f4a505f86cf", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "8dc91265-cc24-4929-8bf8-9811f04095eb", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "63ae88e9-f6a2-4bcf-8d13-5a4c5d8a1897", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "c36d64ef-b5db-4c15-90aa-204431553d05", "name": "02-03 connexion échec mdp", "commands": [{ "id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "65fd69db-b2db-4395-8140-6fd98d80b662", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "connecte" }, { "id": "7168cad3-9c41-43f9-b7d4-29b70499346d", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "da322f69-7807-4d72-a4a2-b3a0ee786176", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "ff329f14-631f-4461-851b-1632e731bffd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "23420ae0-2de1-4fde-a7a4-d4965a203d0e", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "9c144216-af36-4843-a761-d73fbdaa9e90", "comment": "identifiant connexion", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "73a8add8-f646-47a4-8de1-20099832c251", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "xxx" }, { "id": "4eb7de55-7b4a-41ab-b16c-5b1e4838c0cf", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "2072df70-2639-48a2-8b4d-00e6e42d0812", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "efad291c-7700-4c1d-a0c7-393264364aa1", "name": "03-01 créer membre simple", "commands": [{ "id": "b14ce7cc-11db-4a3b-bfbf-12ec4765eeeb", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "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": "1280x1020", "targets": [], "value": "" }, { "id": "4d1a1742-d8e9-4481-a97a-eeea7d5c70f7", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "ad938cad-27c2-4945-a24b-e3b40ec90c74", "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": "4348c18a-7fb2-4ab6-b429-e3beb3c052c0", "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) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "0abd1709-be5d-4042-81f0-93700b43c1f8", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "5d8bb54b-1be1-44ab-902e-124fe9819cc0", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "95b41cf8-950a-4157-8bbd-5e8959fb4230", "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": "44c5177c-dce7-4702-a31a-08b791368b0a", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "8051aed2-39c2-48a7-8d00-101f9d26a508", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "c0d7b692-3a8f-408d-8b0e-4ec4385cfae3", "comment": "Date d'inscription", "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", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "786b3eab-e51b-46ca-a9f7-b5f0a46ed43b", "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": "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": "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", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [], "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": "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", "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}" }, { "id": "26026b3b-602f-4cda-b57d-89aa834d5c9a", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "c1e4769a-c485-45ee-aa79-0c2a317b36a6", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "c743f7d1-bfd0-4b91-95c9-c61a1807e839", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "f5d093a4-7d04-4751-a695-f2cd4b270ca1", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "782f3943-b137-49bc-8178-ea9b8923282b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "37a555eb-1147-4375-ad85-7fd52d37792e", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "542187b1-45cd-4f09-bad6-b1220fbfc754", "name": "03-03 créer membre catégorie ancien", "commands": [{ "id": "a8bc6b39-fd0c-4bd0-ac5c-5c6de1e7973b", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "9a2b2d5f-8aa4-46f6-98af-11f060699459", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5b205564-f777-4ad1-abfd-a8492d906f45", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a66e1002-12f4-4f65-a21a-1af67f0ce8f0", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "eb7cbe6a-128b-463f-a2e0-18d36fe1c0e2", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "21765375-4b9a-49ab-81f1-5dfa33434ceb", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "5ba9ea26-6ced-4595-831d-869e11ab2cf6", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "2016dc21-0e94-4464-a2aa-aa6fba171702", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a3d96f44-f1b6-4cb0-b575-9a577ad3e0fc", "comment": "Catégorie du membre", "command": "store", "target": "Anciens membres", "targets": [], "value": "cat_membre" }, { "id": "70a188d0-500f-4e7f-b4cc-b729d8b14b49", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a19c958f-5619-4721-b532-97af4b24ab96", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "3d52af5d-6637-4424-8179-e7b1a10bf24b", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "93a82799-df8c-43db-8d27-a3b04662fc8c", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "7ce7e1eb-4892-4296-bc86-e71031b8b2a4", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "1056a2ee-4e5a-4bf4-a1c0-2155b00af5e4", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "9e76f500-d05e-4f67-93b6-a9064c7d1ff8", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "9e64999d-9bee-4b7d-aa2d-4da11d50817f", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "f0cef9ba-c0f3-46f1-8bff-0fa9674d0b40", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "2fc843d2-be98-4426-9433-3f3458f97e2a", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "c4e38f50-5403-4d2c-9b3e-ab40ef48f1f5", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat_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": "" }, { "id": "2c0e46de-b4d3-4bc0-91d2-673d0c5a623e", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "fd75ac9e-66a0-4413-b94e-0242112d8f57", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "ba793090-3027-4217-875b-f3209ece7a9b", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "e718fcad-6dc4-42d4-a20d-34603e88fd5a", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "d5e3c0ba-3f4e-4b21-abc4-2268d2acc6cc", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "1ac5dc35-ca1c-4426-8569-ad17e4f0a7e3", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0120e17a-437a-44b3-ba96-bef536372503", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "ca16f01a-365e-4c10-8036-257b209fe1ba", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "20e796aa-55fc-40e1-91e5-d0843786b263", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0cc12d6f-b5c9-4c6f-ae13-bfa420a0f54e", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "f45dec33-a4c2-4cdc-83fc-dcf48e22fd87", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "ec1dc916-aedb-4b23-8a61-fcbbe6d7fa65", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "0c720acd-08ac-4b80-9569-fcb1ff4f9687", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "897fcf68-a122-487c-a4bb-beea5bcb0a42", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "57d9e90b-4e62-44cb-88b6-240cc937cbb7", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "732b550b-713a-4d71-ac8e-b39cd8b5f7e3", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "0f769f80-11a5-4931-97f6-ee48ede02ac2", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "bed84971-ddff-4b27-af87-5c710f8df251", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "8d8f01b0-e669-47c4-8e45-2ee0e7d4910e", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "c45e4383-5d3e-4173-9a3e-1ce04fd8f7fe", "comment": "vérif téléphone", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "44961419-af5c-4064-96fa-e50f350a7429", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "4804b34c-68b0-41aa-898b-98ae271b8ca8", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "2668188e-680f-4276-83b8-2a6294c4b310", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "4a6e1e0d-d5d5-4c4a-b56f-d9f0418b9e84", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "76f9bf91-fc1c-460c-8db7-a7ac0dc68858", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d760d487-3e61-4030-96f7-4c889d1e6df3", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }, { "id": "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}" }] }, { "id": "efb8a434-ee82-48e0-a770-d4a668e28eec", "name": "03-04 créer membre Inscrit lettre", "commands": [{ "id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "965f8db1-1ccc-49dc-8077-ca3f8288f472", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "661aed0a-884e-4eef-be1f-9a5a89cc29f3", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "873a1b1b-26cc-4313-b38f-e79e4a44f608", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "71b05198-73ab-44aa-a97f-49992ba43368", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "ef68cf00-5d1a-41df-8b10-2c48d63fa1a4", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "0ad26f7f-f3a5-447a-ac2d-6a0c11af16b6", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d78d5e9e-c89c-4bee-895e-3759d24d9858", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "47d22a7d-8aae-45be-a9bd-824475be6756", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "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" }, { "id": "ad21c34b-9929-471a-bea5-af7deff62c26", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ailleurs.fr\"", "targets": [], "value": "courriel" }, { "id": "009a0309-b962-49fb-b5f6-bb67e9d84443", "comment": "", "command": "store", "target": "3 rue des vagues", "targets": [], "value": "adresse" }, { "id": "680d7ee1-aa80-48e3-a37a-a16386e2d63d", "comment": "", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "79323d74-2df4-41ef-910b-5a96fbe1035c", "comment": "", "command": "executeScript", "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": "98d2dc19-3680-41c4-8fdb-a81167927ef2", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "927c3533-0896-4cdf-95e0-61cfc72d39c8", "comment": "", "command": "executeScript", "target": "return true", "targets": [], "value": "lettre" }, { "id": "c5a70e2b-3ac7-4a4f-b099-0c55ea3b3f36", "comment": "", "command": "store", "target": "03/03/2023", "targets": [], "value": "date" }, { "id": "f19d24bc-fb8f-4ef2-88cb-a9c8fe423310", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "3e9cde50-321a-4d61-9439-65b56a1c0005", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "ea8da6bc-e080-4b5e-bc6f-7ad41d8efe6d", "comment": "Catégorie", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "6cb02725-9dcb-4aea-998f-52540487b1c5", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "88c0c06e-54b9-4da2-bbc3-76bc14d82f3e", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "1376637c-6418-4a61-80e3-3bc88e08ed89", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "7d5e5ea1-09c1-489e-8174-5634f51f2e09", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "b62857cd-f7cd-4feb-8c5e-e98e8bc0236d", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "910538f3-4c2f-4072-b2df-c5f6ddd60463", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "fa4683ba-1af7-4775-b044-07d3cc4d41b0", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "9fcdd36c-23d3-424a-909e-9de3f62ccb39", "comment": "Inscription lettre info", "command": "check", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "f933ed8c-fce5-4edf-a19c-53af6a1f22ea", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "bbf1ff6b-887e-40da-acce-e9d7f1167995", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "9ce84e89-38f3-4835-a773-e5c3dcd2fb1d", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "72b3f608-6788-449c-a841-cf5ab43b4455", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "a9a663f7-286f-4202-aa7b-402188459f70", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "09dfe60c-4593-4e76-92c0-d738ff7ce220", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "3aea85a1-f5d6-48cd-a4df-0e0cd5e14a72", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "56aa6e82-5925-46d2-8817-8fab68ced661", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "caccfb3f-a54f-45e6-b4b0-0d03df713f44", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "36a87f3a-cc93-4722-84ee-dbeb3fc72557", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "4864681b-fbe1-481e-b41a-519331ff10bf", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "5bb863af-dcd1-4486-9934-a389e40bfae8", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "2f93b0b3-8621-4015-8142-13682c7ffe2f", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "7be4c4ee-27f8-4558-883b-740247bc3db0", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "fd2ba9ed-a620-4e7b-9fde-5217bc4e77b3", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "47218bc2-e094-4b01-bb03-27eef5ed5005", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "fd4c321a-ec5c-4073-a7c6-cf1c37a9eecd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fe919632-25c1-44bd-a554-855ab13154e1", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "71fe09f0-51bb-4d2f-8c66-91ec5e235105", "name": "03-05 créer membre date bizarre", "commands": [{ "id": "32553fb9-6558-466f-90c0-31471c43187e", "comment": "", "command": "open", "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": "1280x1020", "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) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "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": "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": "1d5966a8-b875-48fd-b56f-ee2c9ae23d8a", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "2cf267c8-49b4-4769-9830-485f5a241ecf", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "f78944db-fb67-4791-ab65-5d73faef62e2", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "1d279688-a9d5-4164-8e8a-fb31e354712f", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "1b131ce0-3f25-4962-af3b-ec5d92864bbf", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "c6a16bc9-3393-4282-9a95-f08d155324f6", "comment": "Vérif téléphone", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "1cf499d7-0026-4074-abb5-850efd958e04", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "6cfdeb15-0085-436d-ac26-b15577d40cf0", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "8af9eb6b-6972-480d-a199-e61664a01f0f", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "7373abb6-1b87-42ad-bc96-cc524230e224", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "d46f966f-dec0-4956-98ea-400660f9a947", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e383f517-b5ae-4cdf-83c6-66ab5d0b1ede", "comment": "Vérif date inscription", "command": "storeText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "date_affichee" }, { "id": "8734fa90-92e3-42ae-9a19-9b5f407f8eeb", "comment": "Calcul date réelle", "command": "executeScript", "target": "function joursMois (annee, mois) { return new Date(annee, mois, 0).getDate(); } function getDate(chaine) { var ds = chaine.split('/'); var jour=ds[0]; var an = Math.floor(ds[1]/12); var annee = Number(ds[2]) + an; var mois = ds[1] - 12 * an; var dm = joursMois(annee, mois); while (jour > dm) { jour -= dm; ++mois; if (mois > 12) { mois = 1; ++annee; } dm = joursMois(annee, mois); } if (jour < 10) { jour = '0' + jour; } if (mois < 10) { mois = '0' + mois; } return(jour + '/' + mois + '/' + annee); } return getDate(${date});", "targets": [], "value": "date_calculee" }, { "id": "54ccfc65-eec8-492e-a6ed-5a085a493022", "comment": "", "command": "assert", "target": "date_calculee", "targets": [], "value": "${date_affichee}" }] }, { "id": "895513b5-888a-4ea2-8036-5a97569cd6df", "name": "03-06a créer membre rattaché choix unique", "commands": [{ "id": "fadb5d39-1907-417b-9d02-79547c3dc04a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "3cf5a905-7576-4cd1-97a5-a6d532691208", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "a30539dd-0977-463a-b842-cb10e7349fc0", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "2def971c-6153-4e19-9c7e-f99232413cae", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c8a19e64-7093-4477-ad3b-bf290d6faf72", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "7369fff8-a63c-4b59-aa2b-bc1e13782c5f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ccef399a-525f-4b3e-910c-a861db874cfd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0e239b08-1665-403a-bd19-4dc43eff8724", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "2e55f3c0-92f8-4a63-809d-09a50020293c", "comment": "Créer un responsable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b7ea4b6b-3795-4b4c-bb31-9861eb8b5713", "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": "0211dfaa-ccb5-4536-b195-8dc03b5eefee", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero_responsable" }, { "id": "bd826a05-76cb-4b8d-800a-13e7eca77baf", "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_responsable" }, { "id": "3e994625-eb50-484e-b032-364afba627f3", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom_responsable}" }, { "id": "8105d295-cf16-4d20-9442-2a2487794f0c", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "594fc8a5-9c7d-4eb3-a91c-57b4c767e423", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "2829e073-ba22-486c-8465-ab1bab7005b2", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "d54a9c4f-9bb8-40f4-bc75-c84e5f94ef53", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "26b34df7-3a41-4b06-8c4f-d44332771388", "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": "e4abd389-b84d-4765-ac92-e6b81f98aa9f", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "9c7bbbc2-230e-4801-977a-4c68176f49a6", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "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) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "5e02f2f1-585f-40d1-8b31-3d8b725c1f45", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "597b48f1-3a27-450a-881a-4b6ff46b89f6", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "3c543bc9-4f56-4c5d-b43d-2b55b9c3018e", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "4e43bf74-a10b-42ac-b64e-436d89e5e51b", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "2b1b82a9-016a-4c6e-9c7d-8a92b5182888", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "f382f8d8-6a34-4c74-8952-1c225420bfc4", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "f4949ce4-37ae-4f1a-ad5b-43ef180a1f9c", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "4c8764cb-88c6-4bf0-b19a-a2c0e2e55691", "comment": "Rattacher à un membre", "command": "click", "target": "xpath=//span[@id=\"f_id_parent_container\"]//button", "targets": [ ["css=#f_id_parent_container > .icn-btn", "css:finder"], ["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" }, { "id": "0123bc0a-5762-4dbf-af01-a64ddcbfd06e", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "87220dbd-595f-45c8-b25d-f26b12dd57f4", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "7179000d-31a9-4bda-a7f6-82c97a9f8816", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "2580aabe-3ebf-4fc3-a275-2013947b9c2f", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "89b70650-203a-4e4b-86c3-e49a42c57c4c", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "47a06ec2-25bf-4942-ad52-b68b5c4b75ac", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "116ddb48-4dc9-405a-ac47-dce8fd3e6f63", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9b5410e2-24da-4620-89f9-714db8bbeccc", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "4d6fa971-0517-49c3-b342-e53e4093a2a5", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "64bebdd9-e465-42ef-a40d-d04659803932", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "71f41783-8a82-4a83-acfc-c6e2dace3d26", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "6c49dbc2-f385-4976-86ce-a2823c746281", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "574e8477-a4ed-46c7-a3ce-e019cda8f132", "comment": "Vérifier Membre responsable", "command": "assertText", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span", "targets": [], "value": "${nom_responsable}" }, { "id": "5c694f9f-2e9f-4367-9b7f-cf742b9c10c3", "comment": "Afficher fiche du responsable", "command": "click", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span", "targets": [ ["css=dd:nth-child(5) span", "css:finder"], ["xpath=//dd[3]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"] ], "value": "" }, { "id": "a798423d-11fd-4a30-afee-422d143ac052", "comment": "Vérifier numéro responsable", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero_responsable}" }, { "id": "75a18d53-6a37-422d-b3c0-ee8214774ec9", "comment": "Vérifier présence membre rattaché", "command": "assertElementPresent", "target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]", "targets": [], "value": "" }, { "id": "b80eb8cd-4154-4216-a7f2-0f3ba28600ec", "comment": "Retour fiche nouveau membre", "command": "click", "target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]", "targets": [], "value": "" }, { "id": "6613c9f0-d47d-48a6-b396-68bc5e3c5721", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "d4a803d2-5b84-4cda-a7a3-c5b5142c6812", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "63619154-1f63-429c-9be0-7e014283ddd4", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "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": "03-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": "1280x1020", "targets": [], "value": "" }, { "id": "48e88160-9e46-42c8-92b9-98ea1f10b772", "comment": "Créer un responsable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a82b78fc-30dd-4265-bfc7-e6ab8ce21efa", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "bc2b3008-e73a-45d5-865a-1de7c9d64a71", "comment": "Mémoriser numéro du responsable", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numresponsable" }, { "id": "d4da98a2-1f99-4b36-a056-2a9617c77f6c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "Zhamberlain Luuc" }, { "id": "b4f8e92c-22f3-4552-9fe2-d60dec886d67", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "bc1dc0c2-5755-4c9c-b9ef-7fdbbed6d366", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "1ac66bf5-b9d3-4265-90c1-006160b284de", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "1302f75a-ca3a-4de1-876e-44105449c08c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "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": "9c4d5fc5-0925-434d-928f-8696ad7e0f6e", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "08ab8378-1cf9-4309-9ad7-d08caf770986", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "9cda4c46-e4df-4959-9cd7-b06c69e958b3", "comment": "", "command": "store", "target": "amber", "targets": [], "value": "responsable" }, { "id": "bfedc5a3-ede2-4b22-bd92-b41fc938aaa0", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "a660f928-50a3-4a6b-b546-987e13b853d1", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "d6004a7d-2ba3-402b-951d-28b88e2f8748", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "df681c95-e148-4183-90d2-9336eeb2c1f7", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "6132c6ba-d8e9-4071-b578-1b1ec23cad93", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "67eb1920-fca1-4e10-8f85-1f2e115b140d", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "2b93bfdf-8047-4db9-b8ae-ac7b72a83213", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "f0416e70-9d9d-4a3b-80c6-340b126a7cd6", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ab243806-0d90-4a82-97e2-4042e5a4ffa4", "comment": "Rattacher à un membre", "command": "click", "target": "xpath=//span[@id=\"f_id_parent_container\"]//button", "targets": [ ["css=#f_id_parent_container > .icn-btn", "css:finder"], ["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": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"] ], "value": "" }, { "id": "b956a3ca-b6cc-4f2d-87eb-fe57569c5f14", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "c204ecde-b1bd-4d13-8197-5ff66eac6e26", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "ef7bbdd6-6bd7-42fc-adf5-c5b7541ffd86", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "e7352d9a-e97d-4d65-ab0f-78de2d460c1b", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "c1d15edf-5f8a-41bb-af79-ac49c8f9947f", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "91702519-b59f-4ed3-8074-fdbc639ece86", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "77b09efa-dd77-4722-8560-a1fca6f42aa3", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "7d7c8ff8-fe9e-4f64-a245-23314e6059a8", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "b4abda30-1256-435a-b3d1-43c9778003d7", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "6f82bfd4-4519-4413-ad9f-fb6e8ff936df", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "cbe9b2a5-b3dd-4400-a9a6-d04333460420", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "020cf20b-4554-4fc8-b7f5-ee73663838dc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9c7b5cef-20c9-467d-942e-6c720d384fcc", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "d24383f5-2919-4803-9cb5-1377a51c0d27", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "b13a885d-232a-4678-a650-80d6bc68be78", "comment": "Vérifier Membre responsable", "command": "assertText", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span", "targets": [], "value": "${nom_responsable}" }, { "id": "c4a7e9b9-43dd-4b45-bf6a-358cd126a91f", "comment": "Afficher fiche du responsable", "command": "click", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span", "targets": [ ["css=dd:nth-child(5) span", "css:finder"], ["xpath=//dd[3]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"] ], "value": "" }, { "id": "63b99000-3d03-4c2a-a00e-bcbf14248841", "comment": "Vérifier numéro responsable", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero_responsable}" }, { "id": "de2bad37-9847-4022-9021-319c58b14139", "comment": "Vérifier présence membre rattaché", "command": "assertElementPresent", "target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]", "targets": [], "value": "" }, { "id": "0fc66279-d61c-4fa7-ba80-19dbc9ebd359", "comment": "Retour fiche nouveau membre", "command": "click", "target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]", "targets": [], "value": "" }, { "id": "e8bb762d-76f0-4ae8-9725-d2bca0741b1b", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "001e8d83-d171-4503-ba2f-d6ffd72dd9db", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "f7765c6d-d42f-4af5-a939-87a0cd971447", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "2e5d7700-563d-4e05-a605-3314c332f2d7", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "b4833f59-a9ea-40cb-a316-3f270fb7173f", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "63cff9d3-1cdb-46a3-a670-76b0bc53a743", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "ae725152-288c-4c63-9646-267fbbaee64d", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "60ee30c9-c42f-4b07-820c-5c1c76eac0fd", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "1bf4a8a0-7b6f-4db9-a28e-900fcd898944", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "c0550765-8b44-46f9-b642-895e54386c81", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "e01cf96b-63e8-433c-b510-0e738e52078c", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "ed16361f-1057-476e-8ce9-df70ff70ed6e", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "b13e8002-3893-465c-b756-9e64366868e4", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "76f4cd12-e93c-48d7-9afe-ebcc651ac749", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "137c3d09-9d21-407c-95dd-2fd5df6783ba", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "91ad3d23-dd66-4084-beeb-ea89ec4bfabc", "name": "03-07 créer membre numéro choisi", "commands": [{ "id": "a6972706-0c56-46c5-9a2f-5f9ca9e7a52b", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "018973f7-b11d-484d-aa28-c6a4f285ae02", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "22dc193e-b428-4fbb-8b56-bd18df5953cf", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "febc4e85-ef86-4e24-a3dc-59d93a851213", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6a85ce0e-3646-481f-bb6b-1289ea0263c9", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "b9ef151b-b129-4875-87cc-a1c5abe41daa", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "1ecc6344-fe94-4259-b248-66196528f5da", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "dcf673d5-479f-49ef-8d5b-52e0216ca13f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "09066653-b8a8-4ec6-ba3f-b1defc04890a", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "f97e3190-ae0f-4de0-bfbb-1e03852597b2", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "50e4310d-b75e-4990-8bd3-b8b385cc0b37", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "0e7fc5d1-d5aa-4efc-b5e6-396ba22331c8", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "8e11d770-9756-4f0f-a779-b90b730fc91b", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "299ec2d6-d8e7-43f5-ba7c-002612ea8bd9", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "57b91f4c-9c1c-4466-933e-8be7d3ddf839", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "32ba984a-1f16-44b3-bddf-5992ad65c69d", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "7db8cce3-6e38-4098-92b0-be0f3bccd28f", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "ff2f7191-51e1-4318-a9fa-1a37b3f201b8", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "d7ceb825-e0fe-414b-950c-10ec99ddceae", "comment": "Numéro proposé", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "cf4d7e4d-dc1a-44e2-a396-f5fc9481f207", "comment": "Choisir numéro de membre", "command": "executeScript", "target": "return Number(${numero}) + 100", "targets": [], "value": "numero" }, { "id": "20bbc394-9977-4ee8-b73f-982cf0ddcbc4", "comment": "Imposer numéro calculé", "command": "type", "target": "id=f_numero", "targets": [ ["id=f_numero", "id"], ["name=numero", "name"], ["css=#f_numero", "css:finder"], ["xpath=//input[@id='f_numero']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${numero}" }, { "id": "efcd239c-6ffc-4192-9af0-870c6104e888", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "d0de6beb-a913-4891-b324-9ac0223721de", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "7126a123-f17b-4004-966d-98e86c56ae31", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "22d15378-fe16-45ff-aec5-c4058e9a6f75", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "ce92e5c8-dd7d-4bbc-9c44-f805198b1e04", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "9fe5fc12-5736-46e0-8223-2eb77ed6f15f", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "725835ff-a614-4269-8547-6a324fdd2d31", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "b2f53dae-3338-4514-b7fd-2d51971ffd18", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "19e8f3a7-f81a-4b37-9d4e-5d7a84b2808c", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "088478f0-dbef-4e9b-9ecf-373eab3191cf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "23c1e1e1-b5cd-45fd-ba68-6e74343d52ed", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "4ac05314-10df-4c87-8d6d-1a65bb4eb81f", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "270079c9-9f95-4185-bbec-22cc6df3c073", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "119b0281-b232-4ecf-b61b-05b21d4fc470", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "0ef3c9dc-98fb-4b14-9828-b0c423cae1ea", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "ce79a6a6-5eed-4afe-9144-68b090310bfc", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "7a61578f-d2dd-4a70-965b-1b758171579b", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "e5a2d5f7-625d-46a0-9de3-7505744a0cf5", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "1a91161f-ae27-419a-a04c-c70a22fa74e8", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "c2d4331d-2881-4725-9ed2-cf6d37b18460", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "57244951-2db2-495c-90ad-5512f9190928", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "b846e886-d7a1-45a6-ae7b-152a77e60713", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "975edcd9-969a-430c-bc91-9ffc65061d1c", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "a6b351bb-d426-47aa-8437-fe7c482d2bd2", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "3d490bef-7264-4433-ac9e-159667490349", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "2c89a233-08fd-43e8-85f1-b2ef7ed45fc8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4575eea8-fb0b-4933-a58c-4695d5e3b84e", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "c05cb267-660d-46ab-8fe9-a7e042aa9c8f", "name": "03-91 créer membre échec numéro présent", "commands": [{ "id": "0a919074-cafe-4f35-97d0-dff060157b5b", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "3483834a-3c7e-4772-a30d-111072c1cafe", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ec977d32-e903-44ff-9ee9-acbc1b7bcbd0", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "568faaec-d3f4-4bea-956e-63d35ff385b4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "981d273d-be9b-4c6f-b8c6-d10f6d7eaa9d", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "af5c1fd7-4e8a-4aa6-a541-622d6f37a56a", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "685c60ca-ca5d-4b9e-b468-7f686ea3bff4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6ef82a95-ee1f-4b71-9b1b-8cdca3f1b7db", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "eb273f23-27f9-4f15-a21f-4854696648e3", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "0d7185be-af76-4b47-929f-fe990d527cfd", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "7b8ebf47-a369-474a-af53-7e78575dfc09", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "cb650d21-a943-4f06-9d9a-9e9941e1efbe", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "41b16e1e-ab01-48c5-a301-409dbdc6ea7e", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "4f63c95e-f347-480b-ae1a-843f631b6726", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "c1eead33-8aed-4f05-8e72-98a3ef3427b4", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "d9f426d8-9daa-4890-b918-d1426a710a16", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "c0008cbb-b899-4ea3-92ae-cec64b66fc4d", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "5fe0f5a3-4faa-4b69-bc88-7add4a656c03", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "1b752fa3-3c65-4a62-909c-2cbf7150ba5a", "comment": "", "command": "type", "target": "id=f_numero", "targets": [ ["id=f_numero", "id"], ["name=numero", "name"], ["css=#f_numero", "css:finder"], ["xpath=//input[@id='f_numero']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "1" }, { "id": "bb96ad08-62c8-4d72-9abc-406a6791ebbb", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "a4c24f08-a244-45ca-91e9-d8aa5f847bbc", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "12c99a6f-2efa-478d-9a0b-11ce7b4ea034", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "120d346c-4569-4203-ab5d-7517eed5a90d", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "40e6a573-2ed3-48f8-9782-18d5d4281e3c", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "4a11369b-4907-4a48-995e-03f3e79f7d3f", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "406b55bb-8572-4401-983d-6aa7ae0be342", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "36af241b-c825-4f71-973e-15c462851326", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "1c713af6-54c5-4bca-8e50-4432fe0daefc", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "6a7ff05f-f637-46e3-b23c-821fb439d964", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "40ec0740-36f7-47ad-bf48-1bf4aea22f8a", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "2abcc6d0-c97b-40aa-85c4-f073bc987c0d", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "14e83449-b1bb-4ce2-969c-e2c88cc2cd79", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "a6af2537-7860-43b2-92b6-1a93bb173a6c", "name": "03-92a créer membre date erronée cas 1", "commands": [{ "id": "828addae-4a29-465c-bc17-6f6aa011a333", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "40413eb6-afdd-40fb-9081-f224a7563d19", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "1454b0b4-bf39-461e-8c34-444c7e81e143", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8c04dc93-a051-4cf8-b13e-dc4e4f40f49d", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "8ac76b9d-cb28-4d38-92c5-38373f6e35e3", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "ec699551-382c-4405-9321-5f1cb3a877ca", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "77f14997-3795-4b97-bc6d-a8e2c15c1068", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0553c671-79b6-4864-ba71-20d75c9adeda", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "13fa53e4-8fb3-4c09-9698-cf15ef7fa7e2", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "d1639cda-f43d-4a46-8f31-a45845f18012", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "3aa81cc3-b73f-4cbd-83cc-21f995f7fb89", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "229586b3-ab68-4d2c-9311-90e5ec230ec5", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "295a7bca-2ad5-4c17-9ea0-e785cb350fa5", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "688c9732-36ae-49da-a118-d3d51d9a8f1c", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "d46946e9-e633-454b-9c9a-ef1ecfc4b5a6", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "a25a9808-fbb6-4a95-b9b2-b950c683994f", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "4baa6042-575a-4e0d-b350-4f089d9bd8bc", "comment": "Date d'inscription", "command": "store", "target": "02/02/1515", "targets": [], "value": "date" }, { "id": "4222fb5e-02b8-4bc3-b75d-e7be88205d9f", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "2836eb76-087c-43c9-978a-9ce995817dd1", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "31173028-aef1-4f73-9e60-6966b2b4c430", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "96caaa3f-70a3-4504-93fd-1b615fee32f4", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "ee25159c-d537-42c8-84d2-c32b418c66b3", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "ef3d0879-e451-4069-9baf-54b6cb5811cf", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "252d1735-6a43-464c-b446-c737858b3e49", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "480dbe17-a9be-4467-a42a-11b8198074c4", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "3a1153c6-9a18-4e12-9b7a-c0484929a5f4", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "37a52481-ef23-4cb6-9e89-4068a9a3a5d3", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "7e74176f-2d36-4351-96f1-bd33f0d0ff2f", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "f4e66ef5-12d1-47e9-866d-49b2c0450543", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a89cc104-19ba-46ae-b372-d72a88b54468", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "8f0bd285-4016-4179-a76b-a5fee22710c6", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "e9a7eab9-6c71-4dd0-a53c-9ee26d250975", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "155a53f2-766f-4748-b11f-722b520df2eb", "name": "03-92b créer membre date erronée cas 2", "commands": [{ "id": "bae01400-5545-48b2-a212-5d4cd5c50797", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "ebda2a39-b8ae-449c-9899-aea0296c87e2", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5e29b334-2db5-4bb8-8e23-f0e2f532eceb", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "1d983797-f698-44f0-8946-f3986c665f6f", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3ff4319b-7f86-4412-95d3-cd13fe6cff48", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "6b9c54a7-18ac-4c39-a343-f58abfd6ec1f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "9c0a1f61-0f78-45be-b114-d5f8eafc5696", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f7355136-612d-46ba-9635-bf1eb273e276", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "646291e6-03dd-41f7-8d6e-4afee8bfb522", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "262ee9b1-5c47-465c-9342-287c39838070", "comment": "Nom & prénom", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "ff4352b0-fa9f-4d96-bab3-b306c1e974fe", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "3ff2f21f-b062-4265-bfb8-61d2255cd722", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "4334f5c1-f9e5-40ef-9526-f73043072ea0", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "cb59498a-7399-4952-8c12-96e5c51842d7", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "49667317-b1cc-4705-a4e0-7a8565065d67", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "bfb9295a-650c-4050-a630-74d9ff5471bc", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "ba55dd35-73fa-4db1-9c1a-d2dfdfdbb801", "comment": "Date d'inscription", "command": "store", "target": "02/02/2105", "targets": [], "value": "date" }, { "id": "c3335bd0-4144-4978-a536-f06cd2a92135", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "65c47b88-c005-43f7-83b5-96249f4f1b3d", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "b22b8275-a0ef-4e03-b82e-5dbf47b4e984", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "7e1ff47f-54ff-4f8b-965c-35631d6e3d52", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "def2b845-4e2d-4273-8f6d-c975aa21ad80", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "d3e7886f-363f-49d8-9c4a-267dd8b4ca37", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "d68fcb4e-45d6-46eb-aa48-3f825ed3e120", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "2aef92de-5e3e-47e8-ae4f-0b49af16b143", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "6a542e83-7389-4b30-9710-e03cc080ca77", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "09c17bd0-afbf-4408-9e22-31f5b5990458", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "8438637f-0b67-49be-9cc7-8d7cbb117d4a", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "054c3b19-44ff-4b69-9179-b27179048ec5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fac99186-dd38-41a7-9297-7933794151f5", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "8c0979ad-246a-4712-b51f-e505e5a3d059", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7e1d0aa1-4975-42fd-bdc0-096c04f082ab", "comment": "Erreur ?", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "4369d68b-3e2c-470e-b2b1-5a0825c35aa0", "name": "03-93a créer membre nom présent refusé", "commands": [{ "id": "de0c9cad-cb05-4f20-ada8-fe2924b92d08", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "357dd2d2-0d7f-4f4e-9ab1-77ca73ee134b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "9f6d9ec7-eab1-4eb8-9046-e15e479a918e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a45246d5-44a2-4e0d-9675-23cda2db2f3f", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a80535d7-5cb4-413b-b809-69d990ce5ffa", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "26ef5b09-1393-4579-9c78-bb55ed484463", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2e57f89b-eb5c-406b-98f6-68f2d9ec0e21", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d6303a2d-1fb8-404e-9639-99726e7507f2", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "dc9a7604-8fb1-49fa-a6b2-ad079371e7c2", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "b2e217e2-def6-41a8-ab30-a1a6f454f51f", "comment": "Nom en double", "command": "store", "target": "Lambert Paul", "targets": [], "value": "nom" }, { "id": "32184ddd-c7a1-4abb-bd02-8d31941f661d", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "0f647a3d-21f1-4831-a59f-d74bcd35d103", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "18f94418-d7a0-4f21-9d0d-a34b3ae1eb37", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "097ec1c5-8442-4d4e-aa65-128b105ca4bc", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "664cf575-3f94-4d24-adf2-5f0b9ef5307e", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "46b5f764-f3ef-45f0-9d8e-1cdaab6390af", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "a13ecf6e-0e0a-437f-9070-9e5e4ba7c28e", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "7a7ff05f-0cee-425d-adb9-d8d4fe9b5942", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "5081e469-29a8-4f05-bf22-2a9d9f808a54", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "49e58e12-190b-4ce3-915c-74154106477c", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "b5824593-52cc-4934-ba19-deed04a17408", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "876b2509-459f-450b-9832-efd47612e3e1", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "9c11922d-ce4d-4b4f-a4fe-84bb6bcf98db", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "bb1b2f59-37ed-4822-8501-a45925d9d149", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "62673593-5315-41e9-a1a1-86e52a05b0ec", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "1d40a16d-0754-4cdf-a61e-f906f7721328", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9f1bae31-b61e-4568-8bda-a07cbba34c75", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "15348857-a8d9-45d4-9ffd-9f4a801beaf3", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "a7d57bc4-10b6-479d-9309-ed3f8fea3fb0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ca0add45-148a-4053-bffa-df6390a147b8", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "36f55bb7-97c0-4710-aa16-a36f5be40379", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "aa609cd7-aa9d-4752-960c-34717346ce1c", "comment": "Déjà présent", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"alert\")]", "targets": [], "value": "" }] }, { "id": "077fea95-219b-4ab2-a10d-800ec7f39fb1", "name": "03-93b créer membre nom présent accepté", "commands": [{ "id": "d4554ace-88d7-4d2e-83d4-7cce4097aa75", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "bf1bfa0b-e029-4893-a2a5-7be8f1f65966", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "b93fb8f7-746b-4a39-b170-63bffa038554", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "6d18f281-9ed6-4d72-8408-cb237c41e733", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "2dc71349-30ab-4301-a143-d062efe8f95b", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9bdb0cf1-8b9d-4b3c-beea-ec07e1fc40f8", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d5ee3b2f-ef10-41f7-82f4-3f0a74312fd5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "2b703a81-35c9-4bbc-9025-39e05814a471", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "be10eb6d-36b2-40c8-84eb-6580af51bf18", "comment": "Catégorie du membre", "command": "store", "target": "Membres actifs", "targets": [], "value": "cat" }, { "id": "f32fd2e3-d4f6-4cc5-ba37-5af1352925ee", "comment": "Nom en double", "command": "store", "target": "Lambert Paul", "targets": [], "value": "nom" }, { "id": "920c27e9-9949-4592-a8cf-87b4cd4ab021", "comment": "Adresse E-Mail", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "3f6f2d20-719c-43da-bffc-da4a22deb2eb", "comment": "Adresse postale", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "d5e587e9-c742-49b4-a9f4-242c8241b1c4", "comment": "Code postal", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "93ef8988-e1ba-4852-9fcd-1248533bbc07", "comment": "Ville", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "4a669a98-9fe4-4cbf-8016-43d5e0197f3e", "comment": "Numéro de téléphone", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6528d530-c349-4034-9176-2fa6ae5db9bc", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return false", "targets": [], "value": "lettre" }, { "id": "605b1dc2-09d1-4532-ab37-f58ea2338d60", "comment": "Date d'inscription", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "442cc883-b598-4fd1-b9db-d85d6c04bf57", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "5330b5b0-7442-43c2-a517-1d6e7891aa46", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "aad56270-3032-42c7-b9a5-1f383ef2f20e", "comment": "Catégorie de membre", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "45f75a2e-16c7-40ff-8751-0841957beaa4", "comment": "Nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "3158b5d9-9f9f-4f71-88e8-0fed3c3dd631", "comment": "Courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "3d1afcff-1633-4ead-8af5-fe995229c22e", "comment": "Adresse", "command": "type", "target": "id=f_adresse", "targets": [ ["id=f_adresse", "id"], ["name=adresse", "name"], ["css=#f_adresse", "css:finder"], ["xpath=//textarea[@id='f_adresse']", "xpath:attributes"], ["xpath=//textarea", "xpath:position"] ], "value": "${adresse}" }, { "id": "7c51d5f4-a9d3-4e83-bd05-574855dced14", "comment": "Code postal", "command": "type", "target": "id=f_code_postal", "targets": [ ["id=f_code_postal", "id"], ["name=code_postal", "name"], ["css=#f_code_postal", "css:finder"], ["xpath=//input[@id='f_code_postal']", "xpath:attributes"], ["xpath=//dd[9]/input", "xpath:position"] ], "value": "${cp}" }, { "id": "b8623938-de5f-4a92-9761-1759986cacf4", "comment": "Ville", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "8e8a1e7b-0865-4bf7-8177-a46482c6b727", "comment": "Téléphone", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0d94f36f-b5ca-4e8a-9f65-3c64c8964718", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "98cf1afc-9562-43bb-8318-a0e1c18b85d3", "comment": "Inscription lettre info", "command": "click", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "79d4eea8-aee4-4f32-a83b-a8965c13f38e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "be81785a-7ad7-4ea4-a6d8-f673d1e4024c", "comment": "Date inscription", "command": "type", "target": "id=f_date_inscription", "targets": [ ["id=f_date_inscription", "id"], ["name=date_inscription", "name"], ["css=#f_date_inscription", "css:finder"], ["xpath=//input[@id='f_date_inscription']", "xpath:attributes"], ["xpath=//dd[13]/input", "xpath:position"] ], "value": "${date}" }, { "id": "bd7b5d55-6584-4837-b684-dcfec9255f71", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "745ff6f9-4890-4bf9-836c-f46f55ca5a37", "comment": "Déjà présent", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"alert\")]", "targets": [], "value": "" }, { "id": "a7705060-457d-4854-8a3c-9f427fce7a01", "comment": "Accepter le doublon", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.icn-btn:nth-child(5)", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "605865cd-94f6-4420-a15f-660a4e1975c0", "comment": "", "command": "", "target": "", "targets": [], "value": "" }, { "id": "46343db0-3e17-47bb-bb70-dffd007d817d", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "75a52ac5-5286-409d-8591-efefa27c680b", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "505dbd0f-9d76-4042-8197-3ee5b54e0a65", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "9101d731-d209-41a1-a280-307e54af0045", "comment": "Vérif adresse", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "052708c2-eb37-4f7b-a11a-4dc615aa84e5", "comment": "Vérif CP", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "6d74cb87-be97-42b4-93f1-c6e9a7b41339", "comment": "Vérif ville", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "b48b7328-507f-4fc5-9cc0-72e2ec594aed", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "00f4e960-2c86-4f72-83fc-5a6c677ac986", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "1156bdd3-b6f7-4a2d-87b3-24a4724976f0", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "ae682a21-6c75-4dcd-8415-427394d244e2", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "109033e5-d2a9-4b96-acc8-1a8d57fd5ce8", "comment": "inscription lettre : oui", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "00f3d6eb-5581-4a7a-bccc-9962760ad81b", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "0e16146d-d672-4b75-b446-134bbb77a17f", "comment": "inscription lettre : non", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "8fce980c-51c5-4dae-966c-6c72f35870b7", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4e4ebdf0-40eb-4f2e-9b40-e2795ff72953", "comment": "Vérif date inscription", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "f1a25071-156c-4487-984c-6fb730b0e8e2", "name": "04-01 lister membres toutes catégories", "commands": [{ "id": "708582fe-d4a5-4bb6-b8c4-c10e56734680", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "a9be52b8-29e1-4374-be46-9709535e0b13", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "cb14dd46-fef5-413c-9ef1-8078d3da5a41", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "267125ae-2ae2-4c1b-8ce6-5eacb6ae3e7d", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "5779bed8-7db3-44d1-90fa-8111c1249d4a", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "759c56a5-1756-4f94-88a1-b44b491f3eae", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9e2ecd6c-9b85-47e0-93cc-79798c612693", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "15df9ac0-ede3-4938-9b89-08a5d61c2e26", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cbb4a6d3-43d6-4f63-a087-1921b40412eb", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2b8db8fc-bbe9-4514-a200-0417720f3d73", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "tmembres" }, { "id": "2f9d13a5-18d6-428f-9a74-fde58f08817f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "896f9c90-40e4-4231-900b-e20cc8e192b8", "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": "c9d5467e-a15a-4d3f-a8da-63f385d004e4", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "bdc6d7ed-2531-4bda-86b6-3c32fc4bec16", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "f8c22479-be86-4ce2-94d1-71f391c2f5bf", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "101be00f-b93c-441c-88df-20a945043d9f", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "a5d1b670-084d-4cf0-9d51-bc03db434dd5", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "cc69661a-d800-4790-89ae-1d15cdb50577", "comment": "", "command": "while", "target": "${nb_membres} > 0", "targets": [], "value": "" }, { "id": "0f0d4cc3-2e57-4238-8293-71577ecdd1e1", "comment": "", "command": "executeScript", "target": "function ajouterMembresPage(tmembres) { for (const elem of document.querySelectorAll('table[class=\"list\"] > tbody > tr')) { let o = Object(); o.numero = elem.querySelector('td[class=\"num\"]').textContent.trim(); o.nom = elem.querySelector('th').textContent.trim(); tmembres.push(o);} return tmembres; } return ajouterMembresPage(${tmembres});", "targets": [], "value": "tmembres" }, { "id": "1e9ca4dd-e201-42ab-8dc0-d1ac98057a89", "comment": "", "command": "executeScript", "target": "return Number(${nb_membres}) - Number(${nb_membres_page})", "targets": [], "value": "nb_membres" }, { "id": "512f869a-39bc-47b1-b89b-cdf31e1a72fb", "comment": "", "command": "if", "target": "${nb_membres} > 0", "targets": [], "value": "" }, { "id": "46e465c6-5c66-407c-9771-d4e337e282d9", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "ce4df8c7-5533-46a9-9ec7-e9c418089d9a", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "01eb6a8f-25e4-4b8e-ab11-8fc147fa860f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1795cdbc-9868-4742-a862-3cf4a610edac", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d8ba35dd-94eb-40f3-b03f-9f13cefef5ea", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "97b501d9-b76d-4bf0-a9ce-a3b714c18a13", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "c3ec4f51-29e6-45a8-a8b4-7b2d63c06316", "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": "6e34ea24-7a40-4e79-a620-1e473e9bdca4", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "9167ece1-1cd9-4ab4-8a22-09e036a4ee49", "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; }; function ajouterMembres(tmembres, num) { for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { let o = Object(); o.nom = chaine(11 + Math.floor(Math.random() * 5)); o.numero = num; tmembres.push(o); ++num;} return tmembres; } return ajouterMembres(${tmembres}, ${numero});", "targets": [], "value": "tmembres" }, { "id": "2b3cfca2-75d5-4d73-a145-65275c5ee7bf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d010ab1d-36ee-4fe8-aa95-21cc69c74e57", "comment": "Enregistrer les nouveaux noms", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bce21827-01d3-422a-9993-afcf6298e73f", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "f08baa37-0406-4c2c-ac82-cdc9a1f83ac9", "comment": "", "command": "executeScript", "target": "return ${tmembres}.length", "targets": [], "value": "nb_noms" }, { "id": "e2b88ddd-314c-4b91-b785-743130bbe99d", "comment": "", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "5d76ed2a-7cd3-4750-8428-5c86ce723e18", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "bde5724b-40be-43c3-a6ff-df8cc6c61f0e", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "57df6f65-1bdf-4657-adc8-4f6710ad4b46", "comment": "", "command": "executeScript", "target": "return ${tmembres}[${i}].nom", "targets": [], "value": "nom" }, { "id": "89200c0d-275e-4333-a1ac-779b005e8423", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "bb5d2a8d-de8d-4121-ad4a-5d4a46ff5914", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "348dbba1-4223-4332-97ae-acfc6e8a4ee3", "comment": "", "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": "83269ec3-df51-4167-b269-674a4e014b42", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "f38d397a-b161-4b76-8ef6-63724352e24f", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "ded0841d-2a65-429f-acf5-32b257b7d471", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "0954252b-2c80-4350-911e-0e771369750d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "39dac2d0-9f79-48bb-b089-97fb3558fc2b", "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": "cf8c4a63-0f97-446f-8bb0-8706f35b5400", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "f132771f-bd9f-43fe-ae9f-0f66370bfbb1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9245927c-403e-457f-8bdf-f40b3e682022", "comment": "Trier les membres par numéro croissant", "command": "executeScript", "target": "function trier(tmembres, croissant = true){ ordre = croissant ? 1 : -1; tmembres.sort((a, b) => { return ordre * (a.numero - b.numero); }); return tmembres;} return trier(${tmembres})", "targets": [], "value": "membres_asc" }, { "id": "2a64bd2a-7712-4450-a155-57c1028d4a7a", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4ae9f403-a4de-4b4a-bd52-10e842ff9493", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "718197ad-70af-40f8-ac1e-158bb70e727d", "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": "398dca38-f886-49cd-ab22-5619680a73ee", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "b292d976-076c-4932-bde2-c6db485856e8", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "ab73a98d-3e53-4f1a-aa6f-1a3d63c257a9", "comment": "Vérifier nombre de membres", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_membres_cat}" }, { "id": "f9290914-fbdf-4a54-bdaf-6f78fd3af9fd", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "0028717f-ebce-480b-8f3d-56a7e3f5f06b", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "48b8122e-1147-4955-beb6-3fc39f6275dd", "comment": "Trier par numéro croissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "5f3ac3ed-b60d-4a25-8863-a55dac88143f", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "194c15de-d883-43b1-bcdd-6a16f6fde2c4", "comment": "", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "b25db5dc-b007-4fd5-902c-cf8100a611cf", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "19fd05bd-c6b9-4102-8b08-d9c63e08cf27", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "024ec3c8-2a7f-461c-bcea-39ab546eed99", "comment": "", "command": "if", "target": "Number(${numero1}) > Number(${numero2})", "targets": [], "value": "" }, { "id": "4c12edd3-b754-48b7-8f31-e38cedf49e2c", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "289c92dd-0c71-45dd-82dd-de2b232fbc08", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "24f854aa-1a38-4743-a900-aeef2a203cc4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "110ea6cd-fab8-4b46-b815-54bb7eeffa3e", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "dcf36787-fc11-41d9-82ff-6e572829bc5f", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "ff57f809-2c73-4b8d-a267-f521e0b02f6c", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "a6f98f69-2863-4f63-91b7-d20e32a186d8", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "33a5d904-eda1-44a3-98d8-9bee33f4ea65", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "d2c3e75f-e140-4078-842a-2ee44894b3f8", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "723ca2ec-2a1b-4b7a-9c27-343b2c74d44a", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "46815ff0-b3d9-421d-a11c-cab1104d708f", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "a9cd699c-cecb-4095-ae11-da66ad2eeab4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "302bd39e-622f-4859-9954-1d5311d7bc15", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "4369c968-42b0-4be3-8b21-871423c0e617", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "a80c1bcf-5173-4b5c-ae1a-1c35c1f40c85", "comment": "", "command": "executeScript", "target": "return ${membres_asc}[${i}].numero", "targets": [], "value": "numero" }, { "id": "d22944bf-777c-4554-99ee-0a984f8437a7", "comment": "", "command": "executeScript", "target": "return ${membres_asc}[${i}].nom", "targets": [], "value": "nom" }, { "id": "d4ae6601-e037-4b34-8f91-940a3630a1cf", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "5ee45c96-db8c-4f2d-b1cc-9c885422d1ff", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "002cd5b5-7bcb-4122-b050-76e0c84f5d5f", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "e7f1160f-ade7-4db7-802d-e1c3d30bf9fb", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "95539678-a968-4213-90bf-7007a5d654df", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "ea7f7602-ccc2-442a-a3cb-6b06aab8c782", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "91ef7a3d-27a5-4d1a-bb91-5ffdb927bb64", "name": "04-02 lister membres sauf catégories cachées", "commands": [{ "id": "44094def-5892-4f3f-a645-1170d72de5b4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "0fb96b1f-04a5-4d84-8d42-8ad59a7d996f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a508b0ea-759a-4c9f-a806-e5aff4164e23", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "e29fff9a-d6a2-404d-a2f7-e2fcb3b05bc4", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "3e2dd02a-1a68-4327-ae00-6ae88ccb86ed", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "423ce3d8-c9e4-4ad2-abba-6c20a76659c1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "777b3fbc-4d2a-4823-b41f-cd3e56a88849", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b36a32c3-ece0-4338-a300-895c14d4d965", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "226e9450-ebba-4f29-8237-5a0999b7d819", "comment": "Récupérer la liste des catégories", "command": "", "target": "", "targets": [], "value": "" }, { "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": "" }, { "id": "dbad02d1-8460-4433-82de-90c40bf622b9", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "categories_alpha" }, { "id": "05d8419c-7c86-4f67-9731-d6f298468a96", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "numeros_alpha" }, { "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" }, { "id": "8e6c8a0d-02a8-4e63-90f0-aa109fec26c1", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "i" }, { "id": "499a79a4-44f2-4ff7-ba23-3c8e158bcba9", "comment": "", "command": "while", "target": "${i} <= ${nb_categories}", "targets": [], "value": "" }, { "id": "d781aab1-dd4d-479e-ab8c-a391c6a450f0", "comment": "", "command": "storeText", "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", "targets": [], "value": "cat" }, { "id": "9fce64d5-e4c2-4389-b8f0-0ba41d140c8c", "comment": "", "command": "executeScript", "target": "return ${categories_alpha}.concat(${cat})", "targets": [], "value": "categories_alpha" }, { "id": "a71654df-b584-4fbe-a325-ba98fd10c577", "comment": "", "command": "storeAttribute", "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", "targets": [], "value": "num_cat" }, { "id": "5143da8e-ba7d-4918-aa57-6efaa6acf405", "comment": "", "command": "executeScript", "target": "return ${numeros_alpha}.concat(${num_cat})", "targets": [], "value": "numeros_alpha" }, { "id": "4b9c1dbe-52e3-4f74-9fb8-f18103d0c4a5", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "fa89a209-7173-49af-81fb-54ee9523f0ba", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "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" }, { "id": "91ff712c-4a7b-44c8-852e-55b81d47a4cc", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4e349809-3a92-4239-9ae2-eb1888e351f9", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "8fdeb066-bbd2-4acf-921b-97f22290b7a2", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "38440cf4-eb2b-470f-844a-39fe9e8cc636", "comment": "Init liste des catégories", "command": "executeScript", "target": "return []", "targets": [], "value": "lescategories" }, { "id": "921fa05f-324c-4b64-93a7-99f38653c8be", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "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": "" }, { "id": "e269bead-588c-44f0-8c28-8bd4f6203a4f", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "8d008c57-be62-4b85-acc2-6112bc5e7770", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "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": "" }, { "id": "f5ec189c-e49f-44e2-82e5-6a8ff06c84bc", "comment": "Trier par numéro", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "7daaa007-177b-464d-92d7-5a579f923fda", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "65036379-9b6f-47bf-b035-4cfb2c5224db", "comment": "au moins 2 membres", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "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" }, { "id": "a12e6ac3-44ad-4dc4-9cf8-9ddb3307310d", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "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" }, { "id": "de6299ad-2c41-4d4f-9be3-03b52570cd29", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "30e1f657-1c26-4bad-b40f-baf7e534c38e", "comment": "", "command": "if", "target": "${numero1} > ${numero2}", "targets": [], "value": "" }, { "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": "" }, { "id": "3b6f25ab-de35-42ae-8e10-45e8897e3086", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c337335c-9802-41b2-9039-2330661fa9c3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ae2de33d-e456-42ff-bab9-b22e81278490", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "2bc01878-0396-4c1e-829c-5269db265d17", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "1b0d6414-b1a0-4cbb-ace7-e0773333ef5d", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "c65bd666-3468-42a3-a08b-b9123bf518ce", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "1ba32db7-8161-4b92-959b-c91dae085f83", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "6f3aef8b-133f-45be-97ec-053a89359a6f", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "5648db01-774f-4524-a485-ccc8f601c770", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "ce22ed1a-78ae-4cdf-b891-cd0f0ca92fa7", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c9951ea1-ce87-41fa-9abc-34799278e179", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "b40f475f-b890-4295-91c0-6a9c4bd950dc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "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" }, { "id": "a3337044-bcf4-4ed6-9e83-f4fee3fe0484", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "a0203550-7e83-49df-bd5d-708bcd34b0a0", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "eb4cfd97-d688-4b13-9a22-6dccc472770c", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "a7870754-5bee-41e4-b293-7050ea0731e3", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", "targets": [], "value": "" }, { "id": "80975742-8dbf-4c88-b0a1-12684a81d18c", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "da73d314-a4df-497d-a538-5ec456f2b7ea", "comment": "", "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": "18e8efe9-1991-48bc-a0ae-441f08baac6c", "comment": "", "command": "executeScript", "target": "return ${lescategories}.concat(${num_cat})", "targets": [], "value": "lescategories" }, { "id": "09757cfc-8f04-4456-8676-90bb91dbad74", "comment": "Retour page précédente", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "e4b1f50a-0d73-436e-b080-d5ac18901c78", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "6f66696f-9095-42a7-a3d5-a5d529cc2dbe", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "29d28440-1138-4051-8e64-874fd06db9c5", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "49841a76-f86c-40d2-9775-4dee82495130", "comment": "", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "ca1bbf28-07e8-4c08-951c-091e496a9038", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4eae93aa-d7e1-4387-8fd1-5e35f25550c6", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "64c5a987-1244-4304-8aa1-c5f832c9fb39", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "4f3b6610-df08-4e94-9def-70c61b777ec9", "comment": "", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "d8a7fb49-a1d0-41ba-b254-697aac66ab02", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "3aba2105-2f80-40b7-a087-b09792cbd359", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "0eba07c9-5569-429d-9b4d-4e17412871ce", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "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" }, { "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" }, { "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": "" }, { "id": "d9b7da2c-a458-4406-ad66-8ba48e9b171d", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "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}" }, { "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" }, { "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"] ], "value": "${ville}" }, { "id": "fafe1340-236b-4199-8898-2815c385abfd", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "e4b88e80-c9ea-4c47-8095-edda4f31389a", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "e1d81cab-0fa2-4b08-b4ae-a374a580497e", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "314e74ac-8e4a-4013-b1df-02252a2f64e3", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "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": "" }, { "id": "de229a07-6a36-4519-8c46-3e7097fc485e", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "e8d3bc93-8eab-4fd4-b24a-e85112abad20", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "17e53936-341c-4176-8b27-3494afd028d2", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "54b32a82-a7d6-4a4e-bd86-a93ce8a9cce7", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "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": "" }, { "id": "f9f322c8-0de9-48e9-8990-2f021c278f01", "comment": "Nombre de membres non cachés", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]//small", "targets": [], "value": "membres" }, { "id": "4d07de3a-06d5-40ef-ba31-9053846c1fe1", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "3ed9c9d2-68a3-40fc-a135-bc73703f1505", "comment": "Filtrer : toutes sauf cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]", "targets": [], "value": "" }, { "id": "0b82dd50-4d42-4002-a889-e16a258839a8", "comment": "Trier par numéro", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "c8368860-7f40-48b4-aec8-9543f9ffeecd", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e17bc397-b18c-42d7-8146-4acd2351a3f6", "comment": "au moins 2 membres dans la catégorie", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "49a1742a-5cb0-4cb3-8847-34b3652da717", "comment": "premier numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numaff1" }, { "id": "60e9ac85-6fa3-4c79-8202-4f3731f25b48", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "id": "95bb3f2c-ffcf-4baf-883e-8a38857de1b8", "comment": "deuxième numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numaff2" }, { "id": "427d7499-800f-48c5-9ccc-42978c99d3b1", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "8902ea3d-d6bd-4290-98c5-9bac2d0f3449", "comment": "", "command": "if", "target": "${numero1} > ${numero2}", "targets": [], "value": "" }, { "id": "af6f0b44-a25a-4b66-884e-e4ad1e47e416", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "3a95b6da-d2a0-40fa-9b78-e1c3a6b88328", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4a0770b1-3a7c-41f0-ac7e-a080d846c12b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0e64841b-3923-40d2-a8b3-0c2dddaddf13", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "9c99a149-7ce1-45de-a63e-e6d235d81078", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "1baf6e10-120c-43ec-a572-1ff5140871fc", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "8fdd620d-447b-4122-be2a-3a908d4855e8", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "fee67cf0-f500-4c82-b724-e7a8739674c8", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "625eb23c-a659-4f9a-8f1a-88e33f123834", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "dbf0ae36-18b8-48ea-a665-27a138ae8a11", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "178ac47f-e78b-41a0-a1c2-2f46307f3c9d", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "bdda7799-804f-4755-b4ea-3fe26a983750", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "5111d81d-063e-414c-97ca-3334f6420fac", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "206637b0-0b6e-47c7-bffd-7a67602a6581", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "31c08e88-7eff-4b43-a4f3-67fca427f742", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "58019ba1-317d-459c-b6be-6940ee58c43c", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.at(${i})", "targets": [], "value": "numero" }, { "id": "a2c25509-995c-4694-8f38-07f7eb46dc11", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "e1dfa8bf-f6d2-44ef-86d3-6459b3a8c434", "comment": "", "command": "executeScript", "target": "return ${lescategories}.at(${i})", "targets": [], "value": "categorie" }, { "id": "7b8dcbb8-6572-4f62-ba4f-95fff0fadad9", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "40ec0b9a-9cf2-4d44-bdc3-31334001f309", "comment": "Catégorie non cachée ?", "command": "if", "target": "${categorie} != 2", "targets": [], "value": "" }, { "id": "9203bc8a-d5fc-4a31-9e00-420cb71a8ac5", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "6788d22a-aad1-40da-b1fb-29aeddda7f16", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "4fab279e-5973-4e6a-91fb-d39407661b32", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "ad985ad0-5709-4a25-a31e-557f0c6513ad", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a252f259-7a82-4e86-9af9-3622a048850e", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "4ef9d97b-6b5d-40f2-98c7-5bf3737fcc87", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf", "name": "04-03 lister membres d'une catégorie", "commands": [{ "id": "d56e4c68-de82-463b-89e7-7ad64f95f9b2", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "4d200ae2-3464-44b2-a4fc-d139e7d1674d", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f858b24e-6a6c-4293-a030-457b09457441", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "7781354f-dd6c-4745-86c5-ea49a4fee814", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "99ad8fd2-6491-4e56-9aed-f652ab312e9d", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "36203ae6-1ab9-4595-804e-48e0e579e350", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "0f6329ff-2446-4915-8254-c926951597c1", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "917499e6-fbea-4bca-9daa-8a36b1ebc514", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "83d31864-7e84-4bda-ac64-2ad75c740b64", "comment": "Récupérer la liste des catégories", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4a79191e-c4c8-4a92-b797-7d7722e1d736", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=.current li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "4b641991-eedb-4176-a37c-4d0a85e5045f", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "categories_alpha" }, { "id": "c0450afd-3299-485e-9eb3-b2ab85daf1f3", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "numeros_alpha" }, { "id": "98e08f06-67b8-4f1c-8239-6a54d0234c95", "comment": "Nombre de catégories", "command": "storeXpathCount", "target": "xpath=//select[@id=\"f_id_category\"]/option", "targets": [], "value": "nb_categories" }, { "id": "d2d05a94-f4ee-4de3-ac47-214cf2e41523", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "i" }, { "id": "b4271895-cd39-4736-98df-68305fb123e9", "comment": "", "command": "while", "target": "${i} <= ${nb_categories}", "targets": [], "value": "" }, { "id": "6ab6904a-8b83-4148-bcc9-33eb807aa5c4", "comment": "", "command": "storeText", "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", "targets": [], "value": "cat" }, { "id": "a6a239ef-4432-4b90-b6da-ef5b46592333", "comment": "", "command": "executeScript", "target": "return ${categories_alpha}.concat(${cat})", "targets": [], "value": "categories_alpha" }, { "id": "a69be34d-71c0-436e-9d54-ff18fbef103c", "comment": "", "command": "storeAttribute", "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value", "targets": [], "value": "num_cat" }, { "id": "751aae9c-fcc4-44c7-a049-884963981c29", "comment": "", "command": "executeScript", "target": "return ${numeros_alpha}.concat(${num_cat})", "targets": [], "value": "numeros_alpha" }, { "id": "9d6293a8-63bc-48b7-8808-2aac0f347a34", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "e2283ec0-00fd-4c07-987d-ec96032df8fa", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "00db03e5-1e51-4a28-bfaf-06e1eac26a43", "comment": "Trier les catégories par numéro", "command": "executeScript", "target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;", "targets": [], "value": "categories_num" }, { "id": "9aaaa7b6-7190-4874-94c7-43c4229dfe6f", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d0cd179f-d57a-4bf1-b3ed-9f9f6c6d75a8", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "7cf137db-4fec-4eac-98e4-cca0bf8f9f7f", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "a289aa01-6e01-4bc9-a241-2477117a2232", "comment": "Init liste des catégories", "command": "executeScript", "target": "return []", "targets": [], "value": "lescategories" }, { "id": "a36849f9-8eae-47a4-94fa-dfc944b2fd90", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "7d222cb4-c94e-4627-a8d5-0226a4f1eba7", "comment": "Rendre visibles les options du menu Filtrer", "command": "executeScript", "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", "targets": [], "value": "" }, { "id": "d3905ed9-1492-4301-a1f3-eb2b132239b5", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "73a6e625-87c0-452b-a0cf-50b6fdd249b3", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "bf354704-b77e-4cc7-a95b-db3a3b684fc8", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "fcd6e32d-48d0-4b14-8dfb-b38632b44680", "comment": "Trier par numéro", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "1955755b-3581-4846-9396-e3d725a94293", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "93993815-52df-4730-a581-4ae1df772f44", "comment": "au moins 2 membres", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "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" }, { "id": "c1aec9fa-d5cc-4ed5-9091-991ba4c11ac8", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "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" }, { "id": "de057e1f-599c-4573-bf97-1bc1e81b3395", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "a8d6090c-20ba-41ab-be9e-b7a7b278e500", "comment": "", "command": "if", "target": "${numero1} > ${numero2}", "targets": [], "value": "" }, { "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": "" }, { "id": "9cf6b00f-f6de-44e6-a981-e7bd8f819a7a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "36d022e6-d557-4e37-973f-9fc4adb08a11", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1e6925a8-754c-4283-a774-0999207cd2ab", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "1d77ac00-6edd-4e30-b5ec-2f393133cd61", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "27dfae14-a50c-421d-9863-88ec3f74712d", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "6da61310-6df0-4c8f-af2d-ddaf148b9b23", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "1b094189-c71e-4862-978f-6fc2604936ce", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "09a257c1-da2e-4edb-9eb6-f316793a5cc4", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "dc32607b-03ef-415f-956a-f1d85e2ef1c6", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "332de2d1-0a28-4ca5-b5c4-d59afa19e7d8", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "26809156-4d04-4195-9e4f-7737966f6105", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "cba63ad7-df7e-4c89-8140-677c198ebe31", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b3676664-c6a5-4dd7-a4a4-362a2634bef7", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "8a0862b2-7da7-4051-80bc-3faa5354fe66", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "5ff86d7e-b086-4084-b551-e58e113593ce", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "41808bda-2512-4a4f-b467-a0db3c1a69f3", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "2a0cd4fa-43dd-4fa5-9ab7-a765fc7ef4fe", "comment": "afficher fiche membre", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", "targets": [], "value": "" }, { "id": "d4bc3219-01a1-4d73-a633-7a3b874f827b", "comment": "Catégorie du membre", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "67eb90d5-427d-4d07-a902-ec4b1afe9688", "comment": "Trouver le numéro de la catégorie", "command": "executeScript", "target": "function getNumero(cat_name, categories) { let i = 0; while (i < categories.length) { if (categories[i] == cat_name) { return i + 1; } i += 1; }}return getNumero(${categorie}, ${categories_num});", "targets": [], "value": "num_cat" }, { "id": "e7fdf091-31ef-44ea-ad9d-ad09ea767c9b", "comment": "ajouter numéro catégorie à la liste", "command": "executeScript", "target": "return ${lescategories}.concat(${num_cat})", "targets": [], "value": "lescategories" }, { "id": "79d1d84f-6210-4d0b-8754-164206b07cdf", "comment": "Retour page précédente", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "ed7f874a-1dd2-405a-85f8-daef27c4b214", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "efb790f8-0464-4565-83a8-b10d661eeb7e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8b9580b5-d8d5-43b0-9bdb-63a4aa1394d0", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b5bc60a1-69f7-445d-ae9d-6401aee0cd90", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "6f79f713-83eb-4cd4-bf5d-c0176cffabae", "comment": "Ajouter nouveaux noms à la liste", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length));} let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin; }; for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "c1b83aaf-5ea1-42d6-9a1c-7c485df19be1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d8ed8e81-a1ab-430c-9c96-4c0655e2e53b", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "bd195c84-72ec-4beb-a0d8-18ea9206020e", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "608e596c-a258-42c3-9b67-6aaf9f24458c", "comment": "Parcourir liste noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "28edb89a-5d72-447c-8dff-412f28057687", "comment": "Menu ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ec54e45a-4c2f-4e4b-ae09-e725d148908b", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f5ee520a-509c-4273-b3dd-129e99a866fa", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "2be794df-410b-4502-bc3d-0d948ce34bac", "comment": "Générer numéro catégorie", "command": "executeScript", "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", "targets": [], "value": "num_cat" }, { "id": "87dcb491-ba02-40ea-953c-3d5413b56c6c", "comment": "Ajouter numéro catégorie à la liste", "command": "executeScript", "target": "return ${lescategories}.concat(${num_cat})", "targets": [], "value": "lescategories" }, { "id": "eece70d4-dfa1-46c9-b546-109a71dc176b", "comment": "Sélectionner catégorie", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]", "targets": [], "value": "" }, { "id": "ebeaf6cc-a9fd-4a12-a113-a7a01387b5ac", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "c27e36e2-4182-44f7-85f2-18d48ad9d90c", "comment": "Saisir le nom", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "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" }, { "id": "e42f8cba-842e-4c69-ac79-2018f5411b94", "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"] ], "value": "${ville}" }, { "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": "8a1b5ee9-5ecc-4490-b334-0deaabd8a0b7", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "7979264d-65d4-4def-93c8-101c70f3a0bd", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "2764d85f-e4b7-4ee8-b671-eca8ef3e7a96", "comment": "Enregistrer les infos", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "ebf58d38-6459-4d96-8682-13281a853e78", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "ad068305-bbad-4c8b-9e0f-09ee29762e99", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "05f8b4d1-4836-44c5-b87d-82ebf94aba36", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "31d4e3a3-a702-4a2e-9ff5-bfdfece5194e", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "faa478ea-a005-4883-b711-545ee6467311", "comment": "Choisir une catégorie", "command": "executeScript", "target": "return 1 + Math.floor(Math.random() * ${nb_categories})", "targets": [], "value": "num_categorie" }, { "id": "4bb4fbe1-a230-4780-aa3d-e5c30420a551", "comment": "Rendre visibles les options du menu Filtrer", "command": "executeScript", "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;", "targets": [], "value": "" }, { "id": "e84e5bf6-d95e-42e5-9431-be271a3cc160", "comment": "nombre de membres dans la catégorie choisie", "command": "storeText", "target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]//small", "targets": [], "value": "membres" }, { "id": "ede3cb4b-0697-4b51-9cbd-bd2d5ece6aad", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "78c4caf5-7f2a-4c85-a985-789651423ef7", "comment": "Filtrer : catégorie choisie", "command": "click", "target": "xpath=//a[contains(@href, \"cat=${num_categorie}\")]", "targets": [], "value": "" }, { "id": "bd957d5a-93fd-4700-98ec-f40cc7ea396d", "comment": "Trier par numéro", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "57849947-9003-4a3f-8293-15389de5d83a", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "952aff21-5099-4f7b-b407-f83969dae7d2", "comment": "au moins 2 membres dans la catégorie", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "3dc23459-3cc8-4837-97ee-6b9829871cdf", "comment": "premier numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numaff1" }, { "id": "ca29eeb5-b43e-4fa8-951a-0ef1fe627584", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "id": "a75c9a33-352c-4268-8083-25f87719185e", "comment": "deuxième numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numaff2" }, { "id": "5c4a41df-cc20-45bd-a95b-0d70433f7aba", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "cebfb04f-538b-4e6b-8795-c7dc82bfff02", "comment": "", "command": "if", "target": "${numero1} > ${numero2}", "targets": [], "value": "" }, { "id": "776938c5-bf86-47a7-947e-f702f5ef4d22", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "95956761-4a75-4426-a47a-38b762c5e1dd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a469eab1-825f-4538-b01b-04106df281fb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8ffb7d91-2ca3-4114-8e3d-56836a37c1cb", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "cdbcea32-d3c3-4361-a86b-df4e67c43850", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "2877628e-6596-4f33-b9de-f7be8eeb69f3", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "f034b1d3-a489-4604-bd30-18d6b91c7722", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "08b56187-4d2f-4242-8cb8-828910810b50", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "be58dd04-4119-468c-b4f0-631be0a68e51", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "0589fb6b-3c55-46f5-bd6d-1873ee8ec922", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "4adcb85f-e352-4d3f-9c86-93cbc82b161d", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "55203e0e-99bd-4b68-a0bf-7af85e094fb7", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "3d0c62a0-d98d-4ec9-a9ac-c81ad900d41b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "51b4a1cc-2a98-4d1d-abcf-b8c29eb60efe", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "0cc31ccc-c915-4c0d-b650-21be38317551", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "07ac8ef0-6775-4b2c-844e-0b2455e6060c", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${lesnumeros}.at(${i})", "targets": [], "value": "numero" }, { "id": "6b4ab061-0e5f-4788-a7a4-a7b2ac4f5981", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "a8a0cbbf-6225-41a6-8c79-9dab3b40096d", "comment": "catégorie mémorisée", "command": "executeScript", "target": "return ${lescategories}.at(${i})", "targets": [], "value": "categorie" }, { "id": "8db0fac1-9192-45e0-abe9-9cf95d22a7ff", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "4cd42154-011f-477f-abc6-5fdf1fc3d9a2", "comment": "Catégorie choisie ?", "command": "if", "target": "${categorie} == ${num_categorie}", "targets": [], "value": "" }, { "id": "cd29c223-5fce-4859-b329-2498aadad152", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "ea653d4e-6a58-4dd8-85ee-ed20fe8e0f38", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "56191866-212b-4ac5-b734-d9f90450fa85", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "2c3165ad-c5c0-4c26-9066-58098bc1f4d3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "28a9d3ea-bbc7-45de-a8de-1b3318f4d9d7", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "7471f693-79b7-4e17-810d-195d48bbbcde", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "2f1dd424-4188-4ff9-ba9b-63c1085b89d0", "name": "04-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": "1280x1020", "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": "b6ca1c3c-a512-4fd2-8ab8-b5d9fc4ce4e5", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "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/td[@class=\"num\"]", "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", "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": "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(11 + Math.floor(Math.random() * 5))); } 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": "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": "bd9724c6-9b97-4696-bd81-9be5defd05c4", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "6be72c44-87b7-4985-9aab-e6e86ca81410", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "4127dc18-a24f-47c8-8c7c-df4f4a65a427", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "0b1b4fff-8c78-41cf-a94d-6268e78573e4", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "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": "ea57717b-35c3-4931-8987-cbff8f3e8eac", "comment": "Trier les membres par nom croissant", "command": "executeScript", "target": "function trierNoms(tnoms, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tnoms.length; ++i) { let o = Object(); o.nom = tnoms[i]; o.numero = tnumeros[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierNoms(${lesnoms}, ${lesnumeros});", "targets": [], "value": "membres_alpha" }, { "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/td[@class=\"num\"]", "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", "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", "targets": [], "value": "nom2" }, { "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": "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/td[@class=\"num\"]", "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", "targets": [], "value": "nomAffiche" }, { "id": "4295f50c-5918-4411-88cc-ce0f8a580780", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_alpha}[${i}].numero", "targets": [], "value": "numero" }, { "id": "14637acf-dcc9-4d5e-8f63-419972ef35be", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_alpha}[${i}].nom", "targets": [], "value": "nom" }, { "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": "" }] }, { "id": "8275ba53-edfc-40c6-ab55-2c9d9d76c10b", "name": "04-05 lister membres tri nom décroissant", "commands": [{ "id": "712e0c2b-764d-42e9-bb69-e699da88caa7", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "55ae3184-e29d-4180-b478-d70430138a11", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "dd6eeb58-0ee1-4252-bce8-084075728d91", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "7b0cb08b-088a-49aa-9356-fdf4c7776205", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "472e262a-51a3-431a-aaf4-9dbd8aa826fb", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "e28dbbae-a40e-4c1c-90ee-32e24d1d565c", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "76262a25-e86a-4aa4-bf37-905bb3311ee0", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e899ee60-32ca-4d20-ad72-8935fff00932", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "45b18046-7ed8-4fbe-9422-065fb2e662ca", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "320282a6-63b6-4595-bc42-eca645ea1880", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "162e2ba4-7d93-4ae2-af4c-078b52929868", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "5ac364e4-b4b5-4a24-a768-f0c417e13577", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "2bce7631-90fe-46d1-98d2-8b19f18fb118", "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": "fae3c40b-b060-4268-9f4a-c60bfdd7e255", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "890ce60e-c2f6-40b3-b100-ff3076fe4a4f", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "7fbb2420-4ab4-4c15-b6f0-bb49d875dfb4", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "744c5628-5288-4013-b3ec-4280056d2566", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "6d494224-814a-4068-9d2f-7803f19cfeec", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "6c4308a6-9952-4b30-8412-0a05c4eb5ae0", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "635d0405-fe51-44ae-87d9-6eb7a155bb11", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "09a347d6-4228-4505-a0ea-6ca331d1ac64", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "240d3f42-2e7c-41c8-a16b-4f620c099667", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "1122be4f-795d-4ecc-8e80-3347a00280a4", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "59d6822c-454c-43ee-811c-718a6063eb36", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c582d908-f598-4dda-a338-f2ebfeeab766", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "7be4ccdb-06e5-4c32-9aba-f8a72fffe9f3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5c9e9fa5-ff56-4e1f-a3cf-d12f47003569", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "2a4afbe4-a4cb-468c-8ae1-7eea6a4b15aa", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "d27e9939-6cb5-4ca8-86ab-6d6f3b3a802c", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "04717d43-c7f4-416f-bd64-b9f7f71079bc", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "1c34f4a2-b805-4f44-80ad-7c6f3ad92e28", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "e24a3aeb-e5a0-492d-9248-9c15685e0c89", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5ad90e0d-f21d-4ffc-9149-c78852d6a456", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "03658004-f495-4946-ab2a-02a417c74ab7", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "32bdef25-d2b1-40ac-b868-f2c833719c38", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "2545fd5e-6aa3-439f-ae89-6e526794a255", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1007574a-577d-4533-aece-7f5ab87c23dd", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "2c045ec6-9ad1-428d-9a3a-740f6e08f65d", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "aac93a8c-1334-483f-b865-fbc40ec477e1", "comment": "Parcourir liste noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "89516e6a-690c-4b6c-8540-d926d72b3b6e", "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": "7601fd5f-e434-4f70-95dd-d80770f9bc1d", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "df2f64b8-5b95-4350-b513-394aa0d6095c", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "80c21fc3-2805-4998-8f55-22c6a7f5d4e6", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "cd3c3d05-b6ca-4049-8896-ba8c62ed55ee", "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": "bb657adb-0e22-443e-a12a-2c6a825d99cb", "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": "8102f2e1-4cfd-48a1-ba23-5494eee5395f", "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": "18f28b3e-c091-4f15-837d-1051901346fb", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "60e89f3c-27d7-4530-a3d1-e4d95db7c7c0", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "57fbba97-12b8-4112-8f71-deda5e3ad150", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "bcfdeb2c-e58c-4955-b0f8-62bde611e74b", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "7a4e12ba-25ce-47c6-a0d1-0ce9b8d28855", "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": "28e7bdf6-1132-4278-a570-1dee56f1cf9e", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "4bb70b19-faaa-4e53-98a1-9cc3fa7ce102", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9d5dcd80-054b-4823-9d89-774f32997fb2", "comment": "Trier les membres par nom décroissant", "command": "executeScript", "target": "function trierNoms(tnoms, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tnoms.length; ++i) { let o = Object(); o.nom = tnoms[i]; o.numero = tnumeros[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierNoms(${lesnoms}, ${lesnumeros}, false);", "targets": [], "value": "membres_alpha" }, { "id": "7beea25f-a0cb-4e72-92cf-b7c74d9d06c7", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e9eeb33e-6d24-4d40-836b-f819a261c090", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "0c9ed58a-e141-4adb-884f-00319dfb8a3b", "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": "e5c39212-6dae-48a0-b8e6-385287a40159", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "d14a09cb-a787-49c6-98e0-4ea1407826af", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "3d881f27-9a14-4689-a13d-dde57eea83bf", "comment": "Vérifier nombre de membres", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_membres_cat}" }, { "id": "ba4b685b-1a5f-4118-8cfd-6a73ac7beca1", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "4a1e447e-42be-4049-bcbd-9255922fdfd2", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "8fa1e204-7be5-4749-960d-a8fae8e19f65", "comment": "Trier par nom décroissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"identity\")]", "targets": [], "value": "" }, { "id": "74a1dc51-ac44-4ecc-9d58-7b6264566985", "comment": "inverser le tri s'il est en ordre croissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1b946969-cc91-476b-8bc5-997271a6dad0", "comment": "au moins 2 membres", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "b231a60f-6949-47cb-95c0-9912f85e39ad", "comment": "premier nom", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/th", "targets": [], "value": "nom1" }, { "id": "82fee705-6f66-4dfc-9b39-7aa56cb9d5b8", "comment": "deuxième nom", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/th", "targets": [], "value": "nom2" }, { "id": "fb611611-7a65-4046-8d22-1a37919512e0", "comment": "", "command": "if", "target": "${nom1}.localeCompare(${nom2}) < 0", "targets": [], "value": "" }, { "id": "1c2bfac5-bcbb-4e1a-9940-bc508c32af23", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"identity\")]", "targets": [], "value": "" }, { "id": "088467a7-2ba8-4455-b433-ee50973eee36", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3f447bc1-7da2-4f22-90af-9b9eac3f0352", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "28bcd1e2-1d69-4e27-87a3-ac4d3c62f881", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "ba1d6af4-c409-4d7d-8ba5-fb79c4ee0a72", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "9e62349b-99c8-4176-b465-aa6cdedccdf7", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "b23b638b-e888-4a12-b2f0-6b55de95998f", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "273d492c-67ec-458b-99bb-77d5133685f4", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "14c573cd-990f-4915-9b09-375c4684807d", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "3eff0593-d445-4160-a263-3a84280ec588", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "ddef7b2c-1e03-4ecb-b6d3-2002c50c9d33", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "cda4a5e9-1bbd-43e0-a082-adb723153080", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "25ea969c-dac5-4928-80c9-59b9ff3ed592", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "f13d054e-29b9-43e3-aed6-023352260cdb", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "5470f252-f104-4c56-9a1b-4e6e2ce7c148", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_alpha}[${i}].numero", "targets": [], "value": "numero" }, { "id": "d72c9c26-7078-42e8-8f25-2ccbfe629da5", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_alpha}[${i}].nom", "targets": [], "value": "nom" }, { "id": "cb41292d-f3c1-4527-8b22-589c6b21adf0", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "dff124fe-855d-4ff4-bcdf-9140b20f64a2", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "45759730-c20a-4b07-bf7e-bdcfd973b2e3", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "93ac4172-665e-4df0-a1d1-349eecf4c3f7", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "87e349cf-0f38-45fd-8dcf-8b87b73a653a", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "403d2216-6158-4b68-ac2d-c89872fa3a93", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "1493219f-1880-4b77-8332-e780660d301e", "name": "04-06 lister membres tri numéro décroissant", "commands": [{ "id": "b4719c43-2476-4782-bcdb-d6afeaf420a4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "c4ac34ae-51e9-420c-ac72-5967e863a2a0", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "db0014ea-5955-401b-9d2c-b29752b4257c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "22cb6c6d-6cd9-4948-8825-77893d53dc13", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "948195d2-7a07-4b46-8e05-5dd73fbc608c", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "5df8034e-fab7-4ff3-a890-008c21d46077", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "8f71fc40-ee00-47d7-8740-c0e711127123", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "24f254c1-a73a-4f1b-84a0-406c1656dbf8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "34bbf9b9-b8c8-4de4-9af5-57d2fe7668ce", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "00b6f17d-69a2-490d-aa2f-5686c51c0a0c", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "4f633efd-47ac-46b9-b33c-f134ef9efdd7", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "bfd17773-a53d-4865-b105-bee5f4ec41a1", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "6dcaeda4-deb4-4704-a585-34e16dd66a52", "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": "af84032d-fac6-40b5-ab6e-a23b9557a3c3", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "f981c425-20ce-42bf-9422-30b5363f45bb", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "cffdc3e7-0966-4335-b82f-7064aa48402c", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "841cc2c2-f307-4ece-9826-ac74379ecab5", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "292703a6-d3b9-47a1-82ef-667f9444f807", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "91a7d478-9a6a-44a0-900a-7329b47a9b3c", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "ad68a8e8-a20b-465d-a217-59a1a75090e1", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "f7eab9f2-2b19-4f47-bb43-01f164fda82d", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "23c31f6c-9c38-4289-ab97-a2bcf252a224", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "637d6f84-0b09-4a60-9ebb-cfeda6e380bf", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "40902c96-83a4-40d5-93a9-f45eb70a865e", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c5ac0c14-eab3-4208-ae3f-1bc4e25a5bb2", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "b446d0e1-9ed8-4b09-8707-470266381ff2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "bb0f8996-2acc-4bea-9080-0d79e216dcb0", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "c9bb2cf8-382e-43b6-b06c-8f77a96599a7", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "e0a1aa64-93f0-4d90-a554-2dad9d11b816", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "f574f203-7b0a-40b1-960f-386a08557387", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "a8aeb79e-772a-438a-828b-abd18b555694", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "2d71dc37-7df6-4e47-acc2-9df2612e68f5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "23361a25-8c81-4704-be19-a2546c5253f8", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2511d9ed-e19b-436b-a7cc-bbcef2ab1df5", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "cffcb34e-f6cb-4c6d-bb20-4846d80d8ffe", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "89fae739-6ff7-42e2-ae71-245b45f432ae", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3b0d3a05-364a-4056-b0c8-d2f66613944f", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "795a827f-6c91-4e08-be6f-30dddc6733a1", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "1326ce80-47dc-4dc1-afc6-0d8e61305528", "comment": "Parcourir liste noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "ead69db2-b317-403b-be78-c88e4f4251b2", "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": "08df2f51-c001-445f-b5f1-a5d3d888bed4", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "5bec4fc0-d415-4576-9e16-0ac5da157edd", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "3ae5ff3a-c8fa-4ba1-8d78-5b78631ef29f", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "7123d7f9-3617-4604-a060-17c0c317ee35", "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": "f336170b-17a3-4f01-b255-58c5ac520b47", "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": "50de80aa-804c-4662-8796-02405ad5f6a1", "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": "a8825934-59d2-41d9-852d-348ef64ea964", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "248824a2-ec7a-49f4-94d1-982d60b63538", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "a7b3d47a-8e76-4cb0-879e-8fbb6a3c816b", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c366f28e-9250-498b-ba97-b21a8f244c71", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "accae3d8-b4c5-4d30-bf36-51213e131a75", "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": "cdd1ce30-b595-4e85-8b25-f42509b2e669", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "c37bca32-f591-4b5a-acff-4def51827c6d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9b0a12f1-714e-420d-bab8-da4cfe02e867", "comment": "Trier les membres par numéro décroissant", "command": "executeScript", "target": "function trier(tnumeros, tnoms, croissant = true){ let tab = []; for (let i = 0; i < tnumeros.length; ++i) { let o = Object(); o.numero = tnumeros[i]; o.nom = tnoms[i]; tab.push(o); } ordre = croissant ? 1 : -1; tab.sort((a, b) => { return ordre * (a.numero - b.numero); }); return tab;} return trier(${lesnumeros}, ${lesnoms}, false)", "targets": [], "value": "membres_dec" }, { "id": "ed0753f7-c502-4c4a-bc5d-11d95d15c178", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c5adca48-61dc-4f20-804b-575a7c152ab1", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "e66db7bb-e08f-429b-aa4d-0b358f631bd2", "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": "d698beb2-6ff5-4084-ae93-3824595c27a4", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7554158a-d56b-4196-92cb-3647f6d9efc7", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "eaa88d08-435c-4c15-b2ff-409826357394", "comment": "Vérifier nombre de membres", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_membres_cat}" }, { "id": "247de2d8-d615-42a6-a638-1ee22fb8c7be", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "592d2744-fb15-4420-8c29-ea333fbfff07", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "90b282c1-4678-478b-bf4d-6ee502ccf9ad", "comment": "Trier par numéro décroissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "2207d493-46cf-4403-b581-949bfc4022c3", "comment": "inverser le tri s'il est en ordre croissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "48780bc2-f8ec-4b7e-a17d-fa032015087a", "comment": "au moins 2 membres", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "f27bfb06-30f5-43fa-8c46-0774371cf06f", "comment": "premier numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numaff1" }, { "id": "072dd107-2bc5-4de5-b086-cf4e1aae77e4", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "id": "9f84f192-4e10-4f8a-b61b-8d143a66848c", "comment": "deuxième numéro", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numaff2" }, { "id": "c5807ee5-e5aa-4af3-b6ea-ed925424e610", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "ccfb3057-32e0-42e8-8ab6-625db9842fcd", "comment": "", "command": "if", "target": "${numero1} < ${numero2}", "targets": [], "value": "" }, { "id": "b1f07eb1-33b6-4880-992f-b675c4c976f3", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "71d9b27f-4d6e-4f43-90a9-51d4e1c8e7ba", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "2f165a88-6764-4777-aaa3-41c84dfd0b01", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4ee93b41-d231-4ca3-9146-7c62a5dc045a", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "9a836195-8cf5-4a89-9e51-46b3c812dd6d", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "81959035-a3d1-4aab-8b99-c59c304bb74f", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "9520447a-f551-4c25-8c07-7472d41e0864", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "492b0585-19f5-413c-9148-317fd1608a38", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "96984f4a-8a03-4f87-9311-bf16753f5cd3", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "8d908dcb-6f2e-44a5-970c-0d09dfe378cb", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f644149a-10c4-48a1-8467-2b94b62263e2", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "6289936f-cf31-480e-b0cd-5af2f3312220", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a9856dec-9690-4a28-9a66-417aa971f766", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "d6b6f688-512a-4215-8df2-a73ae6bb9ba4", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "193522ae-e9bb-4efb-9614-6fff2b502da1", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_dec}[${i}].numero", "targets": [], "value": "numero" }, { "id": "568c2020-8fe2-4672-9658-e30731cca3b2", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_dec}[${i}].nom", "targets": [], "value": "nom" }, { "id": "cdae6e12-29e2-4c00-b804-9790870ee4a2", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "3151b9d0-dbb1-4c9f-8f14-550d76fc2e6d", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "a2e32a9b-97d7-4632-9db7-e5417648d7fb", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "ce46afa2-9811-49e7-aa18-0f5c41653bc1", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "cd6dae71-bac2-4af7-a4a4-8022df97d6a3", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "43b2b591-b9eb-4954-a69b-6651265e0bd5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "cbd065d0-2d2e-4433-b7b3-756af25bdbf5", "name": "04-07 lister membres tri ville croissant", "commands": [{ "id": "eea36b83-460a-488a-8a45-f45fbd2673e6", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "35ce0bde-6a60-49d3-9414-9526f2507ef1", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "d3ec06dd-ca48-4d28-ae54-d114ea8795c4", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "fced87b7-e6b5-4692-b012-ab1421486419", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "c8045ff3-a7d8-4408-aae8-573bc6da3cd8", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "f54204e9-258d-428f-8fca-ce6866d16fd9", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "89fb031f-c593-4d52-9cb9-91eddd0dfa83", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "00d3438f-db75-48ea-9ac1-3620f46765ca", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0f234f5b-45d9-4fa3-8213-b90a628d23a1", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5327a3b1-72b9-483e-abec-7adabc14e77c", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "e0d81adf-1a4a-4f58-9cf7-e84116c6e7fb", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "adef3b9c-3a67-422f-afb8-0dd1be92175e", "comment": "Init liste des villes", "command": "executeScript", "target": "return []", "targets": [], "value": "lesvilles" }, { "id": "e21ac69b-04ed-4759-8806-876ac2d2696e", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "59e01e2c-b55c-4115-968d-3043c50470e2", "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": "bbc5e470-2ea0-4daa-b707-11738ea49375", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "2669e537-5133-4268-8842-97a2e71d6784", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "6b3dff88-0c94-4439-80df-d5c7cb12347f", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "7c2dee7e-f26a-4a24-9c70-8f0d53b88746", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "3737ec1e-8218-48cd-9298-99ab35a96b00", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "dd186758-0538-41b8-8780-973ab2dca389", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "1a6c7672-c47a-482d-8ee1-2c251e9b4583", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "490af828-8ff1-4382-beda-8d45dfc3cd13", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "3d80ab7e-b22c-4af8-bfa9-bc9c59401d63", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "bd455a52-d4b6-445f-8615-937118c81dcd", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "762020b5-c375-49a5-aa26-5f774997e195", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "0a900b5a-b050-41c0-aa66-2b62958374a9", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "d824caa9-896d-43d2-bca9-30e6ddf0e603", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "eb18d1ea-6874-4b74-9b7f-0f43a408bec7", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "79ac6827-165b-45b5-a2ac-2e96461b9eb1", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "25bc8f2f-073c-4a38-94cf-715429942d7b", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "509bf86b-bc88-496a-8a4f-b8ed40e1dbbc", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "56da224d-c93c-4398-8141-b03eaed94106", "comment": "ville affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td", "targets": [], "value": "villeAffichee" }, { "id": "f3df0dc1-6964-4087-89e7-c26a8751c370", "comment": "Ajouter ville à la liste", "command": "executeScript", "target": "return ${lesvilles}.concat(${villeAffichee})", "targets": [], "value": "lesvilles" }, { "id": "28432652-d08c-40a6-bdc9-92581f14fbb8", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "e7b41589-31dd-45ad-964f-98c68a2c0831", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b8c32098-5b66-45c6-b255-0f68fd874256", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "70625fee-1a14-4dac-a4d1-c1805fcb177e", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "788b8e34-a5cd-4809-b247-87f9f6b6bafd", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "68ae9963-fb07-4f4b-87ac-a4394391435a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e20caac5-f005-4b06-8e24-a0f08a8f78e1", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "c334ccd7-e39d-44fc-8d79-63e89966556b", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "2e7144c4-1453-4fa1-b3ac-2efac92a631d", "comment": "Parcourir liste noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "c9b2d076-d228-4fa7-82c5-599a7aa25c93", "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": "1eae5cfe-384c-43be-a1f2-f5f8c9e18d0c", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "be1cf777-285a-41cc-a2c5-afba8935e4e5", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "f7fcd68c-52d9-417f-b6a5-52e90ba91665", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "aa67220d-8538-4c40-9c8b-dafac5a80026", "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": "27bf608a-17a5-4d24-9d5e-2e2314e26881", "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": "729c45c6-181a-4a20-b92f-17f2538c29f3", "comment": "Ajouter ville à la liste", "command": "executeScript", "target": "return ${lesvilles}.concat(${ville})", "targets": [], "value": "lesvilles" }, { "id": "e769135e-74c2-43ae-8612-651ef52cba60", "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": "28ce9656-2031-4531-bded-fe63808652d8", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "9730c993-6ad2-4713-8863-da9a78127dec", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "68731483-d1f0-43cc-a464-1ee78473f7f3", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "8c34921d-a59b-4924-8a1f-8c73cc132d03", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "cfc6fe5b-4d20-4d10-9cb6-10cb0a61df94", "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": "54e13ba3-e00a-40bd-b9a9-6864aad12249", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "430c7da0-6187-4f06-9ff9-d4f88623b372", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0c02bae8-171d-429f-8ff7-f8d04a3d0c6f", "comment": "Trier les membres par ville croissante", "command": "executeScript", "target": "function trierVilles(tvilles, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tvilles.length; ++i) { let o = Object(); o.ville = tvilles[i]; o.numero = tnumeros[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } if (a.ville == '' && b.ville == '') { return a.numero - b.numero; } if (a.ville == '') { return 1; } if (b.ville == '') { return -1;} let comp = a.ville.localeCompare(b.ville); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierVilles(${lesvilles}, ${lesnumeros});", "targets": [], "value": "membres_ville_asc" }, { "id": "8036e1a1-014f-4940-8757-204643cdc5c7", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "32921505-900e-45ca-b013-7ff3abd00106", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "1dc6e933-c9dd-4226-b82c-c9209ca515b5", "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": "c1dc27b6-41b6-43b7-88de-fbf00af977ab", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7e355eef-115a-45ca-9fd2-7e67156f9198", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "64e6ea21-8527-4051-a20c-488f5a06f50f", "comment": "Vérifier nombre de membres", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_membres_cat}" }, { "id": "642a022e-ac1f-40a3-92e3-1e5ba8b6b129", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "3363eea4-6fcc-4dcb-bdad-5a9a12a7ffaa", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "f7d620ed-df1e-4ffa-aff9-eb0e11ca6c04", "comment": "Trier par ville", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "cff1bc15-7461-4c9c-b0f4-90896d5fbcc6", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "01d7602d-9019-4eab-bd55-695d4634344b", "comment": "", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "8a59351e-54c1-487d-86ad-42f6cd462622", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[3]", "targets": [], "value": "premiere_ville" }, { "id": "f79e4f07-6323-4f7d-b796-2f4e8fc72115", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/td[3]", "targets": [], "value": "derniere_ville" }, { "id": "9ea04b6b-2905-4824-b183-d4f2e1c6599f", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "09d8e537-5104-4d65-a38e-f6240657d7ab", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "49dde8df-5374-4718-8f0c-1f85e1756144", "comment": "", "command": "executeScript", "target": "return Number(${numero1})", "targets": [], "value": "numero_premier" }, { "id": "421b45e3-3c5a-4b34-a69c-023da7bcb83a", "comment": "", "command": "executeScript", "target": "return Number(${numero2})", "targets": [], "value": "numero_dernier" }, { "id": "d4ae6c0a-bd01-4703-8d0e-64626ed5ccac", "comment": "", "command": "if", "target": "(${premiere_ville} == \"\" && ${derniere_ville} == \"\") && (${numero_premier} > ${numero_dernier})", "targets": [], "value": "" }, { "id": "8803b26f-2e93-4ae7-aeb3-f8a3b7767760", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "a4016767-bfe3-47b3-b278-4c9ab993391b", "comment": "", "command": "elseIf", "target": "${premiere_ville} == \"\" && ${derniere_ville} != \"\"", "targets": [], "value": "" }, { "id": "95722694-c01a-4fc8-8997-a25fbe4a7457", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "be817e02-2047-4867-88f7-26a557d75704", "comment": "", "command": "elseIf", "target": "${premiere_ville} != \"\" && ${derniere_ville} != \"\"", "targets": [], "value": "" }, { "id": "95461674-5300-4c05-a932-d4f1ec8a7e2f", "comment": "", "command": "executeScript", "target": "return ${premiere_ville}.localeCompare(${derniere_ville})", "targets": [], "value": "comp" }, { "id": "adae6520-11cd-466d-83dc-7ef67648e7b9", "comment": "", "command": "if", "target": "${comp} > 0 || (${comp} == 0 && ${numero_premier} > ${numero_dernier})", "targets": [], "value": "" }, { "id": "3b9a1ece-a824-4afc-8d9d-d5b377576b0e", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "257da1c3-247c-4e29-adfe-7208f0acc944", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e603ae64-a67d-4796-b1c0-7d2368361f7f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b78a7078-47e9-4111-b840-f55a2ba46a07", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "086676a5-6a55-484f-bc6e-4504ebff28dd", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "5f9a528f-0757-4c74-8d76-cfbd59578797", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "8921ff00-132f-4f0c-9b17-eb17f7c0c764", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "9992c093-23c2-44cf-ae62-ac67c20f6005", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "d56db594-abeb-4f7b-bef7-27fe0c29e866", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "969cf147-9d68-4dca-b2f2-4e803647d5d1", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "0e4c1636-8f65-49a8-b1f6-e95ae7bfd138", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "a22f551c-0073-4baf-a66c-ec821c658e9b", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "ee0b3167-895e-4916-aabe-cc177b7c5365", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "bc0efefd-4f12-4b86-86c9-8f722a9ab00d", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "f2561586-d9d3-4b7c-92d0-cac77e09912e", "comment": "nom affiché", "command": "//storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "0d82e51e-26ba-451c-95f5-fa66d76bf3f9", "comment": "ville affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td", "targets": [], "value": "villeAffichee" }, { "id": "e7e38aad-3f41-48d6-b5b0-584371808109", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_ville_asc}[${i}].numero", "targets": [], "value": "numero" }, { "id": "5b84e05a-d71e-4934-ba23-65e8051db558", "comment": "ville mémorisée", "command": "executeScript", "target": "return ${membres_ville_asc}[${i}].ville", "targets": [], "value": "ville" }, { "id": "c16c98f1-dac6-459a-8155-0b572e8b8d50", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "b8194282-4672-4fdb-a312-f1a1ab29541c", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "5dc9b5fb-b77f-4bef-b86c-e04380092b2b", "comment": "", "command": "//assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "2a3764f4-438a-4e1f-8fe2-a2ef95d7f056", "comment": "", "command": "assert", "target": "villeAffichee", "targets": [], "value": "${ville}" }, { "id": "6ad2421b-1543-462f-815e-a0a96bb0fca2", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "71d26fac-913c-445e-9e93-b9d579c3fc82", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "981f425d-66c5-4939-9ed8-d57ffa5b0c5d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "5a7f0fc2-fc66-46b2-a5f6-0d97c61d515a", "name": "04-08 lister membres tri ville décroissant", "commands": [{ "id": "2adca38d-1ea3-4cd0-bfec-fc628e607950", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "737e9a28-1494-4147-b8bf-bbd4dcd8079f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "73c8eb2b-40d4-473a-8626-07a741311e8f", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "212ee57f-6630-4187-a1c4-5f9d735936bf", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "65f044d2-17bc-4876-b845-433d2cb7b685", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "23bbde8d-4f4c-494c-9c83-6eb2353bf1af", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "5921b0e0-5d51-4625-9060-e8dbd1045940", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7b851ff1-736d-46c6-a44b-45af16777640", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "90ee7c7b-8f5a-4c95-858c-2e66d9910bb0", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9df02c79-c077-4bf9-863c-9bcd18ae5196", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "6dc8b579-9693-41f0-9e46-b734955815a4", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "0d8840d1-e4f6-4ec1-986f-06a3fe956bfd", "comment": "Init liste des villes", "command": "executeScript", "target": "return []", "targets": [], "value": "lesvilles" }, { "id": "0417d01e-25b8-4dc6-8275-736b7d69d2ac", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "1ad17670-aecc-4cad-80d2-d7455e84b282", "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": "1d8a6143-d7b1-4acb-89a4-28f03bed8bc8", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "d7b2d256-fb66-42c5-af3e-7422b92cca86", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "39129d1b-c39b-4bae-9223-70ac0b4bc899", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "06820e63-1f34-4f1f-866c-caca5c1c3232", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "a12ae177-3cb6-4354-b236-da5e4c4b6ff4", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "910acc09-f70e-441a-9705-0539aef5f387", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "73cb7d66-2d3d-4cb5-a384-f1441a7f1181", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "aaddbcfa-7588-465d-acb7-82265c0ecfb6", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "3445cd64-f0ce-44b2-ad98-a8926cad4360", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "9f7e3e94-6d8a-48c1-bc36-51187c93aa46", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "26b2d931-ead3-462e-ad8e-c5d8f7eec59e", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "e23f04a8-67a4-4edb-831e-848cbc139715", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "843e6a4a-13b2-4f0a-9704-3043762f3392", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f69384ca-87b9-4138-8e70-e7cc0cd7f90b", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "1dec6f5d-b921-474d-be0e-abfef7eef3b4", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "db73c987-7e29-4e86-ab02-e05be7cec7a3", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "8005d2b5-71e0-423c-b1ca-590310cf5c4f", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "57c9fa14-332f-4d6d-bdb8-61f94b994269", "comment": "ville affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td", "targets": [], "value": "villeAffichee" }, { "id": "2bd1c5c9-de28-4ce3-a474-bd2ab1331095", "comment": "Ajouter ville à la liste", "command": "executeScript", "target": "return ${lesvilles}.concat(${villeAffichee})", "targets": [], "value": "lesvilles" }, { "id": "a22eb2f8-9db8-4378-a407-52a860ee78ca", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "20734489-00f2-4b23-a95b-7ae765a92754", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9a9120d0-0391-4a29-9460-e2998f9da880", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "033c0f01-eb55-413e-8447-0b3363537f72", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "3075ce2b-597e-44bc-8f1b-572333fb08a0", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "be2f471e-266f-4181-afb0-03e66b877c81", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a99ea17d-3a32-462d-b48e-2f49a1970985", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "51e1f97d-bb62-4ca1-8baa-eb6e4a0dea64", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "d1bac523-969c-4299-b63a-19817f095b7d", "comment": "Parcourir liste noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "a860d28e-b9a8-4512-bdbb-58b25e22a24a", "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": "43b69119-55c8-403b-9145-33e0eab2bd8d", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "43d62230-c31c-4527-9eb1-df94d15444d8", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "afbe4d86-3c15-440a-86d3-26113aadf2ae", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "16b2f774-8221-4131-8a2c-8d9d1bfe67c8", "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": "b5639f59-dad7-4164-970b-2145828752f2", "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": "8d2f09b4-6ad0-417b-8168-2a6855b60a0e", "comment": "Ajouter ville à la liste", "command": "executeScript", "target": "return ${lesvilles}.concat(${ville})", "targets": [], "value": "lesvilles" }, { "id": "ea7d2530-5639-4f39-8273-8169cdb83e54", "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": "ff3c805e-fc05-4479-ad54-a4710b1816e2", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "518805a3-147d-45d4-9c20-fd85c0407beb", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "34aca6e6-c876-49fd-8565-13f7b1cc1245", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "19f8ba64-f3be-4f90-9179-0ab4ce7dd55c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "e3c0ec4e-3292-47a3-b28b-f528f0a9a527", "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": "34907b24-b6b0-424e-a996-328d12f5bb40", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "e93ea4ad-f7cf-4c61-a9de-937f58137e38", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4d827f8c-fc20-4586-ada5-81b6a208f1fb", "comment": "Trier les membres par ville décroissante", "command": "executeScript", "target": "function trierVilles(tvilles, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tvilles.length; ++i) { let o = Object(); o.ville = tvilles[i]; o.numero = tnumeros[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } if (a.ville == '' && b.ville == '') { return a.numero - b.numero; } if (a.ville == '') { return 1; } if (b.ville == '') { return -1;} let comp = a.ville.localeCompare(b.ville); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierVilles(${lesvilles}, ${lesnumeros}, false);", "targets": [], "value": "membres_ville_dec" }, { "id": "50cea963-0984-4735-aeb7-7327ce169087", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "77a1f49e-91c0-4d59-9e41-c0e1dca518c4", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "2cc72bd8-97dc-4a12-bdbb-a2e84eb35d52", "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": "ec030de1-caa1-4e5e-8c16-eb0a168b288b", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "715f4a69-c061-4446-95a6-5d6a13ca498f", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_cat" }, { "id": "7d7de33a-3682-4c5b-84fd-2457f7d8b4fd", "comment": "Vérifier nombre de membres", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_membres_cat}" }, { "id": "eae64af8-25b8-4232-a976-1e530e1dd6ad", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "01d80644-1171-4f0e-aec7-2aee6524270a", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "eb700fcd-a9ad-4f0e-b3b9-e39ad7d96b22", "comment": "Trier par ville", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "f82dd30f-c9d9-4bed-b1a9-1f7274ce79f6", "comment": "inverser le tri s'il est en ordre croissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "65d23448-4184-48e6-b69f-91bfdc1e80ea", "comment": "", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "c8846e14-0b3f-4e45-8cfd-91aceb587006", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[3]", "targets": [], "value": "premiere_ville" }, { "id": "e30c5ac7-db03-448a-a008-137ab8630ed1", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/td[3]", "targets": [], "value": "derniere_ville" }, { "id": "e3b1badf-b520-4752-9978-b4f2da6732cf", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "3c772754-2d27-45f5-b983-9a6174a29b0f", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${nb_membres_page}]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "266d3345-5e03-462b-aa91-6432d0b71a5c", "comment": "", "command": "executeScript", "target": "return Number(${numero1})", "targets": [], "value": "numero_premier" }, { "id": "47058551-e469-4b86-a017-be71943bb26d", "comment": "", "command": "executeScript", "target": "return Number(${numero2})", "targets": [], "value": "numero_dernier" }, { "id": "6cb020d5-e62e-4f07-8498-eabf33fa6b10", "comment": "", "command": "if", "target": "(${premiere_ville} == \"\" && ${derniere_ville} == \"\") && (${numero_premier} < ${numero_dernier})", "targets": [], "value": "" }, { "id": "1e82aa24-b9fd-481a-b621-134c05d9fe31", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "7c42a817-ae56-4347-b351-918423053ae5", "comment": "", "command": "elseIf", "target": "${premiere_ville} != \"\" && ${derniere_ville} == \"\"", "targets": [], "value": "" }, { "id": "2c119af7-6ab6-4cbf-a29a-c395d807a9d3", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "445b6e45-8eb0-49e9-8083-81c17a556e11", "comment": "", "command": "elseIf", "target": "${premiere_ville} != \"\" && ${derniere_ville} != \"\"", "targets": [], "value": "" }, { "id": "637d86de-03f6-476d-ab50-98d883690e0c", "comment": "", "command": "executeScript", "target": "return ${premiere_ville}.localeCompare(${derniere_ville})", "targets": [], "value": "comp" }, { "id": "5b967309-fa60-4cc4-bb84-798d6c6e0b6a", "comment": "", "command": "if", "target": "${comp} < 0 || (${comp} == 0 && ${numero_premier} < ${numero_dernier})", "targets": [], "value": "" }, { "id": "34f72ca7-2e37-40cf-9503-e3e677345790", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"ville\")]", "targets": [], "value": "" }, { "id": "25aa53d3-a6d2-4ced-882a-ae8388cd6c55", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5ba2d9af-aea6-49dd-9671-d66b0080bde1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "837e9c9a-7470-494d-8d01-fed18d58242d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a75aa56c-25f1-4ce3-9eb0-9ce6278508a6", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c624c87a-7900-4c16-9cfd-2fcc97b86229", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "be6e8e77-2934-4a1d-93e4-dcfef0dfd642", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres_cat}", "targets": [], "value": "" }, { "id": "5e87b647-5010-4833-a995-23dfa0d7ef10", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "8d33d644-ad6e-474e-b7c7-a300b1a7861a", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "6b730630-76ce-44da-9f13-e725213d7989", "comment": "", "command": "executeScript", "target": "return ${nb_membres_cat} - ${nb_membres_page}", "targets": [], "value": "nb_membres_cat" }, { "id": "541659b3-9207-49e7-9568-f8ce4b44cdda", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "630f7f6a-3dff-4206-a8bd-6d9ad5737e02", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "575b0a80-de06-4081-b0a9-0ad8f23b8e41", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b4384b15-5774-49f1-9627-3d24e57fa503", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "c82a67e3-89fd-454c-bef2-897e3595fef2", "comment": "nom affiché", "command": "//storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "0b490677-bc5a-4586-bb8f-26a324923cfe", "comment": "ville affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td", "targets": [], "value": "villeAffichee" }, { "id": "0eecd8a3-4dda-4938-901a-19f1eb497add", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_ville_dec}[${i}].numero", "targets": [], "value": "numero" }, { "id": "7ede4f3f-814c-4ba0-a421-575b26e183c1", "comment": "ville mémorisée", "command": "executeScript", "target": "return ${membres_ville_dec}[${i}].ville", "targets": [], "value": "ville" }, { "id": "b5a2a7ed-47eb-48a7-b8b3-c1e9f95dc878", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "66dab4bc-1a14-4e73-95c2-e5a442589344", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "fa76365f-cfa3-40b2-bc14-6a1c8841ac3c", "comment": "", "command": "//assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "85485983-7abf-4c22-8a72-530155702393", "comment": "", "command": "assert", "target": "villeAffichee", "targets": [], "value": "${ville}" }, { "id": "14644e54-14bb-45f2-820f-ff614ddfba8b", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "30dd102d-c9bb-4598-9144-330d53a0a62f", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "95c3b63c-ad4a-42c5-8a98-8472ea971441", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "e6dc8eef-f38a-482b-8128-f46648bffe42", "name": "04-09 lister membres tri rattaché croissant", "commands": [{ "id": "42e4d3f0-c60f-48c4-82bd-9864f1517cd4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "60a485a8-ddbd-4e45-b2e1-ff721fe3c9c5", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f49ba62b-e727-4c50-817d-7c6dec743115", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "4e1c5898-3da7-4f99-8d8a-b19b0066b97e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "c5e73a48-7269-41d7-8953-1fc26f05334d", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3018e22d-9d87-49b5-a13f-b0650fb6de74", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9b3b0a7c-50c4-4dad-b4ad-f7bb6bf80234", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b0ee6a00-9ed6-4ba3-acb9-b2d62e83e304", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4b6f8d36-3da6-4b95-ab81-36ad86caed90", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2bc5b846-d4dc-4ab3-a5dc-4e2031891f36", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "2609fb12-74ea-4088-8ae7-80bebb5dccd6", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "a47008d7-6d93-4834-9275-d73c844dc27b", "comment": "Init liste des parents", "command": "executeScript", "target": "return []", "targets": [], "value": "lesparents" }, { "id": "8012dbd0-afb3-421a-9cee-c28404674e3d", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "ff0e3d75-177e-4d38-bd99-dd5bd8c53381", "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": "203ce549-b2cf-45b2-bbcc-67534533ea0b", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "1ee9340d-edaf-4303-a2fc-190aeb77cbe7", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "cb11ec3a-fbab-42fd-a848-68fc64ac9ac6", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "48a1fb6f-5e81-493c-8fbe-2e2b0620cd15", "comment": "Déterminer le présence de membres attachés", "command": "storeXpathCount", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "existe_rattache" }, { "id": "72313121-a659-407d-b9ef-269161698e24", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_parents" }, { "id": "0e0436e3-de81-40d2-bd21-2fe0ed884f9e", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "07cf520c-6978-4759-a1d7-6ecd2d787e4b", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "13542968-7ef5-4b16-bc15-ef3dd5be343f", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "dd0fedcf-c33b-4b14-a318-93c4b9056068", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "4024ea9e-ba39-47df-bbf0-439104a75518", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "7d9f30e2-3f77-4777-9ccf-e95fec7be350", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "cbc6cdb6-377d-45ee-93e2-4f2ae346d44e", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "b752acb0-a526-413c-a73c-65020f18741f", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "78540ec2-2524-49ef-8dc1-c76926cf9823", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "69aee151-86a6-4f03-bd2b-111c3e74426b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "623e5e61-fd6f-4508-aaf9-3cbc1c9ab8ef", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "01aa845c-eecc-4077-9f30-afcbc057f8a1", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "3f0c452a-4fb3-4962-891f-61f2bf34ce10", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "d947ec69-68a4-4d72-b334-ea72bca1cc46", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "0b2b0cf6-2d83-42d2-8f6f-1f78170bacb6", "comment": "", "command": "if", "target": "${existe_rattache} > 0", "targets": [], "value": "" }, { "id": "b5c37ee2-d858-42ca-baf3-6c222817fb09", "comment": "parent affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "targets": [], "value": "parentAffiche" }, { "id": "a48c363a-74f5-4f4f-93a8-ee50153e39f1", "comment": "", "command": "executeScript", "target": "return ${parentAffiche}.length", "targets": [], "value": "lg" }, { "id": "b3d94dec-6436-434e-8c2a-768aab532922", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "d9ecac62-1a57-4c60-ab4d-cd63f9ed0694", "comment": "", "command": "executeScript", "target": "return ${nb_parents} + 1", "targets": [], "value": "nb_parents" }, { "id": "819a5cad-5fac-4e39-90aa-90b70b240378", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d315a426-390b-44ae-9bf9-99f0d78944d0", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parentAffiche})", "targets": [], "value": "lesparents" }, { "id": "b20e9e6c-ed12-43ce-b817-3ed67d01db53", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "b4c009c6-f57f-40e0-9828-c93408d60142", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "fa71573e-ecf8-4437-a344-1c58ec6ee50c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "573651a2-2a49-43a7-aceb-4786bf112b6f", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "634dd538-aba2-4b61-ba7d-5f404f6b82db", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a6d6d344-f6ed-41fa-a2aa-f8a25ad5cfa7", "comment": "Générer de nouveaux membres si nécessaire", "command": "", "target": "", "targets": [], "value": "" }, { "id": "47e65036-df09-4d0b-8929-db373a9fb890", "comment": "", "command": "if", "target": "${nb_total_membres} < 20 || ${nb_parents} < 10", "targets": [], "value": "" }, { "id": "0cac3c8b-a9c3-43f8-8f30-623b957476f5", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "3bf8c3dc-f253-4f0c-b7fb-0d775880d7e2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0017f3d9-eedc-44b9-9b36-e7f02e273bfb", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "4f66fe3b-d3b5-49b3-96b3-2f53765c6c53", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "88b7aa01-4748-4d99-bae0-954885d838de", "comment": "Parcourir nouveaux noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "a08b2b6e-4a22-471b-8385-50046c02260d", "comment": "Membre/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": "f3f99e73-79aa-4be4-9d2a-7d0ff838e07f", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "3706470d-dfba-43b1-982b-5ca71d515ac4", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "25f4e77e-880c-4944-9174-6370bb0bbe16", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "4897dece-0b51-47c0-a91a-62ddb241fc75", "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": "429e6281-b176-42ae-9899-76eec2b44936", "comment": "sélectionner un parent parmi les membres présents", "command": "executeScript", "target": "function selParent(lesnoms, lesparents, nb) { while(true) { let num = Math.floor(Math.random() * nb); console.log(\"num=\" + num); if (lesparents[num].length == 0) { return lesnoms[num];}}} return selParent(${lesnoms}, ${lesparents}, ${nb_total_membres})", "targets": [], "value": "parent" }, { "id": "9e65cb94-4898-4564-a671-7097619e2504", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parent})", "targets": [], "value": "lesparents" }, { "id": "a6b6cf6d-d6bd-41bf-8a0e-b3ca42e1802a", "comment": "Rattacher membre au parent", "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": "999b8c3c-8e8e-442c-bbb7-e27c59efee4a", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "3b637a23-9ab6-4f2b-a6c7-789994243a01", "comment": "", "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": "${parent}" }, { "id": "c41862a6-7e97-4bd5-a01a-ec450bec40aa", "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": "21f097da-9421-4e8b-be39-c20c4af12fc1", "comment": "", "command": "storeXpathCount", "target": "xpath=//tr[@class=\"clickable\"]", "targets": [], "value": "nb" }, { "id": "3c502b9d-5d04-46ce-a07c-69bf655c85cc", "comment": "", "command": "if", "target": "${nb} > 0", "targets": [], "value": "" }, { "id": "17b704fb-fc42-42ab-b627-4fb6e5413e2c", "comment": "sélectionner le parent", "command": "click", "target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${parent}\"]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"] ], "value": "" }, { "id": "10c46d48-42d3-4afd-bc13-8fb753d6a328", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "eff6d272-f8b0-4761-ac35-1867fa841f7b", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "94e089ad-9dc6-4553-9047-98ae5d18bffa", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "b2518c46-9134-44d5-925e-9a9fe118c485", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "556e3e4b-5387-43cf-9f0a-31a9894a9555", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "22a5234b-0cef-4eb5-a8bc-cbd24fa72a39", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "64df2c00-fac9-43bc-ba02-b39984fef6ab", "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": "6bbbf0bf-5aec-4773-afd2-72afebc5b056", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "656493cf-95eb-46d7-9e15-eda2e53a8f3d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a418fa16-f127-4bef-bb5c-fd5bfe7b2916", "comment": "Trier les noms par parent croissant", "command": "executeScript", "target": "function trierParents(tparents, tnoms, tnumeros, croissant = true){ let tab = []; for (let i = 0; i < tnumeros.length; ++i) { let o = Object(); o.numero = tnumeros[i]; o.nom = tnoms[i]; o.parent = tparents[i]; tab.push(o); } tab.sort((a, b) => { ordre = croissant ? 1 : -1; if (a.parent == '' && b.parent == '') { let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; } if (a.parent == '') { return 1; } if (b.parent == '') { return -1; } let comp = a.parent.localeCompare(b.parent); if (comp == 0) { comp = a.nom.localeCompare(b.nom); } if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; }); return tab;} return trierParents(${lesparents}, ${lesnoms}, ${lesnumeros});", "targets": [], "value": "membres_parent_asc" }, { "id": "aee6536a-c9e3-4fa7-ad95-7fedcfb28b8d", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "058739f4-9f33-4455-9c4b-39773a0b7d0b", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "d86ceeb4-71a1-416e-bff7-6862d92099cb", "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": "22f4e2c0-cfc9-43a5-84ef-fae5f8af4463", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "3f2d8bba-bb30-42bc-bb85-9f8e5d9017dd", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "a31f76d4-26bb-4d25-afa6-ff804e795f44", "comment": "", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_total_membres}" }, { "id": "caf359c0-4e02-466e-8b8f-beca805d69cd", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "4a88bfa1-6850-4c1e-be38-dbc821a7d934", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "95852992-a3a5-4153-b35c-385b237da571", "comment": "Trier par parent croissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "c7162fb3-35ac-4e49-8ddc-da8855714da5", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d2b1eec6-f76e-411d-bf2a-245499ff8589", "comment": "", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "id": "5f7d406c-27f5-4f76-a8d9-b4097b59d572", "comment": "", "command": "if", "target": "${nb_parents} >= 2", "targets": [], "value": "" }, { "id": "c725c982-1e45-4768-8b0b-04ef0dc4a525", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//td[4]", "targets": [], "value": "parent1" }, { "id": "f8991fa9-f588-4a37-bd5c-a3ad1e1b757c", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//td[4]", "targets": [], "value": "parent2" }, { "id": "9473ae96-2a7f-4555-aa81-5627b4d821d4", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//th", "targets": [], "value": "membre1" }, { "id": "20a8bada-4099-4f0b-bba8-59bf4f3337b6", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "539d8f10-6e95-4f91-9e67-57c8e1bf5647", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "1b8c7bd8-5e60-48cc-b4d6-ad69d7007d3b", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "c13e7906-58c6-4732-90c8-06481b2367c7", "comment": "", "command": "if", "target": "${parent1}.localeCompare(${parent2}) > 0 || (${parent1}.localeCompare(${parent2}) == 0 && ${membre1}.localeCompare(${membre2}) > 0) || (${parent1}.localeCompare(${parent2}) == 0 && ${membre1}.localeCompare(${membre2}) == 0 && Number(${numero1}) > Number(${numero2}))", "targets": [], "value": "" }, { "id": "316e0656-f265-4e9a-af31-932f3016c781", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "acbcf6e1-2aba-4ef8-849b-231610920a6e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "74c3fcb9-640a-41da-b666-f2b3a7898dce", "comment": "", "command": "elseIf", "target": "${nb_parents} < 2 && ${nb_total_membres} > 2", "targets": [], "value": "" }, { "id": "eab45a3b-bed9-4cb7-91a4-9755e875de48", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "68ef9b49-6413-4da8-9532-d92cb8e7d32e", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]//th", "targets": [], "value": "membre3" }, { "id": "fe7e7b9b-4e52-4249-8e67-a65dd4e0f964", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "7887e3f2-b52e-4c0a-b793-246e9b15a00b", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]/td[@class=\"num\"]//span", "targets": [], "value": "numero3" }, { "id": "1079b2ef-086d-47cf-917f-c85c02e359e9", "comment": "", "command": "if", "target": "${membre2}.localeCompare(${membre3}) > 0 || (${membre2}.localeCompare(${membre3}) == 0 && Number(${numero2}) > Number(${numero3}))", "targets": [], "value": "" }, { "id": "3b478c32-dd57-4fe2-9b43-fd7554c8edfe", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "6dd75c79-6c11-4fad-8c64-d3692e6324c1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3dd28cd9-42d4-404a-a607-baf479dc723e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fa0d4446-b42a-42fc-b882-cf8e8db8e0bf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "05d8e8cf-6b12-42f2-856c-79a1d8e13ca5", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "07629c5f-4a3c-4227-a25e-f971d7d11bc6", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "fb41d71f-ca39-4882-98eb-a5b9c061af90", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_total_membres}", "targets": [], "value": "" }, { "id": "151b7046-1926-4ea2-8b76-9fff22e1d6bc", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "74134716-d7d3-468e-8544-0f9b061a68c9", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "6e78ed74-be18-48f1-8b65-19d439d82704", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres} - ${nb_membres_page}", "targets": [], "value": "nb_total_membres" }, { "id": "1fc92746-07b5-4fec-987a-8c44e896c596", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f02c60c7-f013-4d94-ac44-cb4f9db4e060", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "b8627e09-18da-4bdf-a681-aeb16e0baf38", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "dadda7df-0452-4419-98b1-80be213fb07e", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "289585f2-f24b-4da0-92e5-f2df91dd5e49", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "a4f9222f-b0b2-4d68-9c82-4a72eef7d886", "comment": "parent affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "targets": [], "value": "parentAffiche" }, { "id": "f8dbe728-797b-4ccf-8818-824bda5a8de4", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_parent_asc}[${i}].numero", "targets": [], "value": "numero" }, { "id": "88ead84c-1e37-4e66-985f-b6178e46a392", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_parent_asc}[${i}].nom", "targets": [], "value": "nom" }, { "id": "4b093be5-ddff-4497-93ac-750162617c13", "comment": "parent mémorisée", "command": "executeScript", "target": "return ${membres_parent_asc}[${i}].parent", "targets": [], "value": "parent" }, { "id": "e277d47e-deea-47b9-8ed6-dd74317e9038", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "6c57bd1a-50fa-41cf-bd86-f0c75b7c94bd", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "624d22e5-f8bc-4ec9-9484-0ae7ab59dd30", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "840494f1-98d9-49d7-9c82-56d002af3e31", "comment": "", "command": "assert", "target": "parentAffiche", "targets": [], "value": "${parent}" }, { "id": "218040ef-5c71-49a3-b987-c4f2ea151db6", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "b3a82a7e-0f11-4ff9-aa84-5697048318b0", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "909281cd-ded1-440c-a045-58fa5e46c120", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "3d1fc496-8036-4948-af1e-607d5375e813", "name": "04-10 lister membres tri rattaché décroissant", "commands": [{ "id": "d1468ab8-2d2c-4d46-9d9e-f2a7e6136fc3", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "dd87d0b6-58a9-42da-982d-6aa01a676560", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "058e33c3-6334-45ee-a815-3e7f06b4a0de", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "f1560637-e554-436e-aa23-c0503c2e7e6e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a894d80c-66df-47b9-883e-d991c1226b2b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "319f7121-66d0-4ca9-9d56-e2c994f4f0d7", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "493f9bdb-9fcc-449f-bd3f-803e96e61a90", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "527a684d-2367-425f-a8e9-502d1866de49", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "206038d0-3744-4827-b58e-596a294cf229", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "66f6d177-b35c-4dd7-b13b-b27a3dd909c2", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "e4a63f8b-9046-4a2d-ac22-e80c6eccf3a9", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "fc596f91-f4cc-4bfb-9d3f-03e540b0bbca", "comment": "Init liste des parents", "command": "executeScript", "target": "return []", "targets": [], "value": "lesparents" }, { "id": "83ab19cd-2056-4868-afcd-4624e191773a", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "50e5c98a-0a2a-41cc-b72f-f5c6b2da5453", "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": "951c9c99-3f40-4bc6-b4cd-ab8c81167975", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "9ed16c3d-506d-49d9-b392-a5435b8ee845", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "4815f01d-f44b-4e85-afab-85e060325cac", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "441fc68f-710b-4942-bb64-10b95a3cc9ca", "comment": "Déterminer le présence de membres attachés", "command": "storeXpathCount", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "existe_rattache" }, { "id": "bfbfca04-173c-4e86-b683-a814686e86b5", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_parents" }, { "id": "45517ce5-faaf-443d-b2fc-4a1bbba721ef", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "058bab69-5af0-4fd4-8532-4202314e4791", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "3bd8f9a6-1911-4139-856e-7bb208547dd6", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "57a9329c-3997-4d40-99cb-8530d4657a94", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "1e2b191b-7922-4a64-933e-e06e19d0ee69", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "7636b0b1-ed12-4025-a982-0aa6b4dc0c7b", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "e32c4249-af89-4a94-81f4-90730dd0080e", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "80fd3d98-b2ca-4c67-928d-fac957e3c389", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "dd96c8c2-0eb7-4462-a6ca-e6a270cceb6a", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "4b6e384f-3b2c-4d29-b2a2-fce757f69c6a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f803a2dc-2251-457d-afee-41c0f3a6c36a", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "e0d0de86-3b00-4aea-a69d-e5173b7a8a82", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "4e4d7cb7-5b66-4ade-b867-bc2f4ecabaa9", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "3a2c360d-4169-4627-8f21-54ca04323813", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "72fc596d-c276-4174-b8cf-c30c95ba89cc", "comment": "", "command": "if", "target": "${existe_rattache} > 0", "targets": [], "value": "" }, { "id": "130dcad6-df70-4533-8ed2-2be7e798523c", "comment": "parent affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "targets": [], "value": "parentAffiche" }, { "id": "95586fb9-f1f5-4fe8-ab73-3aee3d43277a", "comment": "", "command": "executeScript", "target": "return ${parentAffiche}.length", "targets": [], "value": "lg" }, { "id": "799a8071-5b06-41d3-855f-3a309ecc5724", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "fa9dffd0-fe1f-406c-9bd2-b2a323525311", "comment": "", "command": "executeScript", "target": "return ${nb_parents} + 1", "targets": [], "value": "nb_parents" }, { "id": "d9395c79-9d89-4eea-b063-c1c7c0373eba", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "afcd4aa4-fc1a-494c-a2bb-7747cb88ab3f", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parentAffiche})", "targets": [], "value": "lesparents" }, { "id": "18d17f1f-b932-45ec-b06f-aaf2f64a936b", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "0717a430-fe26-46f3-ae84-39a682f2d532", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "09dcdccb-569e-4ea1-b00e-cab82b5b7d95", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b2371862-340a-4589-baaf-e1b77bf36468", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "aae16e48-6736-432c-9e29-ff2a7a24df1a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f8a6d4c3-f92a-46b6-997e-6e00eda3cb93", "comment": "Générer de nouveaux membres si nécessaire", "command": "", "target": "", "targets": [], "value": "" }, { "id": "62b2cf2e-01c0-478d-a976-cba1c9d4747d", "comment": "", "command": "if", "target": "${nb_total_membres} < 20 || ${nb_parents} < 10", "targets": [], "value": "" }, { "id": "da84f826-97f9-4f76-b3e0-24660ff299a2", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "beb55908-2a48-4ec7-be06-6d47ac82d58a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "264ee890-42a3-419f-a44e-664841bd6b8e", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "a5246e8e-8853-4c78-a9d8-0266b5271617", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "e34645e3-6b24-44f1-9e40-70999affccd3", "comment": "Parcourir nouveaux noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "27b658c6-8b51-4b99-af0e-ef4ba858e8ec", "comment": "Membre/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": "b472ad0e-5422-4efb-abef-8bde0e61be2f", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "6b5fa697-2545-4c03-8d76-4e775c26123b", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "85d1ac18-aae9-4742-bf53-4b8f53550519", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "87a5c66e-6d70-4330-b661-160eadfc98da", "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": "7cccf611-8a4b-4e31-982f-6546be582881", "comment": "sélectionner un parent parmi les membres présents", "command": "executeScript", "target": "function selParent(lesnoms, lesparents, nb) { while(true) { let num = Math.floor(Math.random() * nb); console.log(\"num=\" + num); if (lesparents[num].length == 0) { return lesnoms[num];}}} return selParent(${lesnoms}, ${lesparents}, ${nb_total_membres})", "targets": [], "value": "parent" }, { "id": "37b6d65b-4e89-4a59-a0ed-21f0031ce53b", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parent})", "targets": [], "value": "lesparents" }, { "id": "2e82efb4-69c3-4100-903b-1e9cc074905f", "comment": "Rattacher membre au parent", "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": "9db3c26b-9aea-4af3-bebe-1f275505f970", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "3935d128-ed62-4235-9390-e577e975a587", "comment": "", "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": "${parent}" }, { "id": "3e7099fc-fc0d-4e59-a7e8-0500473ff294", "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": "3b637d77-7348-47e7-b7a7-43019f49e51b", "comment": "", "command": "storeXpathCount", "target": "xpath=//tr[@class=\"clickable\"]", "targets": [], "value": "nb" }, { "id": "c3f88691-5fec-447d-a147-989815fdea51", "comment": "", "command": "if", "target": "${nb} > 0", "targets": [], "value": "" }, { "id": "6a5ba85a-09f1-4761-b8c2-a8b2b5612815", "comment": "sélectionner le parent", "command": "click", "target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${parent}\"]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"] ], "value": "" }, { "id": "12f5a119-e6ac-40ed-a3f2-863658f03599", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a8c7a2f5-b483-4043-9275-b2e5dfc4e70d", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "dca8c725-972f-444d-974a-db48e82174a1", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "11a5c42e-30e1-4764-b84c-d3b34fb086df", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "4dc90551-b52a-4baf-940c-01e1b5068964", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "4d0fefb2-f584-412a-956b-cf96e1a87e20", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "deffed2d-3568-4748-ad2d-890e63fa6b51", "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": "c7619762-a806-4b43-8b5b-2b4d0636286c", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "6c408902-a598-413a-ac0c-a432e9dd0c19", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c85e496c-a004-48c5-886a-b14dcca1c06f", "comment": "Trier les noms par parent décroissant", "command": "executeScript", "target": "function trierParents(tparents, tnoms, tnumeros, croissant = true){ let tab = []; for (let i = 0; i < tnumeros.length; ++i) { let o = Object(); o.numero = tnumeros[i]; o.nom = tnoms[i]; o.parent = tparents[i]; tab.push(o); } tab.sort((a, b) => { ordre = croissant ? 1 : -1; if (a.parent == '' && b.parent == '') { let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; } if (a.parent == '') { return 1; } if (b.parent == '') { return -1; } let comp = a.parent.localeCompare(b.parent); if (comp == 0) { comp = a.nom.localeCompare(b.nom); } if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; }); return tab;} return trierParents(${lesparents}, ${lesnoms}, ${lesnumeros}, false);", "targets": [], "value": "membres_parent_dec" }, { "id": "5cf11199-9c60-4e5f-a94c-f1ed064420d4", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "725fc849-76fb-46e7-ae68-49b604679eaf", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "7af6a69d-b977-4ba1-a116-81dab3433509", "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": "a93bb09f-5e8b-48ce-b32a-a882ad65e4c7", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "dc922d29-dcf3-4792-80d0-0793ff45b90f", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "05603ef2-bf1b-4f18-8662-83f9cd936f60", "comment": "", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_total_membres}" }, { "id": "d7f81a4c-cf2b-4847-a21b-e914c20dea90", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "9bf41c97-597e-43e7-ad67-b29e4fd17244", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "efc0d938-c6a2-4339-90f1-ef9827b6bbf0", "comment": "Trier par parent décroissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "563e6c61-4ae2-4322-8740-52016a8112f0", "comment": "inverser le tri s'il est en ordre croissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3f1dc67d-b1cd-4ddc-a147-03f22c37ddfc", "comment": "", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "id": "c495c1fc-9d9c-418f-bcb5-c72a7b1867b7", "comment": "", "command": "if", "target": "${nb_parents} >= 2", "targets": [], "value": "" }, { "id": "1fb96c41-b92e-487d-9685-7c74bea9c0f0", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//td[4]", "targets": [], "value": "parent1" }, { "id": "d3ed351b-f067-486d-bf7c-5f67d4727443", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//td[4]", "targets": [], "value": "parent2" }, { "id": "ee85bc32-e9cf-40f0-b2fa-3628cf76d53d", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//th", "targets": [], "value": "membre1" }, { "id": "08480205-ca0c-458c-b882-03dc3decdfdc", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "afc53100-5828-4a05-8fb9-5899ae16c124", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "8796aacc-765e-4bfd-bbd1-fe52d657c25c", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "0183a571-1576-43aa-8140-dab6fc90c664", "comment": "", "command": "if", "target": "${parent1}.localeCompare(${parent2}) < 0 || (${parent1}.localeCompare(${parent2}) == 0 && ${membre1}.localeCompare(${membre2}) < 0) || (${parent1}.localeCompare(${parent2}) == 0 && ${membre1}.localeCompare(${membre2}) == 0 && Number(${numero1}) < Number(${numero2}))", "targets": [], "value": "" }, { "id": "bae9146e-92fe-4f55-94eb-dddbc4ff92a2", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "7dabd4cf-806e-4b12-91c7-9fd13ebe5e4e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d8ae5ba6-269e-43f4-8bdd-2622ce83dd41", "comment": "", "command": "elseIf", "target": "${nb_parents} < 2 && ${nb_total_membres} > 2", "targets": [], "value": "" }, { "id": "eafff0d1-e42d-4232-8757-522cec8c4813", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "f75aefbe-a4f6-4daf-a5cc-0a887f4d5d81", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]//th", "targets": [], "value": "membre3" }, { "id": "7c035558-b785-477c-af11-39a580df9e49", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "f6d5f6b5-373b-46e3-bd3e-3973e5c07e88", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]/td[@class=\"num\"]//span", "targets": [], "value": "numero3" }, { "id": "1b76edbf-dbd8-4cc3-a67d-ae4f50f270f0", "comment": "", "command": "if", "target": "${membre2}.localeCompare(${membre3}) < 0 || (${membre2}.localeCompare(${membre3}) == 0 && Number(${numero2}) < Number(${numero3}))", "targets": [], "value": "" }, { "id": "5149ba9b-8169-4c83-855f-0dedd6afae1f", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"id_parent\")]", "targets": [], "value": "" }, { "id": "9a49c432-0439-42fa-a02c-5fab72ea8545", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "af19c0c8-be75-45c1-ba82-5235811d94fc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5f928fae-fb0b-4fe1-a213-d7eb5ee34c02", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e8b68e84-55cf-4734-9c2e-b9fc9e806583", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "d47765a2-04b8-445e-ae3a-f8342c978b56", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "a9322622-903f-4ca3-883d-c012c6764507", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_total_membres}", "targets": [], "value": "" }, { "id": "ec1f3daf-a114-47ff-bfce-541f1976f5a6", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "2aae1cdf-ec33-4e70-af6d-5d8c0f3937b1", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "4239ae59-ba31-46e5-a409-d501e9cd5f29", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres} - ${nb_membres_page}", "targets": [], "value": "nb_total_membres" }, { "id": "a477027a-1239-4dc0-8f51-a10197932586", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "7d945625-631c-494e-9d83-70d5d120e0e3", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "16885068-e8ae-477f-b092-2e02abe5feb6", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5a8fcf9e-5d3e-4f02-a6a4-30eef3640ca9", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "4c5cdd03-0e71-4c17-bddd-cc249f9f2976", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "cf281544-86c2-49ad-926c-f4974beb72ec", "comment": "parent affichée", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "targets": [], "value": "parentAffiche" }, { "id": "26cbdb1a-c2b1-4762-96a8-bde6e33fef1d", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_parent_dec}[${i}].numero", "targets": [], "value": "numero" }, { "id": "75028fcb-ab4e-45c9-83d5-3ebf04aa8d37", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_parent_dec}[${i}].nom", "targets": [], "value": "nom" }, { "id": "ec8a8094-ae99-46e7-88bd-9ba2e80ce843", "comment": "parent mémorisée", "command": "executeScript", "target": "return ${membres_parent_dec}[${i}].parent", "targets": [], "value": "parent" }, { "id": "5409fdaf-c3b1-4972-9ecf-ac47d0fba6b3", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "aa25b643-e68a-41ed-ba46-b2ef3b099539", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "03742f95-5a6e-4daa-829d-f4f24bf21a6d", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "f002813c-ef1d-49f8-93e1-7f379f23a707", "comment": "", "command": "assert", "target": "parentAffiche", "targets": [], "value": "${parent}" }, { "id": "52e57ccc-9843-40e2-83f9-302778388baa", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "375236e9-5241-4a53-9409-d7b0979c5dfb", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "2eaa3dff-62e2-4fc9-8041-3aaf4c7de54f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "2d33e4b1-0a99-4c1f-a6b8-154362a00c66", "name": "04-11 lister membres responsable croissant", "commands": [{ "id": "f7411ca5-97f5-4725-9b7c-6623cc1c38c9", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "73c1f610-4af2-4921-a9da-7d1c9f6f9950", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ec7463a3-6c21-4584-ab52-a7c3081ea809", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "9762ab4b-3af6-4212-bbf5-bb5c7dd28e76", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "cd763f26-537b-4401-85b9-e8f33f2748cb", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "7f831eb3-42b7-471b-92e6-bbf92f23bff7", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9a785339-9074-4653-9b17-632ddcb9a700", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "318458d8-75c1-43ae-9d4b-0277d1e23350", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "71fd2de7-7557-43a5-a22c-bbc5001628a3", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f64993d2-1f86-4a6a-8cd1-24e6aeed35b9", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "185ec718-cb77-4d73-9159-02d22ff3ec08", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "7a98cdbd-3576-47a2-9ca4-c2eb74ee844b", "comment": "Init liste des parents", "command": "executeScript", "target": "return []", "targets": [], "value": "lesparents" }, { "id": "84d72b14-0485-4a12-a97c-ee3143b823fc", "comment": "Init liste des responsables", "command": "executeScript", "target": "return []", "targets": [], "value": "lesresponsables" }, { "id": "ac6dedb1-43e5-44a0-89d5-cb39580af3c0", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "88b73d78-8d65-4e7c-afac-7ecd3f0a1eee", "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": "62378d96-da55-4c22-ab1a-3eb2091d2e10", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "0fe70227-e95f-47d8-ba03-929c1675b7b6", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "6007b4f9-202e-471c-9981-317060378aa6", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "bb222a8e-279a-4a67-8c90-614e7dde6f05", "comment": "Déterminer le présence de membres attachés", "command": "storeXpathCount", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "existe_rattache" }, { "id": "71c37591-da87-4471-848c-a95af269067d", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_parents" }, { "id": "a8565be3-d5a4-4427-9d72-126b5de464e0", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_responsables" }, { "id": "ceeaab00-74bb-4f2e-9054-cd5cb3ddd746", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "bcd68921-9e45-4c73-8363-f4c02603b965", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "d4b5faa7-3d64-4dfa-bc42-59ffb92cd467", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "c0620443-a5c9-4518-bef0-0117f62d1e6f", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "9bf98d54-6a79-4551-9113-29422c05337b", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "f87d480c-54a3-491f-a029-de37f22d9887", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "87bc6e75-5a8a-4559-a97e-e12dab36bd06", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "809f2cd4-6ca8-4efb-b1ab-652334671b9c", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "1293995b-e614-49a6-841b-a2a194baa813", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "6f592bc4-b9d5-4452-af7b-5c488cee7675", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0c1b26ca-40c5-4b24-a7cb-c81757409730", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "343f99a8-5e00-4996-9804-bdbdb1a1e56f", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "ab2cba33-3f4f-4231-b7d2-aaf4e0c856a6", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "ff56cbac-4cff-40a4-9ab2-b844e54d273f", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "b0007505-c59c-4e8f-b922-1930c52633cf", "comment": "", "command": "if", "target": "${existe_rattache} > 0", "targets": [], "value": "" }, { "id": "d4b241cf-9ace-4b60-add4-9baee2c291c7", "comment": "parent affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[4]", "targets": [], "value": "parentAffiche" }, { "id": "926bdc90-a3f3-4d32-a6b7-b3f395851f3a", "comment": "", "command": "executeScript", "target": "return ${parentAffiche}.length", "targets": [], "value": "lg" }, { "id": "6fad5f16-f6e9-471b-87a4-ea428bf97876", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "462ffc37-d6d9-4d49-b68e-85092d8bb242", "comment": "", "command": "executeScript", "target": "return ${nb_parents} + 1", "targets": [], "value": "nb_parents" }, { "id": "de5aaa99-a2d1-4796-91cf-7a9d7429709c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d71b8414-0040-468d-a0e1-e2c5fafbe798", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parentAffiche})", "targets": [], "value": "lesparents" }, { "id": "440b9a89-f48b-4045-809d-948b6fd5527f", "comment": "responsable affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[5]", "targets": [], "value": "respAffiche" }, { "id": "868ad12f-ad4d-4d00-af08-c77b98521ba9", "comment": "", "command": "executeScript", "target": "return ${respAffiche}.length", "targets": [], "value": "lg" }, { "id": "98f6eb2c-583e-4b49-a35c-eaf48010beba", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "56806d2e-8022-4a93-893e-c5e2f83e3f73", "comment": "", "command": "executeScript", "target": "return ${nb_responsables} + 1", "targets": [], "value": "nb_responsables" }, { "id": "8356efc2-fe59-4551-aa1b-38e50c663051", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b160c174-72d7-47a7-94f3-7e9b8a04cc53", "comment": "Ajouter responsable à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(${respAffiche})", "targets": [], "value": "lesresponsables" }, { "id": "746ddf14-18bf-470f-9bbe-351bec86f5ae", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "37d2205b-6d44-453f-bd04-e60bb8d71ca5", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "4fbd11c8-dbc7-4c84-8151-0de8dc26765c", "comment": "", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"\")", "targets": [], "value": "lesresponsables" }, { "id": "97fb8b08-c556-4035-a34c-7caa2f01d6b7", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c2f4dc05-250c-46a0-a5ed-30ee72e48d04", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "e9570f2f-f347-4b56-a707-751255e6b52d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1fc8f2b3-1e93-4a7c-a65a-6e380c081b28", "comment": "Générer de nouveaux membres si nécessaire", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7f67aa81-4ea5-45ba-821c-d30ee710e80b", "comment": "", "command": "if", "target": "${nb_total_membres} < 10 || ${nb_responsables} < 5", "targets": [], "value": "" }, { "id": "a1fa3c06-f29e-47e6-92c8-26628215623d", "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; }; const nb = 2 * (3 + Math.floor(Math.random() * 8)); for (let i = 0; i < nb; ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "484edcc8-8aaf-42ad-bfe4-16f496efb1a3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5a5eed42-6eee-4890-a4f9-4b35609d3f84", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "d4ef89db-a8ce-44fd-8a33-3bd5642b4806", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "1d77c57c-73bc-4cc5-b353-1e439731c357", "comment": "Parcourir nouveaux noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "316f128e-1ab7-441b-b8ad-4dbfae1dca3a", "comment": "Ajouter un parent", "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": "e5126502-ce05-469d-846a-3251e82287dd", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "7447796e-3535-48c2-907f-640eab9b419c", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "1db15305-ef13-4cdf-88a3-b116182a8882", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nomParent" }, { "id": "64fa1451-f16c-4eb7-adbf-ab5d6c87b12f", "comment": "Ajouter resp à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"Oui\")", "targets": [], "value": "lesresponsables" }, { "id": "3d630202-9f9d-4c51-b987-5732f0934822", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${nomParent})", "targets": [], "value": "lesparents" }, { "id": "99f793e5-3888-4d1a-863a-452680d9d40a", "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": "${nomParent}" }, { "id": "f0baf0cd-5af7-4cda-92a4-f6b789d89c7f", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6dce6f74-5d8a-4d61-a0a1-c893e6889650", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "eb8918ad-5257-4cd5-a461-f3b1be7cd56a", "comment": "Enregistrer les infos du parent", "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": "86944500-8352-45f4-84cd-dcb66e578092", "comment": "Ajouter un enfant", "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": "93301bb1-74cb-4fa4-a208-b0ff119f236d", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f789d9ff-e40c-4226-9057-fdf966af6b56", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "b613ca20-16c9-49de-b530-01f26eb0743a", "comment": "Ajouter resp à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"\")", "targets": [], "value": "lesresponsables" }, { "id": "0e07ecdf-c159-486c-b576-ee18bca302cf", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i} + 1)", "targets": [], "value": "nomEnfant" }, { "id": "6a692456-c0d6-4527-9b2d-221aeeb05e53", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "9f6949cb-e712-4f76-ab51-80fe10c83991", "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": "${nomEnfant}" }, { "id": "61f772df-cabd-4a0a-86c6-14a9ca6db9fa", "comment": "Rattacher membre au parent", "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": "1d0804f6-4f88-4d8b-989c-af5a8732de2f", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "955802f9-5deb-4e9d-8e29-1ef932cb89b2", "comment": "", "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": "${nomParent}" }, { "id": "090ff49c-bb3d-42da-87f8-52b1857dc88c", "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": "b6e7455c-14fa-4965-b54c-c8e73688dd9d", "comment": "", "command": "storeXpathCount", "target": "xpath=//tr[@class=\"clickable\"]", "targets": [], "value": "nb" }, { "id": "a4cf17ea-8ed6-4085-a5d4-55960e286f62", "comment": "", "command": "if", "target": "${nb} > 0", "targets": [], "value": "" }, { "id": "6b10ca06-b122-48f8-93b4-cfc1465dc755", "comment": "sélectionner le parent", "command": "click", "target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${nomParent}\"]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"] ], "value": "" }, { "id": "93f2ded9-6a20-49ec-8c8d-87d816f73165", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6afa0ad8-ae7d-493e-b8ba-257a36216b14", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "2dc1dd17-8714-4ead-85da-6bbb39dba02f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "8785e2c6-eea3-4037-a0ce-3a668638ea38", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "d7391022-6114-4051-bba5-6968f01aad60", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "2e478d9d-5bf1-4d64-bf3d-a9f1c62cc806", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "5dd7d379-932f-4c57-87e4-c86e4cf9fed0", "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": "e950601b-c39d-43d1-817e-f453463351e0", "comment": "", "command": "executeScript", "target": "return ${i} + 2", "targets": [], "value": "i" }, { "id": "f568a07b-b6e3-4380-a8d1-ee3b5ecf51f7", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "2d1f0fc7-53d4-4da4-8979-90f0f691acdc", "comment": "Trier les noms par responsable croissant", "command": "executeScript", "target": "function trierResp(tresp, tnoms, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tnumeros.length; ++i) { let o = Object(); o.numero = tnumeros[i]; o.nom = tnoms[i]; o.resp = tresp[i]; tab.push(o); } tab.sort((a, b) => { ordre = croissant ? 1 : -1; if (a.resp == '' && b.resp == '') { let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; } if (a.resp == '') { return 1; } if (b.resp == '') { return -1; } let comp = a.resp.localeCompare(b.resp); if (comp == 0) { comp = a.nom.localeCompare(b.nom); } if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; }); return tab; } return trierResp(${lesresponsables}, ${lesnoms}, ${lesnumeros})", "targets": [], "value": "membres_resp_asc" }, { "id": "40a67fad-f745-4cc5-bc36-d215008028f7", "comment": "Afficher le résultat du tri", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1d36edb9-72c4-46bf-8a3e-5bcfb578b74b", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "49df81b4-b216-4d3a-b313-5710adcd3e2f", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "707f9554-5ac2-4141-ba79-7f7ca0734e0b", "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": "35df3e99-f034-4506-b82d-2f4bd624b60f", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "ec788f82-7335-4feb-80f6-06459e33fa6d", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "49ffe18d-8c3a-4b35-85e1-27e12a26ade1", "comment": "", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_total_membres}" }, { "id": "d6161ce3-9eb4-42c5-b68d-abc65d212ab9", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "c6dc61ce-8f44-4817-99b2-499cfae531a3", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "f9f07cd5-b696-4a5d-b501-8ea1e90ac1b7", "comment": "Trier par responsable croissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "0a16eba2-fb2d-43f8-b232-0971bff962f2", "comment": "inverser le tri s'il est en ordre décroissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "97f4f418-3bf7-4dfe-8573-4e9fb2c0842f", "comment": "", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "id": "4da7a7d7-c996-46eb-8ecf-a74d94572788", "comment": "", "command": "if", "target": "${nb_responsables} >= 2", "targets": [], "value": "" }, { "id": "6658e51a-5800-4495-9f57-8d2670f6e350", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//th", "targets": [], "value": "membre1" }, { "id": "75fb2bf9-294b-4bc7-ba4f-8ac09f2aa4b8", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "402b9459-2fd4-4bea-b1d5-9f6f7b75941d", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "2eaf08d8-7b7b-4d95-b9c2-4ae5541869a3", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "f420d90b-cd7a-4ff5-9a19-104ca7e00602", "comment": "", "command": "if", "target": "${membre1}.localeCompare(${membre2}) > 0 || (${membre1}.localeCompare(${membre2}) == 0 && Number(${numero1}) > Number(${numero2}))", "targets": [], "value": "" }, { "id": "f96e5978-956a-4487-8928-d56e455818a2", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "da00ad35-054d-46e5-b7e2-648bbe361fce", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "69428dbe-2f80-4553-bad9-e099a696a9d8", "comment": "", "command": "elseIf", "target": "${nb_responsables} < 2 && ${nb_total_membres} > 2", "targets": [], "value": "" }, { "id": "1d09df65-22b2-498f-81b7-dbea3e2550be", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "ec71954d-15f4-4717-966d-a40576b54118", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]//th", "targets": [], "value": "membre3" }, { "id": "cce231c4-5c6e-401f-adbe-4cbb61d629a4", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "c9bb0a33-c8af-4dfe-b2e6-baf25589533f", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]/td[@class=\"num\"]//span", "targets": [], "value": "numero3" }, { "id": "19f55c2c-d5fc-40e2-9288-79c2129a3cbf", "comment": "", "command": "if", "target": "${membre2}.localeCompare(${membre3}) > 0 || (${membre2}.localeCompare(${membre3}) == 0 && Number(${numero2}) > Number(${numero3}))", "targets": [], "value": "" }, { "id": "3964e123-7cf6-4ff4-ae49-742c7417a191", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "77801309-aa41-4c86-85b7-4cfc26797c2f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "686e49ef-dddf-4ace-bea5-e2bc7b0a425e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c2f9fdd2-d705-4299-b94e-d699eaa8b716", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "bf54c36b-82e1-44de-8428-68ed4aad4468", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "64ed81cf-c926-45ec-8716-f1ddb09fca17", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "43215455-1c3c-4df6-b6c1-d2ac5fce5df7", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_total_membres}", "targets": [], "value": "" }, { "id": "a43fceec-b203-4da0-ae37-69ea85887b8f", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "64e7fe10-2039-4939-b9bf-d55eb108cdfb", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "93508fbc-77f2-4a82-ac3b-66ed7cf7d6a1", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres} - ${nb_membres_page}", "targets": [], "value": "nb_total_membres" }, { "id": "6ac5f000-4533-4cac-aa54-26ac7229752c", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "03f4bd1f-5d77-40fa-bc8f-83605c9c3ef3", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "fd9df069-11ba-4f56-866d-b5c0e83280aa", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "959f538e-b0ef-4eb1-b91d-c1f76eed2819", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "97f2d9f1-14e2-42e5-8921-ffafc49721a2", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "1135d1a3-bc2e-40f1-8c89-0d6daaf4452f", "comment": "responsable affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[5]", "targets": [], "value": "respAffiche" }, { "id": "eeca502f-0667-45ea-8d42-b7671bde5117", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_resp_asc}[${i}].numero", "targets": [], "value": "numero" }, { "id": "9bb92757-6919-4792-b9db-11ecc90bb3a1", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_resp_asc}[${i}].nom", "targets": [], "value": "nom" }, { "id": "33f56477-6c3f-4de4-9363-7f843f1cc394", "comment": "responsable mémorisé", "command": "executeScript", "target": "return ${membres_resp_asc}[${i}].resp", "targets": [], "value": "responsable" }, { "id": "2c859ebf-4dd1-45ed-b2d1-5ab882abfff3", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "238c4e33-f76c-425a-8bcd-f4d5ea367284", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "25004bee-d1d2-4d13-b34b-ac8bf8c26fd8", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "748788fe-2fb8-45a3-85db-cebe061b840a", "comment": "", "command": "assert", "target": "respAffiche", "targets": [], "value": "${responsable}" }, { "id": "b4ea2b3b-85fc-41e2-acef-cb012f7313ee", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "7bbf5a8f-cb53-458f-a7ad-ca49dcda416f", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "6c90acce-df5e-4adf-a020-36d5dacb90ee", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "06e32c55-bd03-4164-8dc4-c3f36e39575d", "name": "04-12 lister membres responsable décroissant", "commands": [{ "id": "095dec70-5f5d-4aa4-9346-814b70e632da", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "535162ff-9892-499d-b190-ad02851346a4", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "5e9640bc-7a61-49f1-ae0b-8fb117c81a5c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "c7049858-0a74-46be-937b-22ac2de0aa2d", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "1f903bae-5cef-40ef-8e38-0c2c7ef90d62", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ed1cac99-e8f9-406e-9d85-425768b4afda", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3491f37b-557c-40bb-b7c2-94f7e682a13b", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "15287fcc-d24d-47c7-a3a0-c36c1bfadf48", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f51b969e-8fd5-4702-a56e-7f46c42f8843", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9480f251-94f1-42fc-ae9f-c8b01d40b7d3", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "09a258db-f411-4e6a-8f3e-fb6a634fd184", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "c165cfec-7edc-4247-8a33-e1c2fefd9d6d", "comment": "Init liste des parents", "command": "executeScript", "target": "return []", "targets": [], "value": "lesparents" }, { "id": "ac32bfd0-f3f5-4fba-9cc9-f3cb7b5ec50d", "comment": "Init liste des responsables", "command": "executeScript", "target": "return []", "targets": [], "value": "lesresponsables" }, { "id": "0f02fe19-66df-41b1-82cc-7166e2817ddb", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "fc99581f-ed53-478b-b325-86effeaa2f6a", "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": "6fbde4df-7354-49f9-8ee9-049135cf6ab1", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "2a8d6ae8-be87-4ec2-abb7-2775aa90c2d1", "comment": "Nombre de membres", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "b235adc9-c4fe-463c-bb57-5235168e930a", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "4fc0481d-9238-4958-a2c1-47b0f6793261", "comment": "Déterminer le présence de membres attachés", "command": "storeXpathCount", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "existe_rattache" }, { "id": "cb838759-1453-497f-a0c2-ec08617f0900", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_parents" }, { "id": "1a6f034f-63c1-4ce4-8de5-9bed94b52596", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_responsables" }, { "id": "4a4c564d-5221-4233-a992-dad66e8485bb", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "2ef90c57-934f-4175-87c5-e5a8401522c9", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "9dac13f6-c9d5-4416-99ac-7ce29c381ac4", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "cc07942f-5ab1-491b-b5ba-367a530e4ffd", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "83dc03a2-8e7d-41b3-b0fc-cca62d44cb02", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "19538b11-375c-43e1-ab9e-fa1136e6e1ad", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "572f821d-9e9c-4577-b579-18b6579d663a", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "298d66e4-073b-4826-af8f-c5947c6372d9", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "bf0ff72e-086a-4f48-9272-d5ac0d7afa96", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "bdfcbc5d-34d2-4fc6-874c-b73f73659a92", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d3bbdf34-a69e-4d9b-849d-c30a8e379e07", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "5be3a912-a4c5-40ec-8bcf-4f43ab7e9b52", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "7371bae6-9c03-4233-bf33-fe19bb4a76b2", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "02bcc758-8a79-4b73-bc0f-ac59eb6edac0", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "131682a8-05d8-41dc-9fd0-57d2a0d46163", "comment": "", "command": "if", "target": "${existe_rattache} > 0", "targets": [], "value": "" }, { "id": "0a93dc10-9657-42f5-97ee-943a57a29dd0", "comment": "parent affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[4]", "targets": [], "value": "parentAffiche" }, { "id": "dc495578-06d2-4ba1-83cf-24414c92f75c", "comment": "", "command": "executeScript", "target": "return ${parentAffiche}.length", "targets": [], "value": "lg" }, { "id": "5f52bc2d-eea7-4d68-8213-34e9c6b76c30", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "86d7a1ed-e4ff-4dff-8b28-566ffbe918ea", "comment": "", "command": "executeScript", "target": "return ${nb_parents} + 1", "targets": [], "value": "nb_parents" }, { "id": "c5e60141-c4bd-4c51-9b28-7f7ae3b613d1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f7c4334f-90ff-441f-b030-c1e4a4675d1e", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${parentAffiche})", "targets": [], "value": "lesparents" }, { "id": "79c82f98-ee38-4c46-8814-3369c8ca199d", "comment": "responsable affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[5]", "targets": [], "value": "respAffiche" }, { "id": "3b6cc21b-7785-4b11-98f5-7388f4b2a0c1", "comment": "", "command": "executeScript", "target": "return ${respAffiche}.length", "targets": [], "value": "lg" }, { "id": "cf737983-c5e8-42a2-aa7d-12c453640e93", "comment": "", "command": "if", "target": "${lg} > 0", "targets": [], "value": "" }, { "id": "7cc14b79-10c6-4d2b-ab7b-7048f05e9694", "comment": "", "command": "executeScript", "target": "return ${nb_responsables} + 1", "targets": [], "value": "nb_responsables" }, { "id": "a553e069-261c-490a-9caa-c24670761805", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b631607b-5049-41f8-9c4c-50dc3a2009c3", "comment": "Ajouter responsable à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(${respAffiche})", "targets": [], "value": "lesresponsables" }, { "id": "896e0a6c-e396-4ae7-afac-3359f4b321c6", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "915c9a5e-97f4-43ac-a40b-353129b18cc0", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "08edf336-b0e5-4dbf-92b9-186dce8946db", "comment": "", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"\")", "targets": [], "value": "lesresponsables" }, { "id": "520423ab-5292-483b-a819-c0b0a1b1f7c4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "7602fb03-3f99-4efa-ba0a-5ba35b9801bf", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "466edb78-3153-4708-8a9c-849fb5ba85c4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f7b3b0bb-3abc-4bb6-a134-7ac827ff9282", "comment": "Générer de nouveaux membres si nécessaire", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2571717f-e9e6-4783-b46c-cde453b67156", "comment": "", "command": "if", "target": "${nb_total_membres} < 10 || ${nb_responsables} < 5", "targets": [], "value": "" }, { "id": "20f6e0f4-41a5-4a59-9de9-c8cbb831866b", "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; }; const nb = 2 * (3 + Math.floor(Math.random() * 8)); for (let i = 0; i < nb; ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "267790fd-e665-4e43-abcc-9f0023f2ddac", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "21374e41-6ee2-433f-9b06-efaecf0f0f7c", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "d5e48a67-f619-40e0-8359-e79238a14505", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "6618c3de-604c-4664-99e2-115c69a4fd56", "comment": "Parcourir nouveaux noms pour ajout dans la base", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "a5ad472c-7beb-42c0-9194-393e2c0f8685", "comment": "Ajouter un parent", "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": "56be0186-f115-47c9-9a22-30d16c0fcda3", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "5db5948c-c428-4d60-a52f-ff342695a679", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "fe291c22-8164-4c39-ab11-16add7f259f4", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nomParent" }, { "id": "6abdcb5d-f160-40b6-a1d9-3aad1e7c02af", "comment": "Ajouter resp à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"Oui\")", "targets": [], "value": "lesresponsables" }, { "id": "e5d2ba00-1190-4965-b383-3a6e45a6de6d", "comment": "Ajouter parent à la liste", "command": "executeScript", "target": "return ${lesparents}.concat(${nomParent})", "targets": [], "value": "lesparents" }, { "id": "0357ab5a-4592-4d1d-b0d4-039408be04a9", "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": "${nomParent}" }, { "id": "8eb98de6-8a5c-4d47-a5c4-8d0020100ae6", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "55ba42c2-12fe-4685-8419-f063ba15bc49", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "4367746c-10d0-4cf8-8cce-d004844a6f25", "comment": "Enregistrer les infos du parent", "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": "f4384ca1-7a41-467b-bd6e-61baee537c25", "comment": "Ajouter un enfant", "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": "8b6bac15-0597-4189-9ae6-adc014a79f14", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "7592facc-4da1-434a-8f32-e8d7263558d6", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "5ddfcc49-0398-4dd9-909f-dd099d699cf7", "comment": "Ajouter resp à la liste", "command": "executeScript", "target": "return ${lesresponsables}.concat(\"\")", "targets": [], "value": "lesresponsables" }, { "id": "1588f7d5-f493-415c-8906-e4b52736bd75", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i} + 1)", "targets": [], "value": "nomEnfant" }, { "id": "b164d33d-c20e-4cc4-a3a9-f53ed695f51f", "comment": "", "command": "executeScript", "target": "return ${lesparents}.concat(\"\")", "targets": [], "value": "lesparents" }, { "id": "785a486d-71da-4337-821c-1e84e7247a54", "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": "${nomEnfant}" }, { "id": "4cc2f48f-9afd-4437-a92e-5a4117afcd31", "comment": "Rattacher membre au parent", "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": "cb3d2ce2-f753-407e-bf78-48ffafa084fb", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "922021ef-e8a4-4d8d-ba1b-e7bab815cb72", "comment": "", "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": "${nomParent}" }, { "id": "33e63e5c-e199-48c0-8960-bbd7946ed274", "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": "a25b543a-6cdc-4748-9fa9-7bd244dbbc2b", "comment": "", "command": "storeXpathCount", "target": "xpath=//tr[@class=\"clickable\"]", "targets": [], "value": "nb" }, { "id": "ad404cbf-f68a-40f1-a562-5de1c1b165d1", "comment": "", "command": "if", "target": "${nb} > 0", "targets": [], "value": "" }, { "id": "72a50180-66ad-4ab5-9d9b-c66d14c85d2b", "comment": "sélectionner le parent", "command": "click", "target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${nomParent}\"]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Lambert Paul')]", "xpath:innerText"] ], "value": "" }, { "id": "3fb11d84-b3c9-4fcd-8684-98cf69fd117c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f5b25c33-c802-4ab3-ad52-afffda80888f", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "ea71a549-a533-40f2-a8b5-9bab5d69f4ed", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "a1483c0c-400a-4d30-a073-1e936650492e", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "24fb1a8f-5510-4a06-8968-0d82dceb89ba", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "e6be9fa7-66dd-4b91-b8ae-1e23b1cc3439", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "dfc43c01-3653-4039-923d-efe621963979", "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": "0fa0047c-7b8c-4a26-9145-577d927dec4e", "comment": "", "command": "executeScript", "target": "return ${i} + 2", "targets": [], "value": "i" }, { "id": "add11203-0b9e-40de-ba8d-157afd9fa1ea", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0074acbe-37ee-4e6e-a356-861b73ef14ec", "comment": "Trier les noms par responsable décroissant", "command": "executeScript", "target": "function trierResp(tresp, tnoms, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tnumeros.length; ++i) { let o = Object(); o.numero = tnumeros[i]; o.nom = tnoms[i]; o.resp = tresp[i]; tab.push(o); } tab.sort((a, b) => { ordre = croissant ? 1 : -1; if (a.resp == '' && b.resp == '') { let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; } if (a.resp == '') { return 1; } if (b.resp == '') { return -1; } let comp = a.resp.localeCompare(b.resp); if (comp == 0) { comp = a.nom.localeCompare(b.nom); } if (comp == 0) { comp = a.numero - b.numero; } return comp * ordre; }); return tab; } return trierResp(${lesresponsables}, ${lesnoms}, ${lesnumeros}, false)", "targets": [], "value": "membres_resp_dec" }, { "id": "ac586b0a-21e9-4465-9824-f01a40a51344", "comment": "Afficher le résultat du tri", "command": "", "target": "", "targets": [], "value": "" }, { "id": "eb6c560e-ce60-48d8-8f1f-a42c56b35ef8", "comment": "Vérifier les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "dc25dc9a-c665-4282-89fb-372bcf9f3ff2", "comment": "Menu membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "bd3e69d1-397d-4df4-9fb4-72156bba23c2", "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": "08af8389-7cbb-4093-824a-cd7cbed14bbd", "comment": "nombre de membres dans ces catégories", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "4adf5734-dd36-45da-b4f9-fcbdf40f05f0", "comment": "idem", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "c9fa3d8f-9f92-469a-bf02-1cec244d203c", "comment": "", "command": "assert", "target": "nb_noms", "targets": [], "value": "${nb_total_membres}" }, { "id": "b078447c-ed3e-4d65-83ff-57ab2eef4cb7", "comment": "Filtrer : toutes catégories même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "c7e36893-4a8f-4f38-902a-f8f2886f9236", "comment": "Nombre de membres sur la page", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "6aa814c5-af89-4915-9665-503e5ad2f113", "comment": "Trier par responsable décroissant", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "01591c12-17ad-4508-8cc9-6ff99597c047", "comment": "inverser le tri s'il est en ordre croissant", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1a11a0a3-5a91-46fc-99fb-f3deb2564176", "comment": "", "command": "if", "target": "${nb_total_membres} >= 2", "targets": [], "value": "" }, { "id": "c8f41cc6-7008-4830-a560-c89c2e842e18", "comment": "", "command": "if", "target": "${nb_responsables} >= 2", "targets": [], "value": "" }, { "id": "9570a400-a8df-42c8-beda-4016dd249ac8", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]//th", "targets": [], "value": "membre1" }, { "id": "39bcbeea-dd55-4e8a-8eda-b03a65c46c03", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "387a4fff-8d60-46f9-8da5-69b99928f1be", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/td[@class=\"num\"]//span", "targets": [], "value": "numero1" }, { "id": "e8459a41-d636-4c2f-a82c-0b2160ba5e26", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "06c48f80-369d-43d9-b16e-8e92aa672c66", "comment": "", "command": "if", "target": "${membre1}.localeCompare(${membre2}) < 0 || (${membre1}.localeCompare(${membre2}) == 0 && Number(${numero1}) < Number(${numero2}))", "targets": [], "value": "" }, { "id": "0de34b7d-5661-4d20-8a8a-d0e2f855824e", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "41593c3e-a2dd-4570-9b38-f216126d5514", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0110e241-1e1e-413e-b19f-c5cf7a1c1679", "comment": "", "command": "elseIf", "target": "${nb_responsables} < 2 && ${nb_total_membres} > 2", "targets": [], "value": "" }, { "id": "4fabd8c1-3d45-4631-b2e4-4442e6cb7818", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]//th", "targets": [], "value": "membre2" }, { "id": "8142d289-8479-4b3d-ba84-31de7a9be8b9", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]//th", "targets": [], "value": "membre3" }, { "id": "3db786c9-5a4e-4dbd-8326-ed1192e1192d", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[2]/td[@class=\"num\"]//span", "targets": [], "value": "numero2" }, { "id": "7e8c6878-a63d-4f63-b35c-2ad7c6f64e0e", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[3]/td[@class=\"num\"]//span", "targets": [], "value": "numero3" }, { "id": "195b10ff-8d67-4db8-b474-76657e0e88a0", "comment": "", "command": "if", "target": "${membre2}.localeCompare(${membre3}) < 0 || (${membre2}.localeCompare(${membre3}) == 0 && Number(${numero2}) < Number(${numero3}))", "targets": [], "value": "" }, { "id": "ed183b5a-ed9b-4796-9266-8e83e2c115cb", "comment": "Inverser le sens de tri", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"is_parent\")]", "targets": [], "value": "" }, { "id": "2dcacbd7-5799-40bd-8229-204bafe3b829", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e66c7cdb-dce7-47e9-8ab3-c2cc04b972a6", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8a3a833b-f9f9-471c-b2cf-bbad1ffb1a33", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0410320e-b9fb-452a-81a5-a6250f09ea5e", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "166116f0-2c3a-49eb-b024-68028823b21b", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "f593366d-7069-4c0f-8aeb-2162af14ba9b", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_total_membres}", "targets": [], "value": "" }, { "id": "680057b1-06d2-4359-9fb0-4678c402af2b", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "ed2e9bfc-30e6-4242-8c30-54022b9551d5", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "b1b2e3e5-4528-4b49-87ca-c04a59f465ca", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres} - ${nb_membres_page}", "targets": [], "value": "nb_total_membres" }, { "id": "8a61633f-b853-4e94-8909-ecdfd59f9741", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "45391cf7-38b8-4f76-ae70-b5aedf2902b3", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "138bb8d9-166c-40a3-8730-1f0265ecd70f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b399c736-e4be-40ed-96b0-d4d4833c523e", "comment": "numéro affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "0fcae787-adc3-4b05-b845-789dcee4330c", "comment": "nom affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "85b02934-4d7c-437d-a213-a370f9f230aa", "comment": "responsable affiché", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[5]", "targets": [], "value": "respAffiche" }, { "id": "60a159b9-589e-4496-bce6-682a91de513d", "comment": "numéro mémorisé", "command": "executeScript", "target": "return ${membres_resp_dec}[${i}].numero", "targets": [], "value": "numero" }, { "id": "3b0256c8-6389-4a19-9880-c30e272b31c3", "comment": "nom mémorisé", "command": "executeScript", "target": "return ${membres_resp_dec}[${i}].nom", "targets": [], "value": "nom" }, { "id": "21a37f0e-766b-4b23-a339-b91e9467833a", "comment": "responsable mémorisé", "command": "executeScript", "target": "return ${membres_resp_dec}[${i}].resp", "targets": [], "value": "responsable" }, { "id": "15516578-035f-4815-960f-9040c1de3c4c", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numaff" }, { "id": "c9d195ee-26ce-41fb-9c11-25e3adf1b70b", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "49690eb2-be67-49d9-a880-b4f3fa34a41a", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "f66a6a08-1590-4625-aa67-20154d08e9ea", "comment": "", "command": "assert", "target": "respAffiche", "targets": [], "value": "${responsable}" }, { "id": "6837df25-9240-4682-92a4-9e375aa2416e", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "3eb11db2-4812-4c3f-a3a7-8478f240f192", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "736c1636-6661-49c3-a45f-5f62a359e62e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "25e25640-41c1-4a8c-a8f3-288fed7fb46e", "name": "04-90 lister membres plusieurs pages", "commands": [{ "id": "5f9c60ae-6864-4bc4-b51d-dc19cd9e7866", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "b8a5a88a-c6d5-459c-9fef-ea83dd92c0c1", "comment": "", "command": "setWindowSize", "target": "1280x1020", "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": "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": "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/td[@class=\"num\"]", "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/td[@class=\"num\"]", "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", "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": "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(11 + Math.floor(Math.random() * 5))); } 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": "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": "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": "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": "e6684670-73d9-46b3-9a48-340b239e681f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "4edf66cc-a1ce-4074-a7d1-6b4ff7f9d166", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "3ba08522-284d-4484-a078-a817d48cb680", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "3f080ec0-ebcc-49e9-8d81-039bcc921f30", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "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": [], "value": "membres" }, { "id": "574f25d9-b11b-4b42-9ed5-30f5425ec66e", "comment": "idem", "command": "executeScript", "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": "" }, { "id": "cb02a6f2-90b8-42df-aedb-a33901822c37", "comment": "Trier par numéro", "command": "click", "target": "xpath=//thead[@class=\"userOrder\"]//a[contains(@href, \"number\")]", "targets": [], "value": "" }, { "id": "9d780d99-318f-4d86-a34d-6643c95d1054", "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", "command": "if", "target": "${nb_membres_cat} >= 2", "targets": [], "value": "" }, { "id": "5bb4df35-2cdd-481d-8b30-682723a6ae0c", "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", "comment": "", "command": "executeScript", "target": "return Number(${numaff1})", "targets": [], "value": "numero1" }, { "id": "eb229a97-6b19-4015-981d-5929a60b982d", "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", "comment": "", "command": "executeScript", "target": "return Number(${numaff2})", "targets": [], "value": "numero2" }, { "id": "ceed1d9f-ca7d-4fb3-bc95-56c51f92866a", "comment": "", "command": "if", "target": "${numero1} > ${numero2}", "targets": [], "value": "" }, { "id": "844396e5-bdbe-49fd-a918-61865e79cd03", "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", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "43e73ac7-bece-487d-b827-6d631c7d80f9", "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/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "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/td[@class=\"num\"]", "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", "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": "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": "" }] }, { "id": "e222e9ff-b40c-4b8b-a9b8-1adfc1e68184", "name": "05-01 chercher membre unique", "commands": [{ "id": "1c022081-41a7-4846-8a4e-ece269c35b7a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "b76a681e-bb38-4d83-a408-415bacbcff9a", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f8808100-2093-453a-b012-09c56cdb973b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "f96548e8-db2a-4d80-8bb7-ce00bdd795ca", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a938a3cb-c92e-41de-8ae6-465ac28eb3d4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6ed9570d-a46b-4e68-ae8c-bd21014d76ec", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "641fa2c1-c419-4899-a89b-89d28cff0e53", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c276cae0-4975-49bb-aa93-e7d130df3c05", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d1f7a14f-0347-401a-8fba-eaff330af744", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "d30d317a-dc7e-47d6-a16c-58c90c0654b7", "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": "6ebd16d3-7c4e-4cdb-b496-bb33ea6ad778", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "550d1859-69d3-4e10-84a2-738d2b13dd00", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "710c2418-6112-4865-bedc-57aa8a561cca", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "e6257e1f-0f32-4c07-ab4c-313b7d98defc", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "98898ac1-c363-4dcc-b836-9b00307ece00", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "f4f832e5-40ce-4bed-95d9-a488ec75cb92", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4e7fdabe-c637-4d53-991d-29545a5272e2", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "9bdec5c6-ce4a-48e4-85b9-d5548d06def7", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f18c3796-2b1d-4d2b-b181-b7d873b738f8", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "b183b26c-f98c-4ca2-ade7-e5f025a6f367", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "3e106915-6576-4964-97b8-10355037c08a", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "8fd47084-db01-41ce-ac50-0e588b83a397", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "43d928a4-9766-4c53-972b-302728c39bd4", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "28fd2cae-2d9a-4cfa-9cf3-82e7a4f0ef02", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "abce90af-cadd-473e-b9a9-b336457eaa3a", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "90422117-fd21-4eb6-b549-ad82338f1365", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "974282f4-acf2-489c-aea7-62c94c7910ac", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "9b6e6a7b-28bb-4300-b909-8f2b7c590542", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "21abdaca-a8c7-40ae-83f7-4d9a34078951", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "1657ab55-4e2a-45e6-8028-597e9e573bb2", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "214784a5-aba4-4d08-8062-7ff7d4db903d", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "55e9d64b-f4eb-46a4-b992-221d50119dd8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8341959b-dca2-46fd-8ef6-f4efa0be92a0", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5fd45bce-47d6-47c8-967b-7d05c0422875", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "cf70a3d5-5e92-4aa0-b676-18b779fc828d", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "90a097f6-9715-4847-8a4f-751ac7e614f9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "81ae2107-1da7-4b6b-8bdf-52ef9d657c07", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "4b63d378-b81f-427b-beea-45c4638d8fe7", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "c879a2a6-a055-4dcb-888f-b41a4454cc23", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "17ff0598-2851-45a8-a06a-9cc450a0a408", "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": "d35db3a7-42fb-4290-9139-adbf20131218", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "68813087-2486-4aa6-841e-c62ec1dcf080", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "d06e62be-a82f-4068-bd36-d405fffe9dfe", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "fd7edb53-efef-4e39-8246-991546c58ec6", "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": "27200ccb-5b0a-4aeb-ab0b-343636fdd108", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "3df49bff-0795-4c25-9245-e256150e0f8b", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "aaf9896c-4cad-4801-8a5b-e9df78d11684", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "86cc77b5-619e-4365-a32f-3e3bf3180e2c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "85a2128a-8d93-494b-9d4e-9c295334b7e5", "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": "a1e5aebd-6996-4fab-83cc-3f8cf91d10c1", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "f9cfea7a-761a-4226-9542-937d7374656d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "21ce798e-cb2b-49b3-9587-305fc9883941", "comment": "Choisir un nom sans homonyme", "command": "executeScript", "target": "const accent = 'àâäéèêëîïôöùûü'; const normal = 'aaaeeeeiioouuu'; function normaliser (chaine) { let resu = ''; chaine = chaine.toLocaleLowerCase(); for (let i = 0; i < chaine.length; ++i) { let ind = accent.indexOf(chaine[i]); if (ind == -1) { resu += chaine[i]; } else { resu += normal[ind]; }} return resu; } function nbocc(elem, tab) { let nb = 0; for (const e of tab) { if (normaliser(e).localeCompare(elem) == 0) { nb += 1; }} return nb; } function getNom(tab) { while (true) { let pos = Math.floor(Math.random() * tab.length); let nom = tab.at(pos); let nb = nbocc(normaliser(nom), tab); if (nb == 1) { return pos; }}} return getNom(${lesnoms})", "targets": [], "value": "pos_cherche" }, { "id": "f41a44a3-89cf-4aae-9ba6-f3aaa6a8d0a0", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${pos_cherche})", "targets": [], "value": "nom_cherche" }, { "id": "46850638-5f11-4be0-944d-8b08884a3d48", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.at(${pos_cherche})", "targets": [], "value": "numero_cherche" }, { "id": "41fe6725-7be4-4b97-bd83-5e8b5980214b", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "04339615-491a-48f5-9888-cb1f6956d66c", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${nom_cherche}" }, { "id": "f164e7d8-eed3-42d9-bb38-2fb7e5447528", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "f992fa8d-d20a-4cf2-8a16-4cb414a37cd8", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "0beb5586-3e78-4491-a885-60be13ce6330", "comment": "", "command": "executeScript", "target": "return ${titre_page}.startsWith(${nom_cherche})", "targets": [], "value": "ok" }, { "id": "e2776ae7-9284-4cef-a318-447fb3328759", "comment": "", "command": "assert", "target": "ok", "targets": [], "value": "true" }, { "id": "da0f9574-1f5b-4b99-87d3-2ffc73bbaf2b", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Numéro de membre\")]/following-sibling::dd[1]", "targets": [], "value": "numero_trouve" }, { "id": "2f81fc81-26dc-4ded-9b30-4b829d0f68a7", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Nom & prénom\")]/following-sibling::dd[1]", "targets": [], "value": "nom_trouve" }, { "id": "4da11a59-5b1b-4877-b476-6f861fd8f536", "comment": "", "command": "assert", "target": "numero_trouve", "targets": [], "value": "${numero_cherche}" }, { "id": "57b3b072-0825-4bd6-a54a-04b7d2c7d245", "comment": "", "command": "assert", "target": "nom_trouve", "targets": [], "value": "${nom_cherche}" }] }, { "id": "e0b8520c-d128-4cd9-b6fa-b351ea91d4d2", "name": "05-02 chercher membre plusieurs résultats", "commands": [{ "id": "f0cf2e2e-90d0-457d-89ef-bb9699f169ed", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "1e91b39e-b68a-4ece-8482-fbd35115a6b0", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "c41e68b9-10f8-4904-be3a-ba974a5b130d", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "505d334b-525d-45da-8451-8258ba70c1c2", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8bd3701e-af23-4cb9-a371-25e41a818282", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ad507785-778c-49dc-983d-41338f3239fc", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "51014808-3f81-411c-a7fe-3d3179ed64ca", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "0fa5f107-05fe-4937-b360-7d5b567fa77b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "70567fd6-f7fc-481c-b8c2-3e0e0223ecd7", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "c2d55c39-90b9-4a9a-bbff-b9fc3f7b9f0c", "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": "76f7138b-df11-4f37-94a2-195485223a5f", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "121fb2ee-39d0-4fa5-8097-253bc6336813", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "5b9fe6a1-dbc9-476f-b928-bc30be75035d", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "32ca0a92-3f06-4fcc-b949-4299b906e61a", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "9e6ffe90-f12a-446f-b662-8295dcdf4c74", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "1b8f626e-4496-4ad2-befe-dba81929dd7b", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6c197fe1-c42d-44ae-9cd4-df6725c3d73f", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "4fa888a0-006e-4873-8720-e372a83c41c8", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "b0c15228-1fea-442c-b529-d60a5b5a13a8", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "2601fe65-984a-4918-80e8-2887c37abff3", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "74d587fb-5927-4a60-9916-8037f0b41253", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "8861b4bf-5cac-414f-9c1b-67f5542595bb", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "73ca25e6-d197-4003-87fc-cca8b56fdc0a", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "4c865116-2416-412d-bc64-cb14f7cfa3ae", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f6b8d10c-9f5d-47b0-9a30-9384f9c27c70", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "7ee64083-8eb2-4733-baa0-2085a0a5bfcd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "23a4e6f9-fd13-4df6-aa25-effdc8e8a542", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "40a3f66d-1622-42bb-909d-f907f296d7da", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "bc3c917a-bc8b-4595-bf8e-e6626d9253a7", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "f83ba0f4-f9ca-4740-bc80-3e89c0ccbd4e", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "5f951804-bd6d-40a6-9139-6a3cb371afb1", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "ba7b4446-cd3d-4aa0-a2ec-8d89d68cc760", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "acf64ee8-1b57-4254-96ab-d054ef541e6b", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "dadf51e9-a83d-4b21-9ba3-d58d6f977cb6", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "e3edb40d-df08-4ee3-9002-dc160d58799d", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "9d59e879-84ac-4b83-8ca3-08442c410283", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "af4a3b20-ce39-4425-95a9-9b7b6031441e", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "8e703e9d-a9d6-4e61-9a47-4ee7239de68a", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "b86d6a74-a9ef-47ae-8ae4-2a8a36421216", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "194ca944-1a94-4c4c-b18a-5264454131dd", "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": "fe3a2e57-7ee2-40e7-9170-f545ccdf1b42", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "345a15c2-f53e-4352-874a-ffbfccf8b111", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "915bfd92-3b74-4c86-9762-64aaed0c8c9f", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "b6c3d0e3-4bd0-4c99-b278-8e2f767aa8bc", "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": "c0331f95-62cd-494e-b630-2f7f57ac9278", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "bf1d3984-383c-4d3d-8f77-d2ae52b797e1", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "e888a93b-98e8-4a51-b78b-5db64e8feca8", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c5f52496-cc6f-42e6-8213-f8f69065f187", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "75231333-ec6e-4091-b658-2b72d6d7420c", "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": "699f61f4-23c0-467a-9104-28d9b41946b8", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "a2cd4569-ec49-43b6-a662-e3ae126e4554", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ecd7cec7-aed5-426a-8246-a133f8366beb", "comment": "Ajouter un homonyme", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3c4f91db-e94f-42a8-9c86-9ff24410c126", "comment": "Nom du membre à chercher", "command": "store", "target": "amber", "targets": [], "value": "nom_cherche" }, { "id": "d865d12a-ad0e-4a1d-b998-191df78fe0c5", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1); }; function homonyme(chaine, lg) { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < lg; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, lg/2)); let fin = upper(str.slice(lg/2)); return debut + chaine + fin; } return homonyme(${nom_cherche}, 10);", "targets": [], "value": "nom" }, { "id": "c02d645c-d453-4d4d-99e5-12e2f9bd65b0", "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": "02357ee2-cd43-49f0-b915-e0ecf8fc6634", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "80e8744a-ffd7-491f-9949-fa1505067718", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "d9aeaaaf-7a63-46ba-b203-11a9a15a6b97", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nom})", "targets": [], "value": "lesnoms" }, { "id": "24e8c864-7e47-4a7a-adae-0c959a5b2b10", "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": "d691ea41-ec13-407a-9f28-57ca9eb555b6", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "4182c0bc-1d59-4f3a-b45f-fd1cf6d1d5ff", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "842f8bc7-d4c4-4535-a2ea-734335acb647", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "843e4352-7830-4ecd-9812-1e0441999f2b", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "91b6be2d-7963-49a8-aadb-f7505b62236f", "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": "ba372402-e661-43ec-a760-83eba9361372", "comment": "Trier les membres par nom croissant", "command": "executeScript", "target": "function trierNoms(tnoms, tnumeros, croissant = true) { let tab = []; for (let i = 0; i < tnoms.length; ++i) { let o = Object(); o.nom = tnoms[i]; o.numero = tnumeros[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierNoms(${lesnoms}, ${lesnumeros});", "targets": [], "value": "membres_alpha" }, { "id": "c23cd8df-5720-47f0-b2f4-83c745abf9c8", "comment": "Faire la liste des homonymes", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2dc16d09-f423-475c-931e-c29e268da8e9", "comment": "", "command": "executeScript", "target": "const accent = \"àâäéèêëîïôöùûü\"; const normal = \"aaaeeeeiioouuu\"; function normaliser (chaine) { let resu = \"\"; chaine = chaine.toLocaleLowerCase(); for (let i = 0; i < chaine.length; ++i) { let ind = accent.indexOf(chaine[i]); if (ind == -1) { resu += chaine[i]; } else { resu += normal[ind]; }} return resu; } function indonymes(chaine, tab) { let homos = []; for (let i = 0 ; i < tab.length; ++i) { if (normaliser(tab[i].nom).includes(chaine)) { homos.push(i); }} return homos; }; return indonymes(${nom_cherche}, ${membres_alpha});", "targets": [], "value": "tab_pos" }, { "id": "61fee7a5-cd7c-4fcb-9986-1da9d84e1289", "comment": "", "command": "executeScript", "target": "return ${tab_pos}.length", "targets": [], "value": "nb_homonymes" }, { "id": "ec54ff83-2297-44cf-9a06-9380f2d3f1e5", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "60168e5e-40a7-444d-91f8-660d2867f2ce", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${nom_cherche}" }, { "id": "6b7bcfa0-15df-462e-a908-804b3d1413e1", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "1461e661-9886-4c48-9893-53ea9710238f", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "593614fe-9f7a-4ea0-ab78-6b8804c68ddd", "comment": "", "command": "assert", "target": "titre_page", "targets": [], "value": "Recherche de membre" }, { "id": "b8c4503b-5ce5-40d2-be8b-afd53884e4c2", "comment": "", "command": "storeXpathCount", "target": "xpath=//tbody/tr", "targets": [], "value": "nb_res" }, { "id": "082c3974-dbd5-4113-8fdc-632d17a464fa", "comment": "", "command": "assert", "target": "nb_res", "targets": [], "value": "${nb_homonymes}" }, { "id": "29c9b49f-f28c-460e-892b-d81e50ecf869", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "i" }, { "id": "a4629830-c51f-4473-9905-686392a9b90f", "comment": "", "command": "while", "target": "${i} <= ${nb_res}", "targets": [], "value": "" }, { "id": "67caf8c6-bb48-40ed-b515-a86d036515cb", "comment": "", "command": "executeScript", "target": "return ${tab_pos}.at(${i}-1)", "targets": [], "value": "num" }, { "id": "aaff611c-5053-452d-87f3-e1e0349f98e0", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[${i}]/td[2]/a", "targets": [], "value": "nom_trouve" }, { "id": "43075562-08ea-40c4-87f9-ddbe328383b5", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[${i}]/td[3]", "targets": [], "value": "numero_trouve" }, { "id": "2bac713b-e68b-449d-9c83-e74943ad714d", "comment": "", "command": "executeScript", "target": "return ${membres_alpha}[${num}].nom", "targets": [], "value": "nom" }, { "id": "373eaf44-e53e-40c2-9431-f9027dc2cc04", "comment": "", "command": "executeScript", "target": "return ${membres_alpha}[${num}].numero", "targets": [], "value": "numero" }, { "id": "f20ccecc-3d14-490b-89c5-7f12ba5d7baf", "comment": "vérifier si le nom trouvé correspond à la recherche", "command": "executeScript", "target": "const accent = \"àâäéèêëîïôöùûü\"; const normal = \"aaaeeeeiioouuu\"; function normaliser (chaine) { let resu = \"\"; chaine = chaine.toLocaleLowerCase(); for (let i = 0; i < chaine.length; ++i) { let ind = accent.indexOf(chaine[i]); if (ind == -1) { resu += chaine[i]; } else { resu += normal[ind]; }} return resu; } function verif(chaine, nom) { return normaliser(nom).includes(chaine); } return verif(${nom_cherche}, ${nom_trouve})", "targets": [], "value": "ok" }, { "id": "afaf8b92-8d6f-4023-b71b-923fd4e424ae", "comment": "", "command": "assert", "target": "ok", "targets": [], "value": "true" }, { "id": "c30438d9-2326-4d04-8410-5de9ba29da76", "comment": "", "command": "assert", "target": "nom_trouve", "targets": [], "value": "${nom}" }, { "id": "56d05609-bbe4-4fda-b42e-a63eb795ad4f", "comment": "", "command": "assert", "target": "numero_trouve", "targets": [], "value": "${numero}" }, { "id": "a31e9670-1e13-4e76-9084-ce2ec119e59d", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "47f58a5c-b726-40d9-a6df-61e11b93335b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "cb3e76df-5def-477c-bad3-fbf27d8240f3", "name": "05-03 chercher membre absent", "commands": [{ "id": "55fcb139-ec03-4ff2-ac8a-4fb73f55cc7e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "41d12e9b-fd2b-41d7-915e-d45b42d6b922", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "abd91ef9-ff3e-4524-8fff-983501ee6608", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "b4c4a65d-eeef-459c-8144-225933a7dcfa", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "0876382f-9fbf-455f-b5ac-0e6c0a004969", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "63329a04-29bb-4041-8106-001451e24d6e", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c3560fa6-a5b9-48ae-b921-c26d08ca8836", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3a73d7ea-044e-4a60-b875-519495826aa3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fbfbf12e-796f-40dd-a047-e8df1ae253a7", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "8be34c7b-a75f-4ac7-9960-21bfd1979523", "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": "a250f5cb-6c10-4a75-9b66-7fc7b9728fa6", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "e921d966-4c9e-4bfb-bbb3-d2228f4996ea", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "b81eff75-6f68-4930-b796-505ee5734911", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "dc4a0219-4f93-4912-ac03-ec15fb42cf10", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "66eb4192-44a3-4c83-b8f0-1d95563f74fd", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "cd6e7f0b-5602-4c1b-a03f-e9a89031e641", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d7f23320-2e5e-49d1-8656-3f80e8f72dd1", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "4ecc3a43-6df5-4ced-8759-5ddb68f09e09", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c9c51215-9311-4308-a7bb-fde014ee482e", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "edcf9644-1c35-49ff-95ac-7988035a8e26", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "d4d5ab5e-710d-4e66-a451-7c484e91ce4a", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "e3d1850c-1d13-4765-9f26-34d468d12433", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "0bc5f243-824b-4c99-b2e6-c26bd0bf05be", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "6de693d9-f3f3-47ed-80fa-8cc2fafcaa86", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "4000ad86-3ec7-4ae5-b1bc-06935c4f13fa", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "0da510f4-2a99-4aa8-9b82-770d6456021d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "7df0430d-6f86-44ec-a783-c9b717615b25", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "f5744572-213d-4909-9b73-c47f120eb13b", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "03a1627b-b4ff-45e8-8185-5825833cef78", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "400dc937-3b88-47e4-8883-edd68c452264", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "50ef92bb-101c-4fd8-8bbd-adfbd1ac1f5b", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "53ccb818-4941-4124-a693-a8e845961c8c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4e6d04f0-bd3e-4596-b3a9-f4430fec90ba", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3afc8f5c-923e-4226-973f-dbf1a2efab7b", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "2eaa4fb0-6750-4c59-b25c-65dd5e7a6b64", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "d0fee411-2e7b-4612-9f18-af25471dfc9e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "410f2a0e-f891-4b22-8e50-1aa14ddd5b40", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "e39378a3-4881-4b8c-a186-89d9938db2ab", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "b776d1f2-5e74-4508-b104-79b9124301c5", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "61d029f4-7e11-44eb-9613-1dc76809b3fa", "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": "6e9da433-248d-4090-83c9-3a4e9108975f", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "abbec7f8-9688-44b7-9170-7b28ef245fda", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "68cac8c6-c44b-45eb-a721-c11585358e2f", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "7e4c3112-e20a-49f9-978f-fe2b9c3b3380", "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": "fedd0cc8-f199-4e97-9712-8cbfacfef384", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "fdf22ad3-4572-45ca-8a14-520a7a3a7de2", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "4678177b-c84c-4445-ad6c-c1fbb8a431c5", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "10e1dd37-7a9b-4bb6-a1ca-483ede9e1d64", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "d45d86c5-9ecf-4e70-bf75-c38c323729e7", "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": "d2fab015-738a-41e2-b100-51b1344f949e", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "ddf26bb1-3f70-409f-affd-cd815a192cdc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "eeaacd66-07ef-43ca-8cb8-25c507f4238f", "comment": "Générer un nom absent de 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; }; const accent = \"àâäéèêëîïôöùûü\"; const normal = \"aaaeeeeiioouuu\"; function normaliser (chaine) { let resu = \"\"; chaine = chaine.toLocaleLowerCase(); for (let i = 0; i < chaine.length; ++i) { let ind = accent.indexOf(chaine[i]); if (ind == -1) { resu += chaine[i]; } else { resu += normal[ind]; }} return resu; } function nbocc(elem, tab) { let nb = 0; for (const e of tab) { if (normaliser(e).localeCompare(elem) == 0) { nb += 1; } } return nb; } function genererNom(tab) { while (true) { let nom = chaine(12); let nb = nbocc(normaliser(nom), tab); if (nb == 0) { return nom; }}}; return genererNom(${lesnoms})", "targets": [], "value": "nom_cherche" }, { "id": "cc01ebba-16fa-4d89-b980-d52cc4a516ae", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "00d9d82f-84fc-4e99-adda-b25ac1803912", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${nom_cherche}" }, { "id": "32b1728f-278b-447c-ae0c-de26324be140", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "57edae49-007a-437d-9fe9-b1952bc6b1d8", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "1c64c382-1288-42e6-90f7-1c9cdb8f93f9", "comment": "", "command": "assert", "target": "titre_page", "targets": [], "value": "Recherche de membre" }, { "id": "ca20be4f-7a8b-4594-8976-e6bdac2de26a", "comment": "", "command": "storeXpathCount", "target": "xpath=//tbody/tr", "targets": [], "value": "nb_res" }, { "id": "a2d62bd1-4a99-49dc-b5a5-dc32df918772", "comment": "", "command": "assert", "target": "nb_res", "targets": [], "value": "0" }] }, { "id": "7c55c402-5f6b-4b67-bbfe-b4d167ea2dda", "name": "05-11 chercher numéro membre présent", "commands": [{ "id": "d722c0fc-6785-4aa6-8f56-d302788cc759", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "a0afa303-2b20-4353-a6e4-4c625d8a3501", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "e9957f8e-3e80-416d-8525-b80568b24d09", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "1bd79bfb-072c-490d-9e30-90457ca72f83", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "7c67bbe3-adb3-401c-9ade-332404d9a9d9", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3edd8384-f584-45f2-a98c-081f395e6f2d", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "08f5a8f9-0f4f-4715-83e6-70e8dcc773cc", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ed33c325-c2f6-4986-95c3-f6912e31b313", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8edba250-d10c-46e4-bcb2-d324c33ab134", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "710f2e7e-332d-4770-9171-b25b126e2dfa", "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": "84ec243f-8e6a-424f-8697-f52e1d8f565c", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "3ea29693-8755-45ca-acae-7c5a307d4f52", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "a3d20ecb-6f4c-4759-b620-6f732e47a9cc", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "9fb65c48-a5f3-4812-8429-1a8f43511d1d", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "7322c27d-3612-436c-9478-cd83fafceb90", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f0632a5a-1e59-40c9-9fa3-b9472a707d73", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "7a4cc026-d578-42c5-a50c-8cbc9bfad0aa", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f4b864d4-adf6-4369-a35b-38f4930ad991", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "2cd04b8e-6cd9-4141-9d52-2a31d879ceab", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "99461f4e-11f6-40ef-8c92-3f83af86830e", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "6527323d-328e-45b3-bdb0-0da0f1f5433a", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "77b4f8b4-3b74-4159-8179-528e1289f8c6", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "8e58760e-39f4-4279-b869-1e8c055b8119", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f9a02556-81d8-4377-a01e-a322adf47fe4", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "743075ec-14c3-4ffd-a47d-e227ad918892", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d2d23c5a-ad86-4383-a88b-9336b449610d", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "2aff39b4-a5b7-4700-a8b0-52f9d18ea1ab", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "6ae6a522-e747-41ca-acea-520c9e9d84a0", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "b8c7bde0-4a29-4b57-a8f4-09df9b95cef0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5d29c0cb-d2e5-4e04-acbc-af1b1b1b34e7", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "dd043580-1950-47f2-8415-78a3c39a0fe7", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_nouveaux" }, { "id": "ae42c58b-d945-4c13-9530-c9f70d63a739", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "3516fa79-8fda-4829-b4ca-1bb91595e417", "comment": "", "command": "executeScript", "target": "return 7 + Math.floor(Math.random() * 15)", "targets": [], "value": "nb_nouveaux" }, { "id": "425f9c40-95aa-4c80-a8af-33349366e559", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "86f580d7-97fe-495c-aac7-4f877302a6c4", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "ff441e40-3316-4546-8f7f-5ee713ba7140", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_nouveaux}", "targets": [], "value": "" }, { "id": "f1fae258-756d-4900-bdfc-a7951628e3ef", "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": "e78a0784-9c3d-4d43-a156-c614f64c5b95", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "79a7179e-8cc5-4236-a2d9-fd0aca87540f", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "680e0cd0-875c-4a7a-b51b-ee5be68c2365", "comment": "nouveau 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(11 + Math.floor(Math.random() * 5)); ", "targets": [], "value": "nom" }, { "id": "76056b89-9da9-451c-bde5-fb13d20724d7", "comment": "Saisir le nouveau 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": "fc724fd9-661a-4bd3-b516-012aca5d788c", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "313626b5-2370-4b83-bc3b-063306f676d2", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "83bd47a5-c77a-45f1-8646-e70247a3125f", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "1cb8c0c9-0151-453c-a7e9-b74e1cf09c0c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "c16603c1-1ab1-413d-ae7c-a0e489953e0d", "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": "539fdda5-a82c-4841-9a4b-f8241508e398", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "ba52b078-b592-4f0e-a952-a1725d2b3ce1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "dfd63781-fe5c-4058-8b3d-5d3153be9120", "comment": "Numéro à chercher", "command": "executeScript", "target": "function getNumero(tab) { return tab.at(Math.floor(Math.random() * tab.length)); } return getNumero(${lesnumeros})", "targets": [], "value": "numero_cherche" }, { "id": "2cee297b-cbc9-41c2-980f-e914a158bd16", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "ab173dbb-de68-415f-9a0a-b2a666016069", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${numero_cherche}" }, { "id": "4bae7915-e25c-4f13-b337-336b57fd6b16", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "ddf372a3-2509-4f45-bc88-e308013b0d3c", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Numéro de membre\")]/following-sibling::dd[1]", "targets": [], "value": "numero_trouve" }, { "id": "2023b28b-d68a-48ee-a364-612d277c46ae", "comment": "", "command": "assert", "target": "numero_trouve", "targets": [], "value": "${numero_cherche}" }] }, { "id": "222c2c01-b33a-4c51-8f6e-103f9ac3504d", "name": "05-12 chercher numéro membre absent", "commands": [{ "id": "3ecc1451-817f-4247-8fc3-353f0c6abe8c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "04e345d9-a348-4c9f-b6a5-0f22d374f2f0", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "35438995-68c1-4a1b-9c7a-9f21736bef54", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "65d72cae-5f2b-45fd-ae37-c8d61d13de89", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "84496d7b-0b94-41af-8dec-b5e9d853b9b7", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ff4f5a7f-c5c1-48ca-be52-820eedfee3b0", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "f47a920e-bbea-4e2b-82da-40468b08e3ec", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "37a23154-d44d-4dcb-b694-6300cd94553f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a2394714-d8a5-4754-adba-97b9d1eedfec", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "49dade6a-3dc4-4ad6-9162-f3bac73dde62", "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": "2425e2c5-a6a9-4fcb-bd04-82c478ef53c5", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "bb5ebc7b-62c3-4e30-9b81-9c1346fc735a", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "40f41e94-fbfe-4a40-bb45-dc96a34afa55", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "4adc920e-d63b-4ddd-9c48-2f9f73d8d8f1", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "72e93d31-1ccd-4ae7-8673-d05fcc44ddd7", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_nouveaux" }, { "id": "88f1f71a-4478-4b09-be6c-a2f5942e9424", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 20", "targets": [], "value": "" }, { "id": "77864cf0-9767-4cd9-89f7-965cc71a02b3", "comment": "", "command": "executeScript", "target": "return 7 + Math.floor(Math.random() * 15)", "targets": [], "value": "nb_nouveaux" }, { "id": "fdca31b5-0cc5-4178-afde-a2bd4b48cfff", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "99a5da94-d666-4da4-a4d9-42d7223d6b2f", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "cc94a9ad-0d54-4b6d-aaab-4ad1c62b7454", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_nouveaux}", "targets": [], "value": "" }, { "id": "534edbdc-d4d4-46d7-83f2-c1445334f491", "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": "e8f23e3b-f635-46e6-a385-f05024a7fa24", "comment": "Ajouter numéro à la liste", "command": "//executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "65af191a-bccb-46a8-a8fe-41e6d7003302", "comment": "nouveau 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(11 + Math.floor(Math.random() * 5)); ", "targets": [], "value": "nom" }, { "id": "9248aa96-562f-4978-b6a4-f422b5e10692", "comment": "Saisir le nouveau 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": "ed5cf35a-8764-4b78-bf34-811ab2a4b5e0", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "5aa27fac-143d-43d6-a845-9512958d0b9c", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "fd220e46-f7b7-4554-9855-a21ba3ec0b6a", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c0a57487-0a2c-46f7-ac86-06c26505b11d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "1a372467-588c-45ee-b488-2209b2063139", "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": "e0972263-0f92-47a9-803f-822193664567", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "7546881b-1361-4b2d-a188-42e24c7cd0bf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "29da57dd-ffd8-4cb5-a50a-2bd83943da8e", "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": "298c37e1-9476-40ce-abab-3c71c9d9fd76", "comment": "Numéro à chercher", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero_cherche" }, { "id": "af848da9-c5c4-446d-9976-d6c350121945", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "028f9dff-b42b-4b58-ae7a-4bde64b13eab", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${numero_cherche}" }, { "id": "60e220c8-d1c9-4846-b2d7-f2a9e56cb9d2", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "9731707a-e2d4-44ba-b369-bfe4376e008a", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "cbbad468-d6c4-4d8e-8784-2648ee318911", "comment": "", "command": "assert", "target": "titre_page", "targets": [], "value": "Recherche de membre" }, { "id": "b84ffbdb-9519-42e9-bb0b-812e682acbb4", "comment": "", "command": "storeXpathCount", "target": "xpath=//tbody/tr", "targets": [], "value": "nb_res" }, { "id": "26eca62a-52bf-4fdd-9442-c3bb3faecfc3", "comment": "", "command": "assert", "target": "nb_res", "targets": [], "value": "0" }] }, { "id": "748d040b-eed8-4d60-a769-a2e9f58ddd6b", "name": "05-21 chercher courriel unique", "commands": [{ "id": "8836521a-243c-423e-bfef-d8fe9677661f", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "09c50a46-c44f-47c4-88c5-21f5649de3e9", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "162c98f1-83a5-4cc1-a04c-af9cb5861fec", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "a7c573e2-04f6-4798-93d2-0508d638103d", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "fe4e01a5-0b38-4bef-8a1f-37c098ee3721", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "f4c2dfbd-c7ae-4143-b543-92e11c5cc712", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "38795aed-e526-40f7-91c6-a178ac02e90e", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b6a62e3e-c67c-407e-83b4-6f2d5bc7b1f8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "35a3e694-84c8-43e4-a789-833ebef85239", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "1520cb9f-f1d4-4369-8271-1ccc3f86dc91", "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": "dd420bf3-dea8-4f39-964f-44d68dafb1c1", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7b66f850-460a-4608-9ff0-111ece58f004", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "f2136a56-199b-4e45-9bce-bb221a085219", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "3d936cd8-99a4-440b-910a-17e54a9b8320", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "6b16168b-c2ff-44b6-8eee-1788547430e2", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "63e096ba-d0d2-4355-8fb7-fd45e3bd93bd", "comment": "Init liste des courriels", "command": "executeScript", "target": "return []", "targets": [], "value": "lescourriels" }, { "id": "6766668a-2402-49d1-9a79-1aa04d8a002e", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2c016cd3-b9e8-4be6-8824-e08af0112f9d", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "246b8565-54e7-4c83-9f25-ba4f78fbc4c2", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f3692256-4bef-471a-94cb-28fd74880cdf", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_courriel" }, { "id": "7de4455c-cf94-4a01-a123-6be30f469b0f", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "1842ff4f-ef29-4e5f-abf5-00e6603da227", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "2ac6064e-949f-4bfa-9f62-3ad3238f7c63", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "438c53f4-c4be-44a0-80be-2d245c6e9d62", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "53d13f2b-2c62-4d43-b9c3-0de68797fe85", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "f3801924-8f11-4001-8b2a-1dc4e9a0b023", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "b4249191-a20f-47e2-8c30-18f1462bcbf2", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "16783046-6a94-42b3-a552-ecf57280298e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e18addce-9891-4820-a070-4df75a7f02e5", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "69d8e96a-b707-451f-8bc6-cf396b321109", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "62a4dc20-47fd-4457-84ce-576203bb8239", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "a240b4ad-5a4a-4cdb-bcc9-8c2676709f78", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "0cbb9b75-869e-434f-a38f-d11aafd32262", "comment": "afficher fiche membre", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", "targets": [], "value": "" }, { "id": "87866c80-31b6-4fa8-b646-3974c7e1f22d", "comment": "", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "mailto" }, { "id": "15b4090f-f48d-4a8f-9e19-ee4704f0ae67", "comment": "", "command": "if", "target": "${mailto} >= 1", "targets": [], "value": "" }, { "id": "7a9f4963-3916-48b0-9a0b-0208708047c7", "comment": "", "command": "storeText", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "courriel" }, { "id": "0156b1a6-6999-4239-b97e-d690626fcd86", "comment": "", "command": "executeScript", "target": "return ${nb_courriel} + 1", "targets": [], "value": "nb_courriel" }, { "id": "9e426d6e-4f7f-4f8a-93d2-5e43341f76fb", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "ed0af847-ca01-4f7a-9827-4dc2dbded6ff", "comment": "", "command": "store", "target": "", "targets": [], "value": "courriel" }, { "id": "d58ea2bb-eca6-45c4-b38e-023077bf3118", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3a8ceafe-4571-4d03-8ebd-97b9307597dc", "comment": "Ajouter courriel à la liste", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "54ffc7b9-1ae2-49ab-a427-6e801c559709", "comment": "Retour page précédente", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "7942553c-150e-4d1e-b08f-a6b7fd85b7a2", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "bca9409f-280d-4f2c-921e-c2fdf083a5f8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d1dbf069-1c29-47f6-8914-1eda01fd0513", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9bb07005-ab82-45ff-81ac-02aaa4f329bf", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 10 || ${nb_courriel} < 5", "targets": [], "value": "" }, { "id": "ae9583a9-f535-441f-916b-b8aefaa6e98b", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "64e82f1f-e3e0-43a7-a753-efbe040e32c5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "01bb0073-909b-4898-a7cf-32c8ed6ad1d3", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "33b49f19-ba13-4c07-9945-3570c52ba678", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "cf0eba4e-e09e-4d39-b877-02dca2eea1e4", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "ac6673a1-f9f5-4e82-9fec-d3ddebe1c0c1", "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": "07a4a2fb-f3e8-485e-ae48-d5234d9e4502", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "e6b55ebe-157d-4ba8-81fe-11f1a1a67942", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "97e0aefd-94b0-4345-a30d-ee61d03329a5", "comment": "Adresse courriel", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "81e60c6d-958e-46d2-8f88-31dff40cab13", "comment": "Ajouter courriel à la liste", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "b29cb9d7-1f86-4eb1-8d98-97b89fe6315f", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "0f06e6e3-4c8a-4f49-9f37-fc12a8a1a709", "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": "b117fc6c-2c7c-482c-ab56-fc5cc7a965cb", "comment": "Saisir courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "cde9c560-9702-4e7e-84a0-f1a7ec4629c9", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "36b3bd96-d157-4bed-8990-eb665340c046", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "41a7b26e-7ae7-4e03-a920-0090c59c7558", "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": "9557e2b8-ea01-41b0-a532-b9558a914f7f", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "3e53a929-cc99-4d06-9c2d-cf08f4067e56", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cc3345f7-560b-4e12-81bf-6adb2f4c3a6c", "comment": "Choisir un courriel unique", "command": "executeScript", "target": "function nbocc(elem, tab) { let nb = 0; for (const e of tab) { if (e.localeCompare(elem) == 0) { nb += 1; } } return nb;}function getCourriel(tab){ while (true) { let ind = Math.floor(Math.random() * tab.length); let nom = tab.at(ind); if (nom.length > 0) { let nb = nbocc(nom, tab); if (nb == 1) { return ind; } } }}return getCourriel(${lescourriels})", "targets": [], "value": "ind_courriel" }, { "id": "ba787d93-897c-4db6-bcd7-567f26d6b658", "comment": "", "command": "executeScript", "target": "return ${lescourriels}.at(${ind_courriel})", "targets": [], "value": "courriel_cherche" }, { "id": "cf6baaa9-7abf-4185-a20d-f55922ed7745", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.at(${ind_courriel})", "targets": [], "value": "numero_cherche" }, { "id": "7af206dc-09a0-4edd-8ffc-e69c35594907", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${ind_courriel})", "targets": [], "value": "nom_cherche" }, { "id": "24dfdf59-92ea-4f7f-bb29-45b98f68f0eb", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "1a635b2a-375b-4e02-a7b2-e5f63c127bb0", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${courriel_cherche}" }, { "id": "8c206463-713f-40a1-9bc9-a01823d6e6a7", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "f84b3700-3470-4dda-8c5a-1aa8a73f85f8", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "58a59c2a-ea92-4389-81d9-8ce2875d458e", "comment": "", "command": "executeScript", "target": "return ${titre_page}.startsWith(${nom_cherche})", "targets": [], "value": "ok" }, { "id": "b67f4be7-6899-4068-872d-ead48c11532e", "comment": "", "command": "assert", "target": "ok", "targets": [], "value": "true" }, { "id": "78284d24-4a14-4c7e-9197-a07adcc88fcf", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Numéro de membre\")]/following-sibling::dd[1]", "targets": [], "value": "numero_trouve" }, { "id": "65d3c2d4-e971-4adc-a6bd-c045a94ae2e8", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Nom & prénom\")]/following-sibling::dd[1]", "targets": [], "value": "nom_trouve" }, { "id": "f766091d-6acc-41cf-b801-a1c7d8592fc7", "comment": "", "command": "storeText", "target": "xpath=//a[contains(@href, 'mailto:')]", "targets": [], "value": "courriel_trouve" }, { "id": "7577ea10-15f8-442e-a0e1-6a45818f5b4e", "comment": "", "command": "assert", "target": "numero_trouve", "targets": [], "value": "${numero_cherche}" }, { "id": "8bd9a8ff-f72c-4548-a0d5-89484bbdb2a7", "comment": "", "command": "assert", "target": "nom_trouve", "targets": [], "value": "${nom_cherche}" }, { "id": "baa7670f-152e-4dfa-8e0c-3a0773cc0753", "comment": "", "command": "assert", "target": "courriel_trouve", "targets": [], "value": "${courriel_cherche}" }] }, { "id": "61d20306-ee4b-4221-a7b4-2c39558e4c74", "name": "05-22 chercher courriel absent", "commands": [{ "id": "e02d52e7-a754-4192-a0fa-878904428cc6", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "7e40c18f-f726-4ac3-83c0-2aad9c42f122", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "c7feecd9-3853-44b4-8857-a33ed2edada4", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "514c3838-255e-4ea4-9b64-6b963439c14b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "b71669da-f541-4a9f-8aeb-c0caef6a9b90", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "5bfe1b57-bbab-41ac-83ce-844b96f3c4a7", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "83913c37-9a30-4bc0-8bbf-31366b30e7c4", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3d90c1ed-6911-4707-8589-5a8a0cb650d7", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "10762c80-fe25-4290-8d3c-bcb9f35c784f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "a7263269-271e-4110-a769-2a729909ffae", "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": "b137c64d-f2c7-4012-8b72-577b1767e63d", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "c6292eff-bfc0-4f0c-9f3f-6665c2c54cd2", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "b9b2966b-3434-41f8-994c-fa536f44c9fb", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "8db30600-ba49-415e-a3d5-6f698a9f55ab", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "548cf1bd-e6ae-4db7-81a4-7b446658571c", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "4a032367-1f97-42a5-87d8-571502ff1064", "comment": "Init liste des courriels", "command": "executeScript", "target": "return []", "targets": [], "value": "lescourriels" }, { "id": "4e280d12-08f5-40cf-a1e0-c3e39aa1f308", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a41655d3-8cf4-416e-b86e-cbb0ae58d90e", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "e55ef599-6971-492c-9cfa-3ad16bcac775", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "0d204ee0-2906-400a-9a0f-dc857f0a2662", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_courriel" }, { "id": "2be19f99-9e8f-4ee1-8420-9027960b0492", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "9eb8ed2a-2338-4737-92a5-57a045800aca", "comment": "Parcourir les membres enregistrés", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "0cdb4ace-7222-4261-9d63-3102b5837f37", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "1fa3adf5-2568-47df-9a14-ab2291356f77", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "2e8ffc9d-1550-4d4c-a203-e7af66525bd0", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "dd3ec5e6-3e20-4eb4-84f6-4d86179a277b", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "2f211e8f-84f0-40cd-8c08-a1eafa0ae6a3", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "392c2564-0ef8-454f-998f-1374a9ab9772", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "27dc69e4-d799-45fa-bf1a-fa7bddefd436", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "40da012a-ee3c-4935-9f28-ef214bd4edff", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "09953410-8355-4ae8-90f8-d0bf0c64a2bc", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "70e8305b-a2fd-4760-bde1-59224382ca04", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "b955917a-e434-41eb-aa80-1e05a91fe4db", "comment": "afficher fiche membre", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", "targets": [], "value": "" }, { "id": "e72f2f87-66a6-482f-8bff-9dbd86fdd8e3", "comment": "", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "mailto" }, { "id": "445ecace-22fa-4da4-9012-afeffe2a9754", "comment": "", "command": "if", "target": "${mailto} >= 1", "targets": [], "value": "" }, { "id": "599ad1fb-d72b-4363-9a2c-1e0cb3a740d1", "comment": "", "command": "storeText", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "courriel" }, { "id": "26ba5f25-2911-4bd3-91b3-9c809bfb9ec8", "comment": "", "command": "executeScript", "target": "return ${nb_courriel} + 1", "targets": [], "value": "nb_courriel" }, { "id": "79a2cae6-ede5-4116-8f5e-b9924c5eb1a8", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "07b9e213-1845-4df8-b2c2-2740c805a021", "comment": "", "command": "store", "target": "", "targets": [], "value": "courriel" }, { "id": "c248553b-1e2d-42d1-9834-fec34eb12f3a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1337011b-7cd7-4bd5-bb58-503b4ebe8fb0", "comment": "Ajouter courriel à la liste", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "6644c0a0-3d1f-4c0c-849c-ca3dbc0d830b", "comment": "Retour page précédente", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "7f43c784-2a4e-4dad-bb77-108a90562fa1", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "75d1a9df-fb6b-470a-b66b-6be4fa897c53", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cf21dd94-4af4-4596-8df6-2d86ba6957ca", "comment": "Générer de nouveaux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7e932020-d92b-46d2-b415-91126ac875f2", "comment": "si pas assez de membres", "command": "if", "target": "${nb_total_membres} < 10 || ${nb_courriel} < 5", "targets": [], "value": "" }, { "id": "e75913c3-78ce-409d-9a3b-3534e07c1197", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "953a87b9-8235-44f6-8fd8-b74639bcfeca", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "39e2a8ed-b63a-482d-9320-22311cbb46db", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "a9bd5863-9789-4b40-a0a2-4eedc150a330", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "1ebda4f8-90b8-4d2b-957f-6610dbab4af3", "comment": "Enregistrer les nouveaux noms", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "31d901c8-822f-474f-857e-20c7171a9141", "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": "640a625a-4a97-4d94-bdf3-6f135841a722", "comment": "Mémoriser numéro de membre", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "6f8d0e59-ab75-4488-bcb4-36056e52e620", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "4d3f42ce-b270-4beb-9c2d-a6980ffcce1d", "comment": "Adresse courriel", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "9c39e09f-f248-4c36-9a3e-06d0409a41ea", "comment": "Ajouter courriel à la liste", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "6ad64591-a08f-4a04-839a-41e618f6ad3e", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "f12d0d21-b29e-43af-9881-108bbad6cf2a", "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": "b9b44171-c1ec-4177-92f9-d7b8fbf96c14", "comment": "Saisir courriel", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "8d74c491-bcd9-4f73-8494-d0752469f404", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "04fa2b6c-082e-4c4f-a32a-4f119499bbbc", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "33f860c0-4e9c-4f06-ac6c-e3a810b80b95", "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": "22c33063-1e69-4d5e-8c48-f5d19c57a18d", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "53168b36-364f-4868-8e3c-26e6eff51676", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "aabe9d62-8ddf-415b-9e02-11ead0c09299", "comment": "générer un courriel absent", "command": "executeScript", "target": "function nbocc(elem, tab) { let nb = 0; for (const e of tab) { if (e.localeCompare(elem) == 0) { nb += 1; } } return nb;};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;}; function genererCourriel(tab){ while (true) { let courriel = chaine(8) + \"@free.fr\"; let nb = nbocc(courriel, tab); if (nb == 0) { return courriel; }}}; return genererCourriel(${lescourriels})", "targets": [], "value": "courriel_cherche" }, { "id": "a09a0f14-3cb9-453d-af28-a4aee9dc26ee", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "0cfe5606-3afc-49a0-8dd5-58c1fd81938c", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${courriel_cherche}" }, { "id": "563825bb-0ba7-4330-b9b2-b976b1fcb26a", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "c120fc06-cdea-4819-b56d-fc54526273f9", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre_page" }, { "id": "96284daf-f6f7-4abd-acb2-41e82f8e0b59", "comment": "", "command": "assert", "target": "titre_page", "targets": [], "value": "Recherche de membre" }, { "id": "59176623-95f1-407c-9bd0-3c187bc55217", "comment": "", "command": "storeXpathCount", "target": "xpath=//tbody/tr", "targets": [], "value": "nb_res" }, { "id": "097d4f8b-b841-457c-8d58-a3a204bc6d56", "comment": "", "command": "assert", "target": "nb_res", "targets": [], "value": "0" }] }, { "id": "e47f2275-c9d9-4183-adf7-ca74b5b9cd75", "name": "05-23 chercher courriel plusieurs résultats", "commands": [{ "id": "3cd64e62-4488-4ab8-8745-0844e28ab95a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "6d66e1b8-bdfb-4ed4-a562-35d1a84492da", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f753440b-da17-4c79-9dcf-ce7712f7f903", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "a53adafe-21a3-475b-8c7c-3edf39d549d0", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "767fb783-a48f-4f51-a56e-0b9f012a07e6", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "8689f891-229d-4455-ba2f-063715257e0a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "7a02d62d-c635-4ee1-ab32-eb656784de5b", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "44ae26eb-c250-4bd6-9987-92b1443cfdac", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "dc86e6bb-b335-4695-a1eb-86ad00f00d26", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "29de96f0-b669-47a4-b8d4-109adbb7ce49", "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": "891f2379-8018-407e-a655-8a2bef31e65e", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "f56ff1ab-6485-49f2-a905-8c9f63e3fb44", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "8784c411-a100-4275-915d-fad72de4e043", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "d5322b3f-be1b-4d76-8ad8-1ee7bb11a11d", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "dbcc0afe-5a3d-4d54-bddd-bb28c57b5fab", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "4144c0f7-2108-458a-a97d-ed9937ad19ca", "comment": "Init liste des courriels", "command": "executeScript", "target": "return []", "targets": [], "value": "lescourriels" }, { "id": "b5c439c1-6b30-40b0-8322-535016441292", "comment": "Traiter les membres déjà présents", "command": "", "target": "", "targets": [], "value": "" }, { "id": "24d766f0-237a-4d17-a281-401794706f73", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "ec0c858e-649d-4d63-a510-287e92d0c00e", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "c06a1a28-c8d1-408d-abea-286e24a860db", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_courriel" }, { "id": "301ff0c8-f77c-41c5-9924-de503e4810e6", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "nb_membres" }, { "id": "f0a4affd-6807-4eeb-8509-d7771d4b4186", "comment": "", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "cfbb1008-7696-448d-93fb-5f6730e3ff4b", "comment": "", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "3a18725f-5b3d-407c-97ee-0ce1f37cd757", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]//a", "targets": [], "value": "" }, { "id": "075211e0-a2d0-4c66-b466-5a237e546ad4", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "012307ce-899a-4c7a-8987-e8dd64dbda55", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "cd3671a1-cf90-4d02-bef1-33434a04c93c", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "070bd92f-19ed-4d71-82f7-cdb0c9c895aa", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "70101152-e8bb-4055-acce-6f1a459f99ab", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "6734754e-ab54-49a5-b71d-1152a621ee28", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "9a535a9d-3064-41ba-985c-95eb237d9c30", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "ab3e96a4-af3c-49ac-97d6-73eb6422c162", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "840acc47-f8d2-4ffd-8aa8-95a2f3660332", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//a", "targets": [], "value": "" }, { "id": "51ba3835-fc96-42bb-8ab8-fadac8840f52", "comment": "", "command": "storeXpathCount", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "mailto" }, { "id": "67620158-6428-4cc7-8196-cbe9cd505f1c", "comment": "", "command": "if", "target": "${mailto} >= 1", "targets": [], "value": "" }, { "id": "702d0947-e65a-4659-9c62-c336e5282195", "comment": "", "command": "storeText", "target": "xpath=//a[contains(@href, \"mailto\")]", "targets": [], "value": "courriel" }, { "id": "8b3e2a8a-93eb-4b10-9bb9-6d25937020b0", "comment": "", "command": "executeScript", "target": "return ${nb_courriel} + 1", "targets": [], "value": "nb_courriel" }, { "id": "1a2b0ab7-408a-406c-9493-f9199c1a8486", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "0d1e416e-b8db-448f-a92b-5dfcb9bb56c3", "comment": "", "command": "store", "target": "", "targets": [], "value": "courriel" }, { "id": "249df462-1687-4276-8033-a6b8ae28032d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e853afe2-1d94-444d-a7ac-1c5efa5a62a5", "comment": "", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "479121e2-f411-44f8-834a-8a558325810a", "comment": "", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "b713eafa-c245-4888-b50b-7f74af375faf", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "d9a403e6-4afb-4f83-9062-b14e54f3afe3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a0d80163-9c90-4e0a-a7c1-6fcc4240f083", "comment": "Générer de nouveaux membres si besoin", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d72c968c-3e15-43f1-8d1c-dc42c54a4a40", "comment": "", "command": "if", "target": "${nb_total_membres} < 10 || ${nb_courriel} < 5", "targets": [], "value": "" }, { "id": "f6ab4743-3ff9-4819-966d-da9b96a66198", "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(11 + Math.floor(Math.random() * 5))); } return ${lesnoms};", "targets": [], "value": "lesnoms" }, { "id": "dab4b8f7-2d55-4f1d-a22b-c714bd43320e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0eceaf4a-d576-4408-a7ec-42cd0cc58511", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.length", "targets": [], "value": "nb_noms" }, { "id": "857a19e9-7027-425d-8fc8-f90711cd0461", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres}", "targets": [], "value": "i" }, { "id": "1bb5df03-148f-4511-8e1e-e015b30abe13", "comment": "Enregistrer les nouveaux noms", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c355a165-8964-4302-a8da-1c51d0eb8d1a", "comment": "", "command": "while", "target": "${i} < ${nb_noms}", "targets": [], "value": "" }, { "id": "f6355f27-b6aa-438c-9db8-cc11a383754e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "fffd88db-1e2b-4ecf-9c4f-4c2f4a3da0ba", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "b62cf6fa-6eef-4397-813a-f253697d2c72", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "1bacf0ff-0b97-40b2-bc35-e45396174ba0", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "b3fc611d-0c13-466e-a1a2-e920cf1c1f2a", "comment": "", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "8b961fdf-6995-4339-bcbf-052d65262856", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.at(${i})", "targets": [], "value": "nom" }, { "id": "d8b21ad5-51c4-472f-b78c-baeca213ef59", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "6bdb043d-8b2c-4216-a56e-692181abb884", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "9999776a-ae71-4119-8c4e-6716c5cb8cbc", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "18874cc8-4637-43f4-b228-aa24a317743d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "c44dd1f9-0b55-4fa5-b060-9e9e75bea739", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "bbdad134-7e20-4ccb-bce3-69ead97bab26", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "18aed5a7-d552-4030-920e-7d23c0506222", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f995ceaa-6e2f-4e3a-b954-09b2cda90f0e", "comment": "Ajouter un courriel homonyme", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d3a5501c-2047-427c-9f82-ee25921c000a", "comment": "courriel à chercher", "command": "store", "target": "@free", "targets": [], "value": "courriel_cherche" }, { "id": "7a443da9-d994-4d41-8ef2-bcd44096c9f1", "comment": "", "command": "executeScript", "target": "function homonyme(chaine, lg) { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < lg; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str + chaine + \".fr\";}; return homonyme(${courriel_cherche}, 9);", "targets": [], "value": "courriel" }, { "id": "79117715-f96b-4e0b-82f9-99409323f662", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ba063acf-a0cb-4738-82eb-0fa538ad9e30", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f91d11c1-7f66-4103-b907-fac58393f541", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}.concat(${numero})", "targets": [], "value": "lesnumeros" }, { "id": "7df2bb5f-c729-4ed5-8e9a-7798118f000f", "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(11 + Math.floor(Math.random() * 5));", "targets": [], "value": "nom" }, { "id": "2c3ff064-547b-4701-8975-1a3726d84904", "comment": "", "command": "executeScript", "target": "return ${lesnoms}.concat(${nom})", "targets": [], "value": "lesnoms" }, { "id": "cf4f24fe-6096-4ce9-a1ec-47c08c493a50", "comment": "", "command": "executeScript", "target": "return ${lescourriels}.concat(${courriel})", "targets": [], "value": "lescourriels" }, { "id": "be9eebec-c9f7-4a15-9a8f-21ec3e82acb7", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "f56d45b7-6f62-48e5-8d66-13984dfb61b8", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "7d58aec1-635e-445c-9127-2ae591591660", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "8d4b3ce0-c37f-4281-a975-663f7ae112c5", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "2d62f843-3610-41e9-9ac4-1a98d83b5f5a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "cf66472a-a259-4948-aadd-b46dc6eb52f4", "comment": "Trier les membres par nom croissant", "command": "executeScript", "target": "function trierNoms(tnoms, tnumeros, tcourriels, croissant = true) { let tab = []; for (let i = 0; i < tnoms.length; ++i) { let o = Object(); o.nom = tnoms[i]; o.numero = tnumeros[i]; o.courriel = tcourriels[i]; tab.push(o); } tab.sort((a, b) => { if (! croissant) { [a, b] = [b, a]; } let comp = a.nom.localeCompare(b.nom); if (comp == 0) { comp = a.numero - b.numero; } return comp; }); return tab; } return trierNoms(${lesnoms}, ${lesnumeros}, ${lescourriels});", "targets": [], "value": "membres_alpha" }, { "id": "81b1ce8b-854c-449e-94eb-3f8a4412dffb", "comment": "indices des homonymes", "command": "executeScript", "target": "function indonymes(chaine, tab) { let homos = []; for (let i = 0 ; i < tab.length; ++i) { if (tab[i].courriel.includes(chaine)) { homos.push(i); }} return homos; }; return indonymes(${courriel_cherche}, ${membres_alpha});", "targets": [], "value": "tab_pos" }, { "id": "32b2ae44-42f1-4bff-a698-813af7edbc2d", "comment": "", "command": "executeScript", "target": "return ${tab_pos}.length", "targets": [], "value": "nb_homonymes" }, { "id": "b8148159-8707-4630-933f-f7f4398a5715", "comment": "chercher un courriel", "command": "", "target": "", "targets": [], "value": "" }, { "id": "287ec7c5-8349-499a-abc8-e666ba21cef4", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [ ["css=.current b", "css:finder"], ["xpath=//li[2]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Membres')]", "xpath:innerText"] ], "value": "" }, { "id": "a32e376e-8b67-4056-9873-b5c221266ad1", "comment": "", "command": "type", "target": "name=qt", "targets": [ ["name=qt", "name"], ["css=fieldset > input", "css:finder"], ["xpath=//input[@name='qt']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${courriel_cherche}" }, { "id": "d43d8af9-7f48-4ed8-bdcc-ef57abef5bbe", "comment": "", "command": "click", "target": "xpath=//button[@type=\"submit\"]", "targets": [ ["css=.icn-btn:nth-child(3)", "css:finder"], ["xpath=//button[@value='1']", "xpath:attributes"], ["xpath=//button", "xpath:position"] ], "value": "" }, { "id": "f792d5d5-5e7a-4d9d-8e37-7c8aaeb7d1e8", "comment": "", "command": "assertText", "target": "xpath=//h1", "targets": [], "value": "Recherche de membre" }, { "id": "dce8f5e0-ff17-4834-8015-ae8abd28ea32", "comment": "", "command": "storeText", "target": "xpath=//p[@class=\"help\"]", "targets": [], "value": "ligne_resultat" }, { "id": "0ac0213d-51d7-44db-807f-ce8b2b779465", "comment": "", "command": "executeScript", "target": "return Number(${ligne_resultat}.split(/ /)[0])", "targets": [], "value": "nb_res" }, { "id": "88174e50-bfb8-4f17-9250-887c01a12438", "comment": "", "command": "assert", "target": "nb_res", "targets": [], "value": "${nb_homonymes}" }, { "id": "d881f1b0-b016-49e6-ae88-cc623ea29c3e", "comment": "comparer les membres trouvés avec les membres mémorisés", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b00553af-5dc3-41b1-af6a-2fdaa303d9f0", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr", "targets": [], "value": "nb_membres_page" }, { "id": "0f196bd7-8db8-458d-bb9d-b48b5f6a9370", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "765a214e-0462-41f7-9421-f7c26eb466cc", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "pos" }, { "id": "022a5157-0a59-41e2-871b-2668e894d34e", "comment": "", "command": "executeScript", "target": "return ${nb_res}", "targets": [], "value": "nb_membres" }, { "id": "04a270e5-dc4e-436d-b591-cd6ff52a04dc", "comment": "", "command": "while", "target": "${num} <= ${nb_membres}", "targets": [], "value": "" }, { "id": "0dcd5e3b-4a3f-4e33-9697-0e3f9cd09f0c", "comment": "fin de page ?", "command": "if", "target": "${num} > ${nb_membres_page}", "targets": [], "value": "" }, { "id": "163d1704-36c8-4d9b-a68a-a329ac36e4da", "comment": "passer à la page suivante", "command": "click", "target": "xpath=//li[@class=\"next\"]/button", "targets": [], "value": "" }, { "id": "42afb524-ce8c-4c60-a18c-70aaa47d8581", "comment": "", "command": "executeScript", "target": "return ${nb_membres} - ${nb_membres_page}", "targets": [], "value": "nb_membres" }, { "id": "8efa5fa2-902e-4c34-a8a7-7e65efda51f0", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "dc3261fb-067f-4705-95c2-869c38e4e428", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr", "targets": [], "value": "nb_membres_page" }, { "id": "2e65b0d0-e1e6-4b5f-9ba9-d23c33045d89", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "21347a5f-5ad1-425b-910e-08d5a96d4a41", "comment": "", "command": "executeScript", "target": "return ${tab_pos}.at(${pos})", "targets": [], "value": "i" }, { "id": "60f51c4b-a2c1-4e84-86d2-cd0ca67fc913", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[${num}]/td[2]/a", "targets": [], "value": "nom_trouve" }, { "id": "2e36f65a-7926-42d1-b0f3-5cadbdc2a746", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[${num}]/td[3]", "targets": [], "value": "numero_trouve" }, { "id": "bbb16405-7b14-4bdf-81cb-4d0660ddcddf", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[${num}]/td[4]", "targets": [], "value": "courriel_trouve" }, { "id": "b37e24cb-ffa8-411b-b302-8911dc18dcf8", "comment": "", "command": "executeScript", "target": "return ${membres_alpha}[${i}].nom", "targets": [], "value": "nom" }, { "id": "b9e442bc-83d4-49e5-a4a4-07c82657657e", "comment": "", "command": "executeScript", "target": "return ${membres_alpha}[${i}].numero", "targets": [], "value": "numero" }, { "id": "080edca2-807a-43f3-85b8-86621de9b4af", "comment": "", "command": "executeScript", "target": "return ${membres_alpha}[${i}].courriel", "targets": [], "value": "courriel" }, { "id": "24238f1f-ec76-48d8-8cba-0c35c864631c", "comment": "vérifier si le courriel trouvé correspond à la recherche", "command": "executeScript", "target": "return ${courriel_trouve}.includes(${courriel_cherche})", "targets": [], "value": "ok" }, { "id": "036aac50-e85b-4d5c-89d9-44b7f6546079", "comment": "", "command": "assert", "target": "ok", "targets": [], "value": "true" }, { "id": "1ce23fbb-2940-44b5-9bcb-769b9e861604", "comment": "", "command": "assert", "target": "numero_trouve", "targets": [], "value": "${numero}" }, { "id": "5c7d53be-7452-47aa-ad73-bb91d8196e5c", "comment": "", "command": "assert", "target": "nom_trouve", "targets": [], "value": "${nom}" }, { "id": "8a87dfe8-3059-4311-8f76-5a1d77ef82be", "comment": "", "command": "assert", "target": "courriel_trouve", "targets": [], "value": "${courriel}" }, { "id": "678c6a53-2605-44f4-9b99-db4f708d8388", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "20c530b6-cd4b-4366-a4c1-c49711073d04", "comment": "", "command": "executeScript", "target": "return ${pos} + 1", "targets": [], "value": "pos" }, { "id": "5d307308-5ddf-4e16-8d4d-a9c2e8c0e50d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "13254e39-41ef-4909-ac46-f8ad0174d1b0", "name": "06-01 supprimer membres", "commands": [{ "id": "7b7f03ce-df0a-4b93-a99c-abefe98071c3", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "5bb17df6-1d73-41b3-8ae7-4898f8eac945", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "750500be-d0f0-4642-99dc-5269f59f8f67", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ad59e5a0-88bd-4139-acac-0f9bd8d03495", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "2cbc64e5-65a4-4f10-be1e-d2425fee25e8", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ac03d879-3520-43a4-8c02-9aa91c87bdec", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "663dacfd-daaf-458b-9dd9-6c2dbe1cc0fb", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e43b3fc6-007f-4f6e-a887-1dc78ca91163", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a6991161-06d8-4f1a-8e25-da9c82e04673", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "8297e0b5-a68e-472a-b09c-6dedd0d79c69", "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": "6b81cc1f-3dd0-426c-a9e3-fe7192d8e389", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7f83a3af-4efc-4fe4-991c-7f0cbb0b60d7", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "137549b6-1daa-44f3-b2a1-10025c5bd579", "comment": "", "command": "if", "target": "${nb_total_membres} < 10", "targets": [], "value": "" }, { "id": "e492b364-ac84-4776-94f5-ee367ae80c55", "comment": "Générer de nouveaux noms", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length));} let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin; }; function genNoms() { let lesnoms = []; for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { lesnoms = lesnoms.concat(chaine(11 + Math.floor(Math.random() * 5))); } return lesnoms;} ; return genNoms();", "targets": [], "value": "nouveaux_noms" }, { "id": "c0a439e2-3bd9-4e6e-9304-87d152e83326", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "dde8c376-a464-4381-b349-71805074c226", "comment": "", "command": "while", "target": "${i} < ${nouveaux_noms}.length", "targets": [], "value": "" }, { "id": "ebc07853-53c9-4d87-9404-018e1b55198c", "comment": "Menu ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [], "value": "" }, { "id": "728b9a2e-6817-4e45-9c80-146e73fbcc94", "comment": "", "command": "executeScript", "target": "return ${nouveaux_noms}[${i}]", "targets": [], "value": "nom" }, { "id": "27b8d889-2691-4f9b-aed6-cd58ed6b6fec", "comment": "Saisir le nom", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "3a3e8f07-2ac9-41f6-ac0c-e9ec68316187", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "c52180b1-cb0f-4194-9834-808ec9908dec", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "c8a3f837-8370-47a6-8bec-b4836fdb7f44", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "e0726204-eba0-4845-b088-2be6fb9d4ec0", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "81f36c97-4ca3-4d92-bba0-48795dd49108", "comment": "Enregistrer les infos", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "79e43592-d573-47c7-b458-4b7144db22f3", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "8a90fbf2-c11c-4055-afe8-9d954eb620cb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "80f7acd0-9b78-46bb-9025-f65eec454425", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f8624ab4-b57c-4ba1-894d-6d7bbe147b7b", "comment": "menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "60331a57-2fab-4056-a2e4-4814d55d2e71", "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": "493a86b0-6932-4528-8bea-9ba15a72f79d", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "5b0f7a5c-5df9-4447-ac0d-9bb959c3542d", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "1d54e3d9-e9ac-431a-9dc4-cacd45ce7efc", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "56f815b2-5098-4368-8cd2-00c1d37a67a6", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "2099ff67-9379-4aa9-91fa-0f00fe5b2800", "comment": "Init liste des numéros", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnumeros" }, { "id": "71980e02-45e4-4ce7-974a-ebf85beac023", "comment": "Init liste des noms", "command": "executeScript", "target": "return []", "targets": [], "value": "lesnoms" }, { "id": "e118b9d2-559b-4dfd-9b80-8eeb3ddd2f1d", "comment": "membres à supprimer", "command": "executeScript", "target": "return []", "targets": [], "value": "asuppr" }, { "id": "1e851388-993e-45f1-92d1-81b34e319727", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_suppr" }, { "id": "1f778544-8440-4b49-bcf6-9ac2c65c088c", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "4e7edd50-adfa-47b6-874c-2620fa956d69", "comment": "Parcourir les membres de la première page", "command": "while", "target": "${num} <= ${nb_membres_page}", "targets": [], "value": "" }, { "id": "55ea43c6-3fca-4f45-a76f-a67589636ca6", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "419d4f1f-5ce4-40c6-b58f-81cf663a4500", "comment": "Ajouter numéro à la liste", "command": "executeScript", "target": "return ${lesnumeros}.concat(Number(${numeroAffiche}))", "targets": [], "value": "lesnumeros" }, { "id": "33eff90f-9bf8-4b6f-ad8b-91e2f519dd7d", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "1bc57984-510c-44ea-821f-07639dfbbb9d", "comment": "Ajouter nom à la liste", "command": "executeScript", "target": "return ${lesnoms}.concat(${nomAffiche})", "targets": [], "value": "lesnoms" }, { "id": "86e7be66-23f6-424a-baba-8fc96e68fff7", "comment": "", "command": "if", "target": "${num} % 3 == 0", "targets": [], "value": "" }, { "id": "a6674525-f3e4-4df7-9410-464aff309c78", "comment": "", "command": "check", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//input[@type=\"checkbox\"]", "targets": [], "value": "" }, { "id": "e5203340-d563-4b27-b32a-7b6b99e021eb", "comment": "", "command": "executeScript", "target": "return ${asuppr}.concat(1)", "targets": [], "value": "asuppr" }, { "id": "d2762532-28c1-4601-9529-5c4fc6352aea", "comment": "", "command": "executeScript", "target": "return ${nb_suppr} + 1", "targets": [], "value": "nb_suppr" }, { "id": "33e574c5-e13a-40da-8ba2-274e5b602cbf", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "7f9ecdd8-4211-453e-8e88-b70aa4cc2560", "comment": "", "command": "executeScript", "target": "return ${asuppr}.concat(0)", "targets": [], "value": "asuppr" }, { "id": "485f99ff-0f5d-4db7-a250-855b44eb46cf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5d11c986-9605-473a-9a76-b0774b9391cd", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "2ae54773-d9a1-49aa-89c3-35e0cce81772", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9401aa63-a87c-4cc1-9294-1dc441d5bd3a", "comment": "Supprimer les membres sélectionnés", "command": "", "target": "", "targets": [], "value": "" }, { "id": "37264356-96c6-4c32-8390-055adbc5efb6", "comment": "", "command": "click", "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]", "targets": [ ["name=action", "name"], ["css=select", "css:finder"], ["xpath=//select[@name='action']", "xpath:attributes"], ["xpath=//select", "xpath:position"] ], "value": "" }, { "id": "d0f1f593-368d-4e8f-b305-9f5d99f9f4eb", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "9ac82f5b-7206-448f-baf0-98d2337db68c", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "8f2ad379-bcf6-4729-b7f9-592d31b44cb1", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "9134a9df-c731-4a24-bf72-37f281c95903", "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": "cac06737-1754-4ac4-9f30-477e9a2fd5a2", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "1000" }, { "id": "36e6ebf2-46bb-486c-a024-da720132d872", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7fea960d-3c8a-4b09-a21d-6d7a537bc60c", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "membres_restants" }, { "id": "34001b9d-78e0-4ecd-84d6-e34784cc6c84", "comment": "", "command": "executeScript", "target": "return ${nb_total_membres} - ${nb_suppr}", "targets": [], "value": "membres_restants_oracle" }, { "id": "511506e2-6636-4233-9197-8f9fb85e45b5", "comment": "Vérifier les membres restants", "command": "", "target": "", "targets": [], "value": "" }, { "id": "387e771f-add4-4f95-bb37-e835d15845f9", "comment": "", "command": "assert", "target": "membres_restants", "targets": [], "value": "${membres_restants_oracle}" }, { "id": "81f294fe-0998-4d48-b6c7-3108bb610904", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "86508d96-3c91-4b21-9041-5f87b1ed31b2", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "fd05b06f-4ea9-469a-af2e-d6b7c6383e9a", "comment": "Parcourir les membres de la 1ère page", "command": "while", "target": "${num} <= ${membres_restants} && ${i} < ${lesnoms}.length", "targets": [], "value": "" }, { "id": "b84f7c00-6766-4a95-8632-ed4ff7f1ffbb", "comment": "", "command": "executeScript", "target": "return ${lesnumeros}[${i}]", "targets": [], "value": "numero" }, { "id": "91cd2fc0-a38d-4f4f-b8c7-0b069943de13", "comment": "", "command": "executeScript", "target": "return ${lesnoms}[${i}]", "targets": [], "value": "nom" }, { "id": "2a264014-c268-47e6-8f7c-1a1ba2d40902", "comment": "", "command": "if", "target": "${asuppr}[${i}] == 0", "targets": [], "value": "" }, { "id": "97e1be40-6ece-46d2-b393-d7ed4db807f0", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span", "targets": [], "value": "numeroAffiche" }, { "id": "281e5c73-5396-4780-a2e7-424f97d7a03c", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "nomAffiche" }, { "id": "46e7ccb5-9480-4d4e-beff-df37cf89e4a6", "comment": "", "command": "executeScript", "target": "return Number(${numeroAffiche})", "targets": [], "value": "numAff" }, { "id": "26db6524-cf1f-4301-974e-e1420ec5ee1a", "comment": "", "command": "assert", "target": "numeroAffiche", "targets": [], "value": "${numero}" }, { "id": "f9512e6d-e3ae-4a8c-aa88-383d3b980466", "comment": "", "command": "assert", "target": "nomAffiche", "targets": [], "value": "${nom}" }, { "id": "66b2b24f-a1a0-4806-8698-d28cbd42ff09", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "c986c2c8-59bd-4de7-be89-09c54ae7c5c3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1d1b0ffa-efe2-4ad9-93a9-1802928fbd64", "comment": "", "command": "executeScript", "target": "return ${i} +1", "targets": [], "value": "i" }, { "id": "df95acad-973d-4ff9-a81a-60c4e8b6f225", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "e9ac5acc-6ff2-4523-807e-1316b020d8ca", "name": "06-02 supprimer membre 1", "commands": [{ "id": "1f97c921-613d-47e5-bdac-46f191995147", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "00fb3352-3297-44f8-8efd-84b68bf62035", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "168739d7-f0e5-440f-a564-2cc14a993d71", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "6cd5f45b-2fe6-4a25-805e-e2a50a066110", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "0958c5ff-7c36-43a5-8bbc-e672aae10dcb", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "235cfae5-9598-467a-8143-bd9b9f6c7b43", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "aaa9ed86-55b1-4ec6-a809-b92a2477ebe5", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "bbff11be-b9d2-4379-a093-66e3ed36cb23", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8d355cd1-ab99-4f2d-934f-e922307961e1", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "8200f4bf-5659-4c07-80b5-d5ceb774c535", "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": "8741f9d2-8e30-4a88-a4d9-42fedee9b32e", "comment": "", "command": "store", "target": "Administrateurs", "targets": [], "value": "categorie" }, { "id": "54742745-eba2-4afd-80b3-fbd02d3061c9", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"${categorie}\")]", "targets": [], "value": "" }, { "id": "58da6287-1e38-467e-8604-95d12fe10cfa", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"${categorie}\")]//small", "targets": [], "value": "membres" }, { "id": "3719b99a-45ba-49bd-b298-2431f340bccd", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "59643ed8-bebf-42a8-aa33-4fe2d2e12250", "comment": "", "command": "check", "target": "xpath=//table[@class=\"list\"]/tbody//input[@type=\"checkbox\"][@value=\"1\"]", "targets": [], "value": "" }, { "id": "b795d85a-6b5a-46b6-8f1e-53f7c6451d2e", "comment": "", "command": "click", "target": "xpath=//select[@name=\"action\"]/option[@value=\"delete\"]", "targets": [ ["name=action", "name"], ["css=select", "css:finder"], ["xpath=//select[@name='action']", "xpath:attributes"], ["xpath=//select", "xpath:position"] ], "value": "" }, { "id": "afc28a43-1f49-4351-8d8c-426425d07ae3", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "19e6305c-e7cf-4969-89f6-181a0593019b", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "8aeba682-cb10-43ed-b2bf-577230f432af", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "33d41f29-6ad5-403a-bdd0-36d633ef1096", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "ae00d922-eccc-4e00-9c7a-02289c05dc92", "comment": "", "command": "click", "target": "xpath=//button[contains(@class, \"closeBtn\")]", "targets": [], "value": "" }, { "id": "2a9c0278-81e5-462a-82ca-3b3bc2025ceb", "comment": "", "command": "waitForElementVisible", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "30000" }, { "id": "8da6be2b-7c62-4266-88b2-46e894f2dbf4", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "5c9793d6-751b-4e17-9151-09fb0b737a0d", "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": "f2dd9118-10f0-4570-9163-dd0662018d59", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"${categorie}\")]", "targets": [], "value": "" }, { "id": "ceea15ae-7871-4d5d-a680-fdd7611d6731", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"${categorie}\")]//small", "targets": [], "value": "membres" }, { "id": "aefe30e3-30f9-48d8-92e9-338782976eae", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "e7d33fd2-0a2d-401e-a9ae-eacf569e04d7", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_initial_membres}" }] }, { "id": "4c95e2ee-667c-4e1b-b55b-4cc92eda3c6f", "name": "07-01 modifier membre", "commands": [{ "id": "b35ae151-79f6-45f9-a3cb-82e2c2fc0c86", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "58cde292-0197-4c8c-85e2-8ba1e9cab413", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "53d86b7d-c442-4ab4-a6fe-e410a18fb6b8", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "d0a16bbb-5731-48aa-b81e-3c0731bbc503", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "f03c7d38-d087-4a99-8822-7befd511a558", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "cdf1b33b-f7dc-4342-abe4-67afa1b7f226", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "caef19cb-dd4e-438e-9d80-bee10a7e3bd5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "54822399-089b-4c58-a228-8e09d9578801", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "19142f61-2dd2-480a-87e6-c0eac635920f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "cc7903e2-0432-42f6-878f-2b87bc5fa120", "comment": "rendre visibles les catégories", "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": "73a108aa-4752-4d3e-9176-1df9277a30a7", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "7ebbca1c-7e96-4e8b-87f0-f3503c86c3e4", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7d1b7c91-af85-4929-aacc-6e56dd62d9f4", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_total_membres" }, { "id": "2c3ec859-bf79-49ff-977a-47875ac84ecf", "comment": "", "command": "if", "target": "${nb_total_membres} < 2", "targets": [], "value": "" }, { "id": "d96447d2-12b6-4ceb-a45e-ff50a80b6108", "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": "b85297e7-d532-4c45-b3ee-46a7a928296e", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "4298482f-6cab-4189-bbc6-81cf2c393b33", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "e7d314c9-348a-4851-bb9d-31a9299a7501", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "42e9811c-cc4e-4c94-886c-6fa31f6fa844", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "44f97500-bf5d-49da-9477-cdc3ef54ffff", "comment": "", "command": "store", "target": "777 rue des arbousiers", "targets": [], "value": "adresse" }, { "id": "c0d55074-57bc-4d26-9bc4-0d9353d00b5d", "comment": "", "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": "fb1d5847-441b-4508-94cd-c9b9b3648695", "comment": "", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "3e8021a9-aa54-49db-8a5e-9b5ff8aa1e86", "comment": "", "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": "1d919b5b-3980-403b-9891-0f0b5ff8a9f8", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "a41c276f-ccfd-432b-8648-72862d2a935e", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "9d6b7fcc-0cc6-4733-bea9-180c0009c608", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c7a0ec7f-508a-4332-9581-e9f79002a8d9", "comment": "", "command": "type", "target": "id=f_telephone", "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": "${tel}" }, { "id": "7471e6ed-2cac-4387-838d-1431a1cb65d7", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return Math.random() * 3 < 2", "targets": [], "value": "lettre" }, { "id": "b8e21864-ff84-4d35-8358-573bacde6b46", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "003abdb7-1bbd-4e90-96bd-501b9a193304", "comment": "", "command": "check", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "d0186833-9b94-475c-8878-51c19d38cc3e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d7f05c74-3548-4515-8b23-6046336cbe3f", "comment": "", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "b7f36dfb-dfc6-46b4-a685-a1ad4f3405f5", "comment": "", "command": "type", "target": "id=f_date_inscription", "targets": [], "value": "${date}" }, { "id": "a9b78a9a-343d-434b-8e60-14b053b30db2", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "cc549298-02fc-4486-8e2e-abc43148afb4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "57a5bb7d-857d-4200-82ce-557826a7c6cb", "comment": "Membres/Ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [], "value": "" }, { "id": "19b38b65-7fb7-4833-b3ec-ee4f6b8f534b", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero_dispo" }, { "id": "be5e1cdb-9a79-4729-9604-c77071babf6a", "comment": "chercher un membre à modifier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "081bf0e2-5103-49b9-9aa4-3f20edeb2557", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "377e34ca-e626-426b-ac64-4f91af70075a", "comment": "rendre visibles les catégories", "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": "49bd5431-6f58-4df8-b100-50d318ffa6e1", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "0798a6d0-ec37-4568-9a7d-9bba957217d0", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "aeb913fb-edd5-4b22-b207-07eb34a4f8b0", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "fini" }, { "id": "569bae03-b28a-4c6d-89a6-734f91110ae1", "comment": "", "command": "while", "target": "${num} <= ${nb_total_membres} && !${fini}", "targets": [], "value": "" }, { "id": "cb84eed6-1200-4295-9a77-a2ed84e5653c", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[@class=\"num\"]", "targets": [], "value": "numero" }, { "id": "b2349360-2313-473e-96be-b82b01ce5b05", "comment": "", "command": "if", "target": "${numero} != 1", "targets": [], "value": "" }, { "id": "9df972f6-370a-4a89-b885-fad3e950d8e3", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "fini" }, { "id": "b67ebb66-406c-4511-a84e-811bacf0d5d1", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "8f518c4b-f88a-4128-80c5-83fe21c38b59", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "44123c95-1aed-490d-a875-3663896b1fb4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "81febe43-014a-4cc7-84d4-433234999b4e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a62c0cff-0e34-46e2-8812-d07d9381fcaf", "comment": "fiche membre", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[@class=\"num\"]/a", "targets": [], "value": "" }, { "id": "a34a4182-eca7-4049-8d03-1f6cd9aac92c", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "96f0b4ae-8940-42e7-81e0-f9e7b55d1c73", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(text(), \"Inscription à la lettre d'information\")]/following-sibling::dd", "targets": [], "value": "lettre_info" }, { "id": "19d0e01c-86e2-47e1-ac81-f18024d4b6bb", "comment": "modifier le membre trouvé", "command": "click", "target": "xpath=//a[contains(@href, 'edit.php')]", "targets": [], "value": "" }, { "id": "7cd950a7-0de5-44ba-95e4-9d9f14c7ba40", "comment": "choisir une catégorie différente", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d0bc88b2-86b6-4aa5-aa6c-c9b8bd0ef674", "comment": "", "command": "storeXpathCount", "target": "xpath=//select[@id=\"f_id_category\"]/option", "targets": [], "value": "nb_categories" }, { "id": "9d71b6ca-492e-4ba9-a011-14e3c2a593b2", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "i" }, { "id": "4f0db2a9-eb13-4d68-9aeb-b57ac94c5394", "comment": "", "command": "while", "target": "${i} <= Number(${nb_categories})", "targets": [], "value": "" }, { "id": "2feae876-813f-4250-8594-b8b7d0c7b76f", "comment": "", "command": "storeText", "target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]", "targets": [], "value": "newcat" }, { "id": "e8e6e7ff-fa80-4e8e-af09-e6778a9425e1", "comment": "", "command": "if", "target": "${newcat} != ${categorie}", "targets": [], "value": "" }, { "id": "7bc0f2cb-412a-48b7-afda-ed2df9c30fda", "comment": "", "command": "executeScript", "target": "return 1 + Number(${nb_categories})", "targets": [], "value": "i" }, { "id": "1d6fb92c-3bfe-4f1a-9bff-6c8b78c4cf26", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "9cabbeb5-2a46-40f0-be0d-3e348e9c43d8", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "802a5c07-f07d-4573-a750-4edcae7ddbcb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "38e1354c-ce25-4eeb-a616-81e4970d539d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "69434c9a-006d-4013-8b01-cf824199cae6", "comment": "Modifier les informations", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7b70a43d-1854-4e25-ad8c-1f475b952630", "comment": "", "command": "type", "target": "id=f_numero", "targets": [ ["id=f_numero", "id"], ["name=numero", "name"], ["css=#f_numero", "css:finder"], ["xpath=//input[@id='f_numero']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "${numero_dispo}" }, { "id": "29a07429-03c8-4d6e-b1e3-ed97c43c6d22", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${newcat}\")]", "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": "79267fa3-a686-4bc3-9dd1-f9f7a4ebd79c", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "4ab9bd49-aafb-4ea0-ab17-85a09dd5a2d3", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "984fc8ec-4399-4b56-b705-e1e9772e7580", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "2549cc52-26a8-4973-aea5-f49220b4809e", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "81328f49-ba7f-47eb-ad3a-7126063ebb9d", "comment": "", "command": "store", "target": "2 rue des arbres", "targets": [], "value": "adresse" }, { "id": "40d727a1-25b4-4113-bad1-8610ffd87c87", "comment": "", "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": "09b3ac21-90d5-47b9-b7af-5f121d4fa882", "comment": "", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "624b9914-7892-4a08-91d7-3b429195399e", "comment": "", "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": "cb456501-8eba-4f37-b466-794291f286a6", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "1744b4e1-901e-40cd-a292-d369002887d5", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "558f336c-5c15-4a7b-8197-1b52f775ccf1", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "e59a1374-406e-4a7e-a82c-8af9f8cd6ee2", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "8ee35c3a-d0f3-4ff9-9f3d-06e27cbeaa61", "comment": "", "command": "if", "target": "${lettre_info} == \"Oui\"", "targets": [], "value": "" }, { "id": "0f8fd81f-0fdf-47a4-97d7-4a6833e8fbb3", "comment": "", "command": "uncheck", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "f390c4b4-5c4b-4f8d-9301-ca27c85d5177", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "4d583db0-20ab-48c5-a52b-ec52b28db02a", "comment": "", "command": "check", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "53bf2c01-0a83-457a-8196-69c80b92d45d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0ea360db-72bf-46f6-89f9-2abfed89e167", "comment": "", "command": "storeValue", "target": "id=f_date_inscription", "targets": [], "value": "date_initiale" }, { "id": "4651e5e4-dcc8-4ca8-9bf8-f38bcc57259e", "comment": "", "command": "executeScript", "target": "function getDate() { let date = new Date(); let ms = date.getTime(); ms -= 3 + Math.floor(Math.random() * 5 * 24 * 60 * 60 * 1000); date.setTime(ms); return date.toLocaleDateString(); } ; return getDate();", "targets": [], "value": "date" }, { "id": "59523e87-e3b4-47cf-bc5c-ae1a8915f9e3", "comment": "", "command": "type", "target": "id=f_date_inscription", "targets": [], "value": "${date}" }, { "id": "546a9a8c-f3c7-480d-95b9-0d9ed8fb00d3", "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": "92fd69ee-5a77-461b-9b2b-66db20bc0656", "comment": "Vérifier les infos du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b476d841-da9b-4143-9c41-829d3d06c731", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero_dispo}" }, { "id": "032571e2-2677-4861-ae16-529aeca51d39", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "${newcat}" }, { "id": "5c07c16b-50a8-4150-8e55-e6031c665c24", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "3387e4e8-a9c7-47ee-b3a6-eeab7176c1fb", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "30b2993b-82f5-441a-bd96-6f67f5bf8393", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd", "targets": [], "value": "${adresse}" }, { "id": "354ec327-9717-423d-ad17-b882843c8543", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd", "targets": [], "value": "${cp}" }, { "id": "9c9466da-0016-490f-90ff-3f1cc5572b00", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "2d56c898-5eae-4b13-a0a1-94fa8d2bd6c6", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "88daa25a-aa99-4d47-a9c2-15ca74c5df46", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "7ae25f21-35e0-4571-acc1-9760398ad7b1", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "5a5d5dce-a810-4fc1-9db4-85fcd91813a1", "comment": "", "command": "if", "target": "${lettre_info} == \"Oui\"", "targets": [], "value": "" }, { "id": "81972c44-2e82-440d-8e7f-084c448e65fe", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "66ff407d-a3da-4bad-8955-08240359f993", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "036218b8-9bc8-4813-83f1-b86de7df4b42", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd", "targets": [], "value": "Oui" }, { "id": "02616249-6e25-44b3-aff3-b66731fbe805", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e289adb3-b033-437a-b4d0-c04b4fe1cde4", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }] }, { "id": "1e8af828-327f-4540-99ee-9f9843826f29", "name": "07-02 attribuer mot de passe", "commands": [{ "id": "ada19c6d-e29f-4af7-8d35-3308903dedd1", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "46633303-64b7-4238-9ec5-8e5051508286", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "cb248d6a-e6c1-4b7a-96c8-f257b8de4cee", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "52784bce-0325-4372-8ee8-2814e55efee8", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "307dcc97-1d3e-4306-abe0-f8da12825726", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e93f8fd8-c725-439d-8127-2f5d7d229d10", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d7d6c518-66f2-4d70-a1bf-6ff16218f026", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1f3610fc-ac3e-43f4-bc58-e20fa2b65b21", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "bdd1f26a-9869-4bca-a021-b331536856fb", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "36bdb72f-d96f-45e4-9c2e-7b7b5ecfe0a4", "comment": "rendre visibles les catégories", "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": "51acf95b-dd8e-4783-8dbd-bd835dac71af", "comment": "Filtrer : Membres actifs", "command": "click", "target": "xpath=//a[contains(., \"Membres actifs\")]", "targets": [], "value": "" }, { "id": "b4fda046-8d79-4f40-a982-f60034b559ce", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Membres actifs\")]//small", "targets": [], "value": "membres" }, { "id": "675ef859-70b5-4761-b99c-75572a80ac99", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres_actifs" }, { "id": "f36f8c2e-1abd-4add-a0b7-91040fa18a0c", "comment": "", "command": "if", "target": "${nb_membres_actifs} < 2", "targets": [], "value": "" }, { "id": "30a9d8e5-bcfe-4217-a6a0-3572697d3456", "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": "6ce4b455-495e-4840-b260-b3a9353f5e7e", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "f3358402-24e8-4387-bcf3-fdff94adeff8", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "3cae8a3e-d95a-4eba-9225-b21d92293753", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "b975ab09-fb6b-41ab-bb17-e3c50152845d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "34cbd6a4-8d53-4851-b95b-466af0d1910c", "comment": "", "command": "store", "target": "777 rue des arbousiers", "targets": [], "value": "adresse" }, { "id": "996412f8-8fba-4032-8598-fd68b7b6a415", "comment": "", "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": "3d477238-acc3-44ed-8fdb-bc9066967e94", "comment": "", "command": "executeScript", "target": "return Math.random().toString(10).substring(2, 7);", "targets": [], "value": "cp" }, { "id": "3887f140-9770-41a0-b9a1-583d6fb910a6", "comment": "", "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": "0c6224c1-ede8-4dd5-8073-b76d71560e7f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "8bd8127d-6f72-440d-97f6-111bcbe4324d", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "49b66444-6f77-4ef1-88f7-5fbc94c2c0df", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "bbd79f50-b8c4-41db-b541-5648b5461ebc", "comment": "", "command": "type", "target": "id=f_telephone", "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": "${tel}" }, { "id": "4bf3385d-1ddc-4eb8-be6f-0648ea68b9be", "comment": "Inscription à la lettre d'information", "command": "executeScript", "target": "return Math.random() * 3 < 2", "targets": [], "value": "lettre" }, { "id": "7368bcb6-f0fb-4c01-adec-05116f19201f", "comment": "", "command": "if", "target": "${lettre}", "targets": [], "value": "" }, { "id": "9032cd8e-f130-41bf-9dca-0215123c3a8e", "comment": "", "command": "check", "target": "id=f_lettre_infos_1", "targets": [], "value": "" }, { "id": "e12e4d4f-7126-48a2-b1ac-c94bfe095eaf", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "743e9424-31e7-45a0-a62b-bfe9198d770e", "comment": "", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "63f7e849-b32f-431e-84e6-e79ad2c11b2a", "comment": "", "command": "type", "target": "id=f_date_inscription", "targets": [], "value": "${date}" }, { "id": "16397def-95bc-40fe-815e-7ee524e3f3ef", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "cfd3341b-6083-4de2-9364-7d50138ab7cb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8b21b72c-22f7-4eef-845c-03a2791d87d8", "comment": "chercher un membre à modifier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "05347804-3a57-4d59-9dab-ee9bcab41f38", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "3908d816-d769-4a8e-91bf-7c478df4a996", "comment": "rendre visibles les catégories", "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": "81b0457f-e6f0-4ece-b7b5-cbd122f43583", "comment": "Filtrer : Membres actifs", "command": "click", "target": "xpath=//a[contains(., \"Membres actifs\")]", "targets": [], "value": "" }, { "id": "03807a2d-3ed8-4858-b68f-c39aeb03773f", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "3ed696ea-1844-447f-937a-5b233e3636c7", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "fini" }, { "id": "b36f27c7-287a-4950-9922-58d4063b8b19", "comment": "", "command": "while", "target": "${num} <= ${nb_membres_actifs} && !${fini}", "targets": [], "value": "" }, { "id": "7a6c133c-06dd-4893-8672-afdcbc16003c", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[@class=\"num\"]", "targets": [], "value": "numero" }, { "id": "8ee6b6ff-a4c1-4cf7-bb91-525cf0c48d6d", "comment": "", "command": "if", "target": "${numero} != 1", "targets": [], "value": "" }, { "id": "ac5ff0c7-bf8b-42db-bbd1-c52db4dbad6f", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "fini" }, { "id": "f9c32f69-1104-42df-8948-20dee98bca5f", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "0cec96de-59bb-4b5f-ab39-648fda741a5b", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "b5067d5d-9de0-44ff-b77d-8411c98b3371", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a40f3494-fc46-49a0-ba0d-035664bc61fb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f56d4a9c-bff7-41e5-b411-9bb2fead8c32", "comment": "fiche membre", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[@class=\"num\"]/a", "targets": [], "value": "" }, { "id": "54781af9-ae09-4738-89c8-caedb6ebc532", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "861cc567-4a86-45dd-90db-b9f3da90460c", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(text(), \"Inscription à la lettre d'information\")]/following-sibling::dd", "targets": [], "value": "lettre_info" }, { "id": "916da9a9-843d-4d14-b970-945d5bd96519", "comment": "modifier le membre trouvé", "command": "click", "target": "xpath=//a[contains(@href, 'edit_security.php')]", "targets": [], "value": "" }, { "id": "08d291d2-eb38-44a5-b266-a3bedaabf99a", "comment": "", "command": "executeScript", "target": "const mdp = (length) => { let chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzàâäéèêëîïôöûüùÀÂÄÉÈÊËÎÏÔÖÛÜÙ&~\"#([-|`_@)]=°+€<>,?;.:/!§«»¿×÷¡'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); }; return str; }; return mdp(12)", "targets": [], "value": "mdp" }, { "id": "9492966a-4c3c-400f-b816-47d1f621cf50", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "36586775-d54b-4a84-9abc-f2922d7171dd", "comment": "saisir mdp", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "e4c0c278-f61a-41d0-8c59-02760d5530da", "comment": "bis", "command": "type", "target": "id=f_password_confirmed", "targets": [], "value": "${mdp}" }, { "id": "3280537c-9880-47a1-bc5d-247d31c2f193", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "08b49d3b-3408-4b9e-9a79-18bb3a00e34f", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "8bdb2659-4e8c-48a1-a2c2-f1c8fdf91131", "comment": "Mémoriser quelques infos du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "360bf3e9-c1ff-4790-9451-08e66496b24d", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "numero" }, { "id": "8fe0ffd3-6787-4267-bcde-7b287f6dede7", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "nom" }, { "id": "42a1e672-d30f-45e8-a462-18a6a9b2a6b3", "comment": "", "command": "storeText", "target": "xpath=//a[contains(@href, 'mailto:')]", "targets": [], "value": "courriel" }, { "id": "616eec42-c1e8-488c-8077-b7421ab6ff98", "comment": "déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout')]", "targets": [], "value": "" }, { "id": "d4c457b7-8525-424c-b94d-a7f70f79a33e", "comment": "connexion du membre modifié", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "9e961c96-14e9-42bc-9749-04a982e9f724", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "b3a464ef-1f7f-45c5-b847-43ac24c45334", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2fd66f55-71f7-47ae-8ef4-72f570472b42", "comment": "Pas d'erreur ?", "command": "assertElementNotPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "78be4ca4-af37-4fab-a8fe-07a53f365622", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[contains(text(), \"Bonjour ${nom}\")]", "targets": [], "value": "" }, { "id": "128cd004-b308-4021-bd0d-033e07aeaeea", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/me')]", "targets": [], "value": "" }, { "id": "63c5642e-a78a-416f-bbe8-a465c76a3aca", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "73a91a69-9d23-4ed3-8c52-5a1a22af2aa3", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "728d9f9e-3926-4cc2-a08e-a3a58dea1fe7", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "21085d8e-8fa9-4360-935f-642f7b23c5a2", "comment": "déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout')]", "targets": [], "value": "" }] }, { "id": "51e58cf8-5b73-4a92-8bd9-1a25c9d7ee3a", "name": "07-03 rattacher membre", "commands": [{ "id": "f065074a-a0fd-488d-bde0-b10b1253d20c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/", "targets": [], "value": "" }, { "id": "d5f3eb15-c9ef-4741-a4c2-f506aa538718", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f647559e-cfb9-423f-9623-33938e717c7c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5ccecbc3-0dc8-4250-ab8b-1e9c7010ece4", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "49b70306-2421-4a7b-87b0-812ed03443db", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6d7aaddc-db1e-421d-88fe-b27da0f88954", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c306cec9-c455-49c9-9650-0120206cc69d", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7f762e5a-9ed4-4fb7-9ad2-f9d3c5044afb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "527d61b5-0a9a-4849-a095-8212ff06bacd", "comment": "Créer deux membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "98f144be-72c3-4db5-b5be-060de0dd7b99", "comment": "Membre/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": "fed675b0-4ecf-4e73-be04-fed70a6c8dee", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero_responsable" }, { "id": "93d1c05b-e7ae-4905-a847-4e5fde35f686", "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_responsable" }, { "id": "70701842-f947-4ced-8867-8efb433d93f5", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom_responsable}" }, { "id": "9b6f87cd-541e-4ca7-bd0b-a701da5b262e", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel_responsable" }, { "id": "b5f5abc3-4fed-4a13-a803-fe31929d9850", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel_responsable}" }, { "id": "0554473d-3acc-4326-a95e-0931fddfee1b", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "040fe6a3-7506-44ad-a07b-3adf12c55e2d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "bed67a55-53da-4dd8-bf73-852eba94e002", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "65ca4b39-0371-4c81-b37f-69b030b756db", "comment": "Membre/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": "7e145a51-6dd8-4fae-bf70-5b4b5c6fbeb5", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero_enfant" }, { "id": "2a3b52fd-cc06-40c5-8591-20580dbd7d55", "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_enfant" }, { "id": "6f009f2b-4219-4975-a819-d735a1655762", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom_enfant}" }, { "id": "dc74f273-b5d0-4916-8f36-767c10748ab3", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel_enfant" }, { "id": "ab8e53b4-a4cc-490b-8cdb-26e3e9a9c1c6", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel_enfant}" }, { "id": "a26c2ba2-cc39-4292-9b88-d19d645aee35", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "bc3a88a4-26b7-481c-a7a9-bc5dbc4cb96b", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "1ba210aa-8b63-4c02-84ab-a96ae4fa7e31", "comment": "Enregistrer", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "0d572992-b913-463d-bd49-d6e3d89ce37b", "comment": "modifier le membre", "command": "click", "target": "xpath=//a[contains(@href, 'edit.php')]", "targets": [], "value": "" }, { "id": "ea947783-54f5-4891-a473-4344e3bafc6e", "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": "28e77f1f-2aeb-4bad-9469-4a716398dd5a", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d1c27e03-112c-412e-8456-36f98f82e9d2", "comment": "", "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": "${numero_responsable}" }, { "id": "fddf2fa1-5519-4e3e-a274-1ac772f2da8a", "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": "d2f8023b-5152-4eb0-a0ba-c8615b8d0354", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "ab46b164-4327-44f6-90d2-5b718734916d", "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": "8e1344fd-d363-4391-bb4f-29a88ff88849", "comment": "Vérifier le membre rattaché", "command": "", "target": "", "targets": [], "value": "" }, { "id": "24fecb85-3af3-41b5-a7c4-942717a8d71e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span", "targets": [], "value": "${nom_responsable}" }, { "id": "5f287c94-0955-4ab6-a5ae-dcabfe1bc3c8", "comment": "Vérifier le membre responsable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "aeeef0d9-cb1f-46e3-9340-c537fc657d98", "comment": "", "command": "click", "target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd/a", "targets": [], "value": "${nom_responsable}" }, { "id": "8908e601-ac71-4df7-bf5e-690206a98170", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom_responsable}" }, { "id": "dbbae973-d25b-4887-93e3-ec105daa6069", "comment": "", "command": "storeXpathCount", "target": "xpath=//dt[contains(., \"Membres rattachés\")]/following-sibling::dd//span", "targets": [], "value": "nb_enfants" }, { "id": "ce363f17-5998-4de3-9a61-52fe315ea8b7", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "60514f39-302d-4fb0-b651-22884e995685", "comment": "", "command": "executeScript", "target": "return false", "targets": [], "value": "trouve" }, { "id": "b8548714-76ea-4ba7-a4b4-3645b53a7320", "comment": "", "command": "while", "target": "${num} <= Number(${nb_enfants}) && ! ${trouve}", "targets": [], "value": "" }, { "id": "01559fb6-00b0-47af-a377-17605211b828", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(., \"Membres rattachés\")]/following-sibling::dd[${num}]//span", "targets": [], "value": "nom_courant" }, { "id": "1d26b8d6-72d8-4581-8485-affdcc5c1626", "comment": "", "command": "if", "target": "${nom_courant} == ${nom_enfant}", "targets": [], "value": "" }, { "id": "b5953e16-daab-4724-ba75-3ec818744c0c", "comment": "", "command": "executeScript", "target": "return true", "targets": [], "value": "trouve" }, { "id": "a9cd1a9b-f139-4b80-a896-c316bbe9ce71", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "85f18041-e5cc-41cc-88cd-07db389ef19b", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "1772dedb-213b-49ad-b566-1083729106a0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "28a1ff48-0f3d-4f16-a2e0-e7f8934c96e5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d3b1d635-aa80-489f-9a4c-832c1bce5aac", "comment": "", "command": "assert", "target": "trouve", "targets": [], "value": "true" }] }, { "id": "65a4ae11-9b9b-4c9d-ada7-0f0966023fe0", "name": "08-01 import création", "commands": [{ "id": "ec5645db-b300-4ade-a4b9-2e898cac8bfb", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "fc5504ea-9549-476e-a680-022134c03375", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "6c07a47d-e19d-47e2-b881-16a519a6d12e", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "aa2606e6-da2d-43b1-90da-4058befe2a16", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "759138e0-fac0-49bf-94ff-63fd477fb3de", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "9d5fcf0f-f3c6-42de-9be6-4722e62de94b", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "124b364f-82bc-4385-82b0-712c88dcef3c", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "daccaa43-242a-4e49-919e-3f11befb5d04", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "03641ef1-1ee8-47b7-903f-a4b9cd19ff93", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "a25908a7-4639-442e-b29b-59e2b165717a", "comment": "rendre visibles les catégories", "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": "5bc10380-7d32-4a72-818e-576c2f13bf3d", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "ccf0c1fa-1db4-4c5a-8c44-9b5d99d0792f", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "a90d0f72-859d-4f09-92cf-d46c57f3bf7b", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "61d23b43-066c-45bd-9047-00a83f798705", "comment": "supprimer tous les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bc088d53-aea5-4128-9056-0d5f83bb8d83", "comment": "", "command": "while", "target": "${nb_initial_membres} > 1", "targets": [], "value": "" }, { "id": "5ba97c7a-fc48-42d0-a5cd-85886099f13a", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "f5b1cfb5-2fa5-46d7-a244-a09ef4081a25", "comment": "cocher toutes les cases de la page", "command": "executeScript", "target": "function cocher(idCase) { const table = idCase.closest(\"table\"); const body = table.querySelector(\"tbody\"); const elems = body.querySelectorAll('td[class=\"check\"] > input[type=\"checkbox\"]'); for (let i = 0; i < elems.length; ++i) { elems[i].checked = true; }} cocher(f_all)", "targets": [], "value": "" }, { "id": "5d623100-ca28-4f5d-b1b4-ee38f8e74ea3", "comment": "", "command": "click", "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]", "targets": [ ["name=action", "name"], ["css=select", "css:finder"], ["xpath=//select[@name='action']", "xpath:attributes"], ["xpath=//select", "xpath:position"] ], "value": "" }, { "id": "aadb015b-efaa-49e5-aa97-109f81f8c332", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "58fba882-70b7-494f-9d37-3c1303483a8a", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "2bbb831d-3565-419c-9ad2-313bbdd3bcb8", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "a2207983-e296-4cc7-8e60-87e3f3890e4f", "comment": "rendre visibles les catégories", "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": "2e986055-1da6-463d-a630-d143ad8475f4", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "39de6a96-5d91-400b-82ca-2b635e5f9a60", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "594c4e1b-7efd-4049-a508-5d05568dc896", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "612d4cb0-9573-4281-ac5c-2e5292922579", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fd63a40a-f35d-4e1a-9226-8498ebd3d4a5", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "05b208fa-7020-4c3b-a5d8-91ca2907ca06", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "7c9eb4b7-fbeb-4208-b6a4-b9f364327221", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/creation.csv" }, { "id": "6f85a86a-0b7a-4402-bbf4-4695a1c02053", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_create\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "7096609f-b9c4-4f11-9899-0cee6c02c1e7", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "527a1fe8-f16d-41f4-a395-0e4879423b44", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "eb461043-f835-4ca9-9388-368625917afe", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0])", "targets": [], "value": "nb_lignes_fichier" }, { "id": "9f540e92-7106-4a0a-af99-459a0824587b", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "152ddcc6-fba6-4cc3-a054-c0608b4fed68", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"help\")]", "targets": [], "value": "" }, { "id": "f3337767-590b-4ca2-894a-e6cd08ab3a31", "comment": "", "command": "storeText", "target": "xpath=//summary", "targets": [], "value": "msg_creation" }, { "id": "69d8867f-8f4c-42d1-b3fc-7648254c8320", "comment": "", "command": "executeScript", "target": "return Number(${msg_creation}.split(' ')[0])", "targets": [], "value": "nb_membres_crees" }, { "id": "fffc9aab-49c8-4d82-a89d-a31664c93ae0", "comment": "", "command": "click", "target": "name=import", "targets": [ ["name=import", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='import']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Importer')]", "xpath:innerText"] ], "value": "" }, { "id": "512f0c67-b8b5-4f16-8132-fe7355211876", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }, { "id": "771c860e-ef3c-43c7-8c6f-90bc7e39ab33", "comment": "", "command": "executeScript", "target": "return ${nb_membres_crees} + 1", "targets": [], "value": "nb_lignes" }, { "id": "033fb842-2ee8-421d-884e-47407d5ab123", "comment": "", "command": "assert", "target": "nb_lignes", "targets": [], "value": "${nb_lignes_fichier}" }, { "id": "8ef9e0b4-e1a1-4299-8e82-4dc8479b5992", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c8a63227-7664-4532-8eb5-0fd3831bd54f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "ad8f65b6-72cc-4d9d-ae24-737080a52b8a", "comment": "rendre visibles les catégories", "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": "c9785f61-a589-4f89-9c5d-64dc8fc48465", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "496596a2-8fdd-454b-9d83-c107cf9069b3", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "f9b978aa-5991-4d7e-b4db-b0d30e242881", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "76c26d7f-de63-4500-9665-36ccf123857f", "comment": "", "command": "executeScript", "target": "return ${nb_initial_membres} +${nb_membres_crees}", "targets": [], "value": "nb_membres_attendu" }, { "id": "331e993e-815b-4cb0-a125-f2339f1a0ecb", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_membres_attendu}" }] }, { "id": "f5864c55-04ad-413e-a5a7-d48b78e473d8", "name": "08-02 import création conflit", "commands": [{ "id": "68df0c74-6f89-4d6a-9db5-ccd822500da1", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "82c0c6f4-4627-40d0-85e2-429b1271fb61", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "e782f760-d14d-4013-aec0-6b48f91d65f4", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "9ffa3a29-bacc-4413-8d7f-50515d8c0fbb", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "da10bca3-4a78-4f0d-9b07-52eda8c13f21", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "1972b763-11a6-438d-8e7b-3a4b4dca4a49", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "f5a9caee-b829-428c-9ad4-2a840eaf5b8e", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "cfe60c22-aeb4-41e4-bb8d-768c74efd3b2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "93be136d-fea2-483b-a185-a2eb7f630b9d", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "6e925dcc-94a3-48f4-bd75-be0f99e2b421", "comment": "rendre visibles les catégories", "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": "05d4d45f-dda5-4d7f-a456-a7de5e2b2c36", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "20cea181-0dff-44b8-8b46-1c304658c7a5", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7a5764f5-f8fc-4ef3-ae4c-5e5b89f64c18", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "6ba460ff-9c62-4b70-bfa6-d8c1fb8202e5", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4fc83f98-9bdd-40ed-9fd4-056cad1895fa", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "48e1f30c-c1e4-4d64-9c98-5d9bde28cf27", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/creation-conflit.csv" }, { "id": "68eb4d56-c188-410c-b1df-66223037e96d", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_create\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "cf263fb8-5b8f-44fd-aa7e-205a04d5e86e", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "dda7c0c5-e6e2-46b7-9da2-5f53b257449d", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "76770b8b-2326-4a0c-8f16-5877b6002d8c", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0])", "targets": [], "value": "nb_lignes_fichier" }, { "id": "45ba6894-bd3a-4d64-922d-e85b98b668f2", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "b067e229-15ce-440a-873f-fc64cf8698a7", "comment": "conflit de numéros", "command": "", "target": "", "targets": [], "value": "" }, { "id": "45edb121-16ff-4f0e-8234-50ff719dc301", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "9bcbd534-38b4-429d-9111-d29852bc01d2", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6b93b0cc-23ee-45f5-88da-1968c1a74b04", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "6f2ef47f-ce6f-42ae-a770-5fcd8357f4f4", "comment": "rendre visibles les catégories", "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": "a9f5b8fb-bc06-4641-ae4b-4d35395c0ece", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "d55971ce-a28b-46ec-9658-cdf4261a2a6e", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "9071c518-6da7-455a-8368-aee71d55e748", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "23f73093-a848-47f9-9204-969e13027042", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_initial_membres}" }] }, { "id": "a050c509-bc64-425a-b616-91ef9af5468a", "name": "08-03 import création sans en-tête", "commands": [{ "id": "74f1331e-1fa4-4496-9436-41078207ca94", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "3c091c90-74c1-4f19-9c27-8494cc5c58df", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "53d8ae9a-d4b7-479f-96e7-283a1aaf79b9", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "6fdbcec6-3c18-490a-8925-577c1dba40d1", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "4d5d70f4-0e60-4e58-a2ca-7c79eb305f00", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "fe0ec38a-d6fc-479b-9a6b-824990dec50a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3e835f1b-5164-4e05-b3ea-c7906ae0b511", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "40354cf3-2cb8-4ec2-91a6-b3e9683f12ed", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "afc171c8-8cbc-48fe-ac39-a41abf7bf343", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "7ed7eb14-77b1-4bb0-b85c-b0c10d2cd327", "comment": "rendre visibles les catégories", "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": "96206b6d-320c-43cb-8425-87fa917978fb", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "015884ae-02b9-4f9f-8d51-2ccf0acda0da", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "08fa37c3-377f-4b52-a32c-49fe5cd50405", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "dd13dd7a-d5d4-4dc6-883e-c084c5edfd88", "comment": "supprimer tous les membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d1b1e7bd-b295-40fb-9b31-b87e15183fed", "comment": "", "command": "while", "target": "${nb_initial_membres} > 1", "targets": [], "value": "" }, { "id": "1e1556ea-b244-476b-b624-bbe50a1fe22a", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr/td[@class=\"num\"]", "targets": [], "value": "nb_membres_page" }, { "id": "afd6d7af-bd5a-4fa4-9840-29acd9cae20b", "comment": "cocher toutes les cases de la page", "command": "executeScript", "target": "function cocher(idCase) { const table = idCase.closest(\"table\"); const body = table.querySelector(\"tbody\"); const elems = body.querySelectorAll('td[class=\"check\"] > input[type=\"checkbox\"]'); for (let i = 0; i < elems.length; ++i) { elems[i].checked = true; }} cocher(f_all)", "targets": [], "value": "" }, { "id": "fe5438a9-5066-4942-982a-01be80a78371", "comment": "", "command": "click", "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]", "targets": [], "value": "" }, { "id": "25ddf95f-e033-484d-8203-f64415603c31", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "816dc1d4-0318-4b0c-baaa-68d1e24c92d5", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "e80907f3-682c-4dcf-bb37-1e02665c179c", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "762812ed-59d4-4c3c-a37e-d9fff25cdd77", "comment": "rendre visibles les catégories", "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": "2f66a439-83cb-4bf2-93e2-668adf91bcb3", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "0adb3858-993d-4c90-bcb1-f6f26abd84d9", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "7b2483ba-4e2e-46cc-95e2-c2d20e502756", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "6285e9a5-53fe-498a-8b89-4bd038311f84", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8a713f1d-8b93-40a0-84ae-22aa582e3160", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "de9caf20-ca18-4c01-a0b8-7fd6dfb0141d", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "aba0ceb6-cf4e-4bc3-bec5-7ddb4d50dfe6", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/creation-sans-entete.csv" }, { "id": "d13d24ed-ba75-43ac-b30c-3a7a80220a4f", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_create\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "c02b9fc3-e151-4808-88a0-82036d21f81f", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "0ac2ac19-0e06-4396-bbe3-0337fc484ec9", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "c7d883fa-c2c1-41a7-b0b4-3301e6854205", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0])", "targets": [], "value": "nb_lignes_fichier" }, { "id": "0c776738-7b8e-4ec6-845f-d428dbda23fe", "comment": "pas d'en-tête", "command": "uncheck", "target": "id=f_skip_first_line_1", "targets": [], "value": "" }, { "id": "1e1afb5c-9fd0-497e-b931-af3663661a3a", "comment": "associer les colonnes", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4eb56463-b8db-406b-8ae6-bb6b1188a6a5", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[0]\"]/option[@value='numero']", "targets": [], "value": "" }, { "id": "0e6254b1-0f8b-4421-b037-d4c1f7bf4504", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[1]\"]/option[@value='nom']", "targets": [], "value": "" }, { "id": "19149d52-e9d9-4a98-b100-ca5ca3ec7247", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[2]\"]/option[@value='email']", "targets": [], "value": "" }, { "id": "b12c2535-aada-4d1f-831c-426c6a5429bd", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[3]\"]/option[@value='adresse']", "targets": [], "value": "" }, { "id": "f2006082-a73e-4c6e-b942-66d2713ee599", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[4]\"]/option[@value='code_postal']", "targets": [], "value": "" }, { "id": "980730de-d7c0-4fdd-a45d-a27dae45efcb", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[5]\"]/option[@value='ville']", "targets": [], "value": "" }, { "id": "106e39c7-676b-4dd9-bc07-181f139bca21", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[6]\"]/option[@value='telephone']", "targets": [], "value": "" }, { "id": "fdd94268-f8af-4443-8b88-fc25c27d2343", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[7]\"]/option[@value='lettre_infos']", "targets": [], "value": "" }, { "id": "b057dac7-7d29-4839-ac6a-0eb73efe4caa", "comment": "", "command": "click", "target": "xpath=//select[@name=\"translation_table[8]\"]/option[@value='date_inscription']", "targets": [], "value": "" }, { "id": "7f6104ae-73e7-4659-94c5-05f89c9b6ee4", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "d9505f66-030f-4c24-83bf-e38d32746b8b", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"help\")]", "targets": [], "value": "" }, { "id": "4806ef10-a1ca-4a6d-8055-8972c476e351", "comment": "", "command": "storeText", "target": "xpath=//summary", "targets": [], "value": "msg_creation" }, { "id": "4e1664be-7100-4bb8-ba63-1ddbac5bbf55", "comment": "", "command": "executeScript", "target": "return Number(${msg_creation}.split(' ')[0])", "targets": [], "value": "nb_membres_crees" }, { "id": "65fb3312-e214-4b34-b8c2-196993e3cade", "comment": "", "command": "click", "target": "name=import", "targets": [ ["name=import", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='import']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Importer')]", "xpath:innerText"] ], "value": "" }, { "id": "6f5b0266-6b2f-4fb5-8d0a-73e562f86203", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }, { "id": "d4ab6967-f883-403c-86ab-4480536ce5c0", "comment": "", "command": "executeScript", "target": "return ${nb_membres_crees}", "targets": [], "value": "nb_lignes" }, { "id": "8d98e255-577d-4c31-a771-a5c93d2173d1", "comment": "", "command": "assert", "target": "nb_lignes", "targets": [], "value": "${nb_lignes_fichier}" }, { "id": "1381a06f-8e3c-49d4-9ba2-ffdd4277f752", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2b6bcec0-67b2-4f84-b286-614b93fd7822", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "af1c727c-2dcb-4751-b759-bd63f1274bbb", "comment": "rendre visibles les catégories", "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": "e3aee174-4549-4968-809f-2ae6e25b76da", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "b8b6fd5e-75d6-4316-bcd7-7ff00bd83a72", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "ac8763e5-fb65-4227-9989-2ac6f2a54ee9", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "8e9326f5-c786-4289-aad8-c3793f03b747", "comment": "", "command": "executeScript", "target": "return ${nb_initial_membres} +${nb_membres_crees}", "targets": [], "value": "nb_membres_attendu" }, { "id": "3986954e-37d5-42d7-8e89-657cde7d79da", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_membres_attendu}" }] }, { "id": "083c0a0f-6c03-49bd-89e1-dc2dad9a465a", "name": "08-11 import màj", "commands": [{ "id": "4097b15f-d59e-4638-a303-4a644896239e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "a643340e-b9dc-4826-87b1-cb2565d1cb1d", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "97bf4427-39c7-4814-bbad-717447b66009", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "7523deb5-41fc-4358-9822-fa0692da504c", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "47326e43-a6d2-4801-850b-0aca57f7f93c", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "05c22e28-64dc-49f4-a0ae-cdc1d02b7243", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "55f6d295-1e6e-449e-8c71-4b1f977f5af8", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3af45110-aad8-475d-8225-a322b83028ad", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0316c588-e2fb-4253-8229-ca7df77d837e", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "80bcd96f-1c74-43a3-990f-e70204fc24a8", "comment": "rendre visibles les catégories", "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": "166cf0e7-1615-45e1-8bfa-e4fdcfa9cb9f", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "b2253850-8fd2-4537-b0de-337faefaa530", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "5ac2dece-f73f-4aad-88e1-4d3712708614", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "6617d146-1f73-4209-b8d8-52378aeb0d66", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b0e97a96-2682-4240-8ee7-bd175f053d3e", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "51fc3629-0ef0-402c-a722-413d2396ade8", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/maj.csv" }, { "id": "782b8d42-904d-420f-bdde-dbc51e926299", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_update\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "fbf26d63-d0fe-4d77-9dc7-24400f4ae214", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "eff49d3f-8c5d-4f90-be94-eae48eea361c", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "2e6e5e89-bbc7-4d33-b2d6-b5f0132b1f54", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0]) - 1", "targets": [], "value": "nb_lignes_importees" }, { "id": "c9fa7c7c-9730-44d6-9fbf-b1f35a3e00de", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "d42c4ac4-db4d-402a-bcf1-319f0e06f69b", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"help\")]", "targets": [], "value": "" }, { "id": "9addb82c-b962-43b6-ac83-d433876a21b5", "comment": "", "command": "storeXpathCount", "target": "xpath=//p[contains(@class, \"error\")]", "targets": [], "value": "nb_avert" }, { "id": "4bc0e936-91b0-4988-849f-4a68641e93ea", "comment": "", "command": "if", "target": "${nb_avert} > 0", "targets": [], "value": "" }, { "id": "2035a1d9-547b-4863-a23d-e5ca9626f048", "comment": "annuler l'import", "command": "click", "target": "xpath=//button[@name=\"cancel\"]", "targets": [], "value": "" }, { "id": "53e8c994-49e3-46b1-a3de-01f62de71bcc", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "1d6e6f0a-9af6-43e2-a46f-2159f691b0cf", "comment": "", "command": "storeText", "target": "xpath=//summary", "targets": [], "value": "msg_creation" }, { "id": "0d18f4b6-296a-49c7-af71-6cbd9fb2be23", "comment": "", "command": "executeScript", "target": "return Number(${msg_creation}.split(' ')[0])", "targets": [], "value": "nb_membres_modifies" }, { "id": "3a8e9d90-dd36-4795-9dfa-0489729959cb", "comment": "", "command": "click", "target": "name=import", "targets": [ ["name=import", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='import']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Importer')]", "xpath:innerText"] ], "value": "" }, { "id": "b5929237-a0c8-4598-a1b9-5cb9a9fbc3f8", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }, { "id": "21ad4989-0a28-4f24-83a5-8c89c0927a63", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "171cf2d9-1c3d-48f0-ab52-70df1243b592", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "c685b576-b86d-4392-8285-1369f727bd36", "comment": "rendre visibles les catégories", "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": "1def7c71-b44a-4b69-9e93-5a3bfdcfff78", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "7333f2dc-40cc-43d6-bb33-3d828060b146", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "deace3d3-459d-4bf2-bea9-45d5404bd11a", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "26f58423-1f3a-4043-8082-10172769c61b", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_initial_membres}" }, { "id": "9e0773db-01c5-4607-8083-c876c4a67710", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "c1d36861-8621-4441-8d12-2d28a9d68ff2", "name": "08-12 import màj numéro absent", "commands": [{ "id": "edb7f9ad-a566-4795-91fd-154f585dd58a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "52fbbb27-fb00-4323-8799-5f0afe2b2251", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f3bc489a-acb2-4887-9669-bb577db19a6f", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5e48f0d5-8e93-4ac9-9465-5b9e54007f94", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "109166fc-04fc-46cd-b28e-4f9aef9e8831", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "08b16321-5026-4736-8d80-864115dcbe88", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3cc3fb5d-3f36-4424-87b4-fefe18969628", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "383c3364-7887-4033-9dcd-74a54a0fdd8c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "05222ed9-abf2-4556-b941-14749891fa91", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "109b7306-6cbc-4401-9b49-1758a3ba542b", "comment": "rendre visibles les catégories", "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": "dee3d5c8-6779-43a5-8d16-414027b6899e", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "1ab43a12-70d6-4148-8c1f-8ee255f26c77", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "e172e93f-a178-414f-a9a0-63f54ffab533", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "69aba8ee-a7cf-434e-9f5d-f6b1bb1639d2", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "627f1cb1-d60b-4a7b-b01a-3232963b214f", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "6f5dca4b-b14b-4076-818e-cd96ac82b3db", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/maj-pb.csv" }, { "id": "ee99c4fd-5fcd-497d-bdba-8ac71b39de3a", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_update\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "6d4818f7-095e-47b5-bc2d-36de061cd6a3", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "9532fbd1-e581-4a68-88bf-d973ce28fb13", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "0b6b233b-e42a-4db6-a90d-f144237a32f8", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0]) - 1", "targets": [], "value": "nb_lignes_importees" }, { "id": "b63ee375-27e1-4f06-901e-ad21f1ecbd16", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "bcea6764-35da-4adc-beef-e49fa90e3327", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "4f37c23c-5b19-490a-996f-001a9c5045ed", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "075d4f23-fd33-43bb-bc55-c2a092d7e411", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "e77ee141-550b-4289-8054-c77447f76842", "comment": "rendre visibles les catégories", "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": "3e737a61-0604-47ac-98db-04a421a1d492", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "f458d6ce-5419-4861-b516-f3f7d8d7c488", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "da214826-b0b0-4108-ad8c-7130fbe69aeb", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "653b773d-e7f7-4b3f-a1a5-6776fbb90f64", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_initial_membres}" }] }, { "id": "416d76c8-f5ea-4dce-99d9-96c0ad39f940", "name": "08-21 import auto", "commands": [{ "id": "49a8613d-b062-4ce5-af7f-276ba86d36c6", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "76aab356-bd87-4ba6-8578-e09223aa3e65", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "0165cfdd-5350-4bf4-8635-35f1d9f52911", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "89f4d188-73a6-4f84-8958-a8c59103d665", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "115cdc8f-3161-4723-8dcf-8d63a26270f0", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3bdcfd56-5eaa-4ee9-a89f-0dc8f252adde", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "35dd4b00-401b-4069-95d1-e7151db35189", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "12a19648-619a-445e-8257-d008fecff5c5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6518801e-b86a-44f1-863e-f614fd0b6b10", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "7db65aac-6bbd-4efd-bad5-4f1c2501ae66", "comment": "rendre visibles les catégories", "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": "826579a2-3394-4610-ac2c-ec4c39009a4e", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "a19c7e74-cd42-4c3c-a51a-3a3cfca2169e", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "fd40fbe4-3415-4ffa-a524-21ba1568039d", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_initial_membres" }, { "id": "47e7a7fd-0c03-4d62-84c6-fb4d1186e328", "comment": "Importer un fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "fca606e2-ffc6-4a17-acb3-20892b3c8ff5", "comment": "", "command": "click", "target": "linkText=Import", "targets": [ ["linkText=Import", "linkText"], ["css=.tabs li:nth-child(4) > a", "css:finder"], ["xpath=//a[contains(text(),'Import')]", "xpath:link"], ["xpath=//a[contains(@href, 'import.php')]", "xpath:href"], ["xpath=//nav/ul/li[4]/a", "xpath:position"], ["xpath=//a[contains(.,'Import')]", "xpath:innerText"] ], "value": "" }, { "id": "e291f4ad-4aa7-48fa-a0b2-29ff95e58eb5", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/auto.csv" }, { "id": "673b4a66-e045-4ad2-8242-18e54bd5381d", "comment": "", "command": "check", "target": "xpath=//input[@id=\"f_mode_auto\"]", "targets": [ ["css=dd:nth-child(2) > label", "css:finder"], ["xpath=//dd/label", "xpath:position"], ["xpath=//label[contains(.,'Créer tous les membres')]", "xpath:innerText"] ], "value": "" }, { "id": "6459125b-e7d3-4b00-af4c-712a11139269", "comment": "", "command": "click", "target": "name=load", "targets": [ ["name=load", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='load']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Charger le fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "ec712007-95de-4fac-b188-468e05b7c4f3", "comment": "nb lignes dans le fichier", "command": "storeText", "target": "xpath=//dd[@class=\"help\"]", "targets": [], "value": "msg_lignes" }, { "id": "db0fda3d-946f-4954-a96e-891952875b2a", "comment": "", "command": "executeScript", "target": "return Number(${msg_lignes}.split(' ')[0]) - 1", "targets": [], "value": "nb_lignes_importees" }, { "id": "9780ddf9-b9eb-4df9-bb01-8e3a48b80a22", "comment": "", "command": "click", "target": "name=preview", "targets": [ ["name=preview", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='preview']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Prévisualiser')]", "xpath:innerText"] ], "value": "" }, { "id": "34650991-55f2-4c10-ba3c-44e4809d0ee1", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"help\")]", "targets": [], "value": "" }, { "id": "6da933d1-193d-4b23-857f-88e4474f7c78", "comment": "", "command": "executeScript", "target": "function compter(){ let o = {cree : 0, modif: 0}; for (const msg of document.querySelectorAll('summary > h2')) { if (msg.textContent.includes('créé')) { o.cree = Number(msg.textContent.split(' ')[0]); } if (msg.textContent.includes('modifié')) { o.modif = Number(msg.textContent.split(' ')[0]); } } return o;} return compter();", "targets": [], "value": "nbcm" }, { "id": "5dd8b91c-bb18-49d5-a9a5-4cabe66b15c3", "comment": "", "command": "executeScript", "target": "return ${nbcm}.cree", "targets": [], "value": "nb_membres_crees" }, { "id": "3609b11a-bae6-45fa-92ed-418c9e25ba4d", "comment": "", "command": "executeScript", "target": "return ${nbcm}.modif", "targets": [], "value": "nb_membres_modifies" }, { "id": "e9de25f3-88b6-43a8-b414-d29790b9935e", "comment": "", "command": "click", "target": "name=import", "targets": [ ["name=import", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='import']", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"], ["xpath=//button[contains(.,'Importer')]", "xpath:innerText"] ], "value": "" }, { "id": "4dadb8c6-1966-4a50-85b0-fd88d7eaf2d1", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }, { "id": "f2e56113-4ae1-42c5-ba41-a33c790086b8", "comment": "Vérifier nombre de membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "32c48379-fe2b-480d-9269-1aa14ae75703", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "08cf31e2-a0fd-4032-9ee6-da99031ca65b", "comment": "rendre visibles les catégories", "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": "9ebc125c-9b33-4732-a041-b47b627c1378", "comment": "Filtrer : toutes même cachées", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "f7a60173-216b-40e3-bf54-2fb8c54c7f7f", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "membres" }, { "id": "da77bad6-4cba-439b-906a-08282fae7496", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_final_membres" }, { "id": "2ce0d39f-5a8e-4a26-b6e2-252327f5fb4a", "comment": "", "command": "executeScript", "target": "return ${nb_initial_membres} + ${nb_membres_crees}", "targets": [], "value": "nb_total_membres" }, { "id": "8e3ff5b6-5f8b-4a0d-9b15-9953df10f61c", "comment": "", "command": "assert", "target": "nb_final_membres", "targets": [], "value": "${nb_total_membres}" }] }, { "id": "a9ffdcda-44f9-49a9-9205-e05e3a3e6005", "name": "09-01 export sauf catégories cachées", "commands": [{ "id": "77f9620e-225b-403c-a520-2c754fac5e3e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "4e23eb24-6bb1-43a7-9098-b8d03eb3905e", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "57a563bd-f40a-482d-b41e-077481772428", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "d628bf4b-528f-4086-b4ba-550dda42090e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "aa94ec1b-a51b-4560-a7c0-140166727d5e", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ff14c157-bab7-4f3d-b8c8-2e5a6f415f39", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9ae75855-99d4-4b08-9621-b085cb7c9fa3", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "1bbf4550-80ef-40a1-a210-32bee3ff717e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3b9bfa6e-1c34-493c-a5f3-efe7c300cf9e", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "533b6bba-78a7-4000-a238-e880424fb50e", "comment": "rendre visibles les options d'export", "command": "executeScript", "target": "const nav = document.querySelector(\".tabs\");let span = nav.querySelector(\"aside > span > span\");span.style.display = \"block\";return;", "targets": [], "value": "" }, { "id": "d1759ec2-56da-4436-b70f-4cd27deee40c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"export=csv\")]", "targets": [ ["linkText=Export CSV", "linkText"], ["css=span > .icn-btn:nth-child(1)", "css:finder"], ["xpath=//a[contains(@href, '/admin/users/?export=csv')]", "xpath:href"], ["xpath=//span/a", "xpath:position"], ["xpath=//a[contains(.,'Export CSV')]", "xpath:innerText"] ], "value": "" }, { "id": "9d42d1dd-068f-48f4-a442-f91570bec1ce", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }] }, { "id": "9117e7d1-aa61-4299-94b4-f1175df013e2", "name": "09-02 export toutes catégories", "commands": [{ "id": "a948f13f-2b24-46a6-bf8c-6fa976d2945c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "97861828-86b0-442b-9264-dc39436aa802", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "4c5a62c8-9de4-4191-bdee-ce3bd31068af", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "04598277-8e2a-4a6c-aa45-43b342c7d96f", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "7b119335-a1df-4c4d-9adf-82374415c430", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c49320f2-7e40-401f-b036-4c0576031c1c", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "07da5407-edc5-4a5b-b731-b277c971645e", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "40731622-77b9-4776-9d94-e7ddc0c3dfe0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "27a4105c-68d9-42dd-9ae2-0dd9fe88736f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "372a58e8-1c17-46d4-ba32-feaffb163136", "comment": "rendre visibles les catégories", "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": "0cc206a7-def5-4a3f-83be-c69bd05d6205", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]", "targets": [], "value": "" }, { "id": "d3ec7ced-e259-45a0-b0df-c3ab0a3682a5", "comment": "rendre visibles les options d'export", "command": "executeScript", "target": "const nav = document.querySelector(\".tabs\");let span = nav.querySelector(\"aside > span > span\");span.style.display = \"block\";return;", "targets": [], "value": "" }, { "id": "abb4e816-f71f-44c2-acbe-65a84c75b274", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"export=csv\")]", "targets": [ ["linkText=Export CSV", "linkText"], ["css=span > .icn-btn:nth-child(1)", "css:finder"], ["xpath=//a[contains(@href, '/admin/users/?export=csv')]", "xpath:href"], ["xpath=//span/a", "xpath:position"], ["xpath=//a[contains(.,'Export CSV')]", "xpath:innerText"] ], "value": "" }, { "id": "5d230ea7-454a-497f-8edf-02d53673d14f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }] }, { "id": "d8c6a9ac-cd5f-4bda-8e3c-f3fb6ccd50f0", "name": "09-03 export membres actifs", "commands": [{ "id": "4c1bb790-731a-4023-800f-772f12fb944d", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "c429dabb-5445-41c2-8e9d-dbc613028154", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "6553a104-3d4a-4bce-8038-cadb2cf27a0c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "57920041-2bf7-4257-b046-dab22f80032c", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "92d7ad8c-bf2a-4a81-8c41-1e3f0b274d12", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "98d5c718-bf50-479c-a420-267f3e76184e", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "540c4f41-2e8a-47f5-9071-03e8a0b1f113", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "51fe9174-2835-4481-bb97-cb946cde0b95", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6d3509c3-53ce-48d9-b7ff-809fc039490b", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "2eacf0c1-8d1f-4bdf-8cc2-820289dda1c8", "comment": "rendre visibles les catégories", "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": "dc0fd695-9536-44df-9944-cd166cc6ce33", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Membres actifs\")]", "targets": [], "value": "" }, { "id": "1ed316d0-0fc7-4e14-b7dd-d7a600aea724", "comment": "rendre visibles les options d'export", "command": "executeScript", "target": "const nav = document.querySelector(\".tabs\");let span = nav.querySelector(\"aside > span > span\");span.style.display = \"block\";return;", "targets": [], "value": "" }, { "id": "38e53f3e-d223-45cc-8960-42999b91a1d2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"export=csv\")]", "targets": [ ["linkText=Export CSV", "linkText"], ["css=span > .icn-btn:nth-child(1)", "css:finder"], ["xpath=//a[contains(@href, '/admin/users/?export=csv')]", "xpath:href"], ["xpath=//span/a", "xpath:position"], ["xpath=//a[contains(.,'Export CSV')]", "xpath:innerText"] ], "value": "" }, { "id": "e9ce457f-3438-484d-8ca3-a4a4765fb01f", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }] }, { "id": "4ab0f776-0e9a-4f14-820c-a6f592f7614c", "name": "09-04 export administrateurs", "commands": [{ "id": "ebe80a8f-cacf-47e2-86cc-5c6d2a827000", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "48930d5d-2055-425a-971a-024da80ebd85", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a774d26e-9c72-4445-941b-5ad4388254f5", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "145d6069-ef78-4fcf-9b56-2c01ae3e2242", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "d01065b6-f774-45ae-aff7-3c18744c0132", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "d5f38398-5b79-4fa8-b68e-6b1de38a74d7", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "89f93cd8-bbe5-4f71-9fe6-52535b8ba24a", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b8c15077-58f4-45d8-ba64-6c99c0d96833", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "99d39f0c-29aa-4d6f-8eae-852c1aad6444", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "161fb507-bca1-4338-a312-eb06945dccbe", "comment": "rendre visibles les catégories", "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": "2775e082-6b20-48d9-ab0d-66076cfe9b2c", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"Administrateurs\")]", "targets": [], "value": "" }, { "id": "48d409e3-fecc-4ee9-bf6e-a170367b047e", "comment": "rendre visibles les options d'export", "command": "executeScript", "target": "const nav = document.querySelector(\".tabs\");let span = nav.querySelector(\"aside > span > span\");span.style.display = \"block\";return;", "targets": [], "value": "" }, { "id": "6b87b663-11ae-44a4-a17c-1fffad13ecb8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"export=csv\")]", "targets": [ ["linkText=Export CSV", "linkText"], ["css=span > .icn-btn:nth-child(1)", "css:finder"], ["xpath=//a[contains(@href, '/admin/users/?export=csv')]", "xpath:href"], ["xpath=//span/a", "xpath:position"], ["xpath=//a[contains(.,'Export CSV')]", "xpath:innerText"] ], "value": "" }, { "id": "1e8edb10-08ee-43f9-801b-24686489a075", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }] }, { "id": "d2e0733a-118a-4d98-a508-0b727abcfd3c", "name": "10-01 catégorie défaut ", "commands": [{ "id": "477a0419-e943-4b3b-9c66-aa8ab50a5688", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "d43aeccf-5a33-46f9-b481-9ec5768bbec8", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "99707091-e6bf-4085-aa03-052dbb38140b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5026af08-a95d-4e1c-81de-e524a4fb1684", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "ad45155f-00e0-4cf9-99bc-15f7d5d50b85", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "4be02d4e-ecd4-43e8-98cc-2374a392e582", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "4cac2959-b2ad-44e6-a56a-13ef8f15ccc6", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2e2bceb4-66a5-4d08-9006-c567d62d5147", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "59edb2b4-a0b9-4a30-bad4-35b58c518a01", "comment": "", "command": "store", "target": "Anciens membres", "targets": [], "value": "categorie_defaut" }, { "id": "8841fe34-d3fc-4e07-a236-b2402cfe834b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "2f7e849a-6c28-49f9-8f3e-10f1bb33b214", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "85380737-4df8-4edc-bf3a-a07da18dd16c", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_default_category\"]/option[contains(text(), \"${categorie_defaut}\")]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "1d53bf3c-54ea-4ff0-ad81-2d5ed17eb373", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "33c17cfd-6c4c-49c8-bff3-4f7056adc21c", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "58b563f6-dd7f-4b56-b34f-a48670aa0055", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "9fe9109b-a9ab-484e-8345-b0ea728515be", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "82ba726b-78ca-4426-ac6b-09ba589738f2", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "22fc452a-ca7a-4dc9-a082-204fa58e0751", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "493680e0-0ba7-4d90-a82d-373bda73334f", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "f06bb68a-56d6-4555-a188-82ef4e5f3e91", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "808947f4-36f6-4cbd-9f90-8e2b5302a413", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "be147bdc-5664-43c0-9682-7cb079fbe87b", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "68a81c22-0ebd-48a0-b77a-a3a84da9f8e7", "comment": "Vérif numéro membre", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "a3432e62-9e1d-4a3f-80dc-063836a883b8", "comment": "Vérif nom", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "627fcfaf-efc7-4c34-a6a0-1e619a81ad63", "comment": "Vérif courriel", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "3e0c5a4b-f40e-4ed3-b201-8987bfe6c9c2", "comment": "Catégorie du membre", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "dd4ad8ac-609f-4a12-bbc7-1b3daf4afda1", "comment": "", "command": "assert", "target": "categorie", "targets": [], "value": "${categorie_defaut}" }, { "id": "225cf088-e1f5-4ebb-9ada-80cdddf5f5fa", "comment": "remettre la catégorie par défaut initiale", "command": "", "target": "", "targets": [], "value": "" }, { "id": "aedaecc4-336c-4b29-bbd1-f383094dffe6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "2f01d2ed-690b-4090-9478-be1e5bcb74c5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fdc0d484-f101-413e-9e27-65a7386f2e6e", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_default_category\"]/option[@value=\"1\"]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "aa5e6cbb-3f06-4bf0-a51d-87d2dc8593bd", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "d20b6698-68a6-417b-ab8e-11677000ce91", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "30000" }] }, { "id": "fc3ad5c3-261a-481a-9f7e-1910280b2787", "name": "10-02 identité nom, courriel", "commands": [{ "id": "da11bd03-e800-4f5f-96ae-48644bffe009", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "1c95a61d-57d6-45d3-8e72-373f8ca09ea7", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ab651992-0372-472e-9ebf-fb31d8367f35", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "3fd75479-56d3-43fa-8c43-76e450fabf32", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8ad17f2f-c80f-4b27-a135-2fc2dc17c65b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "dbcf74f6-e8ef-476f-bc5b-f65dcf4a07d6", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "690ad7bd-9251-4510-8a71-7c746fb750a5", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "4e83ab65-cf5a-42b0-b4df-be148d800701", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "29f46a25-18da-4e14-b0f4-7d725b3dda65", "comment": "ajouter le courriel à l'identité", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e5d637a4-6733-4a04-95a1-b749c2e00ca4", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "champ_identite" }, { "id": "7b803583-3ba3-4992-a791-96fb8d9b136a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "b2a902ca-a4d5-4c19-9fbd-d000583df7ba", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "982af077-0a78-4b3f-8e23-903b839ddb03", "comment": "", "command": "click", "target": "xpath=//button[contains(@value, 'field_selector.php')]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "026ee323-1ae1-4ea6-9135-d22822c5cfd5", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "be2eb6e8-59b7-490f-a4e4-6a57a9bf2362", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//th[contains(text(), \"${champ_identite}\")]", "targets": [], "value": "30000" }, { "id": "6827a5a4-58bf-4c37-abc7-1d94727fbcfb", "comment": "", "command": "click", "target": "xpath=//th[contains(text(), \"${champ_identite}\")]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Adresse E-Mail')]", "xpath:innerText"] ], "value": "" }, { "id": "51761f01-5932-41b4-85e1-f54ee361f330", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "65f9d998-c20b-4c48-9d7e-aa3329f818d7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "59682cc0-00f7-4bb7-becc-dc7c9b654e4e", "comment": "vérifier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "faee2434-0100-460d-9336-4eef5cb08e8a", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "7e753325-177e-4c6a-9413-9a0bef82b6af", "comment": "", "command": "storeText", "target": "xpath=//thead//a[contains(@href, \"identity\")]", "targets": [], "value": "titre_colonne" }, { "id": "46a1f302-505e-4ff8-804a-622e2a8e24b8", "comment": "", "command": "executeScript", "target": "return ${titre_colonne}.includes(${champ_identite}) && ${titre_colonne}.includes(\"Nom & prénom\")", "targets": [], "value": "ok_colonne" }, { "id": "77226f67-136b-4fa0-b84e-3ae49340de6a", "comment": "", "command": "assert", "target": "ok_colonne", "targets": [], "value": "true" }, { "id": "88679d34-26ed-4803-8041-d910a1e336c2", "comment": "", "command": "click", "target": "xpath=//tbody/tr[1]/td[@class=\"num\"]//a[contains(@href, \"details.php\")]", "targets": [], "value": "" }, { "id": "baf87682-6469-47a9-87ff-9e0c741ecaef", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"${champ_identite}\")]/following-sibling::dd/a", "targets": [], "value": "courriel" }, { "id": "afdff527-c3ad-4cdc-ae7d-6dc228d2e69d", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre" }, { "id": "587ac66a-e57a-484c-8a93-0675858d2526", "comment": "", "command": "executeScript", "target": "return ${titre}.includes(${courriel})", "targets": [], "value": "ok_titre" }, { "id": "59cf5b07-3167-4b06-b433-11dabb01bd00", "comment": "", "command": "assert", "target": "ok_titre", "targets": [], "value": "true" }, { "id": "f5bf22e3-fc3a-47b7-bbb2-0c72fce0a46b", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Nom & prénom\")]/following-sibling::dd", "targets": [], "value": "nom_prenom" }, { "id": "5aa1d6fe-8ce0-4231-9fd9-447401f7db31", "comment": "", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "6406c3bc-21a6-4e43-a72d-d5b7dbf5548e", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[1]/th", "targets": [], "value": "identite_premier" }, { "id": "ffb6d74e-a0c9-4b9b-8b11-d9d53e5d1e3a", "comment": "", "command": "executeScript", "target": "return ${identite_premier}.includes(${nom_prenom}) && ${identite_premier}.includes(${courriel})", "targets": [], "value": "ok_identite" }, { "id": "b52ca7e8-4c91-43ed-b869-3d8f234a7627", "comment": "", "command": "assert", "target": "ok_identite", "targets": [], "value": "true" }, { "id": "a5dd1a6a-cec3-42b1-8475-e53132c5bb84", "comment": "restaurer le champ identité initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "62234a34-5bca-4c46-ace6-1903ab978ac6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "7e8ee612-c430-4f1d-b432-6033e699a50b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5ea13769-d082-4320-b9c0-7aa6ed3a4106", "comment": "", "command": "click", "target": "xpath=//span[contains(text(), \"Adresse E-Mail\")]/button", "targets": [], "value": "" }, { "id": "69bf0b61-896c-432b-82ef-8b93e4e7429c", "comment": "", "command": "//waitforelementvisible", "target": "name=save", "targets": [], "value": "30000" }, { "id": "5287c3f7-3f52-44e8-ad19-d4c6b9fb7fb5", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "537d2ca9-44c4-48b2-9b91-087a4ae5a756", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/logout.php\")]", "targets": [], "value": "" }] }, { "id": "02fea879-c742-4a8e-af1d-6df832e7a947", "name": "10-03 identité courriel", "commands": [{ "id": "39c4c2c1-1320-405e-8150-84a752f4b92e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "a1cf21f5-fea7-4163-9820-a312671ee9df", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a703dbff-c8cc-4895-a688-cdaf5fe10836", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "97ea75fa-464e-4137-994a-9ddbe96c5f7c", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "956057e2-acef-4ee4-aea3-7dcdef07a1b6", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "2619380c-1188-4e50-a9e6-392f4ae61b19", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e261e05c-3a83-445e-a72a-e3f95ebed97c", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a7114593-e6d6-41c2-8d33-d61bfa4ee4eb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ebb4ea28-9f16-4f2b-8915-6c03ec213e90", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "cf80caad-0119-41b1-a04e-ad222019db0f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "a2d54859-bd85-4c9f-b8f5-a6c32d3ec129", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//span[contains(text(), \"Nom & prénom\")]/button", "targets": [], "value": "30000" }, { "id": "57a7a856-ffe1-4f22-84c6-7f1a7a370e67", "comment": "supprimer champ nom", "command": "click", "target": "xpath=//span[contains(text(), \"Nom & prénom\")]/button", "targets": [], "value": "" }, { "id": "830d9eb9-c942-4213-9998-70b0ad4fb1da", "comment": "", "command": "click", "target": "xpath=//button[contains(@value, 'field_selector.php')]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "72bf6ed9-2715-4f37-aa4c-b8765ba79750", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "0b1155be-6e8e-46a3-8d60-e18760f0893a", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "champ_identite" }, { "id": "825b8794-fd46-4316-a0c3-acb9ae799e4f", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//th[contains(text(), \"${champ_identite}\")]", "targets": [], "value": "30000" }, { "id": "7ae922bb-2dee-4e3b-9276-53ccf2da4469", "comment": "", "command": "click", "target": "xpath=//th[contains(text(), \"${champ_identite}\")]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Adresse E-Mail')]", "xpath:innerText"] ], "value": "" }, { "id": "93a50f28-0c07-49ad-8b0b-338c6cbeb153", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5ac1afcb-e9ab-4c9b-874c-312659033d7e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "96fa32cb-3950-4afd-b6c4-25b1c63d28a9", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "897192f4-5dc2-4dd6-96ab-753ea215533c", "comment": "", "command": "storeText", "target": "xpath=//thead//a[contains(@href, \"identity\")]", "targets": [], "value": "titre_colonne" }, { "id": "cf9d406c-734e-4097-b91d-73ffe70ef8e4", "comment": "", "command": "executeScript", "target": "return ${titre_colonne}.includes(${champ_identite})", "targets": [], "value": "ok_colonne" }, { "id": "e2ea3ba9-67b6-4a47-9a18-10d65851cce7", "comment": "", "command": "assert", "target": "ok_colonne", "targets": [], "value": "true" }, { "id": "33c71e8d-60f4-4592-80dd-07c81141394b", "comment": "", "command": "click", "target": "xpath=//tbody/tr[1]/td[@class=\"num\"]//a[contains(@href, \"details.php\")]", "targets": [], "value": "" }, { "id": "8632e336-e53c-4d33-90b0-58bf280e278b", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"${champ_identite}\")]/following-sibling::dd/a", "targets": [], "value": "courriel" }, { "id": "f34196a3-c2b5-4c0c-ab63-5ee2f0a6c16c", "comment": "", "command": "storeText", "target": "xpath=//h1", "targets": [], "value": "titre" }, { "id": "23d051ce-95be-4451-b356-6fe0fe02ed94", "comment": "", "command": "executeScript", "target": "return ${titre}.includes(${courriel})", "targets": [], "value": "ok_titre" }, { "id": "29b146ab-422a-45d6-8daa-6636c99e4662", "comment": "", "command": "assert", "target": "ok_titre", "targets": [], "value": "true" }, { "id": "7d204df7-3405-4400-9c53-b900c8e3c7da", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Nom & prénom\")]/following-sibling::dd", "targets": [], "value": "nom_prenom" }, { "id": "ad2e9b3c-9fdb-4ad1-83d5-2ab7349a5b0f", "comment": "", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "28b7cb2e-a9ff-49e1-8c93-eebc3c8bd65c", "comment": "", "command": "storeText", "target": "xpath=//tbody/tr[1]/th", "targets": [], "value": "identite_premier" }, { "id": "6b318428-38a0-41b2-8c77-3571d01ccd99", "comment": "", "command": "executeScript", "target": "return ${identite_premier}.includes(${courriel}) && !${identite_premier}.includes(${nom_prenom})", "targets": [], "value": "ok_identite" }, { "id": "dad9bbb7-9e56-4e0c-bc7e-7f247a3ba3cb", "comment": "", "command": "assert", "target": "ok_identite", "targets": [], "value": "true" }, { "id": "e55f81cc-c992-4980-a9d4-5aa85a8efbb9", "comment": "restaurer le champ identité initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c1665046-8c9a-4621-8967-4899836e4385", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "56b576ae-e560-4500-a1e5-bd7560f72d60", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "074c68d4-f387-4ac0-a3a5-6138a2e9688d", "comment": "", "command": "click", "target": "xpath=//span[contains(text(), \"Adresse E-Mail\")]/button", "targets": [], "value": "" }, { "id": "9eab8313-48a3-4955-bd58-a621a53d2a28", "comment": "", "command": "click", "target": "xpath=//button[contains(@value, 'field_selector.php')]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "a937b485-73b8-479b-843e-014129130558", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "18c14f02-2405-44a2-9f32-c0a1dc2fcf44", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//th[contains(text(), \"Nom & prénom\")]", "targets": [], "value": "30000" }, { "id": "c355687c-05eb-4035-a24b-a2da7df34f90", "comment": "", "command": "click", "target": "xpath=//th[contains(text(), \"Nom & prénom\")]", "targets": [ ["css=.clickable:nth-child(2) > th", "css:finder"], ["xpath=//tr[2]/th", "xpath:position"], ["xpath=//th[contains(.,'Adresse E-Mail')]", "xpath:innerText"] ], "value": "" }, { "id": "7688a469-10c0-447a-9800-933d65baceb8", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "9efd7913-f897-468a-bbb7-8b3f65ab07a5", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "befd38a0-c208-4979-85d4-36f7c7c63978", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/logout.php\")]", "targets": [], "value": "" }] }, { "id": "639dbeb9-8199-4613-98e7-ae8948f484a2", "name": "10-04 connexion par numéro de membre", "commands": [{ "id": "98d43914-6d3e-4f1a-b87c-b6c769ac92b7", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "18de1fe7-11fd-4e5c-b7ed-339728a27998", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "1c882d0b-f2fb-49ae-afac-93dcd92547b4", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "f3f2454a-a5d6-476e-ac7c-ba8becd812c0", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "bf969b75-7031-4d7c-a8d9-c650d68ae11b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "ac4bb4f2-d63d-4e7f-8648-a087117d0661", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "19f02050-978e-42c6-bfa8-c7f5e5f6addc", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "30d1400e-7d83-4e44-b66a-65cc49cf6b82", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f329b204-730c-498d-96ff-4dfb3345a71b", "comment": "mémoriser infos admin", "command": "", "target": "", "targets": [], "value": "" }, { "id": "628e472f-fd20-43a1-b523-62d538696c97", "comment": "", "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"] ], "value": "" }, { "id": "3fd82cd6-3cf1-4643-b756-2e4012d3c545", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "1" }, { "id": "9dca175d-1f4f-4e31-9058-603181855b9f", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "0720ca3c-21c9-40db-811e-75be4b23513f", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd[1]", "targets": [], "value": "nom" }, { "id": "7e863730-29c7-44fc-89dc-a0952e0f6c3e", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a[1]", "targets": [], "value": "courriel" }, { "id": "70f9c854-15f8-4793-90e7-5397f5e1d2e5", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "151b0564-c372-41fb-b0f4-f363c88c4af7", "comment": "sélectionner numéro de membre pour la connexion", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7b2ea33b-9f41-433f-90eb-7e96d0333b7e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "3b390cda-64ab-4ce0-8660-bb72799e69ee", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4fcabb1c-ba44-4a95-abcf-6fc2e19cc8d5", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_login_field\"]/option[contains(text(), \"Numéro de membre\")]", "targets": [], "value": "" }, { "id": "f5bccc9e-b011-4063-ace4-12df76bd044e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c1902e6a-5dd3-4464-a169-434efdf5436b", "comment": "connexion avec numéro de membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8759a30b-d2ca-416e-8d7f-0752d8805401", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/logout.php\")]", "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": "21171508-d60f-4f2e-8289-1bc4758d8c27", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "1" }, { "id": "9cb15da8-e554-4835-9973-4b6e7883eb48", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "efe539e2-5aa7-4988-9e1d-9cb214600d26", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d4155b8f-c9cf-45c1-8039-09acda5ad0c0", "comment": "vérifier les infos du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "16c9efc7-3741-4fe1-8be9-1a8430cf9b5b", "comment": "Menu membres", "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"] ], "value": "" }, { "id": "c62034c3-8565-47c7-93b1-7b0bea1b7d90", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "1" }, { "id": "51abd84d-b6f3-414b-bdbd-787a1ebb324a", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "36fdffb3-3763-4031-87ba-da879f01ead9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd[1]", "targets": [], "value": "1" }, { "id": "749f8ddf-c9dd-4216-9517-c32844452984", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd[1]", "targets": [], "value": "${nom}" }, { "id": "c4199c60-eb55-465f-ac90-dc67026f70dd", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a[1]", "targets": [], "value": "${courriel}" }, { "id": "559ca441-085f-4412-827c-8673149244f6", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "${categorie}" }, { "id": "29eead00-4d18-44ac-8ff2-56937c616ff4", "comment": "restaurer le champ de connexion initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "01e8c0db-75c6-452f-9e33-0f355c196c84", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "61637cfc-4d35-4063-8434-7e55fc249d28", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "d90dcb0c-d47e-43c8-bae2-e4360b6c0739", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_login_field\"]/option[contains(text(), \"Adresse E-Mail\")]", "targets": [], "value": "" }, { "id": "870930f4-207d-47bc-935a-ff22c0315986", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }] }, { "id": "67bfd994-d024-48bd-a966-508263ad5687", "name": "10-05 journal : durée 0", "commands": [{ "id": "6ac5f26b-5eae-409b-96c8-96b9be04cee9", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "b483f4ae-5687-4140-b181-57129c1ebbab", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "3924fd6b-08c2-4dfb-b0a7-e9986943c5d3", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "4103b45b-3ae3-4557-951a-4b791ed9a2cd", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "e261179b-f242-4e38-a6f0-063d7f2a6215", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "60724ba2-c2ed-4640-a8e5-6be695aaa2fd", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "22399273-b4a2-40f6-b285-c84a3eeaf158", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a6c065b3-55a3-462a-b8d4-e2a0302c1c45", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c7ba0cd6-d97b-4a54-a828-5359d0dcef72", "comment": "Mettre à 0 la durée de conservation du journal d'audit", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b9655148-f74d-49fd-ac82-c9b7e4606d4e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ba6231c4-3b4f-4591-ab30-f7549d9bc6df", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c04a612e-95d2-48f7-8424-ae13e3f28ce2", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_log_retention\"]/option[@value=\"0\"]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "da80fbc0-dcee-43e7-a526-2bc8002cba06", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "6a20b825-e622-49c5-927c-e33978dc78ce", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "30000" }, { "id": "a5a1409c-91d3-41f8-913e-b1a1bf4b9d76", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7f89df44-a070-410f-9ed1-d7923e586ba0", "comment": "Menu ajouter", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [], "value": "" }, { "id": "48ffb5a4-4cb4-4401-abd9-60f10ee7c001", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "00f7d822-4aaf-4d18-98dd-9bc3e72ad9c1", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "d6e6aa7d-2c4e-495e-89a1-40b2598c03e9", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "408d81a7-6cd0-4333-aa1c-dbd86ddefd2b", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "2662f7ba-9c54-482a-b439-6961a4fedc12", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "648188b9-743e-4dfa-826e-bb6ac55373b3", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "cbccd877-4b97-41a0-9183-91ac39372e46", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "e6a391ed-47f5-4673-934c-933db9143648", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "c2160f2f-766e-4d54-8de3-8036cbb7c55e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "e878f838-b2e5-405e-a381-8af46662390d", "comment": "", "command": "store", "target": "bassin reprise constamment celui-ci", "targets": [], "value": "mdp" }, { "id": "21bb8ca0-b215-4d45-95c3-5bb8a46ba349", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "81d6597f-0cec-415d-b8ba-b658a495cd2b", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "b9b1ef1b-2d8f-4a66-b56e-94a3e722ccae", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "be4de1bc-a809-4a2b-b9b5-3b8ddaff62b3", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e0061b8d-2e42-4a2d-8baa-7e7abdd8642b", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "11e520f3-f297-4dcc-97c8-e966445ac527", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "11fb2c22-bed9-475d-9f2a-78a5791d9c66", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "29e201e4-1496-482a-966c-3d0e7690c29b", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "6c448655-837c-4d14-b41c-533871a5a4cc", "comment": "Connexion membre", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3a512988-75e3-40b5-b0f8-1b062c8e8010", "comment": "vérifier journal audit du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "968bb65f-c57f-4676-8094-1ccb48a55883", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/me/\"]", "targets": [], "value": "" }, { "id": "26e9c4ab-9425-487d-9d48-82779e158aa6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/security.php\")]", "targets": [], "value": "" }, { "id": "b306a569-c36f-4a66-90cd-0757d639bff3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users/log.php\")]", "targets": [], "value": "" }, { "id": "edcb8de8-be41-476b-8e5b-9e05be954d98", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"alert\")]", "targets": [], "value": "" }, { "id": "902fea9b-8ef5-49e9-b122-f4fc6f6a12c9", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//table[@class=\"list\"]", "targets": [], "value": "" }, { "id": "45c0d80c-ccbb-4353-8850-16684f8c31aa", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//th[text()=\"${nom}\"]", "targets": [], "value": "" }, { "id": "8c5a3ef1-afa9-42b2-a33d-2ffb398b1ea4", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "54a10fb2-1645-45fa-a847-090d1724a0d1", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "b7b7612d-de22-46d4-a411-6ebeba436bd5", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "6e6d4d88-b5c9-4ca8-be48-5cea75f73c3e", "comment": "Connexion admin", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e3216c5d-d84f-419d-a783-5c3d52ef6f09", "comment": "vérifier journal audit", "command": "", "target": "", "targets": [], "value": "" }, { "id": "91a442e2-92bb-4312-92de-ec3f925d0273", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "cb253c1c-746b-4c91-8a31-dfad24b15349", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/config/advanced')]", "targets": [], "value": "" }, { "id": "7fc6405d-6f22-4b9f-9aef-7ccf5b787144", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/config/advanced/audit.php')]", "targets": [], "value": "" }, { "id": "b12dad10-8944-4c72-947b-a62bd68e7415", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//th[text()=\"${nom}\"]", "targets": [], "value": "" }, { "id": "509ddb5b-aa96-450e-a00e-673c81314125", "comment": "restaurer l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8042a84b-ff68-4ef5-8685-789eaa3d4979", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fa4ad94b-8bd7-4df4-9193-703c05a9593a", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_log_retention\"]/option[@value=\"365\"]", "targets": [ ["css=#f_default_category > option:nth-child(2)", "css:finder"], ["xpath=//option[@value='2']", "xpath:attributes"], ["xpath=//select[@id='f_default_category']/option[2]", "xpath:idRelative"], ["xpath=//option[2]", "xpath:position"], ["xpath=//option[contains(.,'Anciens membres')]", "xpath:innerText"] ], "value": "" }, { "id": "b6de2220-bda2-46a5-86e5-459226855534", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "68b36014-685f-43a9-9753-86d54a3a7538", "comment": "", "command": "//waitforelementvisible", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "30000" }, { "id": "1671344f-288d-46e0-8896-b70a01e4ae2f", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }] }, { "id": "a4d498db-b5ee-4911-852b-fbfcf75863d6", "name": "10-06 connexion par numéro de téléphone", "commands": [{ "id": "230e4d4a-4a7d-42ed-b760-9dec2051ad88", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "96e9984a-3299-414d-b1dd-f1de2e8524f6", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "586dccc5-32f2-4fcd-b2c6-ca29e7835060", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "e55cff9d-d0b5-4673-b91b-22d62140ee60", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "aa217152-622f-4bb2-8185-219d4f9d55aa", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "0bd4bd7b-2e8a-4cab-be8c-3f0a139a865a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e0f5c8d8-6a60-451c-892c-2b9b5e7a3def", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "6796b9e6-0fbb-412e-8c32-38587301e5cb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0640ed9f-d21b-4f8d-b6c6-fc55c2694862", "comment": "mémoriser infos admin", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c3e25659-144a-4810-86a7-88b97183c2ab", "comment": "", "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"] ], "value": "" }, { "id": "237c5521-f152-4dba-87c9-0f57f5ea4d06", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "1" }, { "id": "837b8083-e327-4744-ada1-d253fc529a50", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "5663f677-7458-422e-bffc-e50698006b8a", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd[1]", "targets": [], "value": "nom" }, { "id": "3ad93297-f583-46f3-a235-39058b082cf1", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a[1]", "targets": [], "value": "courriel" }, { "id": "40a49229-da28-43e6-b749-a3e56a471414", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie" }, { "id": "62c3cc5b-5262-43a1-9dab-60a141105917", "comment": "sélectionner numéro de téléphone pour la connexion", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8b90431a-95e3-4ff6-a452-ce537771bfe2", "comment": "", "command": "store", "target": "Numéro de téléphone", "targets": [], "value": "libelle_champ" }, { "id": "f572efad-cda6-4357-9b12-76eeab13af91", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "b91e2c3c-a602-40f3-8629-87f3de61d818", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fce945ce-4c4e-4c25-b58c-8923b168c053", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_login_field\"]/option[contains(text(), \"${libelle_champ}\")]", "targets": [], "value": "" }, { "id": "617f77be-41b4-4017-9166-e6ccb86f5736", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "05a694f5-17e7-4344-86c0-64685edc49ff", "comment": "connexion avec numéro de téléphone ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "529598de-2c8b-445e-8982-fea32f010184", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/logout.php\")]", "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": "081b32f8-9fe2-489f-bfb7-2cb1dcbb4a4a", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "0123456789" }, { "id": "3ceeda84-f8a6-4183-a9ae-3b0f798312f4", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "bc589c05-6792-4746-85c9-ac474d58ea0a", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "642b9cc3-5cb4-4f69-90f6-7edf2a7c4936", "comment": "vérifier les infos du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9b6352e6-0f55-4a65-b126-ffb39a7e1a69", "comment": "Menu membres", "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"] ], "value": "" }, { "id": "e53df9ad-a38c-4ad7-a63a-f9a78b0cf838", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "1" }, { "id": "365b0854-b02e-4acc-a618-5dd745e76f72", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "7d95bbc7-4099-4e23-8a41-01c50e587e76", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd[1]", "targets": [], "value": "1" }, { "id": "b8d37124-2411-4887-aa50-117025d6cedb", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd[1]", "targets": [], "value": "${nom}" }, { "id": "9569937d-518b-4235-9b6f-bd3da7835505", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a[1]", "targets": [], "value": "${courriel}" }, { "id": "4ea945e5-3307-4830-a7ca-51c6c2b44869", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "${categorie}" }, { "id": "1e8a9428-1fe5-4625-9722-ed81b6af0bc6", "comment": "restaurer le champ de connexion initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ccf7f9d0-fd1e-4560-8f76-5f72e1664e32", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "99c7ba4b-d7c1-4024-a7be-6b95fb810d95", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "05c0689b-f97f-48e1-9b82-7e5fd6497c85", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_login_field\"]/option[contains(text(), \"Adresse E-Mail\")]", "targets": [], "value": "" }, { "id": "87b5f748-9066-4233-84c2-bc19f72100ab", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }] }, { "id": "ba5e6368-646b-447e-9e5e-3c3cdded211a", "name": "11-01 ajout email", "commands": [{ "id": "3a088280-2c8d-4d70-a9e3-8bb7196c8941", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "9c029b17-46f5-4bd6-8b75-39b7ecabc8f3", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a8fdc389-3e7d-47b7-8a1f-4c84acccf223", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "62981b4a-6aef-4d43-96c6-7b272763dd27", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8e63ba91-0ac3-4781-b339-72adb6677673", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "1654bc45-3b49-408c-8e09-7d133c180b24", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "51157e9b-281a-4d04-ae3e-c4b3c877d6c5", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7385f94f-94f4-4985-bd20-87fde6a72a32", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "087e7324-849f-4d1b-8236-efb68f2fffce", "comment": "ajouter champ perso email visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d9a2a3c4-93bd-4de0-b730-cebeb4698e10", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "e3e9f781-ca6a-4a4a-9801-77a68bee0627", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "57a3cbb6-f53d-4816-b168-d557e2e1eb18", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "29489ba0-5338-4af2-a156-753f710746cb", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "577e78a5-e869-4851-9548-704aee719ab3", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "03078156-7e35-42f6-94b1-61caf6038a73", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "659e6eb2-210e-4f47-a451-41b66a219d21", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c660bb5e-d74e-4689-a69b-3ad1125f569f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8d104495-5b5f-467b-94cc-f70f4f76515c", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"email\"]", "targets": [], "value": "" }, { "id": "1230561c-da64-4f40-af2e-a63764056899", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "5c3766f8-7c6d-487a-bfbc-cf2b836a0885", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "7a9c1b1c-679e-4383-bc87-7c58778b1350", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "088bd161-f32e-4407-b740-d6b26cbeb519", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "49aec097-5258-4062-a265-c7e982f35e50", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indiquez votre adresse de courriel secrète" }, { "id": "5e7d0e52-e418-437e-bd6f-e3fc7577808d", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "1a0a70b4-190e-48de-9073-9671924b591b", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "76d480b5-403a-47ca-8e03-ee44bb3259e9", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "9f7b73c6-71c0-4797-9bc8-393c0bf4fe8e", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "52ff22a4-b345-411f-a5f5-a6d47b2db56c", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b7965f43-d430-4e7d-b34f-666ed095fe03", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "5032c36c-ce13-4823-b22a-4dfadf66766f", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "c8d43bbb-85d4-408f-8303-3d80006b8b23", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "5dfdc812-1c68-4661-af99-1839ceab68ee", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "0c45821f-459d-4393-8178-ba87ea789f24", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "68b4c95c-9bad-4d41-99fb-a9434ea50916", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "70f33c7b-1dea-4e67-9026-b70d0e6af8d9", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "valeur_champ" }, { "id": "d20f75bd-3b1a-41e9-b6cf-65eb1241467d", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "4aeaac88-f166-4f1d-9603-2fa4b3116bc8", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "5a3b97fc-39fd-403c-80de-6bd6e4a83907", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "42a1c013-fcac-40c9-893f-4609e6ebc53c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "ce8eb50a-eefa-45cc-8236-04a35a5d03d7", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a76264fd-7745-4974-b0fc-7d83f50a371d", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "5341555e-eedc-46d1-b8ae-e9aa5b4c9bab", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "30d66f57-4163-4cf8-b004-78b78dce3e6e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "bf111ca8-cad8-4b1f-850c-2cdeef2408ed", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "898a3c5b-dc00-44e7-acd8-4287dc8df656", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "ed6bd31d-eda1-4b02-8efe-521b5c715b5d", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "6266a7ff-ff46-488a-bb90-0d919656b8ac", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "ab0bdfaa-f72b-4289-b7b4-33c4ffb648b6", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e9a696c3-2d8a-47f9-93ca-36767212cf52", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "4e875037-eb5a-4f86-91de-c12c78641955", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "879a9495-bb58-460d-a11f-674f5f12d767", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "cd3b04e9-9313-4050-aa75-7b9469b2e2e6", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "df3b29d6-4ca4-4bb0-8eb7-986c3b479c4a", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "280e3891-3f0b-4803-ac3c-a30308c158aa", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "497b4b27-8660-4574-9276-78bff6a654ba", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "8e170117-772a-4c4c-9ae2-36c920585325", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "28e060e6-9206-4f5a-a308-299969fe2959", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "5d7b6cdc-3000-4053-aa9e-c1083f19acc5", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "ac3720b5-6c24-47bd-961f-a3b0e247b74b", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "482dfae4-a690-4334-a7f0-6207ab17e15b", "name": "11-02 ajout url", "commands": [{ "id": "e6d3ffc5-2dd3-47c6-8864-da7d06ca3afc", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "d5fdaa0a-5b88-4220-876b-370bc1578250", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "56b2517f-2bca-4679-bc33-95c35ac04feb", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "40791654-43e7-4ba5-a352-0486309d0e1d", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "31fc886c-6c4f-4f85-96fc-ea42ffb3f46b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "451ea528-fcd7-401b-b0de-ef9939cf9a5a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "d9e5d701-c17c-4a47-a99c-5c0db1b283b7", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7f27251d-f021-4080-988d-5f63f7f62a7e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b4fac33f-cb9a-485a-b82d-e4e41016d083", "comment": "ajouter champ perso url visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "51fd63a4-56aa-4541-8097-b21ea83d8998", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "cba13de8-e6bf-4780-907d-2a4c5d1d8306", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "70712af1-928b-4849-b0fc-34690f3b0e5f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "13138d4e-595b-42e6-ab18-2e65c8151cad", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "0e2443bb-c375-42f4-bb61-e3b235b7d200", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "7c3b511d-6950-418e-8fca-93e1e9e700ff", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "965190f6-7845-42fb-9cb0-0bc4af834468", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "31035a22-ed9a-4967-b14a-3771bfa5169b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b3dcd520-2b45-4adc-bba4-69c259c6ddb9", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"url\"]", "targets": [], "value": "" }, { "id": "0630b092-b3f8-4abb-be6f-1ef3800f031e", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "79e4b327-1160-4206-9396-1cd69970f50d", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "04bf4c7d-3f99-45db-a21e-993af0594e6f", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "682b8c66-687c-43e8-8822-d2ad12119e86", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "bec3eaf6-0536-4026-aac2-73c010ccf6f5", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indiquez l'url de votre site web" }, { "id": "718a7d0e-d6a9-4217-8c78-ac121c2436ef", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "8143c788-c672-4ff7-bb56-9529849823a1", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "354ec617-3da2-45d0-be5f-418f117f9346", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "fdf88cbe-1989-445d-8ecb-94de33c3ba75", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "da4c3f9a-77ea-4ce7-9e02-7d0120fe0443", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "690d7460-2233-4683-a810-8c2f28ac2597", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "f4e26157-c059-491b-a8fd-d39a7c47e3da", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "3fc5fe42-251c-44f9-949a-d68e89f16112", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "362cac5a-89cc-4273-a0a4-108b279b87a4", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "10793e0b-c596-401b-9f7d-b46e1110d430", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "5608cbfa-3098-433b-a464-8c482e19ec1d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "9db31d91-d7ff-4f7f-ad47-5ce81232f5ed", "comment": "", "command": "store", "target": "http://www.python.org/", "targets": [], "value": "valeur_champ" }, { "id": "90076291-5905-4db2-8e14-91d498b6fb21", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "a530a1e3-92c4-49fb-88aa-7538b595c5a8", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6594d3f6-c9f1-4d10-91d6-c8f7c2167acd", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "98864bdb-d0cc-4ba4-94a2-dda8c4d6fe19", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "cfd8a44c-9bec-4401-8663-679a8a3490f7", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "85c1ba1a-da70-43c1-b651-c0b4bf2cad0f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "42b058c4-b491-4351-a540-fc916abd2ddc", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "32ab109d-9514-445f-af05-971898772865", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "2ea45acd-cc72-4669-9213-944e16f3c2f2", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "c0f7f897-f518-4840-bca9-cd17af3864f3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "70101916-4c89-4556-a1bd-e76f355e2065", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "707c8312-1668-4a13-a3d4-fc64b082e4f7", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "53c30e93-7d39-4654-b6a2-6b9714a1fe67", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e02b04a1-791e-4091-a7c2-28bc69e5e9a0", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "5c7945ec-9a1c-491e-a387-5c4ebf4944b0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9b7f4457-1e7c-4052-84a6-5d5b54e49080", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5c6a6181-9170-475e-b0b4-7c453406f811", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "0e3d482c-673e-4455-b78a-515c3620273f", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "876a7b46-ab64-4a3a-bbf8-47ed6ee4e7d3", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "68212ae2-0bed-4d15-bb36-ae1b261fdc8b", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "68b4fa7a-3da8-4c14-8247-17a73a1d24e8", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d6a6aef9-3221-4b45-9e3f-41f95893aa02", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "0c6d4e34-64a3-4dce-9dd8-16e690664d88", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "5717ac16-6485-42e3-9a1c-fbe18e80d0be", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "name": "11-03 ajout case à cocher", "commands": [{ "id": "22856df5-01fd-4e81-a258-fb96b5272f81", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "49e1916c-f25c-40cb-8e26-7dc25346bf8a", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a3d96526-e680-4cff-8d3b-575dba9c2b2e", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5f72462c-8091-4ddf-9324-8b8a2b882428", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "e1ed87fa-ba9a-4566-b7e2-af665f3e6208", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "fe3cdbae-215c-4612-9e80-e84e94db7bf4", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c6023f8c-86e3-4d74-98be-537a28c8000c", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ca8548ea-e365-4c70-8927-53d1072313e9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5bfa41fe-554e-4fc9-a23f-beda80f48de3", "comment": "ajouter case à cocher visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "60c5ca9c-e28d-4332-973d-ca11e6019274", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "f8540f82-fd60-4b52-9731-8254eee80827", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c3976f14-f7a3-4183-8b7e-0f9d2e7b3ce8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ad93f1b6-8d11-4481-894d-94697fc76a9f", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "fdc34aba-d726-4e27-b3c6-71360564926c", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "67a371f2-7313-4db1-9019-f6f19fed9177", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "a73325ef-c181-440b-b960-ed48cacb223e", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "8d66bb2c-be3b-4d63-a2d7-bc1bf2c1ba2c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9069e0f8-afe0-408e-ac60-b243f1c9ce81", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"checkbox\"]", "targets": [], "value": "" }, { "id": "52ef163e-c820-43b6-898b-b57155f599e7", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "1e640499-c9f3-44a6-998e-e12d0494713c", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "c305e1f7-db94-404e-bedf-f08efeb03593", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "a8ec44ce-5fab-440f-8349-311a86edf636", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ} + '_1'", "targets": [], "value": "id_champ" }, { "id": "81469f4f-dcda-483d-bcc4-3627be5ea7eb", "comment": "", "command": "type", "target": "id=f_default_value", "targets": [], "value": "1" }, { "id": "64b46d29-bdab-4e93-88a0-6348d47e1bcb", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Coche si besoin" }, { "id": "0daa2f6d-f87f-432f-b8ae-51d624c26e71", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "0f62545c-b485-4e59-8991-02275e4ccbf8", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "b195c3b0-c98b-46da-a537-5d20c0fd9435", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "daf7e85d-2035-426c-b50a-6ad8c114e333", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "83a3c1f9-393d-4e49-9af7-3e25b9ffd57c", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5a553818-230b-4526-ae59-f1827b54c6ba", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "cf553c4c-0876-45d3-bca1-a7b3ba1b50f1", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "92d1984d-be10-4981-a104-b6e53317ec61", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "e9c095b5-5c34-496c-9586-847677e6cc50", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "c9ec4622-1473-48fe-bfb3-f9e9d13c85ad", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "99f41dce-36ed-4f7e-881e-7841c4c93fcc", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "02f5a483-5162-4088-8efc-7c55eef775ab", "comment": "", "command": "assertChecked", "target": "id=${id_champ}", "targets": [], "value": "" }, { "id": "fd057281-c8a2-4276-bb16-132813784d88", "comment": "", "command": "uncheck", "target": "id=${id_champ}", "targets": [], "value": "" }, { "id": "247bec3c-7b2a-4a8b-b334-fa636d3ecf8a", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "39288e0e-07d8-42c7-8ac2-802396478efe", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "f38e3b03-f5f2-4fcf-8813-7cda3ab724de", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "08271bca-d41c-4438-8782-f2564c8e82f5", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5361fffb-eceb-4b88-9c17-4d726d24f08a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "28b2e323-6579-473c-a280-ab4be2c210c2", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "07a6a552-870d-481d-ad22-4cd32c0e38c1", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "a4919d00-dd2d-48cf-8995-ea615f601c53", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "adddd198-b4e7-453e-96ce-07835e0947d6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "4567496d-6773-4cf5-b473-1097984d9ee4", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "b267d40b-955d-4cfb-8775-37606d080f15", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "07ea4080-9c75-451d-89b0-80c583c1739d", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "a20d8c78-7553-45fc-9a7c-5eba041bb72d", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "6b963c65-32cd-4e04-8a5e-70c827f8b84e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "bb2c1209-600d-4819-b70b-718b0ad27592", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "0158a4ca-b840-42fd-a9de-4cf2e52920e5", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "6c549f4f-75a1-424e-9b33-f279bf7e4492", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "db4591a8-d1c6-4a91-8dfc-63e61cb4f10c", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "20a0dc46-a215-4705-8feb-91cee97fa04b", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2211eeb4-5951-4499-9510-9056b3948531", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4bb816b6-8e62-4385-b66c-69eb1d207d8a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "e6e8273c-7457-435f-b724-a6945cafa32d", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "Non" }, { "id": "397cc578-f060-4c94-9a97-d5f17a10c946", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "4ca407f4-01a9-466a-89ee-c7d772a0281e", "name": "11-04 ajout date", "commands": [{ "id": "d559ea98-b01e-4a2a-9ad7-f06f0fa13281", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "530dc648-3165-4259-8e00-89d4efc75107", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "e46b1614-d1a7-46b7-8cda-65e91f992f4a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ed5a47a8-52de-4e09-ab79-5ab1e0c61b4f", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "c4461f19-8291-47d6-847f-997f336d0ff4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "5b045d20-d931-4dd4-b964-7ca04d8097cf", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "17d7f533-fa44-4b8f-84cd-7b3b3e6c6994", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e5a9924f-367d-4785-b682-ab19d539eadc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "05bbec2c-4d98-4740-9fe5-b2911492a025", "comment": "ajouter champ perso date visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "75258f9a-89ea-4d19-b5f4-761f2e49b5cd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "b363676d-f96d-4c8c-9d9a-2a741711a2a5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "37503077-6792-4f3e-9894-1642ccfb235e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5568edbc-38d4-4a76-8d83-05ed8d648179", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "53aefc4a-0872-487a-a932-1e3c2ebaa90b", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "9c02e28d-6c5a-4ff6-af4a-3c6d6a454b56", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "81177ff7-ae55-43e5-a95c-9ca2a0291d3f", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "5d47f38b-5f62-437d-8ad3-c73e7357e538", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "7440e3ed-e913-4cce-a031-9e5559fdf663", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"date\"]", "targets": [], "value": "" }, { "id": "62afd31a-601e-4213-94d3-d9eed052fde9", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "6c7e1ca3-d695-4bb0-8785-50d97a4fb593", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "7dba6888-79f0-4444-a244-2206305b41e8", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "1b76e647-a701-4471-b200-001987b4eae6", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "cc373f6c-2342-471c-8315-8c49621ee401", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Date de ton anniversaire" }, { "id": "05fecd2c-6218-474a-b383-3900c9eb1979", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "a4ed51c4-3a12-4f66-b0d8-09c88f66b85d", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "530adb5f-66fd-4038-9ef8-2126ffb634df", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "6ce6b4c5-bb12-4e22-9325-04a660a773f1", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "44c2f0fe-d1cc-4f33-b644-4f55ca31d6de", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7caa0064-03b1-45cd-80f6-cbb0b7c755fb", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ce0687bb-6215-4d90-ab82-6d77bc6693ec", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "836f5cc8-01be-4b7e-b039-2d329d22cc17", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "1a14b1aa-fa31-4f85-a5a6-93358c7355f7", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "9a9721eb-08c9-4a89-ab05-eda0115857f4", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "3b5f558c-ff68-4ac7-9471-5ddc4ad0bf40", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "9b52ec9b-87ca-47d2-b92a-693aeb820109", "comment": "", "command": "store", "target": "01/01/2001", "targets": [], "value": "valeur_champ" }, { "id": "6063f31b-f54b-4f4c-bb1d-e803df2c9aa1", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "b715c150-74e8-4fba-a756-8e07af244b59", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "b9de57ef-15b3-46ed-8744-b176fb7ca48b", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "214c1c34-4aca-4ddd-862f-276cc3ebc26b", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "52a774ef-6986-4d80-894c-a810519d78d1", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f2971049-dfbe-4cd9-914b-d6203f028b8c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "7a283dd5-3d87-43eb-8bc1-c2358fdaede3", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "462418bd-fa22-460a-b1fb-f6675e4f297c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "4d424969-8f8a-4001-9abc-ae7516af5084", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "a78bd046-9c1f-4aca-ba5e-77c99194beb0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "9b946f83-f8e4-4dc2-8e73-52be568a64fa", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "be18d71a-95e8-4542-8ef2-ec4f0c2f1aeb", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d2bc9c25-3ffe-4c82-90fb-d325558911f7", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "19be208b-0675-4ec0-a2dd-c386c1a061dd", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "66513e6a-1ba5-4b22-bc31-662548b7c677", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9afcc078-606e-4d69-99ab-0b125e78bbe1", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "8f6f3960-beca-41eb-aa03-88105f8a9102", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "0bfd8ffd-df73-4f8a-a868-6b25170a7961", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "017cf0ab-a938-48e9-b080-2d5226840d27", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "e88b312c-dca0-452b-8722-f8493c0b1e4d", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c2ff8590-c000-4d24-935d-7a4cece4b563", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7857673a-eed6-4e97-9a60-f140f84ef380", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "21e1f4ab-5095-417f-9bb0-19ab910f41be", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "12c42e85-f578-4d6b-939c-d6c57b6655d9", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e", "name": "11-05 ajout date et heure", "commands": [{ "id": "de48dbd8-43c0-4e8b-b3b0-855cf374de6c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "b04e8f34-3df7-4fcc-9ae5-725338d80b3c", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ed1c2c8f-5336-42e8-9518-c8f808796d86", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "7a7f83ba-35ae-4d2a-92df-ecab730844b5", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "fa31f4f8-a42a-4a80-9f61-e3a1bf892f4b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "218f4d83-a1a4-4fbd-9f17-4c35d440c0f1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "7f023b1b-54a6-433e-8420-3417147b124f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a0755331-7d4d-4224-b388-42614bfd5a44", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "797fd14a-80e1-404e-8b20-0c497d153dad", "comment": "ajouter champ perso date et heure visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "facfe8d9-80f6-45b5-97f3-5f4750fb4963", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "eac9c5d8-87ba-465f-9748-d89ec263ed48", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ea21ff85-52f9-4a4c-8f2a-e31752c7fa1e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fd5582f3-5dd0-4af3-8a72-d308106a26df", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "057bef3e-4ea2-487c-9074-23e68e77c6f4", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "0e3a2d99-0573-49e8-b471-1f7ea8e5640a", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "3d89a52d-15a1-4dbe-ae4b-02dc2fafec20", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "0eb60375-5035-45aa-add7-2d724efd1a42", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8c90d36d-4f21-441f-b773-7568981e6db3", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"datetime\"]", "targets": [], "value": "" }, { "id": "76a3e6e6-1cdc-4727-84c8-493c563d9efa", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "9a5c35fe-c437-4daa-9df2-597bf8b8f710", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "5abc2d11-8810-407f-be12-440a9f323306", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "fa03a308-9ff8-4a90-b8e2-2c90f6fbef1d", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ_date" }, { "id": "74f86fe5-9d80-4386-a0fc-15389ce75b98", "comment": "", "command": "executeScript", "target": "return ${id_champ_date} + '_time'", "targets": [], "value": "id_champ_time" }, { "id": "8ba9a03a-494d-4108-8e2c-f4d50b506d39", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Date et heure de ton mariage" }, { "id": "1597bcb2-f918-4a77-b207-5bdf5ffecc92", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "62706b04-bec5-4f1b-b578-ce99af1f1c81", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "a3b00a56-f014-45e1-8064-2719c0092394", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "222bbc0a-e9ae-44e4-a2a8-3845c1275046", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "416fc05e-d296-4dc0-b91a-2947a9d38c8d", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f81e88b4-2d6e-4ac2-a0f6-9f80b96ccbf8", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "eae443a8-0e42-4592-8e0c-0a709df7a4c2", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "bd5d35f0-3d32-475c-a05a-ade0c73b93b7", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "1f047b49-ee3d-434d-a179-86349f07b64d", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "79f115d9-e5df-4e15-8288-4fb3ce9fc4e4", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "8967cdc5-2d17-4e9d-b4e8-ce660c645331", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "f7fd6fcd-06db-480f-9413-edca09ec888e", "comment": "", "command": "store", "target": "01/01/2001", "targets": [], "value": "valeur_champ_date" }, { "id": "5dc4d294-6c57-4112-982a-feb164835a1d", "comment": "", "command": "type", "target": "id=${id_champ_date}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ_date}" }, { "id": "0ca4883d-63a4-4dd8-8d1a-42b9b478b65a", "comment": "", "command": "store", "target": "10:10", "targets": [], "value": "valeur_champ_time" }, { "id": "57d659e7-486d-455e-aa05-eb03622c1dd2", "comment": "", "command": "type", "target": "id=${id_champ_time}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ_time}" }, { "id": "1cd2a056-3b62-4244-ba88-38e570072db1", "comment": "", "command": "executeScript", "target": "return ${valeur_champ_date} + \" à \" + ${valeur_champ_time}.replace(/:/, \"h\")", "targets": [], "value": "valeur_champ" }, { "id": "d472351c-5c39-4830-8878-3afa84644168", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "5ca14926-8b94-46e3-9eeb-db298208ccb8", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "060e0609-49fe-4446-b27a-08be82aacb2b", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "3af05f8f-3915-4ab3-a558-6609ed28c8c8", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0ad0a425-e968-4d7e-bf35-f12967749e4f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "18e1f823-e7b3-4e3a-8e0e-a5a03afdb0d8", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "179a5486-2acd-4a5e-9805-de28bfe81901", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "a300daff-929e-45f0-9192-e1ff1e4c97b1", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "eb29683b-b883-4fd9-84bb-ed860baf9d33", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "ec1313ad-4d34-488a-aa04-642afde9c277", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "d807f819-68c6-4f8a-94a3-8fb737f96d54", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "9b0b4958-0b1b-4573-a11e-22454f23c2da", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "86b1c059-215b-423b-b18c-c1c69821b2b1", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e0240c81-cf9f-47fc-add8-803cf01cf873", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "41164934-cba0-4ee6-ae56-39ded6b458c4", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "d7ced6de-b549-4a04-9c95-140be098c552", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "e5bd3630-8dda-4340-92da-dbbd0ff104fe", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "7709f5a6-4449-4f0e-a73b-534f1c6ce624", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "f74edc75-4568-402f-b91b-1e14778d4f2b", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "db49478d-e650-46a5-a0ce-e8c46cd6b6af", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "cc926034-deb6-48a3-83a7-8de21e60ec5d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "81653362-32c4-4ec3-8c28-e29088d1840e", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "984a553a-48d9-4a6c-b555-9f97dc374754", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "731de8ad-89b7-4242-ab2f-27310e42f6ff", "name": "11-06 ajout mois et année", "commands": [{ "id": "5ba13851-3d65-47af-9dd7-77dfc63a3708", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "cfae3fd2-3b51-40f9-a994-f037214af2a6", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "9d62b7ae-3c2a-43a2-8007-c23a35bfc46d", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "487aad09-3eb2-47f5-9bc7-47551fdf4960", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "c564be48-89ad-4c19-ad0d-095182dcbbb1", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "50780cc6-c0ad-4d45-b5de-3ad38cb00b5d", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e9da05ec-ba8f-43bf-991f-337135b754c4", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c696d27a-f356-4204-b7c9-0794ec946b68", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "279053f8-178c-4c1c-9e9b-f9b23f14da3c", "comment": "ajouter champ mois et année visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c9c04c72-eb8c-4079-a348-bae75e48aeef", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "7a6d9db3-4cf4-425e-9f30-f0abbade603a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "db9c3ef2-2d91-453e-a93f-e6c81f8fee60", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "dbb6ca0f-b036-4822-a948-f46d8f4438d2", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "68e7036c-7a49-40fb-8f02-c7c7cac3e05f", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "e5ba19f0-4e87-46aa-81a5-6181e5981765", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "27bd2e2e-3a30-4a4d-b7a8-1705a2354a97", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "22a38a40-6111-4c5b-84b1-468cee067c01", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d6d58230-d3bf-4098-a2b2-3031b0f7e664", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"month\"]", "targets": [], "value": "" }, { "id": "a662f57a-64d8-4bd4-946e-355b3490f603", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "339023b5-3662-4ff3-9956-04d7460ee29a", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "64207991-d552-4a5e-9cc5-0a3a6563df11", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "0e362d36-1887-4fc2-9a05-82fd3e28a13f", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "421638d3-d67f-4bcc-8247-26ec707d128d", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Année et mois de ton permis de conduire" }, { "id": "9a2894a9-baa7-4c9b-964b-638e54011728", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "6e14f3ce-d455-4dd3-8bd8-47741418649a", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "90606263-d73c-466f-a3c8-6033b9d20e6b", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "d990b139-32e9-4f89-8e3c-074fa20a7af1", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "83fc0fac-805e-4fda-b8df-ae58c570be48", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "51691f2d-76fe-42b3-842a-8da2c49e7780", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "b894e24b-87db-4c9f-b882-a99756d0b5b2", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "a73ee6c8-64ff-499a-946b-1f817bc2c6d7", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "906f4daa-7fe9-4906-b60c-f111161e8c42", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "eecf169e-d0a7-4601-bfb5-3a6659d821af", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "3c526a31-ffdd-4dfd-91fe-4bfe5afcbb9f", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "9621df99-e7b1-417c-90ca-1a555cab61da", "comment": "", "command": "store", "target": "10", "targets": [], "value": "mois" }, { "id": "8d6da958-a5a1-40a0-8596-8aa6eb31f883", "comment": "", "command": "store", "target": "1978", "targets": [], "value": "annee" }, { "id": "3d7271e3-db88-49e4-82a4-64980040b9fe", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [], "value": "${mois}" }, { "id": "c57ca521-400a-432c-96f1-8261c75fc855", "comment": "", "command": "sendKeys", "target": "id=${id_champ}", "targets": [], "value": "${KEY_TAB}" }, { "id": "cf7196e8-eafa-4bc9-a751-24917e9ee9d4", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [], "value": "${annee}" }, { "id": "52db6564-2558-4f50-a7a8-fc0eb1f5fe98", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6d42c708-beba-4c3c-9fa8-acdb30ee6532", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "038241b6-e90d-49cf-8cb9-4ed6a18955dd", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "693b60f1-5dc6-43aa-9797-56b58d51c7e4", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2b35dec9-9805-4fc0-842c-b4fd45eb5768", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "46b4edae-1544-4ed8-8659-38770b62156b", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "4168e214-d966-468b-b26e-10db46d47c64", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "4e390dff-fd4e-4401-8fa3-01da3f21b57d", "comment": "", "command": "executeScript", "target": "function toText(mois, annee){ let lesMois = [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]; var mois = Number(mois); var annee = Number(annee); if (mois > 12) { annee += Math.floor(mois / 12); mois = mois % 12; } if (mois == 0) { annee -= 1; mois = 12; } return lesMois[mois - 1] + \" \" + annee;}; return toText(${mois}, ${annee});", "targets": [], "value": "valeur_champ" }, { "id": "692d8264-3602-470c-a2d9-487a41d33b73", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "14db0c77-e8f0-4cf6-a014-e8d3da78168f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "7d66fe69-c255-4ade-9e86-812fa49cd205", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "c84e274b-f0e8-4ecd-ab5e-555c91a9f303", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "eff7fb61-bb49-49e1-9b45-6aaa82d6f41b", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "1a10e7c6-9912-4901-8a28-e45686809b97", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "a6f36f46-6f46-4ef6-8663-c0655ae2a111", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "bebf6045-1956-4f28-ac11-2a995d2a3cc3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "eccdde78-1aaf-4718-a88d-9204de1581e1", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "af3949de-d449-4ed2-9ab1-d9158f391563", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "0d9216cb-dd68-40f7-9a7a-8577aba6a01a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "ed2896ae-2b6c-4397-b29d-e723b2f2e3aa", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "556649d3-a86d-48e9-95e3-b929d5104be9", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "cb319359-b8f7-4012-bd25-30925c0aa331", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "8382a664-c285-4bcc-9aa3-0997df016cb8", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "3b021b2d-8c1f-4867-bbf5-742c87596744", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "ee2ad930-7a67-41d0-9723-fec221c087e3", "name": "11-07 ajout année", "commands": [{ "id": "67fe774e-b1d5-4193-9771-d68d4b4ae9dd", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "a041b0af-9914-40d7-b8d9-eb82257d93ab", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "0cf2f523-9833-4e21-9859-8b8790b32aed", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "3b53a16d-ddab-4d16-8d25-315dd3e94f8b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "30439d2a-f2c6-4f86-83bb-9850a96c189a", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "8ab4ffbe-806e-47b8-b67e-fa5b8a694c64", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "794ae355-cde3-46e6-b826-09077d736e8d", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ef1c0564-cd32-40cd-966e-6fbeaaba9deb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e7336ee3-3998-4ad1-9d89-acf296508fdf", "comment": "ajouter champ perso année visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f6d45718-54d9-4220-99e4-220b3bbedc3a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "50545ed6-7afe-44bc-a5df-51650d7155a0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "03579cb1-e659-4d0d-97e3-67da7d5804ec", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8ef9aee6-0424-4560-85da-258470221510", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "77fd94f6-b533-4b99-b01f-809918e5dd10", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "410c27f5-0057-4fd1-92cc-5464bb059c00", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "207e1d91-a82c-4ae2-a59e-468df4bdf8b1", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ed816044-1f4e-47ff-87ef-8ac83c505e1c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cffbe98c-d7c9-44e5-9fc0-96a9b6ea3b64", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"year\"]", "targets": [], "value": "" }, { "id": "13d8a19d-2cb6-4e92-9b40-3ee951b54171", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "66f9caab-c1d9-4523-bc1f-a3ed08efafef", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "70ce3062-82fa-46c7-866e-31baa8b0e212", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "7b58907c-721c-4e62-90f9-91d910a3db44", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "8c145f0d-2fce-4e58-8855-7227900b7411", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Année de ton départ en retraite" }, { "id": "5ce32677-13d5-4873-93f3-5b88ecfcc206", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "3436e362-9f59-49c4-8dbc-a63809d319e6", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "2591bbae-fc3d-4d66-856b-d91b16e46bd1", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "742f4887-dc00-448e-a616-010b62d90ec5", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "eeb208e4-1d8c-4e47-9b89-5f13fc1f3c63", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c4117bf3-ef98-48bb-a139-712c5a7fc93a", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "a553ccbb-9038-4f8f-9558-952d2253d6bd", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "d1f32162-6ed1-48b4-a632-5472f7d72d29", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "032a4d85-1fc0-42c5-a0b8-af7e6cafa2d8", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "6b9a94e1-46ea-4cad-af06-901c5016b9bf", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "74fa2b03-6616-4813-acaf-5c2ad3b425c1", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "7738560a-c239-42fb-a8d2-4f9c2f2cf070", "comment": "", "command": "store", "target": "2048", "targets": [], "value": "valeur_champ" }, { "id": "15dfd57b-f033-4ef2-9590-db27637e2a60", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "b30d2a09-7329-47bd-9be3-e7f9895837d9", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "7b3ac27b-52cc-4144-bba1-3acd11273cb5", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9ff6717c-d426-4fb7-a226-afc54563a9b4", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "6b1b3385-6796-4f1a-9dab-39a125acb6ab", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c7d9d8d6-7830-4121-938b-b1f8e7c0b278", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "64d12061-31a5-4871-afbe-ecea58bf1f44", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "63029982-0bb8-477e-8e67-af40c7712e05", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "3ec50296-c023-4de2-b5a0-e799fe3f41be", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "54bbb4af-1aa6-40c8-801d-f17b194c9b17", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "b6acb4ba-cc3c-4ffd-848e-ffb4052318ae", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "ed9b646b-5059-4ea6-852b-59c921e722af", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "c95136f2-dd5b-437c-98f0-3675e6c9f692", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "05e5b6e2-fb40-413d-83f8-5d4e848380cb", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7949aea0-8c68-4cc7-9892-1a2e832593a7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "eedca49b-2f7a-4ed2-8268-8fe0f65baa00", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "24990ff4-7e4b-4fb2-975f-d83812666092", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "3773232f-8fec-441a-b3c4-dacefd460309", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "a6553286-5d24-4738-9fb9-a947a3541ff6", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "def889f3-7730-4f38-b36a-6f6bb5a641f0", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e2c03625-bbcf-4005-8fa8-3ca5c729f70e", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f73cfb71-5332-4f4e-aafe-1eff74358f60", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "1652091d-ed4f-4cbe-a281-3db0e4d95647", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "bd13b846-783e-4a68-beb3-0e5071f5c735", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "a0a6c815-f9c9-49ae-ab27-4163b3938ca6", "name": "11-08 ajout fichier", "commands": [{ "id": "e5eac55d-c8b9-47eb-ade5-09a378ebb856", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "4b57e3e3-0d48-4af3-913f-a322df429cff", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "c3c89195-3d5c-4c17-a174-699ee33061f1", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5513f6db-92a3-46b5-89c9-60e9b25dd550", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "ca1794bd-89eb-4f80-9be6-aa9463d79550", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "d20ee97d-7718-42cf-a927-b3ba81389e11", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3bc67ec9-bd5e-4c8e-94ea-d1013fa40c1b", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c611fbb7-050c-4985-b710-a2028dd2e11a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6f1c4ae9-d79a-4b57-8f31-15d74acfef2b", "comment": "ajouter champ perso fichier visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1c4e31b6-b2ed-4896-b1f3-85ec8c9a9a7e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "1421c203-fc17-4a43-8efb-abb01e7d5081", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5d10b967-36d4-4e70-aee8-1f699ae21d67", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8e1af6e5-5071-4e78-ac3a-b4867e22928f", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "cdc6576d-ca22-42fd-bba3-bf4a1e6c3e1a", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "3e9272ed-87e1-4cd0-80cc-7b5da22e8081", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "9b4a2877-05d6-4100-b124-87755aef3ceb", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e964045b-668a-473e-b3a9-04eff79f8dc9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3950846e-73ad-413a-bb6b-7e9c7168485b", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"file\"]", "targets": [], "value": "" }, { "id": "8f9e630c-2c0a-492d-b233-9a0be7e2ca25", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "2e5e9644-d142-4960-98af-36dda1802e33", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "04fa3aa4-d540-4584-accb-98bb1dae2b90", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "f017e374-82da-4b64-8153-945db03e7359", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "1d552ca0-edbd-425b-a56a-b10266e7ac5a", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "52482efd-737a-4a13-a1c4-757ebd608b69", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "5659af5b-37cd-442b-a213-78c872dad2fe", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "9ff18eff-1c13-4ea6-a4f4-8340bac63504", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "f2a9cebf-c831-4f14-8b27-23a3bfea4e0b", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6a8a668d-5d54-4e84-9b20-40d7ecefbbec", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "0148f8e3-92cf-4b96-987c-4e642f3aa02a", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f9327c63-59af-4f52-9eca-8719bdf15fbf", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a39e7635-2171-4c90-aabb-83a443180e5f", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "a93a6423-cbda-4f1c-aa29-02d030d17b3f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "754252a6-f61e-4edf-9bb6-7eb478f19003", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "20b16aed-f1b6-485a-8fb8-78696e3806b2", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "2f686483-5e0d-48e7-af3e-f787ad015ca0", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "4973df5b-dc64-4809-ba65-7d8c22faecee", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "26c92914-52ab-4acc-bc37-1fbef0769259", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7e51c8a5-6bc2-47f0-b84c-a695018dbc3a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "e14acc88-8054-4eb4-935e-1f8683fcf6c4", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "d6b39102-daf5-44d0-b7fb-68f6382c5c44", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "e7d05a4c-d5f0-4a2a-8fe7-1e2922e56e5f", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "2d46ea2f-9a24-4e2b-a37f-a21a0cd6027c", "comment": "", "command": "assertElementPresent", "target": "xpath=//a[contains(@href,\"${nom_champ}\")]", "targets": [], "value": "" }, { "id": "e00e1fbf-4004-4485-ab32-ef83a18d8b1c", "comment": "ajouter le fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "378d3143-84bd-4fa7-925b-a124643cadb5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href,\"upload.php\")]", "targets": [ ["css=.action-upload span", "css:finder"], ["xpath=//p/a/span", "xpath:position"], ["xpath=//span[contains(.,'Ajouter un fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "2cea0c40-6ef3-4f56-a377-1fb5ad90b482", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "49052367-18cb-4892-b6e6-b9e31167b697", "comment": "", "command": "executeScript", "target": "let filename = document.querySelector(\"#f_file\"); filename.style.display=\"block\"; return;", "targets": [], "value": "" }, { "id": "5a8a2aac-28e9-4dd4-8a67-1132dc8334e2", "comment": "", "command": "store", "target": "cv.pdf", "targets": [], "value": "nom_fichier" }, { "id": "b6754a48-47ee-45eb-87f0-48ee7eb5da8d", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file[]", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/${nom_fichier}" }, { "id": "8cdb51b9-cdd1-48ec-8f26-55db74c95c52", "comment": "", "command": "click", "target": "name=upload", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='upload']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Envoyer')]", "xpath:innerText"] ], "value": "" }, { "id": "38340e71-946a-4d85-b087-383002fabe33", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "23ec576b-6f9d-4fb9-b442-c68e905b4d5b", "comment": "", "command": "assertElementPresent", "target": "xpath=//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "93049b09-bc28-4cc5-b3ae-ae9d812ecf32", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "ee02d990-5c2b-4d61-8b05-3ba6797e980c", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "60989224-a1dd-4421-9c78-4734e16ee21b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "b511ea69-1b0d-42fd-bf22-7c0d8df7dcd2", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "2403fada-60a6-4198-a794-a5cfbc67d8bc", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e1c29486-ab91-4c93-8a5c-77d0d0da3701", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e23499a2-95bc-46de-88d8-e8e096d634fa", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "2daf1f02-fb02-41a6-8c74-205bb3e3541a", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "62af40bd-9eaf-4768-b28a-562bdb36ed83", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "202acb33-3a09-4a2b-99c4-b9424f17c1c2", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "459ceac8-2899-42c4-be5d-3fabca32b293", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "6af9f8b0-d3a6-4c0c-b8fc-5709cdf8f69e", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e37cbd12-aa60-45ab-87ec-a05b8c8ccfa1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "b64b728e-0f2c-46a8-b547-99846852ecab", "comment": "", "command": "assertElementPresent", "target": "xpath=//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "30393c71-c1b7-4c2c-a093-c30c4125cc3b", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "4feea72e-c577-48ea-85c9-eaf585c73125", "name": "11-08a ajout fichier avec modification", "commands": [{ "id": "f4f0beb6-5fb1-4cd8-906d-ad2162d3c1e5", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "a616d8c9-00f1-46b6-a217-a90fae040ded", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "1b91a401-7686-41b8-bad8-e97faceb0d14", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "0e056c0b-4b27-4b7e-a539-ec72e7a34f5b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "9f361afb-cfd5-4c84-905e-933ee104b713", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3d50b006-4df4-48c3-8950-1cf5615d73e3", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "4bc999c3-7ac4-4625-8be8-0126675bc7a7", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "28b8ca55-8850-46cb-9f6d-f79851958343", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "17b9f6ff-ad97-469c-b0f7-69b2e7c8d423", "comment": "ajouter champ perso fichier modifiable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c6ca5760-8a23-46d1-a0de-1837128af013", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "6df36087-6ac8-4311-bb5b-3e1ad8a77620", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5cc6a925-cbfe-4cf5-b3f3-9724a27dc5c0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "301ce49c-228a-48d3-bb07-b212506ffac8", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "36cfe541-2840-4986-828d-5c8f3b4ce751", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "e9a6bd59-797a-453c-97ba-bfc8e8e4ec25", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "435f3f67-9e5f-4872-aae6-a9e3046d96f0", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e28b9dfa-ad41-40bf-8a16-c2cf4a965763", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "3234c107-8246-4c67-b7f8-72cd28dbe8a6", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"file\"]", "targets": [], "value": "" }, { "id": "0bbe8910-ae38-4299-b6f7-7297e3ee81ec", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "f85887df-5e92-4195-a02d-a0d47bd781aa", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "bf4ffcd2-5f76-4964-8a1d-8a9e1c40fd00", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "763959b5-4b81-472a-9d08-f56f01905b58", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "57a268dd-5252-4da3-acfa-518e7a4a3898", "comment": "", "command": "check", "target": "id=f_user_access_level_2", "targets": [], "value": "" }, { "id": "c835d4d2-e26a-4b00-8c4a-12541ef50128", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "c1aa6fd8-8b64-42b3-a7de-a1ee290d88d9", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "b5811ce8-410a-4787-8b28-d9bdba96f9d5", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "09068d49-0dca-4add-bfc3-5d2ac4edbd72", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3ecdc154-dc49-4828-b2ba-6f2588b4e168", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "9e073b0c-717d-4be2-8fd4-0e7ce53303bc", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "95959c6f-7231-4af1-bcb0-8926c5663c97", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "8da05d0f-584d-4caa-9bd1-9274bd3aa39c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "ca3e1e3e-0367-4314-870b-23f4daa07d91", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "a0441190-4a73-428f-b662-b12a9a7f8294", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "049c3c31-7767-40ec-a83c-2c29f9eb045f", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "3dec94fe-c40d-49c5-bd33-4ba53cd14167", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "8914ca49-4f3f-4994-bcdb-034ccdad589b", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "4988dfd1-1e42-47d2-b60c-49d4c49478f8", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "33c77d7a-8dc6-404a-8c24-fa050b9c42ad", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "a14f7fae-c7f2-44d8-a60a-34cb80a96b98", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "dbbca165-848e-412e-b658-b74c45126e97", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "2591c215-f12f-45c2-898d-385489aac4a4", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "f0862e47-0b3d-4f19-baf7-6aaa954916ae", "comment": "", "command": "assertElementPresent", "target": "xpath=//a[contains(@href,\"${nom_champ}\")]", "targets": [], "value": "" }, { "id": "c31c7f18-a4f0-4897-9806-78e581259d87", "comment": "ajouter le fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7c3c4222-c0bd-48e4-8ae8-3911d2cc6505", "comment": "", "command": "click", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//a[contains(@href,\"upload.php\")]", "targets": [ ["css=.action-upload span", "css:finder"], ["xpath=//p/a/span", "xpath:position"], ["xpath=//span[contains(.,'Ajouter un fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "e1403ab4-56d7-447a-a523-c82c598ab03b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "c92f25ca-5602-4365-a22d-48526fe9e2ec", "comment": "", "command": "executeScript", "target": "let filename = document.querySelector(\"#f_file\"); filename.style.display=\"block\"; return;", "targets": [], "value": "" }, { "id": "955ec4b7-281b-4832-9970-2e45cf6eafce", "comment": "", "command": "store", "target": "cv.pdf", "targets": [], "value": "nom_fichier" }, { "id": "1d947297-511d-44e6-93db-cb148393a3dd", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file[]", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/${nom_fichier}" }, { "id": "167961df-f148-4ea7-9423-a04b4e51e453", "comment": "", "command": "click", "target": "name=upload", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='upload']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Envoyer')]", "xpath:innerText"] ], "value": "" }, { "id": "8337866d-9a0a-4df1-b596-1cc906861a11", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "3da44425-0f21-41b0-971a-67886ab7e6ac", "comment": "", "command": "assertElementPresent", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "6f94cc77-e070-4d71-b27b-719fa88e79da", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "cd1263c0-ed41-4dd8-9f0b-0192703b17f8", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "3f7217b0-bd34-4f79-a84b-c2312cfd6e28", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d3540af8-5c9d-4c68-bbd6-5be0243b9871", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "283a5a7f-d43c-4036-a616-3323c1672207", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "0854a433-14bc-4c22-a64d-2f24df4ac3cf", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "d745796d-7a53-4cbd-adff-5251b37adc76", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6b55016c-e05b-4628-b0b3-dd9de6a91257", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "3e496484-8ad5-468c-a7c0-9f2ae6782fc1", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "725b7752-ff60-47ef-903f-4b9e228d2285", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "99c4b1fc-b1a4-4f82-b16e-4ee354e320e6", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2f563706-8d91-4509-b339-e381fec06a95", "comment": "vérifier présence fichier et le modifier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7e93c401-4bb5-44ce-9aac-ae3c8286962d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "0ed19efe-2655-477c-9439-dba045bf893f", "comment": "", "command": "assertElementPresent", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "94673fa2-4ff1-4c15-8d4e-92fec806e752", "comment": "supprimer le fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1c95b1ab-b719-4b04-8c88-45b8577eabdf", "comment": "", "command": "click", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//a[contains(@href, \"delete.php\") and contains(@href, \"${nom_fichier}\")]", "targets": [ ["css=.icn-btn:nth-child(2) > span", "css:finder"], ["xpath=//a[2]/span", "xpath:position"] ], "value": "" }, { "id": "d3a97b87-2d74-4293-b2d6-6934cd1511d8", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "1a0caa4c-c3c8-4601-affa-952920e3b288", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "f284922a-5948-4161-8fbd-fde0cf293aee", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "87797f9c-eae8-483e-853e-efe311ed1d07", "comment": "", "command": "assertElementNotPresent", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "b3d6e67f-618c-4786-a1f0-afab558fb1c6", "comment": "ajouter un autre fichier", "command": "", "target": "", "targets": [], "value": "" }, { "id": "13f9e704-9979-471d-b22c-015035798fdb", "comment": "", "command": "click", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//a[contains(@href,\"upload.php\")]", "targets": [ ["css=.action-upload span", "css:finder"], ["xpath=//p/a/span", "xpath:position"], ["xpath=//span[contains(.,'Ajouter un fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "08c50858-04dd-4bd4-a38f-451ecf5d5b82", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "113dce0f-d17d-4e8a-b379-386fd6510633", "comment": "", "command": "executeScript", "target": "let filename = document.querySelector(\"#f_file\"); filename.style.display=\"block\"; return;", "targets": [], "value": "" }, { "id": "29ecc984-6a98-48ac-88d8-b2ebdc0a6511", "comment": "", "command": "store", "target": "cv2.pdf", "targets": [], "value": "nom_fichier" }, { "id": "687881bb-ef55-49b6-b959-3e093f399151", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file[]", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/${nom_fichier}" }, { "id": "80f68cce-ce61-4e9f-8c7a-97f06d018c03", "comment": "", "command": "click", "target": "name=upload", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='upload']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Envoyer')]", "xpath:innerText"] ], "value": "" }, { "id": "121f735b-9039-4c38-8f18-58ba7e10b699", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "053ff43d-d156-4935-a536-7d7e8aa45833", "comment": "", "command": "assertElementPresent", "target": "xpath=(//dt[text()=\"${libelle_champ}\"]/following-sibling::dd)[1]//figcaption/a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "b5fed581-073c-4d5b-8f34-28229eaed10b", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "34ba9dd6-5286-4f13-8258-f3250cc09186", "name": "11-09 ajout mot de passe", "commands": [{ "id": "d356f1f9-f330-4fd6-acfc-bb8f16c54f40", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "22f4248c-bcd9-4227-a9f5-ed259c863e8c", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "8faf559e-ab9a-4348-bb4d-26f2fc97eb2c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "31f96837-73e1-4167-82f1-f9b35c91ad4c", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "f4f51b98-6a66-4402-aa9f-27a4ffb6d1e9", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "41a2e22d-2a19-4ecf-843c-e768c0574457", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "aaea17df-8e1e-4b7e-88a7-f7c888169420", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "56d56f8e-a51c-4d93-b5f6-064009664474", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "29850c33-055d-4a23-81d4-5de0f452100b", "comment": "ajouter champ perso mot de passe visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0e7fa56c-c877-48fc-9d8a-098f3160e568", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "87b0bd22-09fb-4e02-b0f7-323fee154b05", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "81a32b5a-8dad-404b-9982-90a4a98f2863", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "78a30820-3c3c-4eea-91cb-08efc862eeca", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "95309f6f-4695-4eb0-96b0-15d27458da5b", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "c6fa13de-a57b-4928-8806-eb7afd96dbd6", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "43e0b02a-d381-4bcb-89fc-3100ca6f95eb", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "2e2037fa-a53e-4d49-9011-fad17b32564d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ce0c020a-4bc8-4e92-8f2d-6538e4427b68", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"password\"]", "targets": [], "value": "" }, { "id": "d4da8e93-8766-48af-bac3-2c413345c6a6", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "ba55e0ba-1572-4f6e-aaf6-8ea4c3281b47", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "911846c8-3041-4893-b060-ae5705a4a530", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "f2353c8d-bee6-4b0e-806e-255b2d797a8a", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "3b6f9799-1a42-4a8f-b198-c19e6a1fd6f1", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Mot de passe secret" }, { "id": "cca9d14d-bd59-4924-87ab-acca4cc3ec31", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "b2503002-0e3a-4506-a54f-234acf1e08cd", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "3a958734-f5a9-44ee-a1ab-cd49a90c7d70", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "83a11066-8727-4653-bbd4-a79167a5ba34", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "1f2b427f-8761-4db3-b0d4-c368c5bd609d", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1b29d8fa-7605-486a-94c5-39b6c224ce3c", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "a2b916c9-e7ce-49e5-8ba9-013301495f90", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "7544a4af-2435-4853-8ff7-99744f14b8aa", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "4da78f35-c5c5-4575-a0c4-2cab94f26338", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "ca7602e8-7f80-4946-8d6e-20b3070b246f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "12b0b5fe-6e15-4685-bede-6f11016da12a", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "25b5f878-1407-4e66-8204-83d00e7169e0", "comment": "", "command": "store", "target": "}$&cTKe}is7*G5V", "targets": [], "value": "valeur_champ" }, { "id": "953b9dd7-a769-4bbb-9330-05f2fcc3341b", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "778d0de0-a839-442b-858b-eb248e5be927", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "0bcfc375-4ec9-417e-84ea-068b3bdae58e", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "f7a563e8-8989-4ed5-988c-c6cf9ff14280", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "73b90273-ef78-4437-90a1-e89a1579ec73", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "54872fd2-9331-4c95-bd34-d302ee000aa9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "084dacb3-81c7-42a7-8b22-2aea750c63f1", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "389ce4a1-3cb5-4a6c-9b18-839be2847c9a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "1c917456-b6c3-45cf-9d99-28df696a4650", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "be01e7e5-5298-45e9-af5c-db44390536df", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "*****" }, { "id": "83405663-a6cc-45f9-a9e8-2577653a9f14", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "d6750423-9c1d-4e32-97fe-ed5b3745e7ae", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "d1702c06-9550-4363-b595-aa9533283daa", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "b67eb680-7d26-46d0-bbae-918636063286", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "893cfbe1-afb1-48b0-81fd-4707e221baec", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "a44bffc5-a83b-4734-a097-3bfd9fb32fa1", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "d5754264-b37c-4dff-873a-0af079ae2383", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "0e8d5275-29f7-41d1-b68d-7f6d406fd886", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "34682f38-dd10-41e0-a87c-48f7d45b626c", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "c5f9403f-59fc-4ac5-af9d-8cb64fedaebb", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "0f4385bb-c4d6-4ef8-bade-33646c7852be", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "86576c5f-ccf4-4a0b-b955-bcf6bd58eac2", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9bd16f53-3f15-42a9-8625-4d62a6b13346", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "19a1fc79-fc4d-4532-8d08-68f01756fa49", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "3848123f-7590-4139-8a26-111c794c4af5", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "*****" }, { "id": "dc965691-ec01-4ecd-8246-8dca7581dac8", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "950a6823-ce21-4ddc-a5f8-75902d8d59a0", "name": "11-10 ajout nombre", "commands": [{ "id": "9f8dcc01-b6b1-4c05-bd36-6ce7dbe13b64", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "8f9c8ff7-1427-4f85-ba81-8bd7f7726c34", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "4eb2af40-120e-4350-a85a-169cd8bdffd5", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "cda1f16b-10c3-4594-a64d-96d1ad74505b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "22a413cf-6f8b-4d0c-b88b-5c1c5e86021d", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a99cd245-c4a6-49d0-a5d4-e13fbbd7ac3f", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "28e3a933-bf2e-46ca-8cb5-6bff127eae4f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "f3e236ad-7cde-43cf-a1f6-88dd4d047b21", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9f495834-3118-420a-9b5f-613a2e117619", "comment": "ajouter champ perso nombre visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "cc25be87-dd39-488b-9daf-c3a1c9a6f626", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "4b4247e6-e5f8-4b92-a010-0db10a6605c8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "11a0033a-cb9f-4d63-baf9-f9389e50dff3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "87b05ba6-9184-4320-86a1-055fb18dca23", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "d05b2abb-88e9-4d1a-9fb5-681c06233f13", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "f719773e-114f-49d9-94cc-785da7496fa3", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "88027eed-d536-4cec-8dd1-c8d6f82d69f9", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ec732966-1662-4ea1-a5db-def6090474ee", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "4f1bdf0d-c09c-46a8-9448-e0212a676649", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"number\"]", "targets": [], "value": "" }, { "id": "44122256-6a3c-46bf-9f7c-6cfc47f5a52d", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "cfd920cd-5807-450e-8e99-5526aeafa2c2", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "cd0b2efc-19ff-4005-9ad6-6dfc15fada4d", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "f641952f-8eb1-4183-97e0-ed4cd9946203", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "65b72616-5ea7-4917-b3c4-a2b2b1379683", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Dis-nous ton âge" }, { "id": "f4009af5-77e2-4e1d-b09e-15f6563f01b4", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "8ed35219-73ee-4b90-832b-ea02028369ed", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "4b2361eb-e1b6-4177-8bb7-4c2bf7ede35a", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "02a890dc-8a4d-42bc-89ae-540a41aca28f", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "8f2a13b5-d7ee-485a-811e-ef1e9b93d2f6", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "92b62468-7913-46c4-8877-b6e104dfaac8", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "c30fb792-cdfe-4fb6-880d-ee602ab54292", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "7ed42d05-ea92-4dbc-a254-2c6b3f5f661c", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "6f6a418a-653d-4526-bb8a-cccc7de275b3", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "59ee5f55-d268-4e9d-81a1-fec17800146e", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "24ddea5c-75b9-4002-a34c-2832a944f75d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "86a757de-be22-4b44-b0d0-3850a8a7db30", "comment": "", "command": "store", "target": "77", "targets": [], "value": "valeur_champ" }, { "id": "69cbcce8-2eef-4fee-a4be-6841cb5a32f7", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "5567cd42-63e5-446d-89cf-4e38593d406e", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "5e724aaf-6db4-442a-a390-583489c467ad", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "4359f002-ba4a-4d5a-8f0c-06f691e1e8a5", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "423b7433-8068-40ce-8527-a96c48ef21eb", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0bf1be5c-d947-4aa5-985a-f6d85190cf35", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "59c93f94-223c-4f7b-b808-29301036aea9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "1e8ec3e4-a29e-4b21-bff9-8409a8f3a370", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "5139e793-287d-45f9-a23e-eb7f65ae3a63", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "9f48774b-6873-47cf-91b8-48dba3a35248", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "25a1c0fd-1d21-452b-bfaf-d5cdaf75bb60", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "dc993ad3-d850-4da8-9a33-d750ac431637", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "dc40b9f3-bebd-4985-92cf-71b4b79caf38", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "c52a9320-284f-4c57-b4bd-20e2d88ca301", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "0e9c6d3d-42ba-48b3-965e-2ff9dceb7aa7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "1e241a3f-1294-46ee-ac7f-170c2ec467bf", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "94f048c9-f46b-4080-9449-aafb93c3c802", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "67da07a9-d11d-4b72-8cd2-93e0f5a2eb99", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "f368efa7-7609-4c9e-8bf1-9ab34d9d1e61", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "831b6b1d-cd3d-4930-9ef4-d4a2c34f7798", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "9a4edda0-f560-4ff6-8bb5-5315cb37d028", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "887d6e6a-bfd1-438b-aa89-ac05cc7cb24f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "98b8790d-1d98-49a7-8444-d2166c8d98c8", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "3296fb10-2e42-4e91-b38b-fc223c9930b8", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "f3d16774-e224-4813-8a5a-f9dc795ba159", "name": "11-11 ajout nombre à virgule", "commands": [{ "id": "49aaf1a9-3b8f-4464-8ec0-4161dad10988", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "f50b64f2-e63f-4609-849f-d76f18677db5", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ccb13241-6031-4fe7-a256-c3f86393b2ed", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "b1549fd0-3f33-4368-8647-d816626eeadd", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a6d706bd-d812-414b-bc3e-e50eba3570a3", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "27e77e24-8ecc-47d2-8f77-f97cd7313ffd", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "5ac378c7-9cad-4a40-b16d-8f19c0aef678", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "136bc2fc-153c-4f72-818b-0c8d54cd9639", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "7ef24c41-b615-4c1c-9423-11220cd5d318", "comment": "ajouter champ perso nombre à virgule visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f839ddf2-441d-47c4-9f03-15524a88f0e1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "b8126389-3f49-43a0-802c-aae23683f4b6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fa46c277-19e1-40c2-8c86-09849c3ef2e5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "6afce4ef-993f-4145-a95a-f4e04fbbf4ca", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "dd013bc1-206d-462e-a116-5c65b1e5918c", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "0ffa188a-9008-40fd-8650-7a39906d92b1", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "5cb1e648-bf63-4984-8eca-42a7a4d237e3", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "457f3475-da56-466a-9adb-cecdcca47662", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "43c235b6-ad98-48be-8eb9-5723dd0b6593", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"decimal\"]", "targets": [], "value": "" }, { "id": "58acc5d5-139b-4cd2-a5c4-cfa0b9ffcd9d", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "e67a7ce7-badf-4de8-bd3c-3f22eb0ecd06", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "f748a4af-fa76-43e9-a956-71787e118692", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "df227b5f-f689-42c5-8423-e58d5a41674b", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "93f38393-687c-4fe3-af9d-1ca6df4f7adc", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Donne-nous tes sous" }, { "id": "c61a8f8b-e66c-4c0b-9f07-bc771a531e08", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "bef5fc9a-b273-440f-86ab-060432aa1280", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "3fc7fbc1-f0c5-4d4a-b821-d8491fab1a49", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "f417c1aa-ba42-4763-8ecf-96d7b9892d1f", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "d4598dab-ddd0-415e-95e2-8e563a9616be", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "04bedd3d-0212-4351-a38f-94485094b212", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "94750880-a2d1-4d84-af27-60d01d7cc938", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "5507f3d8-fe4f-495f-b93a-3f6e7deb3e41", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a6c5a126-5d2d-4ec8-a59d-2392c98c3240", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "2fa2da14-d498-4d76-9697-f18110b9898a", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "e7bfbea4-73ed-423f-be49-a393355bbb5b", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "2ce2a183-6e7e-4a79-ae25-b4111d8616c9", "comment": "", "command": "store", "target": "1234.55", "targets": [], "value": "valeur_champ" }, { "id": "023574c6-3b45-46b3-b7c2-934f340e27f0", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "5f70dd5b-d756-4a8b-9939-1e9c8c68e834", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "dbe83b7a-233a-4f40-8ac5-a0be72b48b6e", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "f03e38e2-ac6b-4c77-a91b-8ab6da577647", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "46892eee-2db0-4b0e-b467-e95a3483ca2e", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bf408a15-46d6-46f1-8e73-8547dfebd162", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "03e73e2b-36a3-4112-9361-c15177403411", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "0388216c-fb44-4f97-aa12-cf169feae3c0", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "95ce3773-6592-4ca7-aa11-f2009cf9578f", "comment": "", "command": "executeScript", "target": "return ${valeur_champ}.replace(/\\./, \",\")", "targets": [], "value": "valeur_champ" }, { "id": "9e59f9e2-9cbb-4fa2-ad45-83ec56c4a9c9", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "4ad93762-6e71-45b1-aba0-525339d586a4", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "dfc35487-1a93-4e42-926b-c563135dd69f", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "0e01a979-2adb-4a69-9d22-7c45db024bef", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "f28b8f9d-85d6-4da9-b864-d6853d4cd6ad", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "1600d7e6-286b-49ee-806e-bce8aad45cab", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "2882ab2c-a6e9-43d8-a487-26eb9b26c511", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "b9c8fbf1-0409-4ac0-aff8-cdb96029c76b", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "a2532376-4723-4993-a4b1-93f722e01147", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "e4222980-0d52-45eb-8706-fe3a5a83385d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "25f73471-dd4d-4aa8-9d51-336dcc4ecb97", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "e8abad1b-82be-4798-a7cf-59451e9b8f85", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a07318cc-9358-4f4b-9522-87f3caba14b4", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "986ef5ce-53dd-414e-b15a-874f0a60fe12", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "3e9c67a3-39df-4b2b-9363-116d98bfb8da", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "0833aed2-80f6-4196-8fa9-4756cc9514b1", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "2949f623-c0f5-47b8-beb0-38a9d3e42a8c", "name": "11-12 ajout téléphone", "commands": [{ "id": "157afc84-494b-4e4c-a3fe-797e53df14d4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "ac262ef1-fa93-4664-8eee-0459ed50131c", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "9f94a2b8-e7a0-40f6-a8d6-4041a493148c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "bc3ba9e3-1d89-480c-b3d6-f95f6ca07afc", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "4e65e8c1-921f-4498-a05a-71dadd896150", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "398e8b02-8edd-4aa6-9e3d-b617224a536a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "8e5aa939-227a-4979-a979-6012bd4273c8", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "737dc21c-f9ca-4bed-aef7-dfc95588d21c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "affb3c74-6707-4fdb-9c21-1ee870908fa8", "comment": "ajouter champ perso téléphone visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b100e984-a955-4f08-ae54-b90e98b65d24", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "b31f56cc-1e50-4e3e-ac13-74007491616a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "d94bcca3-afa3-47b0-9098-dcfe4c08233b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4c0b01fb-b9e0-4b3a-874d-9f3286901bd2", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "f59d5e50-e020-4d89-9a7e-125e6a0d8511", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "70229130-d23b-48f9-bf68-ef4080d51bbb", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "7b550dd9-40b8-460f-af27-38b5ae359017", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c09b16b4-e16e-4058-b3b8-bebbbb0f1100", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "832e22d4-b72d-4bd9-aa16-d772c68c7701", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"tel\"]", "targets": [], "value": "" }, { "id": "bbe54fe0-b75d-48c9-be5b-7e8d21706d22", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "4e615727-1127-41c6-ba34-42f15ac8cf87", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "9643f2b0-205e-4d90-a7c2-91df315c35de", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "a03dcb8c-9216-427f-91d7-8a70813e628c", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "3565b99b-afea-414c-b820-a0d13960c13d", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Ton numéro secret" }, { "id": "2e1cf914-7cc4-4a39-9c1e-a27738ef4d5c", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "22e1e5f8-69d4-46be-a494-404319feff41", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "0e1ee810-d30c-4e6d-bb11-7fc6d408d2a4", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "5bde892f-8a88-4a42-bc43-6e3926682ed4", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "39cbf154-75bf-4765-b6c0-fd150679684f", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e6c18fc6-11e1-4404-84c6-54c5728139ea", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "0aacc732-4d13-4d0f-9a6a-abd13338c6d1", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "0ae6f995-3447-44f6-a244-bb9c272a49a4", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "b46ec136-52e9-456b-9331-5019dea59930", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "09faf8c0-6e0a-4da8-afec-2119444944ed", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "e532717c-ca7e-4e7b-a4a8-1056c514b797", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "7c2a5126-6aef-41dd-8766-a717d220554c", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "valeur_champ" }, { "id": "5f98c201-c6b6-4572-b04b-b72cbd258795", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "b6da562b-03a0-4846-88bd-1bf356fedfb7", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "9f214d95-496c-4724-b02e-336f4b8d4e13", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "76548cbc-e5dc-4a14-b42d-b294165c6743", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "87652e45-e6ee-492d-b363-3f49b6210c4f", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "db68c9bd-7100-48ad-b178-cd99f1ae6c66", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "ffa3d741-24da-4f96-81e7-4cf26f717d59", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "5288ef1d-712a-4541-b1c1-2112e0871083", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "01edc872-c19f-4b23-9af4-58194e892a3c", "comment": "", "command": "storeText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd/a", "targets": [], "value": "numero_affiche" }, { "id": "2be2e180-d37d-4e0b-83c5-7038ded0030b", "comment": "", "command": "executeScript", "target": "return ${numero_affiche}.replace(/\\s/g, \"\")", "targets": [], "value": "numero_tel" }, { "id": "0628c887-b5df-4577-9193-3503a8b384e0", "comment": "", "command": "assert", "target": "numero_tel", "targets": [], "value": "${valeur_champ}" }, { "id": "b27ae94e-c628-4d5a-b6a1-f63146b082ea", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "dde3738a-f8a6-4918-be6f-ffe3d1676a0e", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "fdc57069-f2bc-402b-88ea-73fc850d9a78", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "0011ff34-4ce4-402c-bbc4-c0ef42135c54", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "ad1c968f-5df6-4977-9dfe-05743c74dfed", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "13cf1501-a560-4baa-b2c0-4e6fef90ca4c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "300afda9-e889-4763-80ff-d26bc7c8c39a", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "70834adf-05f7-4d22-8358-d3d308e1dad2", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "7c8f90d3-6ca8-40ac-9bf2-6b46ef92045c", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "da9939ee-8a18-4035-9430-be62e2124d99", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "a875bea6-87d9-4993-9853-1ca4e8f93b47", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3a7a3084-382d-40b9-acdc-46a44eb00d8a", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7d84a62e-7647-407b-b6ac-243855b6cf15", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "dffac920-e473-435d-876e-a781a17214d1", "comment": "", "command": "storeText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd/a", "targets": [], "value": "numero_affiche" }, { "id": "d582eed3-f9e6-4e35-9b1c-86f337596693", "comment": "", "command": "executeScript", "target": "return ${numero_affiche}.replace(/\\s/g, \"\")", "targets": [], "value": "numero_tel" }, { "id": "14b56ff1-7315-4ed0-94b0-5daebada8cbd", "comment": "", "command": "assert", "target": "numero_tel", "targets": [], "value": "${valeur_champ}" }, { "id": "0459e34c-c3c1-46cd-b823-d0acf9182b85", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "01eaf4aa-1799-4407-83c4-ae2ed011ac63", "name": "11-13 ajout sélecteur choix unique", "commands": [{ "id": "58e25be1-e13c-48c4-ab29-60185c46b6ba", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "5bff9819-bf75-4e1d-937f-0ae18952cb18", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "8875bc9e-91d1-4606-ac8c-7174f109ad1f", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "33cd7e23-a82f-4e22-ae19-c8f2285863c0", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "6b0db4e5-d830-4b10-8880-68fecd4952b0", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6de2f54c-ed8d-47f6-b46e-e72b0c4d8297", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "ba3365ac-640c-45f8-8fc7-eb75d3ff4d74", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "f052b675-4a56-4826-a4ec-c89e03b86914", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cdb3b899-ff0c-410c-9bd6-239f98e75f35", "comment": "ajouter sélecteur choix unique visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "acc2bf41-f449-44e0-b3b6-3021ea454599", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "8d3c9de7-c0db-48ce-ab43-d2a38f85f368", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "b195feab-878e-4735-9bc7-debdce02f2c1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8e96c6c0-f09a-48a3-9809-9f9208ec161d", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "72cb3f83-60d5-437b-82bf-fd3924b43d34", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "8d25af19-ecad-47b4-bd1a-a3240d7654f3", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "e58be736-f377-4b8b-a85c-508cec3c098c", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "f7c5d2ad-27fc-4e0d-84f7-2ad94fcf777a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9cc772fb-434d-4f58-9404-220898e494d4", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"select\"]", "targets": [], "value": "" }, { "id": "73ef7db2-3afe-42cb-8c06-c0a07d301694", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "9e9b778e-714d-4752-94cc-c70580c3393c", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "036bb0e8-face-4503-9a65-a00ec8b1a111", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "efed6755-8805-4949-a915-9eff0707cf2d", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "5c6f5293-7513-4591-86ed-e1fa6deb2967", "comment": "", "command": "store", "target": "Indigo", "targets": [], "value": "couleur_defaut" }, { "id": "24bd66ec-2b1e-4bad-a9c8-78f5144254b7", "comment": "", "command": "type", "target": "id=f_default_value", "targets": [], "value": "${couleur_defaut}" }, { "id": "c7d3398c-7aae-4f89-b50e-24807e77f432", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indiquez votre couleur détestée" }, { "id": "0f526039-433f-404b-8748-3dcb54cfafb0", "comment": "", "command": "store", "target": "Indigo", "targets": [], "value": "couleur_1" }, { "id": "8206f60e-a7f2-4393-b333-d7fe24170b98", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[1]/input", "targets": [], "value": "${couleur_1}" }, { "id": "dc6c5676-409e-4e63-ba81-0741fd63e774", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "7a9d6920-9c9b-450c-994a-a999f3b60d7c", "comment": "", "command": "store", "target": "Vert émeraude", "targets": [], "value": "couleur_2" }, { "id": "a39fecfe-d8b2-4fe8-b417-a09e583ecee7", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[2]/input", "targets": [], "value": "${couleur_2}" }, { "id": "ba400c93-45a3-4036-b57b-37a7290e72fd", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "371994f2-e291-4523-bfc1-d2cc98c197e8", "comment": "", "command": "store", "target": "Bleu azur", "targets": [], "value": "couleur_3" }, { "id": "23318976-252a-45ca-829e-2ebbba242e23", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[3]/input", "targets": [], "value": "${couleur_3}" }, { "id": "ec19b5db-015a-4c7f-b26d-917f8b173b38", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "e8ea8e5c-4111-4753-9986-76a7e0a2304b", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "d2adf040-5075-426b-8777-ee1475309404", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "a35fa7d8-4e74-4e7b-b689-6869a05fde6b", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "b6526744-c051-4c08-822a-5e464e7c4e51", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "eb434d49-9263-4003-b03c-42f8f32a6f15", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "3812d712-406a-4a4f-9ed2-888d5bcdf225", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "574c1c42-29e0-4359-9dbf-8572d8308cac", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "07847841-34b1-468a-97bd-63ceaa4c209a", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "d0d160e6-783d-43a7-bd0e-fe1c27599b2f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "b0df01e0-1fe3-4cda-a63d-a49a4b5a9df6", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "37234b80-087b-4ca3-8ea5-1810218ede2b", "comment": "", "command": "click", "target": "xpath=//select[@id=\"${id_champ}\"]/option[@value=\"${couleur_2}\"]", "targets": [], "value": "" }, { "id": "ac83bf0f-6702-47e7-9975-345bb629f17a", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "7cac1f8f-87ba-40b7-a6de-ceb151b7ecb0", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "cc1f55aa-ee64-4d86-a801-b63ae7963664", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "d9acd142-9a72-4240-9982-788ddec4fdf7", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2faa1255-8a3e-4200-a4d3-11bb3a331d64", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "79614c94-41fe-4461-9585-90d25807413f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "dc6721f9-f538-4064-b72b-8929600c0142", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "cc33d10d-c9f4-43a8-b1b1-2e2e19fca565", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${couleur_2}" }, { "id": "6141a896-de4f-452a-90bc-4ef5d7a667c1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "4fe5c7d0-b762-4a84-8c47-30ae8f485621", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "009b3b83-c2e8-4822-8bdd-e87685179673", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "f03f0c13-a1ec-4cef-bb6a-7062da3d0c78", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "9c937ca9-0972-465c-8611-3886b3c00746", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "a336b778-1dfb-49fe-99cf-7429d2f019da", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "938b0189-c52c-46a6-a83e-4b19c11fb2b3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "8e69ca98-99d8-48a6-8d72-50956ed01fa1", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "3699ba21-147e-4fbe-a743-94ec5c810f5e", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "c9b2a621-8bd0-470d-9fe9-bd0374d62387", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "b814d070-a041-4e97-b0bc-ef7feff52342", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b44df32e-406f-4735-ab16-9c5dc5aa2fbc", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f7e0157b-6593-47f6-bb0b-3ef75399a8bc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "1faae72e-a601-4538-aaac-2c4894f7ff04", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${couleur_2}" }, { "id": "94d02d1c-a585-4011-94c8-2edc61facbb6", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "9ce79904-4a45-4a8f-89b5-5a18e73e374b", "name": "11-14 ajout sélecteur choix multiple", "commands": [{ "id": "188b55e6-56dd-4182-bdca-7a252e725374", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "70a36e3b-1504-4495-816f-8723f9b89576", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "91beb1d4-aa80-4f32-842f-ff3288d88380", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ec00f733-d69c-4ef6-ba12-583d23a0a457", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8a00d057-f0fb-410b-9c55-12c60a5d2fc1", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "480deebe-39fb-4538-a913-d9ef17a1606d", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e27a3ac1-0883-4f21-b951-66a5a5b3f670", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e199828a-71bf-4ded-b335-4184018f3209", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "03a917ff-a6cc-4e5a-a266-6ca80bf8582a", "comment": "ajouter sélecteur choix multiple visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "18f55d5c-75b5-4e7c-877d-7bb9825088f2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "f8c606de-b532-4fdb-9ef6-4783036624b2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "efbbd629-fbc4-4356-ac29-8e9ce9182338", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "2832e13f-cdf1-44b4-af2c-1ecc4a36369d", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "5683df07-8e6c-4d92-b435-aa0af0307d05", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "4bd53098-cb64-4061-a26e-095235412f39", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "5f180948-5c82-485f-a9de-e86208c02a42", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "bd3e0e26-627d-476c-b55d-b4b7f7284109", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f9415dbc-d0a4-4c06-a89b-60b2a7715315", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"multiple\"]", "targets": [], "value": "" }, { "id": "29122289-e21a-48b3-b1c8-ca70bdad4cfb", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "c42047a0-f4b1-417c-8876-c675d799d012", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "afaf732f-a137-4267-a918-92bc29c013e1", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "a76d8d43-3f3b-45f2-b07a-d2bd240f1f72", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "c7d3398c-7aae-4f89-b50e-24807e77f432", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indique les sports que tu pratiques" }, { "id": "ff57e241-b91c-4b13-a249-8fffc5e8c992", "comment": "", "command": "store", "target": "Planche à voile", "targets": [], "value": "sport_1" }, { "id": "415784a2-60de-42e4-962e-980f1613b65b", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[1]/input", "targets": [], "value": "${sport_1}" }, { "id": "1840ff64-5519-499e-a8f5-717e71b442c2", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "499d6eb4-c936-477d-a09f-26121b3ff8f0", "comment": "", "command": "store", "target": "VTT", "targets": [], "value": "sport_2" }, { "id": "b774e166-99d0-4735-9079-15684f5a78e2", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[2]/input", "targets": [], "value": "${sport_2}" }, { "id": "1dfa89cb-832b-4126-8bf4-6e75d4750064", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "29444996-592a-4f0f-97d4-5d194d91670c", "comment": "", "command": "store", "target": "Tir à l'arc", "targets": [], "value": "sport_3" }, { "id": "d76bdf7a-fe1a-4798-941b-08143da7be79", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[3]/input", "targets": [], "value": "${sport_3}" }, { "id": "185d9f82-e105-47bc-8a46-027a89884cb0", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "cdc21a7a-0e2a-4dca-9f5b-65cbde5f127f", "comment": "", "command": "store", "target": "Badminton", "targets": [], "value": "sport_4" }, { "id": "105c81ea-f3ca-461b-9a16-7843a14e5eaf", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[4]/input", "targets": [], "value": "${sport_4}" }, { "id": "b09cceb5-196b-4c06-8de0-6889da11a60a", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "fc7846aa-37ff-482d-9b7c-f2bdb5807dba", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "17508bff-b900-4dba-8355-694560612101", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "c996a927-7e2d-4cde-b177-18482bc76740", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "1d7880fb-2067-4ebe-8f83-e45f669e0dec", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4483c5de-ed25-45c1-99fc-48a3d2c085b2", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "90490663-3a98-4492-bf64-0b5cdc88fdfd", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "c868ecd6-a6c7-4813-8f9c-c7b1b0506fe1", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "c3e451d6-ee2d-4d1a-b53f-99a842a9d785", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "7d8cdca4-5a8e-4cdc-8897-e1aed3385197", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "4d84ea24-debd-458b-a12b-d99012fd9933", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "37234b80-087b-4ca3-8ea5-1810218ede2b", "comment": "", "command": "click", "target": "xpath=//dt[starts-with(., \"${libelle_champ}\")]/following-sibling::dd[not(@class=\"help\")]/label[contains(text(), \"${sport_1}\")]", "targets": [], "value": "" }, { "id": "e9308fe6-f686-4f9d-a5fa-16d003e6f9cb", "comment": "", "command": "click", "target": "xpath=//dt[starts-with(., \"${libelle_champ}\")]/following-sibling::dd[not(@class=\"help\")]/label[contains(text(), \"${sport_3}\")]", "targets": [], "value": "" }, { "id": "d61bf55f-5243-4cc2-a074-810e77c8d37f", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "0b8826d3-21e3-4fd4-837c-09eec6a89598", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "be1cee6d-b506-4a4d-913f-cc5b24739bf5", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "a1b0496d-3709-4628-aeb3-815649371a60", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3d7ad139-6b5d-42dc-8c3b-a43a8efd670a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "f8945619-2f41-4799-b666-e40895de25e0", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "006ee589-6e2e-4a05-a7b5-6d8c2acc0860", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "cc33d10d-c9f4-43a8-b1b1-2e2e19fca565", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_1}\")]", "targets": [], "value": "" }, { "id": "b2e87295-764d-4460-b6d7-209b4d6ef014", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_3}\")]", "targets": [], "value": "" }, { "id": "6d36c7ca-ac80-41d6-8e2f-8c88b81c19e3", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_2}\")]", "targets": [], "value": "" }, { "id": "6cba5f8e-28ee-40eb-85a5-d7e72c04e732", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_4}\")]", "targets": [], "value": "" }, { "id": "887315d1-83d8-4036-ad20-667c989d69bd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "46b36473-cd61-401e-bf05-0b02e9c61999", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "39b8ae53-5c12-4316-9acb-778fb03f9759", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "3ae36dcc-b01d-4ac4-969f-d76e888a4a3f", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "a085d0ae-038c-4f86-ad00-18ba8492fa75", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "f67c46d5-1a01-4155-be1b-db0e93cf9d65", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c2aba34b-53fe-4ccd-97b2-203c478994f5", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "f9759b38-df5c-4437-84a9-9fd9098487df", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "a70941b9-f9c6-4ead-b614-72106d380066", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "2841993d-b61d-4b81-809b-e979b609fa1b", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "f85bd161-8ce4-47ed-bd2e-2d5470e2ba0b", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "9b5dbb81-5fc2-4894-8010-5810050ebe64", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6de7c441-93af-4ac8-8f7f-eb82345733fe", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "c0731dd8-6ec9-40fa-a8fc-e8df4a7ac746", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_1}\")]", "targets": [], "value": "" }, { "id": "8f02dad9-2820-44af-a185-495fc5b216a5", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_3}\")]", "targets": [], "value": "" }, { "id": "a641e587-8538-480d-b50f-7a6cf792d98a", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_2}\")]", "targets": [], "value": "" }, { "id": "104e7851-5a6f-4363-ba3b-bf39976ea407", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd//li[contains(text(), \"${sport_4}\")]", "targets": [], "value": "" }, { "id": "abb6f3b6-4879-458a-9665-d837a72f22f1", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "9ba45fa6-cbe4-4bea-8de6-d57505df827b", "name": "11-15 ajout sélecteur pays", "commands": [{ "id": "30b1d386-9340-4777-8b60-e58a80906b3c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "e8ae8548-365d-46c1-89d0-c7875f385b2f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "30b21a8f-6ab8-402a-8bac-7d1225f9cf15", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "c974c841-5b65-41e8-81c7-50ec535571a2", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "d7a93dad-cb11-4eae-ac48-362131f5d0f4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "d9430614-c531-4712-b380-65f6b6199303", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3c9e1034-9a83-4b98-a165-ac421712e9df", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e1e06b4e-10ff-4973-ba9a-9d2727f3abb7", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c05da4c0-9d21-47c3-81c3-399012299707", "comment": "ajouter sélecteur pays visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e05b6755-8884-46b8-815b-81f104ffd789", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "1f704690-2830-4e92-82b3-8222547b537e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "575400a4-d194-4110-99d7-9274c0022fd7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7498e383-66f2-4c60-8272-b12b981984cf", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "b66b940e-a1af-492e-ada9-a8bac1011e13", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "07208e4d-2ae7-4449-9cad-873eb8f6c35e", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "67db3598-4e28-48a5-9473-e498d45e7972", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "729bb6e0-3a19-464c-a5d6-d0b94a67aa1a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0dfc9751-a687-4ba6-8b3f-e6fc8f316acc", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"country\"]", "targets": [], "value": "" }, { "id": "4595cc38-df42-4be5-9f70-6c1d3b3ca248", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "d0959445-cf6d-4beb-babc-cedf934dc230", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "7b960477-a1e7-4ad5-8353-614d2306c094", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "e1224b25-2662-4a9e-ad02-46b82b8dd4d3", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "e6b8b718-f8f6-44bb-9c65-24c2054c42e1", "comment": "", "command": "store", "target": "CW", "targets": [], "value": "choix_defaut" }, { "id": "6daf8ded-bc53-489e-acb8-b0fbc1c48e95", "comment": "", "command": "type", "target": "id=f_default_value", "targets": [], "value": "${choix_defaut}" }, { "id": "ffd2404a-30af-4db6-8f21-57f577875f53", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indiquez votre pays préféré" }, { "id": "df83a8ed-bd66-4e81-84cf-04a165949f58", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "0a1b8044-34d9-4799-8095-6dc732c6c332", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "06ea7a31-03eb-441e-a626-2d5facfaec8b", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "88c0b5ab-2aea-41da-9691-f514c7f915b3", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "79801e85-8300-4eef-a563-588851b5f949", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5fa505c1-ec76-4513-9444-1163d77058ad", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "06d7c8b5-e1d1-429f-8095-af2f13a5f42f", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "87173e42-16a8-4661-bcc1-15246d674bbc", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "83d51878-c755-4ba1-a18e-0d33683a6fe7", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "b5622fd0-53b7-49cc-8793-43626e30999f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "5e72492a-d4e3-49d8-ba61-9913c80cc8d0", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "c9f40a35-8060-4ae8-99be-e71aefee8a39", "comment": "Choisir un pays au hasard", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3eac5cd4-fe8d-4029-93f7-4e6caf2f84fe", "comment": "", "command": "storeXpathCount", "target": "xpath=//select[@id=\"${id_champ}\"]/option", "targets": [], "value": "nb_pays" }, { "id": "bfdeb632-19be-4215-88c5-083ce88bc91a", "comment": "", "command": "executeScript", "target": "return 2 + Math.floor(Math.random() * (${nb_pays} - 1))", "targets": [], "value": "num_pays" }, { "id": "61ee9b15-a686-4a46-b863-9d9069b494cd", "comment": "", "command": "storeText", "target": "xpath=//select[@id=\"${id_champ}\"]/option[${num_pays}]", "targets": [], "value": "valeur_champ" }, { "id": "e28924d9-19b3-47ff-b037-744acfcfce3f", "comment": "", "command": "click", "target": "xpath=//select[@id=\"${id_champ}\"]/option[${num_pays}]", "targets": [], "value": "" }, { "id": "4aecd55d-e4fb-4e34-9a8c-364ee06d3a39", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6a252055-ee44-467e-a61d-8c1544fe1b31", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "360c91e3-ef30-4c6a-b030-daa0d8d0c81c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "a37b5274-e414-41c0-83be-410f7623b581", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a6c2cb7a-2526-4dfc-8633-f6e265f77052", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "37aa1d2e-14b8-4dc3-9d31-f195d4a5c539", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "4a4c5797-be3c-4353-98ae-3b1fba490ec5", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "70afe3b5-bae8-477d-ba2f-82db90070b73", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "5d3e4ab9-c05b-4317-a1a1-fea5d26d92a0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "50baa497-ec7b-434d-b5e3-107e331b4e4a", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "70ed3278-ab9f-43d2-be28-39389acb8ca7", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "460eda06-ff79-4835-a213-0d0849dcdbe2", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e53e4f3d-37a3-424a-896b-013abe45ae88", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "5645bbfd-be52-4d65-b86f-81b85302d6fd", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9a189a58-f9d0-4470-bd14-79984dff5c43", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "20d1c5c0-5500-4ec6-9a64-f79390a4c80c", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "046e9115-4055-471b-8486-1c1c08073faf", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "d31d355d-8bef-4773-9081-fba068f917cb", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "0724897e-5516-44b5-a3c1-e1874da60457", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b421d078-102a-4a51-9723-00b984efe2dd", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1cc2ae5f-ca27-41bb-b2a4-2df262dfae2f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "980362e2-070b-4f3e-84f5-72b8690a06ac", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "daf8c707-a49f-4cc3-93e4-73ba703b9c22", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "name": "11-16 ajout texte libre", "commands": [{ "id": "c3fd3819-d125-49a9-9c12-66133228fd6d", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "6b8a8131-0ed7-4cc5-9a71-904225ca65d5", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "cf6ec825-87da-4e2d-bfdd-fbb9f5691e5a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "4cca2064-e10f-48fc-8118-763fd4827bc7", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "cd4b2740-bb0f-47c8-804a-0049783519f3", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "60fbc949-f45c-4812-9ac2-fb1e46de104d", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "6620db5d-0952-4220-a4ee-36b7b1d3fbb7", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "623cb795-c9c2-4f58-b1f7-826202e46491", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "57d9a01a-c10f-43b6-a8e5-01aa4bca89ba", "comment": "ajouter champ texte libre visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "dd793890-5cd6-4a4a-9a2b-1a78be9ae997", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "87ec2a39-008f-4345-a14f-c0f43029a673", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "a9428d49-b493-4729-a2a4-842134a0cb5d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "76011df4-82a9-4e9b-8ca3-6d4276cfb51b", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "65a14a01-7bd8-4abc-9a3c-e4d3c0f446de", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "6aac474e-b122-4eda-83b6-3794f43146e6", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "c4fb3eeb-814b-472b-a7af-e291a70a108e", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "a3a40c0f-8184-4b70-803e-c25f90dbfaef", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8aaf1bef-ff65-4e2f-923c-d2f5d7ac1b66", "comment": "Texte libre, plusieurs lignes", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", "targets": [], "value": "" }, { "id": "5e66a5ed-bd1c-41f1-86e8-5ac431d8db90", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "52762d81-7f1c-4f0d-b235-dc855dc03e5c", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "845fdf99-1b9f-4c77-87b6-fbf0ade6608b", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "2c288443-6692-43ee-aa6f-60aac15d8c84", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "df6f40ff-00d0-46db-9ac8-1c11c60ae841", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "344f949d-5189-4582-a660-4b9621e3065c", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "1259d340-4a98-414b-8dde-cf682152e018", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "0e880718-3047-4ca9-a4d9-153c4e3a5c95", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "13437439-bd48-4de9-ab74-9d5a96a4ac96", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b5c190e5-04b1-4203-8051-280227f5f66f", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "b4d31f3d-ee60-4242-9eca-e105bd41d5d5", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "8d88d802-c81f-4b66-8c4c-a105174325b3", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "594cd642-3de3-42ba-8ee2-385e107c4942", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "e959f594-8fe5-445d-8f35-ee54eba3b0fa", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "ef164b82-ac3f-4319-8be2-18fe753ec992", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "d1169339-0855-4081-ba5f-db8ec86da1a4", "comment": "", "command": "store", "target": "polo", "targets": [], "value": "valeur_champ" }, { "id": "073a7fc5-5f65-4726-9568-b083c9f77469", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [], "value": "${valeur_champ}" }, { "id": "1f405384-432b-452a-83cc-b653bb8caf48", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "08ecfd35-d681-43f1-b1e4-e479afc6ef8f", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "1313a108-34ec-46a7-b9a3-87df1e191f5f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "90bd7390-4464-46af-9699-17ccc5da658d", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5aaa883b-0393-4af8-9d93-547e3fdb1c7c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "e15f7577-80de-4a29-820b-e3416b0d4ad9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "84b8e706-ce97-4a3c-a197-7aebbbc93485", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "4d59e3ee-d889-4c64-8ace-4e8676d0e484", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "f9d83865-0614-4ba0-93f2-5751a1b3f9fc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "43b9593e-5320-457f-b78e-257eee857647", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "f7ef648b-e2f1-43a6-bfdd-7ec85f9525ba", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "487d5f70-1242-474f-86e3-f9846bafada5", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "79540f2e-426c-4d29-b13e-bd552be5cbc9", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "75dfe593-a687-4a36-b838-c71cc5c40c15", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "52eb2a5a-525d-462c-8b45-fd59ff0dfd63", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "1f4321d1-5b1e-4452-8f8e-ff2cc30acac2", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "d5be5db5-0f5f-4922-91e2-18e1ef508e77", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "64f977f4-834d-4a69-9fcf-ed0075178045", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "6addd80b-2882-4851-a3fe-0d8a9679d865", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "90123a0d-2bbf-40aa-9e57-da345acb1b66", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ef518498-e211-4019-9e62-72a3f11adec8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "9f0c4f68-152e-4d80-a312-c9945fce277b", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "bf886799-82d7-48fc-a5b5-f527f2fc6640", "comment": "Déconnexion", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "340b4d62-de7f-4c00-a559-e4f6a2246f08", "name": "11-17 ajout texte choix multiple", "commands": [{ "id": "b650089f-b23b-4f7d-bf7a-0d0278240389", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "71f0258f-588a-4d6a-8650-48133c816027", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ae935a8f-6a23-4a3c-9b9f-ffaa50703a5b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "cc096276-4beb-4fd9-96e2-835dd6231b26", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "860746fd-2a29-4a2f-877d-8a7b58615f03", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "5510e465-e7b9-4f82-bb92-61ea038212b8", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e6a3d61b-62b6-40b7-a359-52064eb0377f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d899dfe1-63f4-4397-bd2d-f91c1d03efe9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e5338447-e876-4574-82e8-d037b47df7f6", "comment": "ajouter champ perso texte choix multiple", "command": "", "target": "", "targets": [], "value": "" }, { "id": "61384325-95b3-442b-903d-420276f304ef", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "8a9b96d8-7dac-4cfc-97a3-b2ef59fbe607", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "744e6c44-703e-46f5-afde-c06274fe96e1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4fd862a6-a01a-4cff-8395-a55719413277", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "84e4ce63-28f9-4f13-840e-a68175f8f2e9", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "11d68863-9a21-4fbe-be88-42bd76dba587", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "168ad4b9-40df-4507-87bc-84a7108f781d", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "31f5d89a-ff2d-474f-8b3d-6b7d37716873", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "bbbc6bca-f79f-4168-9863-6b6acda5b6f3", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"datalist\"]", "targets": [], "value": "" }, { "id": "2f663491-41b4-447e-9e68-8ec1116c5d24", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "d5961725-5c51-4a19-8644-8fcf46ef1e42", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "f88109b1-bcf9-485d-a01d-c20bc2787d7b", "comment": "", "command": "executeScript", "target": "return g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "nom_champ" }, { "id": "e6d123b3-448d-4210-b04d-8fd044764e90", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "88c0af30-a799-45d5-a52a-d1cb1bb1627d", "comment": "", "command": "executeScript", "target": "return 'list-f_' + ${nom_champ}", "targets": [], "value": "id_liste_options" }, { "id": "3662475d-a04a-479d-a9f3-cff1c2a760bd", "comment": "", "command": "store", "target": "Violet", "targets": [], "value": "couleur_defaut" }, { "id": "c2b71d4c-86da-4719-b9a7-4772b6c10bb4", "comment": "", "command": "type", "target": "id=f_default_value", "targets": [], "value": "${couleur_defaut}" }, { "id": "88db557d-5e62-483b-9bdd-28579cb28cd7", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Indiquez votre couleur préférée" }, { "id": "ceede050-b826-474d-8190-45481ae2360c", "comment": "", "command": "store", "target": "Jaune", "targets": [], "value": "couleur_1" }, { "id": "b5f0d5cd-eaa1-4aea-a4fd-1a404924b530", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[1]/input", "targets": [], "value": "${couleur_1}" }, { "id": "b7d08447-6045-4dbc-a715-c43717634a38", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Ajouter une option\"]", "targets": [], "value": "" }, { "id": "a73f4002-8779-4d5e-ba56-483c48830fb4", "comment": "", "command": "store", "target": "Rouge", "targets": [], "value": "couleur_2" }, { "id": "6310515e-13bf-4a49-8362-a52c6cc66472", "comment": "", "command": "type", "target": "xpath=//dl[contains(@class, \"type-multiple\")]/dd[2]/input", "targets": [], "value": "${couleur_2}" }, { "id": "0d144adc-908b-4263-8d23-5a1274453349", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "fa2b7989-eb58-421e-8be6-5fc30399d977", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "9c67c411-b37a-464a-86d8-3f04c30c90e7", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "1c632650-bfec-4992-af67-080f1c28c866", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "862df273-e1e8-4ce5-9b92-b41134e4ba7e", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f05280ef-68ae-42b7-83b3-8ac1c33420a5", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "a8effd1c-6f36-40d3-b6cb-a04a365b0c03", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "53e8fda0-31e9-4640-9a32-834d55859611", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "fee07908-e8c2-4321-ac27-f5a8c4db6841", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "7cd7ed56-dc20-4f68-8694-0cde596b83c4", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "5ec54cf9-3451-4610-b9d6-6c389a87703f", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "9318cbbe-8849-4d91-85a4-5726b44bcff0", "comment": "", "command": "click", "target": "id=${id_champ}", "targets": [ ["css=.datalist > button", "css:finder"], ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], ["xpath=//dd[14]/span/button", "xpath:position"] ], "value": "" }, { "id": "923adf5c-7cba-42f9-af44-9abb177be56f", "comment": "", "command": "mouseDown", "target": "xpath=//datalist[@id=\"${id_liste_options}\"]/option[text()=\"${couleur_2}\"]", "targets": [], "value": "" }, { "id": "8decf002-cd0e-435b-900a-c49d02d4a9d0", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "ad6b29b4-c093-4261-bcf8-d326fffce626", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "a4e8977d-ad10-47ff-ac5f-76227e0ee0c9", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "e79443de-7879-43b6-b393-689218d0e477", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3bd9aeca-240c-4327-8a05-a34dfb94376c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "30cb8e9c-fbcb-4eb2-9617-60467d371474", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "79edf175-61a9-4e08-b937-a777b9b2f954", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "e0c035ca-dc33-4e93-960d-4ace82aac75b", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${couleur_2}" }, { "id": "bd28d542-29cf-4751-9af7-53bb7c248615", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "c34866f2-9a6d-4087-81b9-fb3c9b3027ac", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "5d518ca1-a76f-440d-a575-685836b2b92c", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "56014c7b-6ead-48f0-9806-0522c2d3eb86", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "034dca36-39a8-4846-a75b-402c589518f2", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "6830cf58-9c9d-41e2-abef-ea04ec4ff30c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "389736d4-f016-441d-8b9e-b7c3a72079f5", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "50b53b42-015c-4206-8b7e-1568c74f6ab5", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "0e363588-f248-4e90-9bc6-6c4df48ad694", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "295dabea-bed7-42aa-b3ee-069ca04b31ec", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "d6c837da-1800-451b-97d8-9a519e87b68b", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "348531dd-1150-48d6-967e-6e7e31bde3f6", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8f7f9d0e-1bf9-414a-8e6a-3d8042ae75c9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "8dc7d5c9-5c19-44b9-90d9-20f06cc1960e", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${couleur_2}" }, { "id": "5108a5ed-707b-436f-83fd-eac7e9c21b63", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "7a858aed-70b7-4c7a-bc4f-799216bb455b", "name": "11-18 ajout texte plusieurs lignes", "commands": [{ "id": "8592d352-6761-405d-8b97-0c542c3831e4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "3b028d0f-53d8-4a7f-a6f9-870ff1b400c9", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "dce026b0-1dba-4002-8cd7-ea3385670548", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "7c21f555-78a6-4e46-b9a0-76b104157b05", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "4b3f6757-70b8-424f-8b93-f17bae8d18a7", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "e82856c0-de89-4ac8-a1d7-7bde81bdfc9f", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "fbc0f175-d7b8-48b0-92ca-9e3429c7e54d", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "449b7f5f-06bb-4568-8cf8-de664890bca1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6dc8b83c-085f-4e4f-a2ad-b533192feb36", "comment": "ajouter champ perso texte choix multiple visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "185ad369-9bdc-4333-820c-e06a420b6f75", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ba6cc7fe-7365-4aa2-90e8-049cc8fe0d03", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "55c711d5-0e75-4db9-8999-0462ab25ff94", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4953e3b4-8eb0-4591-89fe-b2b128c10776", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "6803174b-24e4-4cd6-88ca-69c693fa5490", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "5b2dc311-1232-4208-bacc-37accbec08bc", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "c3acd961-ae32-4b82-b034-cb09e32d076f", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "03b70b93-00d3-4ef5-91ac-c022079d2f12", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e2b95045-82d4-4856-ae08-7b9493d64a01", "comment": "Texte libre, plusieurs lignes", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"textarea\"]", "targets": [], "value": "" }, { "id": "c8bb4f26-c4fe-494f-89b7-0a7e6e3c71d7", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "65f73ed1-17ff-4865-9a4f-f42fe09abd98", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "47d2595b-7bb0-4efa-a560-5085b7322f28", "comment": "", "command": "executeScript", "target": "return 'f_' + g.normalizeString(${libelle_champ}).replace(/[^a-z_]+/g, '_')", "targets": [], "value": "id_champ" }, { "id": "814d2a1a-ca2e-40a4-b9c0-92b0b09403f3", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "Remplissez votre biographie" }, { "id": "36e1c4bf-c4c3-4ccb-b5e7-ba6acab485d2", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "9824b759-1155-413e-925f-ecef0d077258", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "e37149c3-2d90-4da6-90d2-d2c3bb13e5b2", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "ce77b385-478e-4b64-954e-16f7678e9d5b", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "c9837dd4-4d4b-489f-a4f4-0f116d8f3303", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bd879677-2914-4d8c-b012-c214978e22dd", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "4cd0af34-c111-4746-b2ab-a3c5b31d0525", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f551de1d-3552-4671-90c9-36c8655aadd8", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a9c0c663-4865-4835-9df2-5150e3efb5c5", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "a6708cd1-6c26-4425-aab7-c5a99e010970", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "f69a0752-5668-43a0-9e09-c36281f05e31", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "8004afa1-0ec6-4ccd-8cc1-b6069697cbbc", "comment": "", "command": "store", "target": "Je suis né\\nvoici longtemps", "targets": [], "value": "valeur_champ" }, { "id": "acc48e40-1c9b-4ad9-abc2-012e23a9d2ae", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [ ["id=f_biographie", "id"], ["name=biographie", "name"], ["css=#f_biographie", "css:finder"], ["xpath=//textarea[@id='f_biographie']", "xpath:attributes"], ["xpath=//dd[14]/textarea", "xpath:position"] ], "value": "${valeur_champ}" }, { "id": "4435739b-6715-4d64-9c01-771e05dfe533", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "068d41a4-39e6-44dc-ab8d-1e18c510e012", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "bc89630b-ba40-4894-940b-fa14ad7d2d6f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "be0822c2-0f61-4756-b2d2-c5bdfed99614", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "85c019c1-6859-4863-9447-7757a17227a5", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "b11356e1-ac5f-4d51-a055-2202c5efbeb9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "74afd5f2-9981-480c-8e45-788c34a382ad", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "d1079935-c068-4c7f-a19f-54c3d6bac34f", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "9d1bc5d4-cd90-4193-9595-30311c46fd49", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "525c6f05-4dd0-402b-9582-d78a190a1b8f", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "9997e945-bfad-4f3b-993e-f8c93b64cf43", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "fbba3728-9316-4d9b-928d-bc0abe587bb7", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "eca0cf05-50ea-4eb4-bffc-e518b01a043b", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "924e1a96-584c-4c97-9507-b0a3ce0fb3a7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "98c3b487-72df-4ca5-a9cb-349d1c65fc0a", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "8a416856-0f3f-4987-aa96-622900e858d9", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "62c60e5c-af02-4693-b581-c7fe5b77af79", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "8614294e-8c19-4fc1-a63a-7e468a60789e", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "2b2d1a81-f9f0-485d-9141-14721f06b53f", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "eb492faf-9afd-40e9-903d-3ae007258b9e", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0cda0ea6-f688-4d93-b55e-a5305b987e41", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "fe72d32e-9286-42cb-9360-7ace1cb44687", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "121538e9-bcb0-413a-9c70-f1b7831fb033", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "name": "11-19 ajout champ calculé", "commands": [{ "id": "43132073-c6e7-4c99-b7da-0658b46446c4", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "1b6709af-a2b6-460b-b29c-819bfd6fd618", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "894f55ad-540c-4bfb-9f34-03c588633ece", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "9562f6ec-639a-4b9e-a1e7-1451da275ff8", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8d9e6045-92d1-42c8-a00c-96242921eb6e", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "160c6189-35e4-44bb-afe5-26ce5a485eb1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "d23d2c34-5c61-4ea7-8d00-e12a6012e7e1", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "06d2a221-5f6a-459f-af9e-2684286c72e5", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b3a42fdd-5ec9-4ad2-838f-d2dad7ffff16", "comment": "ajouter champ perso calculé visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "784c5d62-6b1c-4a0e-ad41-e9ed6070ac9b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "64a0066a-a471-4b37-9a66-102c338092e6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ba251808-0312-433a-9f34-378526b3aace", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "55848734-2ab0-4a06-ae61-f3072ef934fe", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "86687f65-5df9-4211-80b9-effca2de44ad", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "6e16fb2e-20cd-4457-8cc1-02858ece4a00", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "1d6548d4-8719-4ee9-9c78-ce86e36f2131", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c1537472-3d31-4518-965c-dfe2a035daa8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "79820c8d-ebf5-4ec5-a6cd-1be38e27b66c", "comment": "champ calculé", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"virtual\"]", "targets": [], "value": "" }, { "id": "235e4bff-0249-4d6e-9ae4-a5ce6cc3a427", "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;};return chaine(10)", "targets": [], "value": "libelle_champ" }, { "id": "e55eb32a-3681-4590-bd8a-e76a6ae0a4a3", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "b9902c7a-3989-40f1-98fd-0d5ec43dc1d0", "comment": "", "command": "store", "target": "CASE WHEN length(nom) < 5 THEN 777 ELSE unicode(substr(nom, 1)) + unicode(substr(nom, 2)) + unicode(substr(nom, 3)) + unicode(substr(nom, 4)) + unicode(substr(nom, 5)) END", "targets": [], "value": "formule" }, { "id": "4fc2a40f-01a7-4bb1-9c1c-aaba5ff94e78", "comment": "", "command": "type", "target": "id=f_sql", "targets": [], "value": "${formule}" }, { "id": "cb83cdce-ee0a-4437-9675-a44336f5c3dd", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "27606508-47ab-45b0-b44c-8183df26709a", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "c76f4cf1-0ee2-45c5-b50d-f5128b37dac1", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "21727fb6-1d55-4199-94f5-5ba284a74090", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "067e1761-1312-4d09-93dd-0c37fb6ec27a", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "731710ac-f8a7-4ebe-bdc9-5c9c0f8a5c97", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "244e7f00-2901-4ce1-8622-c43f5f918349", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "83cb7c44-6163-4ad9-a763-9fd1409e2378", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "e46e1cdc-7346-4266-8c85-ac6b1e75fc82", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "495dcdd4-7098-4d76-8c0f-9b22910a1102", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "8d75db9d-1c62-43c9-a4d4-6bc9f4ca97a1", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "55cf6cb9-78d4-40c4-954c-feb3e798c8a7", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "99be26e5-0285-40ba-9582-b43ea901999a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "6600b317-a1e9-461b-8839-0b9da366481b", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "743d2afc-aa51-4491-b4e5-f39d06cf5ca1", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "05ce2500-8508-422b-bf6e-4fdac20a212e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "756adc11-2421-411d-aec4-5537c9be96d4", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "37b42cc8-b2cc-42d5-b79d-b9df5b20df69", "comment": "", "command": "executeScript", "target": "function calculer(nb, chaine){ let somme = 0; for (let i = 0; i < nb; ++i) { somme += chaine.charCodeAt(i);} return somme; } return calculer(5, ${nom});", "targets": [], "value": "code" }, { "id": "5e619452-54b7-465e-99bf-51e106b8bc33", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${code}" }] }, { "id": "2f90c2f6-6b1b-4703-abc9-a137b58f0443", "name": "11-30 ajout ancienneté", "commands": [{ "id": "8cd98572-fab8-4a80-bd5d-03a414b63cef", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "e4d83845-b748-4631-9722-b796329e002e", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "ba9ba248-b8d7-4592-8fc9-69609403d084", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "e28dbf37-fb05-4db8-9722-d3969f7434fd", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "eaca945e-7dc3-4719-888e-f0873146a4b4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "976a2012-bb92-48bd-8e96-5f01adc7a6a9", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "318cb42b-65c0-424d-97dd-a0f68b40e1e1", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "705384e6-9756-4f3e-b4fd-87ed5f575573", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "611fb569-afd0-4b0a-a5eb-b5218e336ccb", "comment": "ajouter champ ancienneté", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d99b8c2e-8075-4a45-931d-c4d2b50f93a9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "203d192c-cf74-4cc2-a1d7-b33b0b0a1fc7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "3617e2a9-0ff1-4320-9b82-a84d88d6044c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "d3722856-2924-4115-9673-62e9ed62af2f", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "28ce6c98-2144-40b4-9bb5-bcba55c8a6fa", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_anciennete\"]", "targets": [], "value": "nb" }, { "id": "754683ae-6e9d-4a1b-8b6f-3fc919360aff", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "e0fa6c7f-5b37-401f-9dbc-a4b921ecd6d2", "comment": "", "command": "store", "target": "Ancienneté", "targets": [], "value": "libelle_champ" }, { "id": "4e5a2055-020d-4118-b012-cc3c5bf60603", "comment": "", "command": "check", "target": "id=f_preset_anciennete", "targets": [], "value": "" }, { "id": "f9bd4f64-6e7f-43a1-9e70-ec4b84f77405", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "031aad0e-287a-450b-8e61-684cec258eb0", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "ea13f056-59b1-463a-a7e3-36ef622410f9", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "7bb2d44d-df48-4fd0-be49-c6fb90fb0898", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "1c003451-fe2e-4a7e-845b-34534d1668b3", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "059216bb-9b3b-47ca-9510-0e9cff2bfe13", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "cb847892-2bfb-4e7b-9ddf-73fa7511d254", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "402d424a-c799-4dad-ba8c-e06991c4c99c", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "13d26cbd-0c3c-492e-94e4-8fc05a456e8a", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "15d4c4b5-26fd-4604-b8f5-916b8ec64c0a", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "76d0f8af-c29d-498a-a47f-02042d4dc28d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "415a0116-2c30-4b31-ae94-74fce7e8e7a3", "comment": "", "command": "store", "target": "15/06/2007", "targets": [], "value": "date_inscription" }, { "id": "cd33f1ea-e6e3-4dee-9468-c9f0a5b763b0", "comment": "", "command": "type", "target": "id=f_date_inscription", "targets": [], "value": "${date_inscription}" }, { "id": "aed61f7c-ebcb-4c3b-b1f4-8327406934d8", "comment": "", "command": "executeScript", "target": "function diff(d1) { let [j1, m1, a1] = d1.split('/').map((x) => Number(x)); const d2 = new Date(); let a2 = d2.getFullYear(); let m2 = d2.getMonth() + 1; let j2 = d2.getDate(); let diffAnnee = a2 - a1; if ((m2 < m1) || (m2 == m1 && j2 < j1)) { --diffAnnee; } return diffAnnee; } return diff(${date_inscription});", "targets": [], "value": "difference_annee" }, { "id": "e1af7330-b8cc-4e83-963a-c15458943532", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c659de07-f7b5-41e9-9d19-2cb5752fd236", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "ba438efb-4f6e-473f-ab51-f4b5c1e8a6cb", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "504854c0-a4a9-4836-9d44-4526bdc741cd", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6ccce30e-a1e0-40e4-8b39-c99abc491d8b", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "3a7f956b-5c72-4211-98ae-3b0b56ea1108", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "241632c4-e723-4192-8fbb-1df14db87581", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "a9e21893-0382-4640-907f-a9e9d46407e0", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${difference_annee}" }, { "id": "74413ca4-b6d4-4304-ab67-0428c67a4641", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "ce4dc19b-b8c5-4593-8420-369e44ffa95b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "d67ed261-9617-427e-8107-c608a4193ae0", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "4dfffa95-1f0a-4395-8fe5-b9defc32d830", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "ffd5c5bb-42d9-45bf-9a83-c176a082d072", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "8f663e7d-61af-4220-ae84-2859076f5e91", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "401170ec-197c-4fdb-8922-657b9b2a8462", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "63b97914-ba0e-4e25-b434-621ac455bf79", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "ca3c3f80-7db8-4beb-b268-f180708be5bd", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "492b25e4-2633-4258-824d-2277e1514b98", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "d3e244f1-474a-4bf3-931f-43798284e573", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "c96f7bc5-9652-42e0-9aaa-235f8c170dc4", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d460879d-1155-4bc3-9fde-6a956e088205", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4022c3e7-7ce5-4168-97d5-8ef1bb7df06e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "222a1527-6fc1-4b4b-aaa6-f9d4b484ac8e", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${difference_annee}" }, { "id": "efd941af-2513-405f-81f7-e76bc10611d1", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "36c66820-fccd-471c-ba44-3310ac491e81", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c4e4ca1d-12d9-4a7e-99a9-5d1e12cb2d77", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "name": "11-31 ajout année naissance", "commands": [{ "id": "fad4e699-eb78-4fc8-8e60-a24dd2fe416a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "1adba047-8e6f-4266-a99f-caa532b03f5c", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "d82172c5-99a1-4e09-be44-a82fbb2cc2f6", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "c67b55f1-11b2-42b2-9519-483ea34f0ef9", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "ea2ab020-7afc-4a22-a4f0-8ae3310e1a94", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c7eacfec-63f7-4270-b872-6b1ca50f7d97", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "f86048c5-728a-40db-8702-ae6626f974a4", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "f1c9dacc-5b09-42bb-b18f-97e4c813504d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "874df3c2-9f05-4ad0-99c8-1026c8dfa99f", "comment": "ajouter champ année de naissance", "command": "", "target": "", "targets": [], "value": "" }, { "id": "15c2ce08-77f2-47c3-b726-32b9819cfe3b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "0bb8d8b4-cf62-46f9-8bdb-fab366290ddd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "6281eed2-5d22-47d9-9fd6-0a4ead3dad16", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "27afead2-1dc0-4591-8922-f5653bab1ea4", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "4e1491eb-a942-4172-8712-c8d3e59f812c", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_annee_naissance\"]", "targets": [], "value": "nb" }, { "id": "f2fb168d-22ca-4ca6-b7c5-0ce53b7ac921", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "195d7ce3-6762-494f-a9b3-2f4fbb54a8fa", "comment": "", "command": "check", "target": "id=f_preset_annee_naissance", "targets": [], "value": "" }, { "id": "166cd504-cc79-480f-a667-4e3222afb8e1", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "22660ae0-917a-4bf4-9ee1-311636f13f8e", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "525596a7-6693-4f0c-840c-4c334634e13b", "comment": "", "command": "store", "target": "Année de naissance", "targets": [], "value": "libelle_champ" }, { "id": "8599211d-fe2e-4aa3-a14e-25667f21267f", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "083145d8-b4e3-413f-8573-c051a0bf0d81", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "5379b4c9-9fef-49ea-96ab-2929b54429d9", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "50199175-09ca-4d8f-a03a-d1a7c7530cb7", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "872cd0af-2fcb-4469-b1ce-989802375f96", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "561d5365-f25d-4eb6-be76-f2a7a5bf2a90", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "71fbee85-1e78-437c-ac6d-06b38dde2473", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "ad917270-aed3-4571-b7b6-862972263d93", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "f499bf94-582c-4a6d-ac1b-b56e806568e1", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "0eef0ac6-95f1-44e2-861f-2ee24d5a6c10", "comment": "", "command": "store", "target": "1987", "targets": [], "value": "annee_naissance" }, { "id": "fc6f642e-bbfe-4c30-9862-3346ab422bb3", "comment": "", "command": "type", "target": "id=f_annee_naissance", "targets": [], "value": "${annee_naissance}" }, { "id": "295d3732-5ea9-4935-81b6-4adddf4bf08b", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "3dbe4c14-1dc5-4819-bffe-5c71390a8d04", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0c006549-23e7-4413-a2aa-2d7ed6a9296c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "11c69838-26b4-4811-92bf-49f32bec5e05", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "62b3ec5d-446c-4cd7-9987-0cdd458212d2", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "58ca7144-bfe9-47fd-806e-5ab79e3068c2", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "05c7c432-f908-4d30-b8b0-ce0f7f5e4ffb", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "bc015ec8-c06a-487e-8390-ba796ee26a7d", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${annee_naissance}" }, { "id": "0b03c60a-eb49-4226-9091-6b8b76950873", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "fdb0429f-207e-4280-8979-8aa6770076e3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "58bdf6af-4c5e-452e-86ee-620b1c505718", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "0d68429d-f0c4-41f3-a4e2-f3f8b36c2a59", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "0ca333d9-aada-44b1-9e0b-f6a8ebf34ff4", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "c327f097-06e8-4733-9373-d491fb3bc0ec", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "09992cdf-3f91-4485-b869-52b025a6cb8c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "3af4fd72-ed6a-40b8-b850-4ca9164ee2b3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5a22ed9a-1648-4746-8222-1ed80c841abc", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "dc052ed2-a609-43ec-a280-87e0b7b01f51", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "001ff215-ecee-4043-9197-4ee3d321aa48", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "221e19d5-abad-4067-b44b-f122b326bdc9", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "94600666-7a6f-4ad8-8bfe-c349eca151f6", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1e37ed26-765a-438d-a26c-109ded6527f3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "3eb15929-ed1e-4067-ab4b-e4901767dff1", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${annee_naissance}" }, { "id": "c3420e48-ecc8-4be3-930a-7054a1721865", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "f79eae72-051c-4410-b9ac-e46555e2118c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "cb16ebc5-343b-4a97-99fe-2ec54ddf623f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "8462cb7c-312b-4a01-a91d-bbe93166deab", "name": "11-32 ajout date naissance", "commands": [{ "id": "9008f58e-d008-4863-84d1-ec80437acc57", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "e87862ef-6a14-4194-9e6b-4668a1a7f9d8", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "d4c343d6-053b-4084-8c05-321b4b155c71", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "0672ab68-2883-46d5-8734-a3158c9673f5", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "4da1722c-c44d-4b0f-bef4-ed284e2653c2", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "dd9f5a1c-67b1-43ea-9f2c-a83c409ad2e1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "f57bf62d-9f5f-4e51-9ef1-4a8b29f6ba93", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "aaabc1e3-c3fa-46c3-885a-e0d298b9aac1", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "13f642d6-ae48-4f2d-9776-c8b9ba65ce62", "comment": "ajouter champ date naissance", "command": "", "target": "", "targets": [], "value": "" }, { "id": "45b6374b-8337-4260-8cba-3a137a8f7d49", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "2b5da56a-f2fc-49e0-86b8-c60a16f91bab", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5e00665b-7e7d-4ef5-a626-2a9ebb6f5820", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "24c6911f-4266-4c64-bd2b-9becd7ef0700", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "0e950075-9192-49d7-add9-2c8340a39130", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_date_naissance\"]", "targets": [], "value": "nb" }, { "id": "288f5838-43c2-42de-a041-92bdf2ceff4f", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "8ea9ebf4-ac48-4d11-990e-7b033ab7a5cc", "comment": "", "command": "store", "target": "Date de naissance complète", "targets": [], "value": "libelle_champ" }, { "id": "0e9b377c-bca4-43de-acda-657a404f7b18", "comment": "", "command": "check", "target": "id=f_preset_date_naissance", "targets": [], "value": "" }, { "id": "07fbd75a-0a46-4826-a996-d79448860c36", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "7fd20086-d53b-4340-be14-001daa509ee7", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "b8360f8b-ff8b-48ed-98b1-b5a2baf6c54f", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "8714a6a3-1374-4c11-a683-629d20190229", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "9e33d0a7-c861-40db-961c-a039b9b69246", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "53652bdb-df29-46ab-b91d-4161d9abb4d2", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "01585335-dc5b-4828-a3f3-bc1a1f5af742", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "ee69d974-e5b3-41ab-84fe-888939f6990e", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a015c311-d81d-488d-a1bf-6a18a36f7395", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "f39ca79f-83d4-4166-b99a-424d4cdc2e80", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "14c43910-5325-48a9-b4ec-f37ddb15cc8d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "e1d7b2c0-9e8c-484e-a3d3-3520a508cc9a", "comment": "", "command": "store", "target": "15/06/2007", "targets": [], "value": "valeur_champ" }, { "id": "3df30278-1499-4038-89b3-7486f9ed305f", "comment": "", "command": "type", "target": "id=f_date_naissance", "targets": [], "value": "${valeur_champ}" }, { "id": "769fa6a3-44ff-4566-8d09-3e6eaf623fca", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "70db2085-a454-45b3-8287-35dcd18a6b25", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "95cf551c-3d07-4a8a-ac30-0ecd8167d30f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "b29ac546-3f2b-462c-a19e-8e5c0790f4ca", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b37e8aba-8709-4ab5-888c-73d69d205ae4", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "f9e61085-e030-40e8-bb5b-a6654df183d0", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "66091cd4-c0e9-4dcf-bd43-8193671a4d7a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "87cdc6fa-e198-4ce4-80d8-45d8ba3161c0", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "99a6bf03-8683-437a-b7ae-5d5ae2fb6b59", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "dc8e104b-5a4b-4cbd-acaa-5e71d882487e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "4ba2d726-e85e-4eaa-ab4b-357a44ee9894", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "8785f245-5a79-46bf-af2d-a3e7804eb75b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "0772d6a7-bbba-4e28-b36e-f295d4bec31a", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "2517c02e-0c9d-4f0b-98d3-1d09520e971b", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7dafd289-ad50-4e25-8918-15405e5933a2", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "40c2c568-878f-48aa-915d-90eea94bf6d0", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "bf0323b1-4238-4043-9a54-037c4d380623", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "da24ded6-157b-4d5f-a74d-5ac6dfaae77a", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "ac2df8d2-4641-4208-91d2-02851c45ba57", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "834129cf-68ad-40a6-8b82-0b4f186fa74e", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "861ebc20-2eac-472c-b163-441aa377d260", "comment": "vérifier présence nouveau champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bba4e4ed-381d-46bd-a80b-9d424aff88d0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "29cd3b97-7282-4048-b0eb-e4e27ed45378", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "1ad04223-e68b-4030-90aa-69cdfec10f82", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "68ca3a31-488b-401f-bcbd-0a3fc26de0e9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "03835201-27fe-48c5-855f-a27af694e574", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "6cf67a44-31a7-4633-9a7d-e5e6fb63fb79", "name": "11-33 ajout pays", "commands": [{ "id": "9c879e70-9231-4331-975d-50c55f647f8a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "37ebcf3c-e395-43e3-9930-ec70f89bed8d", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a3f3453b-9078-450f-951b-63a13abe6b96", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "d6e2a9b4-e533-47ee-8fc7-8f9e19658b49", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "60694ebe-f686-4b1e-9482-b94dcccf5458", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "4ab85295-e917-4490-994c-6f95ee861eee", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "b3901bae-cecf-41d1-894c-a2814eb866e9", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "50b74db5-33f9-4cdc-9178-2d3eeb1357d9", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5b6165de-a6d3-4c03-acad-84101008f283", "comment": "ajouter pays", "command": "", "target": "", "targets": [], "value": "" }, { "id": "c5d2ba2d-4d51-4286-8fc3-40838e3d622a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "cbc09d2a-230e-4e25-97fd-96ff45888024", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8ac57600-22c9-42b7-a0c8-bcc3c7907147", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "02abe070-8dca-4f06-8957-159b20f9a90e", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "4053e32b-d121-46db-b00c-d13915116eb8", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_pays\"]", "targets": [], "value": "nb" }, { "id": "3897980b-57c7-4c9c-a4d4-b5c2b6fe33d2", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "8065bc0d-dcfe-464a-be70-9fd0061efd87", "comment": "", "command": "store", "target": "Pays", "targets": [], "value": "libelle_champ" }, { "id": "de38f6a5-70fb-43a7-83e0-14bf589fb455", "comment": "", "command": "check", "target": "id=f_preset_pays", "targets": [], "value": "" }, { "id": "d861bdc0-3edf-49e7-9816-fe691bc8c91d", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "b9317d70-6cdb-4047-9785-db0dd5c8cbed", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "774fea25-ea37-4d4f-9fe7-b8e5b524fb4e", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "302dbd5a-15db-475e-a27c-d9bd3edc01d9", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "012077c5-72c6-4a26-bf00-9df130082d7d", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e1b569e8-6f43-47f8-8768-5de159d42ef0", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "9d0ef04e-c486-498d-a186-916132c93880", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "20ff3ef4-d786-4f84-91af-5f92cd6dc0f7", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "086dce39-642d-4ac7-bd83-5c899f1df27a", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "a4b9f1c9-b7db-4cee-aa20-91dafd6074b5", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "87080eed-4010-4145-a955-67bbeeddc981", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "7438da67-a5af-42c8-8950-d284c0c9391f", "comment": "Choisir un pays au hasard", "command": "", "target": "", "targets": [], "value": "" }, { "id": "02c673b2-d01b-4747-b097-4d436233a138", "comment": "", "command": "store", "target": "f_pays", "targets": [], "value": "id_champ" }, { "id": "e395e871-b2b0-47f9-9032-ca0500177327", "comment": "", "command": "storeXpathCount", "target": "xpath=//select[@id=\"${id_champ}\"]/option", "targets": [], "value": "nb_pays" }, { "id": "b87124ec-2332-4d70-a4f8-bc3671b9fadd", "comment": "", "command": "executeScript", "target": "return 2 + Math.floor(Math.random() * (${nb_pays} - 1))", "targets": [], "value": "num_pays" }, { "id": "8e93ed16-ea5f-473a-880e-006b3b232d5a", "comment": "", "command": "storeText", "target": "xpath=//select[@id=\"${id_champ}\"]/option[${num_pays}]", "targets": [], "value": "valeur_champ" }, { "id": "fd48a58d-853a-4e98-af38-6455c9695183", "comment": "", "command": "click", "target": "xpath=//select[@id=\"${id_champ}\"]/option[${num_pays}]", "targets": [], "value": "" }, { "id": "01b42560-7239-4b2e-9d9f-44d444c501fc", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "b9a4a9a9-4a1f-403a-a740-aed6454f3454", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9da78d74-74a2-46d2-9103-16c5849e09f0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "f5415345-a0e9-4b13-84e1-bb833eeccabf", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2e0a7974-e8b4-4e32-9943-3fbb546d55fa", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "3991ed1e-1e10-4d00-b317-d72d6b86dc89", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "ea785b4b-41a1-4cc4-bd9e-e45934518152", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "a7409078-d04b-47bd-9b1a-560958b04615", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "9f5163a5-c042-4e54-b3c9-2e72d1884afd", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "ded4a4f9-7fac-427d-8cc3-5768c1d5c197", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "0e0b35d2-6aa5-4139-b91e-87e2a983a28b", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "d6947978-fd82-4733-900d-9b4fbb1d7956", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d534b7b0-9ce9-49f4-954e-f7dc54991bb2", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "2bb2f4a9-98be-45e3-a62c-164e11188bc7", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "05969b20-6316-4a7e-8063-5a8a9bb93c92", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "4f4017c9-827e-42a1-bf7b-9346346a100d", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6569f75d-9b38-40cb-9f34-fde52443b19b", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "a4aa0402-5ca9-4678-b0bf-ffae8669741b", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "d118ab1d-520a-47d8-939f-da57d47e531b", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "9b7ba5a2-7cac-44ca-959b-c8001462364f", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "332e0f2c-abf1-4b5f-92b1-ff3bf203c49c", "comment": "vérifier pays", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e5f316ad-d06c-42e1-90e7-d3bcd89757e9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "5f5cc558-8cf5-485c-b8a7-c284106009d8", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "4d955d84-c92e-4ac9-9b5e-dbc280b55565", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "41b94457-49c8-404f-a373-d3841d9e0ef0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6067cbd9-5fec-4f06-97b4-a83945c41f81", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "296dd358-da84-4f5d-a1e0-e035021b288c", "name": "11-34 ajout photo", "commands": [{ "id": "b88cb1dc-ef59-4503-9d4d-92e222b71df2", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "27aa766a-ea0f-4465-b297-9da1dcac182f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "7b220fed-3fa7-42bf-8b3e-bf06e32b1b8a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "e7e5cfcf-a224-4c1e-8a63-80b40fa83a2f", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "8aa7aa59-7651-4b52-ad2f-f02ab9d085cd", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "1ffb2d76-81ef-4219-bbe4-4f0f1e4dbc6c", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "91c6e526-06f7-45b0-a7fa-fbec8d1cb447", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "adc0e8dc-027e-443e-a936-bfaa1db43e9a", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "02ffdb72-bdee-4645-bee1-e1f8d242e510", "comment": "ajouter photo", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b9f14593-abd3-43db-a694-0516960c0a88", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "0cc0347a-04e1-4561-be9e-cf9b420c4f1c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1b3a352c-85bf-4b78-ab48-bbaabb50c751", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "90181724-6239-4ba8-b951-b3ee7e7cbb56", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "4713da1c-1093-434c-9cda-6c6818ad83f0", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_photo\"]", "targets": [], "value": "nb" }, { "id": "a9e106d6-0c56-4f53-bcec-567f17daa516", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "2d41c59c-20f0-430d-b183-308ba1216aa6", "comment": "", "command": "store", "target": "Photo", "targets": [], "value": "libelle_champ" }, { "id": "432429b9-6c98-4434-a188-b2c11e47b3e3", "comment": "", "command": "check", "target": "id=f_preset_photo", "targets": [], "value": "" }, { "id": "4c1b968b-206d-4a4a-b4f9-5a5ccb789e92", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "6010bc6b-4f78-40ba-ab4e-af58db256e0d", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "efe74484-e4f0-4ac8-8d3e-04c0cb28cc87", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "c57ac593-ef8d-44a6-a849-eb25130ba073", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "3f080442-d747-4586-9985-74bf49e71fc3", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4533f4a0-b0df-4071-b6b5-6a8224039d61", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "0070f211-b6a9-40ea-8e96-d95f69334497", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "308ac765-af79-4737-8277-ef98b089f0fc", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "2b4241e5-6e89-43f5-ac17-047161cbe7f8", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "fe8ad334-6430-485d-acd8-fa316ec80a37", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "d9132fa3-cbbb-46ae-99fb-9f0715a2e315", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "d364bdbc-ab8e-4089-b0bb-2b7710018909", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "eca73fe0-6153-4fa3-b048-1abd239c0afe", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "dd53d628-c75f-4c64-8bd1-c4e7b5ef6939", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "5faff541-fce5-4f19-8b3e-aea7cc2c3ef7", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1afea02e-9fb7-4cee-aa15-623470a0d9c3", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "3b7657d2-adf9-423e-bf8d-3dfa02b0c9fb", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "a5bf8e1e-90e1-4e92-9b8c-6929176c13a5", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "450f66c1-59cc-4338-a11e-001cfbc3e44f", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "41e3cdd6-5d62-46e1-9a77-fb7c9649e3ac", "comment": "Ajouter la photo", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8f6e35b2-82f5-44ba-a681-dc399a5928b1", "comment": "", "command": "store", "target": "photo.jpg", "targets": [], "value": "nom_fichier" }, { "id": "72048b23-c15a-42df-a977-ec457555833f", "comment": "", "command": "click", "target": "xpath=//dt[text()=\"Photo\"]/following-sibling::dd//a[contains(@href, \"upload.php\")]", "targets": [ ["css=.action-upload span", "css:finder"], ["xpath=//p/a/span", "xpath:position"], ["xpath=//span[contains(.,'Ajouter un fichier')]", "xpath:innerText"] ], "value": "" }, { "id": "07d4fc03-fd71-453e-a0d6-1ae828c55325", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "19113e99-e0d0-4420-a558-6a3da2288887", "comment": "", "command": "executeScript", "target": "let filename = document.querySelector(\"#f_file\"); filename.style.display=\"block\"; return;", "targets": [], "value": "" }, { "id": "c74736d4-0d8c-4d2e-b920-4cf934b8671a", "comment": "", "command": "type", "target": "id=f_file", "targets": [ ["id=f_file", "id"], ["name=file[]", "name"], ["css=#f_file", "css:finder"], ["xpath=//input[@id='f_file']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "/tmp/${nom_fichier}" }, { "id": "8692f36f-8899-44ef-b3f3-c04b9fc720ec", "comment": "", "command": "click", "target": "xpath=//button[@name='upload']", "targets": [ ["name=upload", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='upload']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Envoyer')]", "xpath:innerText"] ], "value": "" }, { "id": "ecbe5d85-8e77-484d-bb07-a2c47db2b48d", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "9852c541-bc2f-4b41-bbf4-e45ced24fd98", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "ce53507d-25dc-4fa5-9ac4-5c81d87e6f58", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "cc69434a-c8ff-4d9c-b4eb-db389b6eb5e1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "970c5779-412f-4a57-baee-df331dde3de9", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "9dc5a369-ed38-484f-8239-0a238b953eb6", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "a3650ef7-5ea2-44d3-8434-dd6c265344f2", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7740358e-b340-42c3-b194-265e60c0e219", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "6b65405e-27a1-48c8-9c71-32fda036da3c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "6a05d597-a907-46f5-993e-030cfaff39fc", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "85a40417-aee6-4b41-82a0-29cf5dda0112", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "41b4352e-25b7-481c-8504-0c54481e9e91", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "75b93f60-0bb8-4f8c-b1dd-06a961c50565", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "bc6dc908-44fc-40c2-afcd-2027bb31fabb", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "90a7e68c-c0d8-4e80-9e17-1652b7403685", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "5ff68d5b-4847-4f18-9099-cde76e3906e3", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[@class=\"files-list\"]//a[contains(@href, \"${nom_fichier}\")]", "targets": [], "value": "" }, { "id": "6d284ec9-b5f9-4da6-9931-d009d1c269f1", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "cb49d50b-25c3-4fb4-87ae-81bd7299d195", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5179aef9-2763-4add-8d7e-e84da06d2ff2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "092e4b79-eeae-4ea9-8c09-1c059370f310", "name": "11-35 ajout pronom", "commands": [{ "id": "b7fe99e0-164e-4761-a15b-c0bf9dae9170", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "2a40475d-249d-44d2-ade2-e2a113789550", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "a10a7f73-60c6-4466-b343-38edbc0764b0", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "8c2ed054-fae3-4e40-a631-caf3ee869338", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "efbc488c-60d2-4f26-95bc-805e9e166eb4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "fb5648e9-6d58-4808-88aa-88f0718053a1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e3130c42-c782-47ce-9b4d-0a115523c7a3", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "cf6ba774-3087-421a-8c3e-f1a8e49c9b57", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "53657702-49f9-440c-8f4a-bc736c86b985", "comment": "ajouter pronom", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4744a70e-81af-4170-a86b-ab86a10d00b0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a43d03f0-eb2d-4849-897b-18fbafe81db5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "3d883c42-aadc-4c55-9dbd-97222dce6a09", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "29ab5533-3986-4e6b-8a21-e90b6df5bfd3", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "31614112-88c2-4ad0-bf83-fd356ca64d3a", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"f_preset_pronom\"]", "targets": [], "value": "nb" }, { "id": "721f59cc-382a-4b22-865d-0f300049e745", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "284b2343-8f6a-43ec-acc5-45c9d3455f85", "comment": "", "command": "store", "target": "Pronom", "targets": [], "value": "libelle_champ" }, { "id": "9c457c10-f0fc-4d99-b76a-742664b46adb", "comment": "", "command": "executeScript", "target": "return 'f_' + ${libelle_champ}.toLocaleLowerCase()", "targets": [], "value": "id_champ" }, { "id": "34e85066-39a8-4c58-9e85-c704db999ccb", "comment": "", "command": "check", "target": "id=f_preset_pronom", "targets": [], "value": "" }, { "id": "183ae90e-12ae-48e9-a2c2-9b93abef4303", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "4fb2e42a-99ef-4e57-9c28-06fe81085229", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "c19e44b4-1d41-4544-85d0-29c32cfe30fa", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "591ffb09-e3fc-441e-a1ef-81bff631bb72", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "a86c1d45-c9a7-4309-b7cc-9b03503bddcb", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5f7a4285-ef4c-421b-a3f4-589f4957f213", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "da18870f-9fc5-48e2-b7da-6e8b7831726f", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "d10d3603-1465-495d-b3f1-9f84627406b7", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "e47acd5d-1b58-4124-be8f-0766970e48c6", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "17277c3b-e70b-4ce1-b2dd-8628ef0f90cb", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "123691e5-8f19-4cab-b4f3-3387a5af2afa", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "4347c922-7a79-4ce4-a396-de764c11a9a1", "comment": "", "command": "store", "target": "elle", "targets": [], "value": "valeur_champ" }, { "id": "7d70d0c9-99cb-4fa7-9ac2-432f7042c035", "comment": "", "command": "click", "target": "xpath=//select[@id=\"${id_champ}\"]/option[@value=\"${valeur_champ}\"]", "targets": [], "value": "" }, { "id": "d8de20c4-1774-4c0e-bb17-f5bff62cdc8a", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "d2c47bee-c8f4-499d-85e6-02ef714fa270", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "11f1cffd-b70e-4fa8-8c4e-77741dbab2e0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "81519992-e28b-4b62-98c8-fcfc0486c6f0", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "86043ee9-b1e9-447e-ac44-ca047b9a08c9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "4fd67c8d-d1d2-47f8-afb6-309418d861fe", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "2cd7d210-2ab7-4f9e-baed-7d9873b1a0f1", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "fd16f21a-b55f-44eb-8db3-7181ca1d511e", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "840fbdf0-3391-4431-bcad-3b9188b818d7", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "eeaad0b3-2f51-4e15-b387-4a94542bb488", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "8b9f2a83-056c-48b1-8217-bc309457ab08", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "ff6cc35f-1e6c-492a-8d5f-27fd48c185d8", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "b3d88e84-1d3b-4a50-9077-e77d0192b6dc", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "3538e13e-15f6-4ee3-b600-8d5b6d770650", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "66d16d31-be42-4b56-9559-218307d282aa", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "256b5e62-62d1-4230-a861-304dc067eaf9", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "7aca4b0a-55f7-4b58-93a3-bf49d6bd394e", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "59ec9d57-dc7c-4963-ac6b-913f94379404", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "0e73d54d-25b6-4589-9304-afa02a7950d5", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "480870b5-3419-4552-844b-2f0ffc60db27", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "1e56570a-76eb-4c46-bc4c-f8d324082331", "comment": "vérifier pronom", "command": "", "target": "", "targets": [], "value": "" }, { "id": "650999f1-9458-4892-84ed-05624f0ea336", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "19ae2d39-7764-4523-994e-5f8d88b96ab6", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ}\"]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "4bd67dae-81a3-4a91-bf39-603529776bc4", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "2aa5d9ad-9086-46ab-829b-2fc6e410603d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "8d11d1d3-e647-4107-8ebc-d9af9a0ac85e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "9ee360d7-d167-4cb6-9a6f-c571c52a0c7f", "name": "11-36 ajout âge selon année naissance", "commands": [{ "id": "ce1cac19-f8c9-44da-9313-350275f19f48", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "4e6e5b73-9f8f-4a80-aa94-ae318c4f8104", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "4ddcdd7c-4fe2-4919-b2bc-ff4582378a7d", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "0e5a793a-26f3-4b10-9856-d3d893e67a73", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "e683277f-3c71-47ba-be25-4cdb26cb0c4c", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a2a50a5b-2e82-44d2-90ee-ad791fbddb77", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "706df1aa-584f-4b88-91f1-0cda3518d29a", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b2dbe428-2af7-4d95-b2f0-45386b898efd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "37925642-b64c-49e3-a732-87ed1bea5de2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a9a267a0-20c9-4000-8be5-b49c00bd41e1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "a9024e43-6c18-4585-a992-21aa2927b315", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "0710e3b2-43c5-44b6-8acd-b05a779465a8", "comment": "ajouter champ année de naissance", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ab921f36-1dd9-411a-808a-1249dfee7ca0", "comment": "", "command": "store", "target": "Année de naissance", "targets": [], "value": "libelle_champ_annee" }, { "id": "11f6880d-abee-4142-a560-e7e9fc350e16", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ_annee}\"]", "targets": [], "value": "nb" }, { "id": "fe550314-de8d-406f-828e-fb398b756f82", "comment": "", "command": "if", "target": "${nb} == 0", "targets": [], "value": "" }, { "id": "9bac9585-8531-49fd-9ad8-aa057e06e3a3", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "a0e8c22b-9565-415f-afae-cd964c9335d3", "comment": "", "command": "check", "target": "id=f_preset_annee_naissance", "targets": [], "value": "" }, { "id": "35df8c59-b30c-4e3e-a1a8-f9a5ccb2d318", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "275faa89-1108-4763-b28c-a696406d842d", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "b6f80f69-005c-438e-9841-63849a7e3729", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ_annee}\"]", "targets": [], "value": "" }, { "id": "5172acf9-59d9-4c35-ac37-ddbefff653fb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ae28181d-4e38-48a7-80dd-b48084b8d31b", "comment": "ajouter champ âge", "command": "", "target": "", "targets": [], "value": "" }, { "id": "17a2f235-7d15-4ed0-afb0-af1b3e9737c9", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "33a446e1-9b6a-49c7-b0c8-31165f9a9e77", "comment": "", "command": "store", "target": "age_annee", "targets": [], "value": "nom_champ" }, { "id": "bddd9228-c190-4306-a0d7-5b27abe79c90", "comment": "", "command": "executeScript", "target": "return 'f_preset_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "c84c1425-207c-44f9-8a32-c06cf0e72afa", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"${id_champ}\"]", "targets": [], "value": "nb" }, { "id": "da70ad28-b9da-4f9a-b60e-0a86e0505f9b", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "6a20a0ed-b016-4c5a-b553-7e0c0b2182d7", "comment": "", "command": "store", "target": "Âge", "targets": [], "value": "libelle_champ_age" }, { "id": "33545222-0cb6-4c0a-9ae6-f6f4a6402de8", "comment": "", "command": "check", "target": "id=${id_champ}", "targets": [], "value": "" }, { "id": "aa4d35b9-9529-46ec-a5a6-faf60dc9d5b0", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ff7ab139-14f3-44ce-85c6-a7f7bcb76c1b", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "f2944082-65b7-4c9f-b82c-88c1aef0c80c", "comment": "", "command": "assertElementPresent", "target": "xpath=//input[@value=\"${nom_champ}\"]", "targets": [], "value": "" }, { "id": "191c6f17-7a41-47ee-820b-367b206cd26c", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@value=\"${nom_champ}\"]/parent::td/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "49bd8025-85ef-41bb-8c7c-19f8e4d43639", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9adcb676-c40a-43f5-b363-52cff5eb2338", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "3180b23b-a920-4f06-96bc-af9989b42ddf", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "a51d5db3-0b74-44c7-afed-e00a18561a04", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "be1f4037-0452-4b01-891c-402d3db04520", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "586d82c2-8552-4aa3-9778-38d0bc324870", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "d4c4e152-6463-49ce-b8ef-e7da62ee940d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "7d5fd55b-3a8b-49a4-b55d-24a707a6a8c0", "comment": "", "command": "executeScript", "target": "return 1920 + Math.floor(Math.random() * (new Date().getFullYear() - 1920))", "targets": [], "value": "annee_naissance" }, { "id": "a86d5a01-0501-46bb-9100-36bae98a33be", "comment": "", "command": "type", "target": "id=f_annee_naissance", "targets": [], "value": "${annee_naissance}" }, { "id": "8fc46db7-9134-46b0-b43a-9046d69381f7", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "c3fe471d-df49-4620-9129-a44d94adc29d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "d0108b36-4f53-4d0c-8cf3-08972fb2768f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7ee51d01-70e7-46ea-8307-1dc4a9eb0e94", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bc2b707b-5b2e-4168-9459-578ce0222249", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "6a90b1e5-7bad-4e31-9ba3-491c06e83220", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "ed3a3b19-59e1-4e3f-a0e6-d55198053f2c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "637724c5-eb6c-4722-b36f-4f4ef60f0e52", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ_annee}\"]/following-sibling::dd", "targets": [], "value": "${annee_naissance}" }, { "id": "28ab656f-6ee0-44fb-a748-a396d158e77e", "comment": "", "command": "executeScript", "target": "return new Date().getFullYear() - ${annee_naissance}", "targets": [], "value": "age_calcule" }, { "id": "785cef2e-de56-4dfe-b27c-5b5b7f2a9452", "comment": "", "command": "storeXpathCount", "target": "xpath=//dt[text()=\"${libelle_champ_age}\"]", "targets": [], "value": "nb" }, { "id": "5b466bb2-82c5-4dae-a308-6f4af34d5262", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "6005694b-6607-4a31-bc3f-20179ebccfe8", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "age_ok" }, { "id": "7122da0e-4ed9-49d7-ac5f-40ff98b8db59", "comment": "", "command": "while", "target": "${num} <= ${nb}", "targets": [], "value": "" }, { "id": "b09bc510-79fd-4774-b98e-0eef6ba46f83", "comment": "", "command": "storeText", "target": "xpath=(//dt[text()=\"${libelle_champ_age}\"])[${num}]/following-sibling::dd", "targets": [], "value": "age_affiche" }, { "id": "b52a46fc-1bcd-4c9a-80ba-4155b33c9c07", "comment": "", "command": "if", "target": "${age_affiche} == ${age_calcule}", "targets": [], "value": "" }, { "id": "ec60af3e-44b6-4e32-b865-ed07a6d4f9db", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "age_ok" }, { "id": "023b700b-887b-4bed-9f7a-648803b6c2c9", "comment": "", "command": "executeScript", "target": "return ${nb} + 1", "targets": [], "value": "num" }, { "id": "bf0e8a45-d6ca-4646-b18e-1c3bab880acb", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "c8bf749b-82a0-4692-9d4a-49eeeb740cb9", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "1ccc1cca-986e-495c-a852-8f6dd9e7cef2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "91bee6aa-0ac9-4d9e-8163-761ea7517027", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "262e4b99-9bce-46f1-86e3-02cf9658293a", "comment": "", "command": "assert", "target": "age_ok", "targets": [], "value": "1" }, { "id": "9155a4f5-6b74-4f86-946f-f929ba4b5b18", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "6ca26915-2d5a-464e-9bba-fbb03bcefdcf", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "8b57704f-2fca-4d98-ac3b-4a135e6b2f7f", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "3a40b5f7-a677-4e57-ac32-fcfe6acbf1f3", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "6d187447-78c0-4804-978b-d84b41aa78e5", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "2733ce2b-590c-4f14-b416-6122d3207bcf", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "4c4f3d26-8807-4e3c-a280-15f696ff2d6a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "5bc60816-b99c-4a45-b030-093c001e1be0", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6e84a291-91e7-422b-ae5e-88ebcb2c406b", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "5f43f7dc-3ef0-48e1-87ef-18fa6fa147b6", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "0c084ebe-7ff0-4b84-8faa-aec788fcfb18", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "67f3f3ec-f96e-4863-ab8e-527d611e05b1", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "aeaf0ae9-e60a-4827-a1df-d80670995089", "comment": "vérifier présence champs année et âge", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2df2fe24-cbc1-4be8-8434-f57823066b49", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "8b40dcb9-4c84-4b86-a8b9-26fa18b680b6", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ_annee}\"]/following-sibling::dd", "targets": [], "value": "${annee_naissance}" }, { "id": "6af4e0a4-a63d-410d-9807-cd249433e435", "comment": "", "command": "storeXpathCount", "target": "xpath=//dt[text()=\"${libelle_champ_age}\"]", "targets": [], "value": "nb" }, { "id": "275d85d8-ac44-435a-ab28-2fe6aa6354fe", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "f43688ee-3066-49f3-8cb7-3ee5cd735dbf", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "age_ok" }, { "id": "3b9572bc-a276-4b8c-affb-29ae5d4b9184", "comment": "", "command": "while", "target": "${num} <= ${nb}", "targets": [], "value": "" }, { "id": "88b59614-ae4f-42d2-ad46-9c1a4d0affa8", "comment": "", "command": "storeText", "target": "xpath=(//dt[text()=\"${libelle_champ_age}\"])[${num}]/following-sibling::dd", "targets": [], "value": "age_affiche" }, { "id": "c3024f57-6e84-438a-833d-e55011a6a583", "comment": "", "command": "if", "target": "${age_affiche} == ${age_calcule}", "targets": [], "value": "" }, { "id": "8cf81f48-7a5c-460e-b829-9e2b28047fc8", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "age_ok" }, { "id": "9331daee-d09f-487e-83bc-a8baeef11965", "comment": "", "command": "executeScript", "target": "return ${nb} + 1", "targets": [], "value": "num" }, { "id": "3e5472df-8797-4c08-bc4e-d0c48d6b86fa", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "d01e76e1-1bf4-49ca-890b-708c702a494d", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "dfb44996-6236-40ff-9c42-0a3bb47e2326", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6ba0d08d-77f1-458b-ab8a-b425ed78df87", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "70e2effb-f855-4f28-8e8a-7e401efce93f", "comment": "", "command": "assert", "target": "age_ok", "targets": [], "value": "1" }, { "id": "f4f8a838-1ac2-4632-9e53-524ddcd22b4f", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "90cc4b74-d81c-4160-ba34-5f366597680f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e80b6d2e-8f00-4483-a6b8-2f428bfd9b85", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "0e90818d-fe5f-4135-bafa-99f640d63714", "name": "11-37 ajout âge selon date naissance", "commands": [{ "id": "dd5e6c38-5348-4bbe-be42-3a824b62c581", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "a4ecbc49-1f5b-458d-a548-635a0dabcb17", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "3421262a-98fe-460e-919d-58ddee2d7724", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ff11a8a4-075d-4410-83fd-2e6514c1417c", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "fba1d288-9eb0-44d3-ad38-ed39fa5dd3c7", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "0b5b47f1-a654-4743-a8fc-8de9c59e1b46", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "940ebea0-15d0-4bb6-80fc-97df31f2bf8f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "525f6f68-4eb4-41ca-a6aa-b2a61bb2111e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c029c5cc-6b23-4823-acfc-36b526a7b711", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "cebcb57d-e829-4cc0-a3e7-f6606476bf95", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4d38c77d-bd64-4b8b-a7e1-ac0dbf825269", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "f0f0ed1b-8b31-4bbd-8c2b-461541180dbb", "comment": "ajouter champ date de naissance", "command": "", "target": "", "targets": [], "value": "" }, { "id": "952a9253-cca0-48db-8231-33d72a8b39c0", "comment": "", "command": "store", "target": "Date de naissance complète", "targets": [], "value": "libelle_champ_date" }, { "id": "45798164-d7c6-4222-979d-47301cd4435b", "comment": "", "command": "storeXpathCount", "target": "xpath=//th[text()=\"${libelle_champ_date}\"]", "targets": [], "value": "nb" }, { "id": "f46e8211-6f3c-4450-8311-f3bc43bdea5e", "comment": "", "command": "if", "target": "${nb} == 0", "targets": [], "value": "" }, { "id": "7e2234e6-d0e6-44d3-9ecf-5925de0363cb", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "51124f9e-2466-410a-b9a1-97662e1757a3", "comment": "", "command": "check", "target": "id=f_preset_date_naissance", "targets": [], "value": "" }, { "id": "fd1bf5c4-55b4-48d9-9bb8-4573168594b8", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "a32cca98-c0f5-48c6-9a8c-c848d1c18d17", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "f53ebc1d-3ffb-41dc-9185-bcb30857e2cc", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ_date}\"]", "targets": [], "value": "" }, { "id": "2a3b33a7-b7af-4623-a310-580b6cff6ec0", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "2eaf5538-4f5b-4ff3-9890-fcb60a15c650", "comment": "ajouter champ âge", "command": "", "target": "", "targets": [], "value": "" }, { "id": "51428285-6555-4467-8d92-e9fda75807db", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "9c75ddbb-01d3-49c9-a86e-a7be3133be2f", "comment": "", "command": "store", "target": "age_date", "targets": [], "value": "nom_champ" }, { "id": "1ba927b3-7712-493b-87f7-84e436a3bd34", "comment": "", "command": "executeScript", "target": "return 'f_preset_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "6500a525-ecf3-41f6-946e-15319f5b73ff", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@id=\"${id_champ}\"]", "targets": [], "value": "nb" }, { "id": "a7ad0047-c26b-433f-afee-66a05a09f9b1", "comment": "", "command": "if", "target": "${nb} == 1", "targets": [], "value": "" }, { "id": "143dada9-491c-4cda-96cf-14e04a250fa8", "comment": "", "command": "store", "target": "Âge", "targets": [], "value": "libelle_champ_age" }, { "id": "e5e0e876-39a5-486e-8857-b84878864a2e", "comment": "", "command": "check", "target": "id=${id_champ}", "targets": [], "value": "" }, { "id": "3f0c50b1-e93b-4886-b4f9-a1f6dede21d9", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e6cf7072-4cc0-4f90-9bf1-8cfb90997802", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class,\"confirm\")]", "targets": [], "value": "" }, { "id": "dc797cd2-0232-4efd-9c11-770790c3af12", "comment": "", "command": "assertElementPresent", "target": "xpath=//input[@value=\"${nom_champ}\"]", "targets": [], "value": "" }, { "id": "cfb82bbe-2237-4732-8080-24d7cedc49b8", "comment": "", "command": "storeXpathCount", "target": "xpath=//input[@value=\"${nom_champ}\"]/parent::td/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "visible" }, { "id": "5d5fce61-a240-46b0-985c-2b1d56a4f378", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "25f35ea6-cc98-4140-9253-19029624dcfc", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "501e01f4-592a-4af8-b795-55514085ace9", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "9a02fa8b-24ef-4ec6-9fe0-6b98d20124a1", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "bd65aa6f-2a0e-49a8-a03b-08aa7f7ee25b", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "4fb2d6a5-a981-42b4-8ecf-cf959226fab3", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "f04780a7-e5e8-4c0e-87f1-24804851021d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "cf2dfb2d-e50d-4454-b964-821b4c96e2ef", "comment": "", "command": "executeScript", "target": "function getDate() {let j = 1 + Math.floor(Math.random() * 31) ;if (Number(j) < 10) { j = '0' + j; } let m = 1 + Math.floor(Math.random() * 12); if (Number(m) < 10) { m = '0' + m; } let a = 1920 + Math.floor(Math.random() * (new Date().getFullYear() - 1920)); return j + '/' + m + '/' + a; } ; return getDate();", "targets": [], "value": "date_naissance" }, { "id": "d3da6eee-bad3-4aed-8631-b94542d63e69", "comment": "", "command": "type", "target": "id=f_date_naissance", "targets": [], "value": "${date_naissance}" }, { "id": "f33263e4-9e3a-421f-91b2-e54248f75ea6", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "a3ef2b9c-739f-4438-b5cb-7ef4927bea18", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0eff5fe1-d504-4aad-baf6-8d8db7b93b1a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "683737d3-9a49-4237-af3c-02365ec078fa", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f437f184-1214-4056-8362-260cfb78042a", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "80f09857-8671-4fbd-836c-c06e75ee7d6b", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "597dac23-bd91-42de-8afa-d86b0ccf86d8", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "88eebacc-0644-4acd-86bf-1c6c3598164e", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ_date}\"]/following-sibling::dd", "targets": [], "value": "${date_naissance}" }, { "id": "a5a18437-e548-4723-9534-f7e025b2a650", "comment": "", "command": "executeScript", "target": "function diff(d1){ let [j1, m1, a1] = d1.split('/').map((x) => Number(x)); const d2 = new Date(); let a2 = d2.getFullYear(); let m2 = d2.getMonth() + 1; let j2 = d2.getDate(); let diffAnnee = a2 - a1; if ((m2 < m1) || (m2 == m1 && j2 < j1)) { --diffAnnee; } return diffAnnee;}; return diff(${date_naissance});", "targets": [], "value": "age_calcule" }, { "id": "14be73dc-eb85-46fa-8f0d-ca0385ced772", "comment": "", "command": "storeXpathCount", "target": "xpath=//dt[text()=\"${libelle_champ_age}\"]", "targets": [], "value": "nb" }, { "id": "229ef8d7-be17-4e4b-a04f-a045dedc66f2", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "adf37067-e6f5-4f9b-9a1b-992ed2857809", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "age_ok" }, { "id": "02ea2b06-09d5-4948-a768-a2c9ce70ae00", "comment": "", "command": "while", "target": "${num} <= ${nb}", "targets": [], "value": "" }, { "id": "c9a164a7-ba09-413d-b0d0-9e9b4785bf2c", "comment": "", "command": "storeText", "target": "xpath=(//dt[text()=\"${libelle_champ_age}\"])[${num}]/following-sibling::dd", "targets": [], "value": "age_affiche" }, { "id": "f472abb6-3e51-496c-b6ff-f8a71250a88f", "comment": "", "command": "if", "target": "${age_affiche} == ${age_calcule}", "targets": [], "value": "" }, { "id": "94d7bc13-415c-4b5d-8c12-c2e093c040f4", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "age_ok" }, { "id": "03c95230-cab0-4fc1-9c80-201dbd925ab2", "comment": "", "command": "executeScript", "target": "return ${nb} + 1", "targets": [], "value": "num" }, { "id": "d792d24c-ede5-4432-a776-b9fd3f6d59d9", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "26e3cc7d-8178-4575-9caa-1b3f5a807473", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "9e0d7a02-b14c-4d67-ae33-dd02484fbb43", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1c4d6444-a77d-4db5-8372-58ba1fcae7cb", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1eab7860-c55f-4097-b924-b038d35a089a", "comment": "", "command": "assert", "target": "age_ok", "targets": [], "value": "1" }, { "id": "be80b0c0-1b59-4789-85fd-6062db5c3711", "comment": "", "command": "if", "target": "${visible} == 1", "targets": [], "value": "" }, { "id": "860d560f-222e-487c-ac88-6ee2e235d598", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "15fe1b2f-08f5-48f4-a6dc-3df4f662ef74", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "656a8506-5540-406e-8998-3da4bf722a62", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "eab80007-04e1-4002-a20a-c2424583cb4e", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7cc75434-2020-4ab1-a9cd-688264a864cd", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "583799a8-0f84-4c64-b51d-cee3b3cf4ddc", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "2abe40c5-f2ea-4e26-a97f-7029565374d5", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5e5681b3-3ff7-4209-94aa-044c3ffe8cb9", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "999c79c4-871e-44a0-a988-6926bd03848b", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "d97dd482-8981-403e-a703-ba4ebb8cfb0a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "89970156-de2e-4107-b64d-b2a70e0e1ef3", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "6b2c3a64-7862-4c77-8833-f64e27068530", "comment": "vérifier présence champs date naissance et âge", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a41b1df9-d117-47ae-8e59-78f45cf35478", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "2b64d3af-31da-4dab-9117-82f3d8eb94bb", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"${libelle_champ_date}\"]/following-sibling::dd", "targets": [], "value": "${date_naissance}" }, { "id": "7777a7c3-aeec-4291-9677-6a9e1586c2db", "comment": "", "command": "storeXpathCount", "target": "xpath=//dt[text()=\"${libelle_champ_age}\"]", "targets": [], "value": "nb" }, { "id": "e2422889-7373-453d-9797-94be7b7d39c0", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "2fa67e0d-fd01-4276-9c44-a2a82fd39ea1", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "age_ok" }, { "id": "69f308f1-ecbb-40ab-8928-a63ef07a412c", "comment": "", "command": "while", "target": "${num} <= ${nb}", "targets": [], "value": "" }, { "id": "5b514001-b5a8-4bd1-8048-b9de0b712ce0", "comment": "", "command": "storeText", "target": "xpath=(//dt[text()=\"${libelle_champ_age}\"])[${num}]/following-sibling::dd", "targets": [], "value": "age_affiche" }, { "id": "91d93e3d-47d9-4674-bdb3-2dd18d19f7ee", "comment": "", "command": "if", "target": "${age_affiche} == ${age_calcule}", "targets": [], "value": "" }, { "id": "5fa3b73e-9b16-45cc-8ccd-1ade60d33c7a", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "age_ok" }, { "id": "6008e584-3cbe-45ae-9516-0a9eb865d477", "comment": "", "command": "executeScript", "target": "return ${nb} + 1", "targets": [], "value": "num" }, { "id": "ba69d69a-5b0c-4bea-a42b-c12a67064c5e", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "d8332ade-e409-42da-9a4d-96ee6f6bc545", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "5f96851f-eeff-4eff-958e-788695b84a10", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f6af3f10-c6ff-4f7b-af2b-a8c7b2070f65", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1a7d8f76-abb3-45f9-b764-f562aaa44b4e", "comment": "", "command": "assert", "target": "age_ok", "targets": [], "value": "1" }, { "id": "2e54d2ed-03ec-47e3-bb4a-52eeecd62d01", "comment": "Déconnexion membre", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "411852f9-dc63-4da9-94aa-79a92eed8cb4", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "31ff3805-0c16-4d78-a567-feb2194db6dc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "22bcb88c-198f-4e5d-b3b0-d58feb9100be", "name": "11-90 ajout identifiant présent", "commands": [{ "id": "e4949e8e-2366-4a46-92f3-412267e47018", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "ea6afcc7-492b-4f98-afa7-9bab5a7527c8", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "6d881d18-94b4-49cf-bc83-d3591a3e8b2a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "06dee00a-d5af-41fa-a0a0-f269798bee0b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "bdcfc166-23e4-4f45-ba66-5430e1821378", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "4f3c14c2-c9e2-4627-b2d2-a2f3675a6cb5", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "315d6070-4ea7-42c8-ba78-db30009d874f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "17a57e71-6db4-4d32-940a-164d8b3c24a8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "51b076e2-b507-47aa-bc35-fe5405fbcb76", "comment": "ajouter champ perso identifiant déjà présent", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8115a203-2b2a-4875-a08d-49c0ce3a217e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "fe852c7f-5106-421c-a706-d1fda75f08aa", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ee6e00e7-0e99-441f-9dab-198cb702c859", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "3dc7cd09-482e-45c2-896e-453ecdcc9252", "comment": "récupérer l'identifiant d'un champ présent", "command": "", "target": "", "targets": [], "value": "" }, { "id": "96410a4e-236e-43d4-ba65-204291d05a1c", "comment": "", "command": "click", "target": "xpath=//tbody/tr[last()]//a[contains(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "56d6f135-d1f6-4267-b228-4d41253acbaa", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [], "value": "" }, { "id": "619c3d8d-8311-486f-b4e6-2e5f60164e73", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "cc3d3fe4-7237-4a45-bba2-a1073bb6c24f", "comment": "", "command": "click", "target": "xpath=//a/span[text()=\"Annuler\"]", "targets": [], "value": "" }, { "id": "2a30863e-56b7-4016-9ca7-2f93c3348a36", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "e23b19d8-3ca3-494a-8e17-0e2b6d7ad65d", "comment": "", "command": "click", "target": "xpath=//a[@href=\"new.php\"]", "targets": [], "value": "" }, { "id": "fda0047a-8c9e-4c78-b244-5fdb5d0781b6", "comment": "", "command": "storeXpathCount", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "nb_add" }, { "id": "93026ffd-5bdd-4106-ad4b-8d513bb82c17", "comment": "", "command": "if", "target": "${nb_add} > 0", "targets": [], "value": "" }, { "id": "04bdd1ba-22cb-4e18-881e-098029898e9c", "comment": "", "command": "click", "target": "xpath=//button[@name=\"add\"]", "targets": [], "value": "" }, { "id": "5d47f38b-5f62-437d-8ad3-c73e7357e538", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "a0684597-50f2-4ece-839e-cb9f64052f90", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_type\"]/option[@value=\"text\"]", "targets": [], "value": "" }, { "id": "8761f6db-4080-4a3a-853e-df466a77db5d", "comment": "", "command": "store", "target": "Texte quelconque", "targets": [], "value": "libelle_champ" }, { "id": "0a0a27df-6163-4d46-baa4-4c7613182b88", "comment": "", "command": "type", "target": "xpath=//input[@id=\"f_label\"]", "targets": [], "value": "${libelle_champ}" }, { "id": "786b8766-b7e9-4673-b2eb-f8f922517999", "comment": "", "command": "type", "target": "id=f_name", "targets": [], "value": "${nom_champ}" }, { "id": "9502ea51-9b93-4279-bb4a-136942e7d8d8", "comment": "", "command": "type", "target": "id=f_help", "targets": [], "value": "rien, ça va planter" }, { "id": "cde80650-625c-4f69-86d3-b2161f6df93a", "comment": "", "command": "click", "target": "xpath=//button[@name=\"save\"]", "targets": [], "value": "" }, { "id": "5c4ab1ea-d5d1-4ef7-951e-bc7154715c0c", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class,\"error\")]", "targets": [], "value": "" }] }, { "id": "2414b9b6-6de9-4c5d-b120-30830eba1b2f", "name": "12-01 numéro non affiché liste membres", "commands": [{ "id": "b33defc6-18d9-4f37-b918-7173112865b5", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "c581af0e-a569-45d0-8d95-ae91be8bbc96", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "9f4f3091-19a5-43f4-aa72-fdffaf289ae9", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "1061ca9d-dbf8-4cf7-966b-45060decf4e1", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "65232b54-96a1-4d69-a9b9-cf3ac375b355", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c97536fe-cd44-42e9-a731-393579a8726a", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "be8195f7-434e-4a84-acf0-c23e2ab3646f", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3072c289-44b8-4040-a2d8-0f6e7153ccba", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "54424521-d2f0-49b6-ae2f-ad86a5864543", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "19af5742-6fa4-4adc-9be1-e9d5874c27a8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "987baad2-421a-4549-a4ed-f0517600a2ef", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "9024b314-93f2-4004-887d-941b33bbf542", "comment": "ne pas afficher numéro dans la liste des membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1e9d3787-e2d5-45b1-b1f3-d6f7a34e9994", "comment": "", "command": "store", "target": "Numéro de membre", "targets": [], "value": "libelle_champ" }, { "id": "0d623ede-f8fb-43b3-b3e9-d85128d80760", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "8b425c4c-289d-48c4-bb9c-220df5d6cbf8", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "a00f007a-dc86-4603-8a9d-026243ee5f5d", "comment": "", "command": "uncheck", "target": "id=f_list_table_1", "targets": [], "value": "" }, { "id": "ad8a36b8-c362-4636-9c6e-8e38fdc93e3c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "cd241f59-e66f-4413-aa65-65eef2fe63ec", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "a1d6b71e-0d7d-4404-a57a-6274a6b493f5", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/users/\"]", "targets": [], "value": "" }, { "id": "2670c335-4a38-48c3-a446-2f6d46eaf55f", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[contains(@href,\"o=number\")]", "targets": [], "value": "" }, { "id": "2fc765e0-0721-49c1-ba26-e51b6981856e", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9e72730c-313c-4b52-97fc-142704f301cf", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "d1ae080b-451d-4fab-a72e-8ddc5946b9b5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "d06a4708-26d2-47b2-bfb4-c2cdbec25452", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c0a07be4-44fb-4965-bc28-0f0eb01cf3c9", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "31ee748c-ba21-445f-b3e0-e3d1bc3bbbdd", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "148d12fc-fcd9-41f7-bcc6-f3b55241cd5d", "comment": "", "command": "check", "target": "id=f_list_table_1", "targets": [ ["id=f_list_table_1", "id"], ["name=list_table", "name"], ["css=#f_list_table_1", "css:finder"], ["xpath=//input[@id='f_list_table_1']", "xpath:attributes"], ["xpath=//input[2]", "xpath:position"] ], "value": "" }, { "id": "c0e898b2-da4d-41d1-b71c-5b7d64224598", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "0d6b19ed-d3a7-4db2-b1e1-712341791b55", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5ac8d9f6-9b04-4204-8005-a4062da68ae3", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/users/\"]", "targets": [], "value": "" }, { "id": "3d214842-7a18-4974-b2ab-0e6df3b9c938", "comment": "", "command": "assertElementPresent", "target": "xpath=//a[contains(@href,\"o=number\")]", "targets": [], "value": "" }] }, { "id": "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "name": "12-03 numéro non visible fiche membre", "commands": [{ "id": "3fbee3ad-a823-4bd6-b96f-e3989ec010a2", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "707b82c4-a185-425a-a480-3b67a952fa10", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "64858406-881c-414d-9d19-e1544e3031dd", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ce6c1a60-36e3-4f22-bebb-d43b6beef382", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "7e9b8b07-7099-4044-8b5c-20af92309e74", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "96e4c752-5dc0-4c1b-be38-d5778a902245", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c94e7fbb-51ba-457a-8ccd-0aad5e9c26f3", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ba357087-ee22-46a2-899e-91a223f15d77", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0158a620-afe5-4431-8035-7844dce1f4c0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a5b5a1ca-b4cc-400a-903a-e3336d0e354a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c0adad69-85f5-4af8-a943-318e8fa45bab", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "bd71795a-91e6-48e4-a574-bbe303624ec3", "comment": "rendre numéro non visible", "command": "", "target": "", "targets": [], "value": "" }, { "id": "87bda24f-81f1-4781-97ca-af74801e2148", "comment": "", "command": "store", "target": "Numéro de membre", "targets": [], "value": "libelle_champ" }, { "id": "4dc1e6d6-0764-4367-9fc9-717ec1eb2252", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "d6a1916e-06f0-41ff-9705-f00a1a018986", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "015d6993-dad8-4c08-8d16-7f22b5de6731", "comment": "", "command": "check", "target": "id=f_user_access_level_0", "targets": [], "value": "" }, { "id": "32a5050d-3073-447d-a050-fea62061eec2", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ccd65212-73d1-4672-9b25-1e3016a4267e", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6296ff06-485c-45ff-875f-c934b329e7a9", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "72c9cc13-0263-4fb7-b7b1-58f18e98cbad", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "63cb2b2f-a9d4-452b-b106-b0d69870fbbd", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "3c933dcb-d89b-446f-8c6c-694ca73711c9", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "9107d60e-20ad-44ae-a6d5-5374ad790e08", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "e963de33-89ba-4095-a947-94e5d635cc98", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "fb1bc68e-21de-4d0b-8070-d3e08a44589b", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "5c2d1a76-3247-4573-9ecf-94b1dbc51b69", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "ec5c5543-9f0f-4189-9512-185ea8eaf28c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "bbc92869-40c3-45e7-b994-43cd783f1b68", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "3a8e49cb-ee75-4341-9093-725989bfa9ae", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ad0bf15e-0b60-4409-9dad-958a936d1984", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "6e4b1f2c-46e6-4d23-8186-51fc749745c9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "06e819f9-c2dc-4733-83fe-f78703a2d518", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "3ba8da61-1f25-4ecf-9b28-9899b6aab734", "comment": "vérifier numéro non visible", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8f5f9223-1109-43df-a93c-bbfa8521831c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "ebb877ab-6d71-4aa5-9a94-e88b56b0de71", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "a4ae6c1f-76c3-47ff-8408-369827b92647", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d8905d1a-3e69-45ab-9658-397c36aec833", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "48b4aed9-a1e3-4d65-8a65-757e0a43d214", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "0b05220e-59e2-4cb4-b7ab-73e510c6e86e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "f4c8573d-db0a-4f38-b945-6eccc2353200", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "369b76d6-2bcf-44d0-a606-e255e25bfb74", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "85277e6c-9ae6-490c-8c36-7af5ad1ea5e4", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "2c292a98-8a6d-4e9c-bc2d-d51522f6a16a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "cc89228d-dd4b-459b-8627-bdf7d83c63d0", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "09653ee4-1db5-4f90-98e2-b8b2a1225107", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "4b2081da-40f9-4534-ac67-ad77c1d00093", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Nom & prénom\"]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "e1665e0d-212b-42dd-9c11-547310465805", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "d7e4a6c7-ec08-49da-a902-3ec9b65f5555", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ff3f4d52-6911-46e7-9190-69f081c6c193", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "3908ecd5-a033-424c-85d2-50797666b797", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "8847ff21-b663-4a75-88ae-bf8d7a5aaaea", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "b0fa1028-aab3-43a1-bba4-20569bbcda86", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b93a84c0-6d23-47ec-9b42-41fa432e82bb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "43643925-6a63-4c14-8b59-bb423608461a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7a9716ee-d9d7-47ce-b346-824d015b5c74", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "9407b973-b335-4513-83e4-81103b102dbd", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "c034303b-d2e2-4e90-8201-effd83bb9dc1", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "e70789c9-9127-42a3-b835-92852438f447", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "7045fe2a-b058-4415-8323-a850da34eb6f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "0b1f231f-5b5e-42e3-a36a-c183c9b4d934", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }] }, { "id": "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "name": "12-07 nom, prénom non obligatoires", "commands": [{ "id": "bf8639bf-2f15-4812-b1b8-0c72d89ac2dd", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "710c3ae2-43c6-4e80-9161-7d96d010e3f9", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "82494c2d-60fa-4b36-8bff-ccc5cca44ace", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "887bb2e8-4775-4ea0-8a1e-773b3b700d96", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "de2f67d3-9731-4f63-a6dc-751d6c876a79", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c635e983-335e-4256-a275-5ca70ad75b7b", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "1fb2dd4d-0a39-4757-a051-57032882f89d", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "1c2a2d70-3685-47df-beec-5e552d86761c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b4e82d7e-29ef-421d-97e8-cc864fdf1b5a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "afcb3ad2-1479-48ff-bdc7-11710c76a54a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "29675e64-8b7f-465c-b44f-a8ad25ea0c9d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "3b99fffc-1b82-4374-aca8-4b3e58b4727a", "comment": "rendre nom, prénom facultatif", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d99acdca-c0c4-483a-a5ec-3db33f57774f", "comment": "", "command": "store", "target": "Nom & prénom", "targets": [], "value": "libelle_champ" }, { "id": "b0a801fb-3768-4301-a50d-ec3648917290", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "43bd3eed-8f27-41d5-9f86-50fd329cc95d", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "7a912a61-cdd4-453e-aaef-23daf40aa6ba", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "16e92fad-23f6-4667-b98a-be9c47470216", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "16d58ec4-37df-448c-9e6e-c3b5fe43a743", "comment": "", "command": "uncheck", "target": "id=f_required_1", "targets": [], "value": "" }, { "id": "f284e4fe-44c1-44bd-9443-2aa6d1ed063f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "73fd8de9-37e4-461c-87a8-6959f2d14701", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "4614889d-050a-45d9-89c6-9ccb0b4926dc", "comment": "", "command": "assertNotText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[2]", "targets": [], "value": "Obligatoire" }, { "id": "6b1822a3-d603-4c88-8e49-0d3fa1293035", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "06925394-f17a-4457-8e52-962ca3ca4c65", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ece17140-ca63-4e2a-8ea7-e5d573abc0e1", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "3598eedb-4291-4d43-a0f0-1baf70afa2a7", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "0f62bb3d-5bad-43f9-b75f-e8f500140e5a", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "614960fb-b3cb-4ed6-822d-52d299246fb6", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "945c4e42-8ed9-4a65-b785-f0df91caf8c3", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "fe4d9c6b-f94d-4c8e-a742-195c61092ce7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7e0d91b6-8a04-4d6b-b585-c6739df3069e", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7bee9f96-a1ae-4172-8f12-82b438297d37", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "49ede57d-999e-4bc0-b6fb-91b9be547252", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "(Non renseigné)" }, { "id": "18cb6266-d162-472e-b684-fd7fbe9f5adc", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "f993329a-3144-482a-b977-54a4445eb21b", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1fac41c6-0ca8-4680-89d4-4c9974d01de9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "5041c7d5-49f4-4232-a67b-ab932939016b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "26d6712b-193d-42f2-b4c6-73546b4f9751", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5d4d08b8-49ed-4527-98d1-2452848a03c4", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "09aced3a-59e4-4bd0-8265-df3789a17b95", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "b5fa2e5f-ce49-49de-8961-a8ae57c11dd8", "comment": "", "command": "check", "target": "id=f_required_1", "targets": [], "value": "" }, { "id": "de5344ff-3868-46e4-b2de-48ad2db0107a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9c4bfe30-65cc-4e72-b941-f0990bcb8a8e", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "8293e2c8-3396-40a6-9e51-c3efe9a9a510", "comment": "", "command": "assertText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[2]", "targets": [], "value": "Obligatoire" }] }, { "id": "98cd4288-efed-412c-ae9f-ff8f97366fae", "name": "12-08 nom, prénom modifiable", "commands": [{ "id": "a150a42f-f4f6-42ad-ab47-59fc7eebfa1c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "d87a9335-0e1e-400c-8b6d-b297f80e0c53", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "0f2fd5fa-e784-45b9-8fbf-4c27a2aece30", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "dc379e67-40cc-4b44-86a8-111f917b19b7", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "269a563b-453b-47ae-922b-5b5826e900b4", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "e13eea17-3581-438f-b402-65fc505894a3", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "5b5db42c-70ca-4252-9052-d2f30bec534a", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "5a409153-0018-4582-b51e-610f240b8459", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "df83dab7-c3cb-4049-b7d0-ecb547eccbca", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "fffbab58-da1b-42d9-9c51-1dab55417575", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "46d1ab77-f649-447c-b016-d4f7d712ee8e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "9bf0e059-102d-4b0b-8665-ae82a1325381", "comment": "rendre nom, prénom modifiable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4cb104c6-d9fc-453a-8b27-517a5551b81d", "comment": "", "command": "store", "target": "Nom & prénom", "targets": [], "value": "libelle_champ" }, { "id": "651e5337-f2a0-425b-84f8-eeb3755592c0", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "197f0991-32a1-42d8-92f8-3981789dbd9e", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "a28eeaf1-1707-48d8-a681-9654242a0683", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "cc7f1d5c-c2d3-49d7-9a68-3e258e240e2a", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "6df358df-c64c-476c-bc27-564ee475258c", "comment": "", "command": "check", "target": "id=f_user_access_level_2", "targets": [], "value": "" }, { "id": "3e720f96-76a3-4a8f-a081-f31f4fb7ee3c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ba5452f3-ad15-4807-9b75-98d667b7c2fa", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "7ae6a85a-a04f-41fc-b6f9-fd2b498be48f", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }, { "id": "b891ae9b-3651-4e90-9e20-cf19e0aecd64", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e0650408-b156-464a-b3d2-130c13927f08", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "288018d3-61c0-4eab-a84a-b206c599dc23", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "9d30f925-6805-413d-af4b-747b0819eec4", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "66e1aae2-9107-42f7-ac68-2987a2de777c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "42549849-6104-4586-a106-5bc3bd3ee339", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "b7d65963-6add-414f-8c84-e43e5233e0ce", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "886a8636-bbbd-461b-bd63-e52244c08b1a", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "941fed05-22cf-4361-afb1-123e0f989bad", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "baa5208d-1106-4f95-86aa-50046c5ba8ec", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "dac6cebd-7d66-4037-9a3b-8c77a69253ed", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "28d04103-6e80-4de3-8a5e-7be98b4cf314", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "8be11fc9-79f4-4017-8566-24aa480e507c", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "7f024a04-6ad3-469a-9ae7-be6f1b952fa2", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "65f51bf8-ae3b-43fa-bb27-e8ec562bb22f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "9f5105d0-754c-42f6-803f-18fb6569087f", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "20191b55-bd84-427e-91a6-6de3fdef729d", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "41635748-28d5-446e-afe4-21349b0b57e8", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "4b09b829-46fc-47f1-aeb0-508a11ec50f6", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "9849a958-423c-4b60-8b94-2b8068a4ed2c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c09b4174-1efa-432c-861e-5610bd69fcb3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "1c9f8961-c90c-4c04-b17c-f0bae159f0da", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "40f0e18f-7fdd-45cd-bc9e-b3060f17a0de", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "1b23d0c7-d6b2-4c55-830d-c5d06cd38069", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "ca021579-580d-4a21-94cb-aadf4a0e17cf", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2d5c9f4d-f268-4593-8024-31f601d2bb4e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "3dc9be55-bebc-400d-acb0-b7b453a284d1", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "a9de3be1-4de6-449d-9761-0496ece93b8e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", "targets": [], "value": "" }, { "id": "424f6a2f-1340-4947-abba-2fca79d8e46e", "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": "valeur_champ" }, { "id": "e530807d-ef77-4111-8fba-72fbfe2bdfaa", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [], "value": "${valeur_champ}" }, { "id": "e5dca994-63ba-458a-a336-a97848727253", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "0b44472b-d918-4165-8fa6-6751c841db22", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "051878dc-134a-4379-bab1-ac7882221628", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "42d9b62f-4edb-4db9-a43a-b4d0b0632f13", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "47fd7674-5aed-494b-9695-a8f06289331d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "67315836-722d-45c5-abaf-1f6689ca781a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "02b3f7ea-ccf2-42f2-af9b-b2f875f08f0c", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "260e8564-cb19-44e0-afeb-c3c5338ea35b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "0a9cc762-1798-4cdc-b7e2-820250332b20", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "63205261-bf7f-4448-888c-2e751332d146", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8a9292c6-a763-45a6-b59c-0a60ed0d2384", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "f9edb5a5-c82b-4658-b314-1ee8e67c92a0", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "24328fb4-1f03-4829-8a80-20d9abff2a74", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "6819ae7d-67d6-4e5f-bc7f-95ac22ce4919", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "600401f4-463f-4897-a413-438c30d5957b", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "47dedb5e-7924-41ee-93cc-1aff0f2c2a8b", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }] }, { "id": "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "name": "12-09 nom, prénom non visible fiche membre", "commands": [{ "id": "72908e3c-9535-4fb0-97ac-b39b5057a926", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "87c269d8-f64f-4970-8352-d30bec40e9ff", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "d660f6eb-61e2-4911-a413-21305918e27a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "202c3926-4be2-43af-8dcf-c3d94e0511a1", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "ccdf6fd9-5187-4942-9719-3e75ec0a5448", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c1999554-095a-465f-b59f-ac1a6fc21c77", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "1b527956-8cce-463b-8fa8-feb16fc62fc4", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c0fd4219-59ae-4fa4-9836-d8422b868ada", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "359a5547-0d71-442b-9c99-555a69f48bde", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "23e0876a-79c6-4f10-bb08-eb304410b4cd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "934c64b6-3e67-4c75-8ec7-4f5dbcebefc3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "66eff90f-bfd0-439e-889d-9c4b3c25c67b", "comment": "rendre nom, prénom non visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e9369fd9-bd0a-4a59-8fcb-dd4eea5686c3", "comment": "", "command": "store", "target": "Nom & prénom", "targets": [], "value": "libelle_champ" }, { "id": "f66afa90-4bb8-4c68-8f77-d1cf84df9b47", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "41645227-2e15-4b33-ac6a-3af30719513e", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "36261c4b-af12-4794-816d-d36075dd611b", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "3ab24f4f-3284-400f-9d89-2e4189335f02", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "ed494a0f-1fab-4385-990a-3b6b090e3143", "comment": "", "command": "check", "target": "id=f_user_access_level_0", "targets": [], "value": "" }, { "id": "c924e79b-62db-402e-95c3-7de3761c8f54", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ac87161e-7703-4539-bd38-6be5dae61d52", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "77fb717d-c65d-48ee-b806-381556fd3e52", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Caché\"]", "targets": [], "value": "" }, { "id": "32f19868-e1eb-458c-9f09-44125d6d7aca", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f10a0374-3d29-421d-950e-d4966dc462c3", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "6d0ae21f-dae1-40f8-aadd-4600913d12cc", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "3546ef7c-fa7d-4650-b11a-540b7fad9521", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "a5915856-e203-4455-a543-1b95f27b4333", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "a0849189-8a27-4388-8bd9-fba8df195876", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "1c72a7e6-d0d8-41ec-992b-29acbda02b4f", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "a94fa16a-20e1-4f8d-b705-02a349678bb1", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "62d055df-b06a-4ff1-957b-06ae887e8ebd", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "417949d0-34b9-4acb-8d7e-16314357fabc", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "2ff1c28e-f656-4fbc-9820-1e95429c0c6f", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "4d34a25d-23a9-47a1-9818-1cd924a083ec", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "20a24d3d-0a77-472c-82f0-0bf5402da47d", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "c9922aa7-f776-4463-b9b2-8ef934cc9246", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "b38c2411-0afc-46ca-aeaf-373b7a05579c", "comment": "vérifier absence nom, prénom dans fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9e6bef3f-d40e-40df-8fa6-2647c7940cdf", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "7e404c17-d547-4918-a09f-27e146f33186", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "74afa0c6-e75e-409f-a6a1-d0abee6128e8", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "30d32cae-1bd8-44c5-86ed-1deffde9a972", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "6c561b9f-eb84-4aaf-9035-6c7bf92104f1", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "3a504f96-ffa6-4f2a-8e2b-023fab0854b0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "765a0a43-5315-42e9-93d6-828809fefe7d", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "401d4d13-a10f-4143-ba18-2f355df01aee", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "292496b5-2434-4351-bc3f-ee4ad514700a", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "1bae3dcb-c33b-4069-b515-c8f2af0089a1", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "4a6c61ae-d7cf-4623-9482-5c5f37a7803c", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "921466c4-1126-48c2-b2fe-929a2c70c4ae", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "3513edaf-1f56-4a18-83b2-bcbc00bc69a1", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "6c4fecba-d72b-4da2-a0be-7a60b1439aa7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", "targets": [], "value": "" }, { "id": "a5c4d5f5-08da-4410-a930-a0180fd7d86e", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "fd74d8e8-3f1a-4adc-a8e1-d8c1bcf198ef", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6c102b2c-e19a-4318-939d-cd6b9ce1b87b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "6ac8c8ff-0679-4bdd-9c71-1f49d0c3d51b", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "b6bbf222-2580-4dde-a909-ebd219731226", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "61dba307-d575-4373-a0cf-1cd7a7dbae72", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2d86e853-b14f-48c2-9c54-41f3997e95c3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "c776a60c-834b-4242-aa2b-e5b1a8be842a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "dc9d89ee-724f-4cc5-b392-64b0bf758eb0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7abe6a03-3f97-470f-8518-b741459d0f09", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "7a3a68a3-15b4-4dd9-947b-02ed31226d7b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "021aa448-4494-4c76-9650-c8bd54616f19", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "394541d9-c15e-45dc-a3dd-55d3d895b4f6", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "ab503efa-6e69-4c79-a1cc-909c9fb85483", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "cc153bb1-b496-4925-9f02-58c5b41e5398", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "" }] }, { "id": "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "name": "12-11 email affiché dans liste membres", "commands": [{ "id": "1c5de00c-b3ba-471f-9a10-f99aa804643a", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "19cdc6f7-5402-4dcf-a378-95bd52fec12a", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "144cc134-409c-4fbd-beac-d5c02b3c28af", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "029ee639-4cb6-432a-8a79-1e7b0b48b29b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "69b89e9a-ea41-4132-9838-2e7bec42cf39", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a8c17914-2518-4853-86ac-98cb2398cd55", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "181f5e78-9d1a-4943-96ca-12e829e8e530", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "b380e527-6d03-4844-8247-4e842d8410dc", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f22baad8-c40c-4fd7-becd-6c5c5ace4a56", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "5c7a416b-071b-4ddf-895c-72eae75562ee", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c6588f6d-a31a-4e31-9ee1-cc843784069b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "67f79c35-46d1-4e2f-9591-78269cbd9295", "comment": "afficher email dans liste membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9c73bfd7-7202-4471-afde-9007de7d1ac1", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "libelle_champ" }, { "id": "5094221a-6c68-4bab-b189-c4a6c70a70e8", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "2b532127-bc87-4ebf-a313-dd4230066cb7", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "85c467b7-9ed2-44fe-82c4-03d62be0785c", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "a94f28af-6993-4ee1-a59e-469af45ad7ea", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "d74189c8-91d4-4901-8086-86c229d76e11", "comment": "", "command": "storeXpathCount", "target": "id=f_list_table_1", "targets": [], "value": "nb" }, { "id": "8e56444d-287c-47d5-a992-f398cff7c3b3", "comment": "", "command": "if", "target": "${nb} != 0", "targets": [], "value": "" }, { "id": "9516b0d1-046a-4f6b-8993-40054bd4b7ba", "comment": "", "command": "check", "target": "id=f_list_table_1", "targets": [], "value": "" }, { "id": "a253d2bf-7095-49ca-afd8-fc1e048e5e6d", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "dc31e342-5492-484c-9322-62152adf162a", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "8a6da0bf-2b93-4b97-99b1-705de32b1266", "comment": "", "command": "assertText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[1]", "targets": [], "value": "Oui" }, { "id": "617b1f2f-73b7-453e-9d0e-633344c941bf", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "3f07f793-f255-4baa-abc2-750448b59f42", "comment": "", "command": "click", "target": "xpath=//a/span[text()=\"Annuler\"]", "targets": [], "value": "" }, { "id": "7a43a729-e714-43dd-8670-c342488c1c63", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "ac11f7a6-1421-492a-921c-6ccc516c99ec", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "320b2bb1-a854-475f-8990-ebbbfdf0ea72", "comment": "", "command": "click", "target": "linkText=Membres", "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": "69796b9d-ba1c-42b9-bcb5-c099c991a6d9", "comment": "", "command": "assertElementPresent", "target": "xpath=//thead[@class='userOrder']//a[contains(.,'${libelle_champ}')]", "targets": [], "value": "" }, { "id": "24dd2d65-27c1-4863-97a9-aac4e01e7095", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6b400566-ae2d-49a8-a303-42b2d3dcba7b", "comment": "", "command": "if", "target": "${nb} != 0", "targets": [], "value": "" }, { "id": "5de3bcc1-faae-487a-8ed7-9b4da662ee14", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "8f771429-e4ad-40c9-a5a5-59f349c5934c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "4ffb7388-53f3-402d-a68a-da9079d5f15a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "2745af1d-34c4-4aaf-befe-63432816345b", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "b0e7cf8d-ca80-4aaf-ba5b-a7b0f06604aa", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "087654e8-859d-4b52-b666-5b31d8668f88", "comment": "", "command": "uncheck", "target": "id=f_list_table_1", "targets": [], "value": "" }, { "id": "d0c7c169-c01e-44ce-a454-a73f92c4af2f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c93a9370-a242-499c-8eb7-e86cf5d1cbf3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "7ce5fa32-7ec4-44e4-a104-f967c718b6ff", "comment": "", "command": "assertNotText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[1]", "targets": [], "value": "Oui" }, { "id": "ebfaa701-2c34-4c81-83a0-47c58910c6e3", "comment": "", "command": "click", "target": "linkText=Membres", "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": "b399d0d2-c231-440b-ba3b-838ca4affe4c", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//thead[@class='userOrder']//a[contains(.,'${libelle_champ}')]", "targets": [], "value": "" }, { "id": "56905fa2-b15a-4587-9ce4-395720450027", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de", "name": "12-12 email obligatoire", "commands": [{ "id": "a0a54661-2b03-434e-b065-00bcc92cf1c8", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "86fa8340-2f0f-4852-8da2-3195e034a9ff", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "78c40f79-3bbb-4d98-b5c0-827e11ced20d", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "fb9707a1-308f-4657-bc23-161c06ce18de", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "18dbc499-80a1-4910-b46d-f698acd6976b", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6e02b8de-2d50-43ac-85ea-5e6ef4898bc1", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "e54dc6a5-8b24-49af-93bc-184f98693c71", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "98876705-66d5-4cfc-8d1e-0ef3681eee31", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "953f0ec4-f65a-4cc1-8fc5-3193758fcdf8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "44e5d289-fa98-4c5d-b0c9-cf6e3e46e3f2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "78d48a6a-0108-42c3-820b-4a186bce19a1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5a0d8747-9126-4b0a-9f09-7633873d663b", "comment": "rendre email obligatoire", "command": "", "target": "", "targets": [], "value": "" }, { "id": "40bfa1d6-787e-4425-a7bf-7368592c5710", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "libelle_champ" }, { "id": "5ff87d9d-3488-413a-9ce4-3e02e5ac8331", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "689edc49-7543-431e-ab21-2fce96160c86", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "ec8010b0-2996-4a81-b7c1-df06832e8a43", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "866e8187-1914-4d84-8669-e459d3dad1cc", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "e8c797ac-c84b-47c2-bde8-d9dd81ec2d18", "comment": "", "command": "check", "target": "id=f_required_1", "targets": [], "value": "" }, { "id": "27b23e0a-fa84-4025-aa15-61591693e9f8", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "dfd4f600-3b65-4ffe-bf42-bf3391b05390", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "f20359c1-4113-4b80-98e3-6177d3098555", "comment": "", "command": "assertText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[2]", "targets": [], "value": "Obligatoire" }, { "id": "92fc2b11-24ea-4d0f-8175-245861ecb6e3", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a2b6409c-e3b6-47ca-9cc7-32d761fe8b1f", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "506953b3-82d0-435e-b19e-0b8b8ee8a851", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "e71e32dc-75ba-440c-9268-01704c9de8ca", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "3d93b965-c129-4b9d-8b84-33cb66d9bc7f", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "8529c004-d3c3-4c2c-bc2d-4b70ee0b92da", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "478ce924-16c9-4b47-b6c4-2cad010e51bf", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${email}" }, { "id": "3e457c9d-0576-4988-8b2a-a856f74dc65d", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "00ceaa9d-d8d5-4465-b894-4d4e4117cc88", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "64ee0955-934a-4313-8a43-58a9b98e464a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "f8ca78a5-9957-4614-b8cb-9dc05a7a81c1", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b06783fd-5330-42f9-a8e4-c068fb985e0e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "975c2782-3b41-48c0-86ff-b3293775da8f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "ba3e2027-90b0-45e5-9f88-b18b3f1152e9", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "dead2236-14cb-43ba-8876-d3ad04729e52", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "73fc8a63-0529-4732-812e-d9d77c616b8f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a7194d61-e11f-4c52-bdc3-3a9e4d524fac", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "0fcd65f0-8bb4-4fb2-ac39-1ac29ec71f71", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "01676549-6a47-4a14-a889-4aaf0a5d7d50", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "d2a1f6a5-8f80-4a76-a024-7759f4aac1f8", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "5a02e960-119f-42de-ad50-3078b5eded73", "comment": "", "command": "uncheck", "target": "id=f_required_1", "targets": [], "value": "" }, { "id": "3548edf0-f171-439a-9f75-3a47ef91fe2c", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "bf7a0b90-5f5a-4e4e-8c26-205a45ada279", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5d60ab40-b0fa-4fa4-bce5-808cd73a16f9", "comment": "", "command": "assertNotText", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[2]", "targets": [], "value": "Obligatoire" }] }, { "id": "8f0f0203-7b71-44eb-bb81-1fcab1183a83", "name": "12-13 email modifiable", "commands": [{ "id": "b08e2bbe-389c-42ac-8253-480bc0e9f753", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "b3f576a3-5d29-4ae7-87d8-c87ec0b832cb", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "37cda3d9-9ac4-4e12-a416-d2a85deb8c9f", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ee615321-804c-45d4-99df-1c74181c0b7e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "b3b285b7-5a05-4cdb-a93e-800387a02316", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6f1e8a51-497c-49a0-ae6d-88ceb0d6ada8", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "a701ec73-dfee-48c4-90a1-b562da474aef", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "14e13d98-6cf3-4eb7-8b72-91c5ee7321c2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "172a5d77-ed7c-42a4-bdfa-4ffd68bdc1fc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "c470cd6f-46d5-4307-b03a-797bb80a8cc8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5005d9df-62c6-45b6-a0e5-d985349f96fc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "77f8aa6b-617d-4015-8526-265f7487afcf", "comment": "rendre email modifiable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2ce0cbcd-81d0-467b-aa5b-41adad94ca4f", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "libelle_champ" }, { "id": "75c44601-9e2f-4f7f-982e-361f9f085384", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "52e68b5d-eb78-4596-a723-0c651239d113", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "488165bf-9bd3-480c-87c5-03bbebe8272d", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "f117721a-b6b5-4af5-a02d-68e006829575", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "d1690a51-39be-4147-8741-421d02996a8c", "comment": "", "command": "check", "target": "id=f_user_access_level_2", "targets": [], "value": "" }, { "id": "177f9172-1e4a-4be3-b9a5-145684502fa7", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "357ac9b0-cb91-4b89-a5ff-1ecec8654f3a", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5e7ba7b1-47b2-4985-ad16-9444fb6c41c0", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }, { "id": "2c40cb5b-f9ff-44ae-9dfb-48104e80dfa7", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "59fa3310-89c0-4933-a26f-65eab6d1c2e5", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "f80e287c-d951-411a-b127-efdb4e04211a", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "9e16abbb-f8c1-4375-9f84-4741773906be", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "5da9df81-37df-458d-b288-f82be33fba2c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "dc040211-b82d-4e95-89d8-384c9f50ef57", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "315393b3-33f8-458f-a144-f874144d2f69", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "5be528ec-ab79-4f15-b81b-bb7673d6d5d5", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "5e1e49bf-565a-4928-a40b-9c243303fdbc", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "12e63fff-bfe3-4a12-9e5a-0575e8dd828a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "d9ea8bfa-5250-4188-b692-e24a09c1f05e", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5dc23837-6c24-42f9-93f4-0c8044773d98", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "1c537c59-a6e6-458d-a612-2015c71324e1", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "76d9dc14-b81f-4957-ab1a-8e90914bbdda", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "dc81bc8c-ddaa-49c8-8218-19c6c9427e26", "comment": "attribuer un mot de passe au membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "bbf2c63b-d1e6-4ef1-b877-ed02ec400ec9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "3874670b-f983-4196-bacf-857e02ff62a0", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "daf8d6af-ee27-4ead-a8b9-248aad89c897", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "f86cfbdb-f645-4e7e-8994-59eab9eb193a", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "d63456a8-9725-42bf-bb39-fc995244dcf5", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "43e3b0b8-1fe7-48b9-8d97-1a77cd9e9216", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "e99df20d-6f82-4db8-89c2-4d3003643ab3", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "55e50f39-9192-471b-88d5-abf6aafb24bd", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "8322a9a5-ad4f-45cb-bd9e-bb531f561268", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "14a81d28-9cb1-4950-ac44-60d3fcc9b815", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "62200d6d-0ac8-42a6-aedf-8fc4f281a556", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "1f0735e6-1121-495f-a935-22f39afb762f", "comment": "modifier email", "command": "", "target": "", "targets": [], "value": "" }, { "id": "674a6353-0531-4144-bc74-1b3d94a19aef", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/me/\"]", "targets": [], "value": "" }, { "id": "cdc0e19b-04ba-4838-87b8-26c87e99b7bd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", "targets": [], "value": "" }, { "id": "edd8ff1e-8c26-48e5-b5e2-c7cb1899883e", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@gmx.net\"", "targets": [], "value": "valeur_champ" }, { "id": "3d64c557-54dd-4345-9bad-a13ac02b8da0", "comment": "", "command": "type", "target": "id=${id_champ}", "targets": [], "value": "${valeur_champ}" }, { "id": "f430cf5a-7c1c-44b8-9796-c3f4babfaa42", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "1b4d9963-68b1-4b7e-a291-f283a09721ae", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'${libelle_champ}')]/following-sibling::dd", "targets": [], "value": "${valeur_champ}" }, { "id": "bf16a59b-b3d7-4f08-ab12-f84d201d5cba", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e94675c6-2d8f-4cf1-86a3-4488987b0033", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "47914dab-e845-4511-9658-7bb66f16829d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a2f7b203-d50e-4ecd-b1f9-83f2f4d6e129", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "8c076dfe-acf3-457f-8607-157c3a60ba8e", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "5fba7acc-e470-4c31-84b6-bfbec0098a76", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "691d3b22-55a6-473d-8348-fb6941a72510", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "b87976ef-51a2-4d5a-8a64-55b96c3cd532", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "47694469-2f68-4645-b85f-ca05b9c5bd86", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "30af8ffe-f1c9-47d2-ac85-6edbef38b5f0", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "d939b673-e5f5-4f5d-9566-63358b7d5e3a", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "46829d12-80d5-43e2-9813-57966dbdc2a4", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "801417dc-1831-4f81-80ad-133a0811ab77", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "e3e51308-e431-43a8-873b-42f92dbd32ca", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }] }, { "id": "fb565ffb-1563-4c63-82a7-a9b31fa04f8f", "name": "12-14 email non visible fiche membre", "commands": [{ "id": "ba133d57-5e42-4ca0-b2b2-d0af8be2a1df", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "f944ef4e-967a-445a-be6c-0b86b3154415", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "3156b7d0-2c0e-47f4-903e-91bf5e536775", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "f6cf2e5c-857f-4171-acc1-156f23172ef3", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "51ec0f25-23ea-48a3-afd8-41fcef6506cc", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "01c5c2be-5bc7-4f0b-bc37-149fbc793939", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "a91a25ac-fd54-47e0-a36a-540cc24b84fc", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3256443d-75aa-4b9a-a7c8-1fbcdede6161", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b2cb5e7d-352b-40c4-a304-b23f28f4b66e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "09aa2334-a66b-462f-9297-f554fb3c7bb8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "e51880e1-4278-4d98-b330-5b7bc4a20cd0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "97a4c8a6-9d61-4fc8-9b9d-689d3351745c", "comment": "rendre email non visible fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5665b8af-0d35-425a-b9a2-92344e20ac72", "comment": "", "command": "store", "target": "Adresse E-Mail", "targets": [], "value": "libelle_champ" }, { "id": "834618e1-a425-4806-a3eb-123c1c136591", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "b3067787-5591-40b1-9b5d-1697ff65e2c3", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "abf44a0f-b16a-4f29-968c-884a4405ab18", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "f770d8d9-813a-469e-bb54-ec8648b8913b", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "9f92d0d5-2bef-42ae-a692-522a5c15726a", "comment": "", "command": "check", "target": "id=f_user_access_level_0", "targets": [], "value": "" }, { "id": "3d706b77-5740-480d-aa72-c0072dc6178d", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "4eba9229-8340-4266-9718-7307f22af22e", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "c2e378ae-3c27-442d-b76e-b3b994129718", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Caché\"]", "targets": [], "value": "" }, { "id": "b218cce3-700e-45a6-9f6b-739fe785caf5", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8d0ec297-a7bd-408d-880e-7a914b4dfd32", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "3c059cda-1975-459b-90f1-70a375d9b99b", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "a2df3b8c-6563-414a-b4dc-505c21434c30", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "e7e7cf2d-a10a-49ef-bcd3-5c39691fe2fc", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "0a251ef2-32d3-4e59-85ae-48898764f860", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "fc7c99c5-47c4-40c9-894e-85c72704460e", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "1f5930ea-06e5-40f1-bcc2-9d3166f1d153", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "5fd6c9a9-1402-482b-b700-2f06b5a2dfc2", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "89425489-7761-40eb-bdf9-db0f083a338a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "a940c08e-c7b2-43b2-afbe-4eecfca48acb", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0b6038cc-8854-4523-a951-d005c9aa4fc0", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "94a0f9a5-856c-4227-aa6d-c065eadcfc72", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "09d8e3d0-fd33-4818-95e3-92e43c48e9f0", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "3614b091-28aa-4913-a20c-93093dad8ca4", "comment": "vérifier absence email dans fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3db13c22-2e6b-414d-ab92-bcc7898ca7ca", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "b64275f6-034d-4ca7-bebf-82e79dfa1523", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "fb0d095d-1574-4009-9cb1-5ca5db9bcec3", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "a167e151-7c35-4e8b-a41d-f3d542a36fc8", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "dd356285-3b07-42bb-bd8b-142ad413695e", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "658e1a0f-e619-4a51-9bf6-0b62d816bae1", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "0d999586-40ea-4b3c-9b34-ce0f23f2dc09", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "1870005f-3a81-4d0d-bfb9-9f6d3e863efa", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "af88bc4c-de67-44b8-9e22-92df33073134", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "76efd683-16b5-423c-9aa8-bc0cd038f4d4", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "710aef72-6cfa-4b34-ba10-7df8321643f3", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "c955ad83-c313-4584-b01c-a52c01567edb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "50f61584-f2b4-4ed6-8f10-060606f2d57d", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "5c86959c-9c87-47b0-a22c-63485aa41fa3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", "targets": [], "value": "" }, { "id": "c91b098a-f2c5-4817-ad88-63e67596ea75", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "1ffb9891-10dc-4c00-a098-6e93b9587af0", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "db88b150-1107-42bf-942a-3b5528aee9fc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "bd585157-5eae-40ad-b2c6-3e317475eaf1", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "58bf36ec-cc08-467d-a9ca-6aba2521c7d6", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c4bcdfac-2b10-44d1-aa79-22b1c9dbafce", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "db1a14b3-e3d8-49a0-b4a9-eb010c4c3de1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "8444f7cb-46c1-4974-ab15-20e75a042c5e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "f5859040-d797-4cd3-9b0f-dc465f351f7d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ddd8876e-3be7-4dba-96b5-db1e7e71b814", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "53f4a5d5-6599-464d-b72e-a2290cebb32b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "0b89375e-6e66-4f72-83ce-f613d3f865d3", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "5cc07b20-8be2-4f1b-91ce-22023fc7d3c8", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "8a1cd04a-7d5f-450a-ba05-eee25f2b9f78", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "696325fc-2fc7-4348-a7a6-0c2248b8d398", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "" }] }, { "id": "22c57d8c-1859-4552-8bd5-499cf5523542", "name": "12-16 mot de passe modifiable", "commands": [{ "id": "72abc6e4-a359-4fb9-84b5-1c57e9c0d5fb", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "05aff598-d03c-4662-9fc1-cdf26b4c6cd6", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "6c952b8c-d7cc-4171-932d-fd068e07682b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "acd471b7-7c10-4d16-9a07-0ad9b1b9ff0e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "1a4d6a0f-c256-4353-917b-19bafe4258b5", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "15f8f041-e3bf-4836-9795-ad68289b5720", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "d1a35c47-95cf-4d37-83a5-283804b3820b", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "5ca15573-d3aa-43fb-9289-b9e378f53b34", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e49a7bd2-76a3-4c58-9140-52ec532a9cc1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "de273309-df44-41d2-9dfd-fb36747f7728", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "14d65852-5a6a-457e-88cb-931cc6553aea", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "3a066ac4-054e-4850-ac9c-b4aaf239951a", "comment": "rendre mot de passe modifiable", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f1f005f9-3f43-4c53-a0f1-29cdce7148e9", "comment": "", "command": "store", "target": "Mot de passe", "targets": [], "value": "libelle_champ" }, { "id": "ae5e3bff-cd0a-4a19-b909-a829b90fe9fd", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "134f734b-852c-4c5f-8d17-e2dfd4f4ca6b", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "85495762-1754-4727-bb94-c1bf4d6fbde9", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "3bd7d1b4-52dc-48f3-9eed-25f6fa186110", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "1cae1706-e510-410a-b228-a001847db6aa", "comment": "", "command": "check", "target": "id=f_user_access_level_2", "targets": [], "value": "" }, { "id": "99f2e2b9-9148-4311-8941-d26b4fa5bcd9", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9369a505-48b4-42e1-b0ba-a3fd509fcd26", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "fc1fd810-cc38-417c-b166-9d8ad155baa4", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }, { "id": "de5b8803-e77d-4846-9368-ee3e828ac8c5", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "977a690b-bb7c-4682-8f97-c85fb9621476", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "f6b040be-4078-4a78-a23d-f397f400ba48", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "0f9385f1-a820-480f-a10e-36519b67d343", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "b9af9c5d-7a40-4caa-84f4-0f759fb33e79", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "d75d1ce0-6992-42cb-b23c-61ecb8ff56e4", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "ecf38fb1-9ad1-4de8-a454-4238f0b74d2d", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "8647694a-f80f-427c-b4db-2118dbb41198", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "b100a02f-0717-4b6d-9619-a0d9d75b2d3e", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "a618d4b5-ea54-4ccd-a3f9-6119c3f84871", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "63dffe52-f26b-4d03-b986-94883bf319d1", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "484a37b6-e6db-4d35-bd44-1b0dc72fe20e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "5be7f26e-9bba-4154-88e4-8cba828f2d56", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "ec836b88-e742-41cd-85c0-f1d76a52e21b", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "49f52676-0669-479d-846e-dfdd0f96a2a4", "comment": "attribuer un mot de passe au membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "60a95a94-3f1f-4b47-87c0-46b3038c8970", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "3c86d54c-ab3b-4981-90f0-e558d52793ac", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "2f952c57-ad56-4290-9e6a-62d87466ed45", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "70e6db78-03c9-4615-a828-d37a9315ff45", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e50817a2-3471-41aa-9ca0-40964c8df926", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "9b1cd04c-313e-4822-b90a-9e6e7924c9f1", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "c09abc16-bdce-4780-97f4-9973af78af4c", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "4db1767a-7f2b-4072-a66c-d649fcdc7ccf", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "e4c14e58-5f88-4ff8-bb09-6f8d08395b03", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "b71c4fa0-d402-4d6c-a656-b1bc31c63393", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "c463e435-779e-4e04-86f2-34edd45dbc19", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7065e3c7-c0c0-4da0-aa5f-9375b108d8e8", "comment": "modifier mot de passe", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3817e0c5-ca04-48d9-8b7d-6796a4a3ca91", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/me/\"]", "targets": [], "value": "" }, { "id": "c8d35061-e8b5-44c4-8730-eb0cffeaba4b", "comment": "", "command": "assertElementPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "0668ae21-0700-434c-b9db-5e24d6c11199", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/security.php\")]", "targets": [], "value": "" }, { "id": "29f4926d-085b-46b1-a1fb-861ba7b7f8f5", "comment": "", "command": "click", "target": "xpath=//a[starts-with(@href,\"security_password\")]", "targets": [], "value": "" }, { "id": "0caed4e0-cc79-40c2-83ec-82b799f1c705", "comment": "", "command": "storeValue", "target": "id=f_suggest", "targets": [], "value": "new_mdp" }, { "id": "baa491cf-4e44-4752-a91a-e80e08d16984", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${new_mdp}" }, { "id": "2855ea0d-2462-4db1-b77d-15a9129535c7", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${new_mdp}" }, { "id": "e89888d1-b109-4eb8-9a7f-47085a47c469", "comment": "", "command": "type", "target": "id=f_password_check", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "d75e4336-23fb-4154-b099-664f55f94a13", "comment": "", "command": "click", "target": "name=confirm", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "98af201a-e3dd-407c-8d33-dd3aa849b5a2", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "${valeur_champ}" }, { "id": "6d6ba8cc-9301-4ace-b788-0884ba8b86d8", "comment": "vérifier le nouveau mot de passe", "command": "", "target": "", "targets": [], "value": "" }, { "id": "01d9d105-a1a8-492d-8e7c-534e30c4b4e4", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "84e600e7-8c0d-43da-8259-f0f7ddb1ea0d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "46b15979-0fc5-4e86-af67-c5aecdfead59", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${new_mdp}" }, { "id": "107b5f56-5f1f-48ce-b5aa-909606ac3fb0", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "7146fc6e-a836-419b-8e1e-323e2d0229ca", "comment": "Pas d'erreur ?", "command": "assertElementNotPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "19976c69-c509-450e-be08-06b717525fcb", "comment": "Bonjour", "command": "assertElementPresent", "target": "xpath=//h1[contains(text(), \"Bonjour\") and contains(text(), \"${nom}\")]", "targets": [], "value": "" }, { "id": "6e835ad4-5f76-4821-ae81-8b7ae39a977b", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "44560e12-f882-43ff-8c77-1769f2f3de36", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "15bf7b77-6ef0-41cd-8537-fe8a392929d9", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "a798e141-464f-4bc3-8cc5-25a77ea9517c", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "c94a83c4-a054-4e5b-949c-8b91b0600418", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a025bfcd-edd5-4c2e-8d00-65e427464344", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "92c9319b-70ec-4cf0-8674-3b9116d71a7a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "709a22ee-22b7-4b3e-9f77-b1a225e2d731", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "99565b96-8cb4-4046-aaec-d7a2114a8a3e", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "f3cfdd0e-c843-4b0d-adb5-99f6d5dd2612", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "04ac3006-8b9f-4f90-9237-9e1f200d36ee", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "4365f600-7619-45ba-b46e-fe39c7cd9e6e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "48228226-ddd0-4767-84c1-bc1a7cecf5ca", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "ff489e4a-e3e4-41a5-8d9b-b45a42859cb7", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Modifiable\"]", "targets": [], "value": "" }] }, { "id": "8a5bf185-6feb-4652-95e5-f372a900a4f7", "name": "12-17 mot de passe non visible", "commands": [{ "id": "07687789-50cd-4a1b-99a3-3c1d57beef51", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "f82c1f7d-d935-400f-bd19-b1c8d4912265", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "fbfb59b9-1be6-418f-87ad-04dc77981aee", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ddd7af8d-8653-415f-899e-4d80d766bd4b", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "2c6c0966-4284-464c-8543-d8d17cf354d7", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "2a0b5184-2a8e-4095-9e10-3fceb157ea19", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9563f113-490f-449c-a403-1471b3f07b76", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3fd55651-7a31-4dbd-a2cf-5e24170cfe47", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5f5a642e-c3b6-4269-8715-e6749acd271c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "88a61fcb-d51b-435f-afd9-812f1f833fbc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5dedaa97-6eb4-4e5d-9d19-baa900c35fe8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ad094407-12b7-4841-b553-52cbf5124e47", "comment": "rendre mot de passe non visible", "command": "", "target": "", "targets": [], "value": "" }, { "id": "be9a28b5-8891-468a-8278-f6cd29db05d8", "comment": "", "command": "store", "target": "Mot de passe", "targets": [], "value": "libelle_champ" }, { "id": "073570a3-9bac-4c5b-ab9e-55ac390fab3b", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "4ba42069-0a00-4286-85bd-3d4e57991d08", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "8a8a0f96-319e-442c-862f-07cf2623a77b", "comment": "", "command": "storeValue", "target": "id=f_name", "targets": [], "value": "nom_champ" }, { "id": "73aa4922-78be-41ad-8528-4aad1ebff48f", "comment": "", "command": "executeScript", "target": "return 'f_' + ${nom_champ}", "targets": [], "value": "id_champ" }, { "id": "6b99a04f-e4e8-4e71-b1ec-837b2db8e878", "comment": "", "command": "check", "target": "id=f_user_access_level_0", "targets": [], "value": "" }, { "id": "ad365936-9ac2-44c5-8c2c-f3bfbe977eca", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "101adb9e-c206-473c-bfa3-c38dcefea6f8", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "802216b2-ddbd-499b-acbd-3a7531253712", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Caché\"]", "targets": [], "value": "" }, { "id": "7fa3be01-b2a2-4f23-9d5f-04c5393885df", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7e1ae1e0-8f30-43cd-ade8-b02c3ef256ff", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "5b4d85a1-c8b1-4901-bc0d-fdc72b83308d", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "61f90308-78cb-43c5-a101-55db818712f3", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "93c5b62c-4c1b-4b4c-80bf-e5ae4dee29b6", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "3aa8cfce-450b-49ca-86b3-fe0f9a685431", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "5d195f38-5cc1-4ce9-a3c7-f0ee641023e1", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "5a497203-138b-47bd-8508-743510e24dc2", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "3043dbf3-ca0e-4f24-b875-a2ae7835158e", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9756bf4d-0531-42a4-a760-d8c4d22ffe32", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "609e8ce4-ef72-4dd3-a162-6121b0fdc2b6", "comment": "vérifier infos membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "05861327-9bca-48c4-9538-a1f1b29ad2ea", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "8fa8a058-2c9d-483e-9fea-48508d30297e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "eed52de4-e549-48b6-bc76-357dd056929e", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" }, { "id": "4afba49f-d661-4f5e-89eb-274c908bb1d3", "comment": "attribuer un mot de passe au membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6c5ada1e-08f3-42a8-a87c-021be6df384c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "6dae79e2-a49d-471e-b3d3-e99b273d7198", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "0aa4e5b0-2a59-4a92-9869-0c2b06134308", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "aba2ca4d-6a49-45b2-a2e4-7186c9269d08", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "351bbacc-f206-4597-86e1-8d23ebb921d6", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7b252ee1-552f-4997-869c-2098bbe6b764", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "9d9cd698-7e83-4424-8c03-4d7eef7d5344", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "14d410d0-5c1e-4f85-9338-3c32a8fe26be", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "02c2adc6-8632-4a5f-bb30-7b75d48ae359", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "24136f5c-1146-4d89-980e-4a5ddea07727", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "de95a6da-6838-4342-b96e-2ddc5bdd6d8f", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "66f8e9a2-0434-4e44-8c9c-f8e053044583", "comment": "vérifier infos", "command": "", "target": "", "targets": [], "value": "" }, { "id": "cdd7e62a-bcf3-460d-bf6b-7e03dab13440", "comment": "", "command": "click", "target": "xpath=//a[@href=\"/admin/me/\"]", "targets": [], "value": "" }, { "id": "bea0344b-14de-4310-af38-48cc0c2acb27", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//dt[text()=\"${libelle_champ}\"]", "targets": [], "value": "" }, { "id": "37d9280b-f552-4722-bcb4-be486cb40479", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/security.php\")]", "targets": [], "value": "" }, { "id": "70f446ed-e998-402c-816e-fc05a05121fa", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[@href=\"?edit=password\"]", "targets": [], "value": "" }, { "id": "e367085c-da81-4741-8994-a5d94ddd02fd", "comment": "remettre à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "581a24bc-6918-4235-ac50-646de2833408", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "0e8a5c9c-3469-4919-a063-906a6d79e962", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "bef4107d-0bc7-4578-8ea9-203a2947bb42", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "ad13467c-00be-4534-9990-2abab6a2814e", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2713a47d-aa50-4d81-83d7-259790694ccb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a8e1b942-6863-4bcc-b948-85c61afb5714", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "b9e37fb2-2e3c-4eac-bcea-3c0be0376b83", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "fe211703-a4c9-4cba-919c-d87ef7f72516", "comment": "", "command": "click", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", "targets": [ ["css=tr:nth-child(1) > .actions span", "css:finder"], ["xpath=//td[6]/a/span", "xpath:position"], ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] ], "value": "" }, { "id": "404264f5-2e15-47b5-8ae2-74b3d49788e4", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "f3940c69-7817-44b2-9af1-7f1afeebdffd", "comment": "", "command": "check", "target": "id=f_user_access_level_1", "targets": [], "value": "" }, { "id": "c9e839c5-ce62-4c06-a3fc-90d0a40e5872", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "149c80fa-715e-448f-b084-407d5b856ad5", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "930228b7-b4ee-4bfe-bfb6-389e03da907e", "comment": "", "command": "assertElementPresent", "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", "targets": [], "value": "" }] }, { "id": "5d8a90e7-d3ca-42b8-ad1e-80cc61af38a9", "name": "13-01 intervertir numéro et nom", "commands": [{ "id": "062ff4b8-7b85-4168-aa64-31728a466465", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "fd382b6b-a999-42e3-963a-64edb4f3d1c9", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "bca40701-7b9f-4fd9-b643-89ad9b7bf92b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "018a177c-19e0-471c-a5f5-aeadc7f8087a", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "90db8b3d-42cb-4535-80ce-fac91fcf4d3f", "comment": "identifiant", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "82e3003b-b3af-4d92-b596-6a86083a7e32", "comment": "mot de passe", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "424ab79f-f498-482e-8f9b-cd70ce927f6c", "comment": "Connexion", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "ada6082a-5ee3-4c53-aea8-da5d17150788", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0b63b6c2-e404-439b-b820-e9de511cf608", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "f9fa7813-178c-4888-b0d6-0a422182b56b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "18fab31c-8472-49fa-8aac-171f73665b27", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "20a41db1-798c-49b2-9ad9-795a649b8ef0", "comment": "descendre le 1er champ", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ac199eef-44e3-4b6b-a99a-a4bc11fe3084", "comment": "", "command": "click", "target": "xpath=(//button[contains(@class,\"down\")])[1]", "targets": [ ["css=tr:nth-child(1) .down", "css:finder"], ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"] ], "value": "" }, { "id": "92f8b146-e1b5-45ab-b8bc-95f32d16cbd6", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "edb10a8e-81fd-454f-9431-073f6bfa8323", "comment": "", "command": "assertElementPresent", "target": "xpath=//p[contains(@class, \"confirm\")]", "targets": [], "value": "" }, { "id": "dce29a4f-c554-4506-bde2-8eda35a7a94c", "comment": "faire la liste des champs", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b4310eaa-24e5-4429-ae45-7ea897e3239f", "comment": "", "command": "executeScript", "target": "return []", "targets": [], "value": "tchamps" }, { "id": "16a9be55-4ef2-4308-ba11-263aca5c4d84", "comment": "", "command": "executeScript", "target": "function listerLibelles(t){ for (const elem of document.querySelectorAll('table.list.drag > tbody > tr')) { let o = Object(); o.libelle = elem.querySelector('th').textContent.trim(); o.visible = (elem.querySelector('td > span[title=\"Visible\"]') != null); t.push(o); } return t;} return listerLibelles(${tchamps});", "targets": [], "value": "tchamps" }, { "id": "d3502417-6e7b-4c06-ac47-2b06aed9b32e", "comment": "créer un membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2aed9f00-ec66-4b34-b7c4-3b214a615c8d", "comment": "", "command": "click", "target": "linkText=Ajouter", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "f152b1f3-d392-4c7e-b362-fe0e09f56950", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f6004fc7-0b55-4fa7-8aa5-6fe03167ac5a", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "eb8141a6-4766-44ab-88f2-f931e7c350af", "comment": "", "command": "type", "target": "id=f_nom", "targets": [], "value": "${nom}" }, { "id": "038cf7e4-529b-42d5-b2cf-71fd703fb111", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "email" }, { "id": "695b9098-0728-408c-8dbd-2c2be4d20fe8", "comment": "", "command": "type", "target": "id=f_email", "targets": [], "value": "${email}" }, { "id": "eec1bb68-7e69-4fea-9daa-5309f21b6aa3", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "e00aa904-593b-4326-b695-a5b6859ec321", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "ced1b201-744c-436b-b2b2-733c4d684110", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "172c17a1-623b-4dfd-9fd8-8e633a566551", "comment": "vérifier ordre champs membre après création", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a199028c-3a09-49d3-8702-e2cecc548787", "comment": "", "command": "storeXpathCount", "target": "xpath=//dl[@class=\"describe\" and not(ancestor::aside)]/dt", "targets": [], "value": "nb_champs" }, { "id": "651368ac-8dd1-4da7-b95b-ccb3f5d882e3", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "5eabb42c-f52b-4327-8610-fdaa39adc29c", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "3302242b-3bd1-4fd0-bcee-05fa4887226b", "comment": "", "command": "while", "target": "${num} <= Number(${nb_champs})", "targets": [], "value": "" }, { "id": "7a3000ef-b3f5-4597-b8a1-9f1c5065b73c", "comment": "", "command": "executeScript", "target": "return ${tchamps}[${i}].libelle", "targets": [], "value": "libelle" }, { "id": "9850709b-cb76-4ef3-8784-08f6a9165240", "comment": "", "command": "executeScript", "target": "return ${tchamps}[${i}].visible", "targets": [], "value": "visible" }, { "id": "5fb16212-0d28-4620-948d-5a2e458c8215", "comment": "", "command": "storeText", "target": "xpath=//dl[@class=\"describe\" and not(ancestor::aside)]/dt[${num}]", "targets": [], "value": "libelleAffiche" }, { "id": "2ddfbc90-56cf-4ad4-bbdc-3df5a7cbe709", "comment": "", "command": "if", "target": "${libelleAffiche} != \"Statut e-mail\"", "targets": [], "value": "" }, { "id": "e8393576-b082-4659-8275-eb60819ae46d", "comment": "", "command": "assert", "target": "libelleAffiche", "targets": [], "value": "${libelle}" }, { "id": "5d4c3ba6-6fc2-4393-ab92-4defb67a4179", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "15d33b1c-c56b-47df-bc02-08f11f78cb6f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d25e45a2-71ba-402c-9d09-d19b9d9dbd37", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "f8476645-65da-4942-be11-d8674e8e7019", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c7299c16-84e9-40cb-b9dc-c3d0f575db9a", "comment": "vérifier ordre champs dans fiche membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "64fc1865-8bcf-4669-bd27-46f079de8457", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "5197dacb-7f6e-430c-ae11-42c61d5c7ee5", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "74d6923d-51c4-46a2-ad18-05e25db61073", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "9204ca45-810c-4c57-ab40-969199839d05", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "5c395f33-8f35-4457-a747-399fc50be8ee", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "4936a43b-1da1-4d6a-b413-32c38c657b30", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "6dca0b08-fa42-47bc-8f88-f2dbea0d94c8", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "925be022-72ea-43ef-b46f-ec328cb6e846", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "b288511d-9789-41c0-a65e-2b465c7bc6ec", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${email}" }, { "id": "a7598405-19f9-4bc5-8388-c9e8becf2223", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "61d3f8a7-f3e0-4abd-ba8a-02037a72fc23", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "450989d7-472e-4052-b92d-bf096e09341b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me\")]", "targets": [], "value": "" }, { "id": "8ec901a1-303d-457a-9563-c2a78aa527db", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "cb945de3-159e-4184-aad8-a4a92bf4f5c6", "comment": "", "command": "storeXpathCount", "target": "xpath=(//dl[@class=\"describe\"])[2]/dt", "targets": [], "value": "nb_champs" }, { "id": "7f549a05-8046-4859-b0a1-8935ae258759", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "30fdf0e1-28fd-4f69-b390-1acd58e3f15f", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "i" }, { "id": "98a5754a-527b-439b-b388-065dc12ea171", "comment": "", "command": "while", "target": "${num} <= Number(${nb_champs})", "targets": [], "value": "" }, { "id": "c62bd4eb-a81d-40d5-b4ea-a1a6cc79885f", "comment": "", "command": "executeScript", "target": "return ${tchamps}[${i}].libelle", "targets": [], "value": "libelle" }, { "id": "b34d2a34-2b87-4606-99b8-1b31c94dc570", "comment": "", "command": "executeScript", "target": "return ${tchamps}[${i}].visible", "targets": [], "value": "visible" }, { "id": "88425fd4-5b47-44c8-842b-30047dfb9079", "comment": "", "command": "storeText", "target": "xpath=(//dl[@class=\"describe\"])[2]/dt[${num}]", "targets": [], "value": "libelleAffiche" }, { "id": "2dace9cc-1b19-4534-9a7d-4a1b722f08fe", "comment": "", "command": "if", "target": "${visible} == false", "targets": [], "value": "" }, { "id": "cdd4224b-5d40-41c3-84da-d90a798024b3", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "291dd5ec-b784-4470-94dd-2819a1274fcd", "comment": "", "command": "elseIf", "target": "${libelleAffiche} == \"Statut e-mail\"", "targets": [], "value": "" }, { "id": "38aafb1d-769b-4c32-9a41-5ffc757d0be3", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "664a41ff-ff51-43d5-a067-f918b9e6e06e", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "5be6bb15-fe23-4a6a-86c7-124a8c37890a", "comment": "", "command": "assert", "target": "libelleAffiche", "targets": [], "value": "${libelle}" }, { "id": "bf2d009b-8942-4db9-a301-903ae884273e", "comment": "", "command": "executeScript", "target": "return ${i} + 1", "targets": [], "value": "i" }, { "id": "2723cbb5-2a56-4368-93d4-381638223e91", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "fd0d76d9-79dd-42d1-ad5a-71c7c4fc8eb2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "ba51e055-50b0-4f95-9dcf-e5398b66396d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c7242b01-2973-49bd-8038-fe94de0817d3", "comment": "remettre le champ à sa place", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9a255123-2ba6-49ae-801a-1536af196c13", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "f329219c-ae46-487a-bf94-264e532aa93b", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "12ce1c11-7b32-4fd5-afcc-2e40039d82bb", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "8223bc89-93e5-415f-85fc-2422cf487e88", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "08a9d4db-0cb4-4613-86aa-18f34c49a5f6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "2bd5e116-e2ab-4fa5-af47-2eb3243d220a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "00a0b7b5-f431-4900-9b39-664aadc27266", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "32cfc111-873b-4f18-96c2-a4c0f26ba31a", "comment": "", "command": "click", "target": "xpath=//button[contains(@class,\"down\")]", "targets": [ ["css=tr:nth-child(1) .down", "css:finder"], ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], ["xpath=//button[2]", "xpath:position"] ], "value": "" }, { "id": "217ba07e-d633-4bd8-9e63-d3ab53c9cbd2", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "060b5608-629e-45d1-83e4-6a4c5db608e5", "name": "14-01 ajouter catégorie", "commands": [{ "id": "b1ed4492-ec0d-4e85-a58b-ef0620a06499", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "1467e6b5-e4d6-408d-9fda-ce4b6918d773", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "17d94b28-7e95-4393-b93b-96977a94cbc3", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "76932b7a-252b-4b62-93f4-cfe4e54e5207", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "6d3ad8e1-83ee-40bc-b8bf-c19dcbb117ca", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "ee50ddbf-9966-40f3-b67a-346bc7c333fc", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "ec8602f6-9245-45ff-9fe3-72bffd5d406a", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "cd2e3608-1f0b-4c8f-9595-76d5c250b215", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "113bbb32-e204-4368-aa43-df47b56d4166", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ef6b76b0-b292-4af7-b2b3-9abc31d57e42", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "0515a8a3-b5af-4b2a-b421-b36580af6e08", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "402aedb0-b42f-4977-bec5-320141e1c0bb", "comment": "Ajouter une catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e8624a49-bad7-4c83-b813-50358a5b8e4d", "comment": "", "command": "store", "target": "Fourre-tout", "targets": [], "value": "nom_categorie" }, { "id": "445f9876-cbb0-467d-8541-7d60830ab002", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]", "targets": [], "value": "cat_present" }, { "id": "4fbbfa58-4424-4461-9e08-da8d4175ae94", "comment": "", "command": "if", "target": "${cat_present} == 0", "targets": [], "value": "" }, { "id": "65689991-c25d-4b3b-8afe-a5d6aa9e08f6", "comment": "", "command": "type", "target": "id=f_name", "targets": [], "value": "${nom_categorie}" }, { "id": "3f315a89-fcce-4d25-bc5d-941cdfa76ef6", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "f4b41237-b687-40d1-8ece-2d6746d7bb6b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "92fd7ce0-3333-4f7d-9569-5012dba6466f", "comment": "Créer un membre dans cette catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ee71ce73-56a2-4547-b589-8f4dc002bce3", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "55042085-e65c-4a84-8694-92bf2030c103", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "b8f2da9f-2365-444a-ae43-5c74d3671d0b", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "0dccee5b-9105-44d4-b8d1-e5da754f06cd", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "b8d06089-74cb-4c6a-983c-aae5e43cb024", "comment": "", "command": "store", "target": "02/02/2022", "targets": [], "value": "date" }, { "id": "9ada2d00-a90c-4ead-866c-1a33b3c2eed5", "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": "7d1a3e33-05de-4dc7-980f-0bcb7c7af888", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "1415e0fa-f7ba-49f2-a325-d1b407f06dcf", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "5a60f008-4eb3-48b4-aa43-6fb068784452", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "3ad85768-5310-4f37-b75d-af7ce08e575d", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "b6ceb787-97fd-4fad-9926-535d7f8afcaa", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "2c81a09b-a86d-4787-9150-1f49d79ad869", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "bc54c52a-c8a1-4eee-847e-d8416960082d", "comment": "", "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": "3131a036-3aed-487b-a2ca-9f458bd50c71", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "21deb84f-b10b-4070-8cfb-b9d2db5a9d19", "comment": "Vérifier les infos du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0e333926-2f72-4b3f-b731-31e4474f5fcd", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "2e6706c6-c69b-4d48-a3e3-3b600991b090", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom}" }, { "id": "23b511cc-dbb5-4df6-aaa5-c67eb44873a2", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel}" }, { "id": "11295c4a-d78c-4ea4-9dd0-d191ede26bab", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd", "targets": [], "value": "${ville}" }, { "id": "b8e03259-a2d2-429f-bbea-5523b602e0e0", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a", "targets": [], "value": "telephone" }, { "id": "1845ff5e-669c-4e96-9733-3874e2c0a816", "comment": "", "command": "executeScript", "target": "return ${telephone}.replace(/\\s/g, \"\")", "targets": [], "value": "telephone" }, { "id": "558f1c15-227e-45ad-8cc2-3b99f240e146", "comment": "", "command": "assert", "target": "tel", "targets": [], "value": "${telephone}" }, { "id": "4e7cf878-64f7-4acc-ad1e-d4e461a680de", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd", "targets": [], "value": "${date}" }, { "id": "4ef8ca4f-46e2-44c4-82d3-c0e6423aa529", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie_membre" }, { "id": "bf60f8a1-5772-4e88-98d5-9f5651cf70a3", "comment": "", "command": "assert", "target": "categorie_membre", "targets": [], "value": "${nom_categorie}" }] }, { "id": "e4a2e4a5-a2e1-4ce2-a29a-85581f6cd77a", "name": "14-01b échec ajout catégorie même nom", "commands": [{ "id": "461eff8a-6d01-42e2-a079-d1622aaacb61", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "16de964c-86aa-4fef-accc-b38dc930f24f", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "f0b1a8d3-6f6a-4f74-8351-b5b06c9cc883", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "13faeff9-f4a5-4c6c-89f1-0611653dde96", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "3f8d2891-3bce-41b5-adbf-6ea9d58d3515", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "46cef050-937d-40c9-b045-6207bfec4027", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "098b0e2f-40d9-4604-860e-a13fc5b5982e", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "594af768-04be-4fd1-82d2-c1d0579000c3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "dea9b8e3-c079-4801-9b32-1407a7397b5c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "21aaa89f-3453-42af-80f1-a3ebffc26197", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "81b7c6e0-49d0-46a1-91d1-b25bf6f8548b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8bd26609-4285-4296-a575-1dda5e0f8b50", "comment": "Ajouter une catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "fb9295af-cdb0-433e-8882-214e1f2c5e2a", "comment": "", "command": "store", "target": "Fourre-tout", "targets": [], "value": "nom_categorie" }, { "id": "916e6a63-f6ad-4181-a04b-500d6eea0e69", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]", "targets": [], "value": "cat_present" }, { "id": "040cc41f-9f1d-4918-b16d-11a4d6cf97ea", "comment": "", "command": "if", "target": "${cat_present} == 0", "targets": [], "value": "" }, { "id": "c9b5e28b-2be4-48cb-a447-8f9a2881036e", "comment": "", "command": "type", "target": "id=f_name", "targets": [], "value": "${nom_categorie}" }, { "id": "5adc5a64-9fe4-4ec1-a231-2d4cc221a3e6", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "1321adee-69e3-4ba1-979d-db724427d04d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "1e13dfa4-1940-4aee-9c2d-259deb1ccf96", "comment": "Essayer d'ajouter une deuxième catégorie de même nom", "command": "", "target": "", "targets": [], "value": "" }, { "id": "aa8328db-e501-4faa-bf11-7fb6b470363e", "comment": "", "command": "type", "target": "id=f_name", "targets": [], "value": "${nom_categorie}" }, { "id": "a0c14f58-b6ff-4326-b3b4-9f725310a3c2", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "961b3ca4-b291-4478-bcd1-e9a636a1366c", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "72592be1-aa5c-428f-b16e-8bf09f4103cf", "name": "14-02 supprimer catégorie non vide", "commands": [{ "id": "49c37ec5-5d15-42b8-8327-1aa3b0d674da", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "c1028e33-a882-4a49-8437-3ec69b2daf95", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "826afc76-033a-40d5-877b-25b71883f1da", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "bead96f4-2bfd-4907-b70c-0c4d32070dde", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "b23091e2-d920-4264-90d9-5285e080eb42", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "22c56543-eaaa-47dd-aff4-f7005a64d5bd", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "40808b6a-4e3a-4513-9118-0bea50649c4c", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "b9a1ef3f-064f-490f-b743-84eea7428b1c", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "9bcd512a-e792-4426-b7cd-ca70799b80f4", "comment": "", "command": "store", "target": "Fourre-tout", "targets": [], "value": "nom_categorie" }, { "id": "1bce5754-1076-47f3-8aa1-b8b5dc47a53e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "9d28b9b5-cd8e-4ee9-a108-971c3ad0c9ed", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "424a1d9a-27f2-4bf7-a321-c7cb6e87094e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "667c27e4-bc07-412c-98d1-7b54f8e8a3d8", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]", "targets": [], "value": "cat_presente" }, { "id": "7e22c262-bf98-4ae7-95c5-9c659922b634", "comment": "", "command": "if", "target": "${cat_presente} != 0", "targets": [], "value": "" }, { "id": "fa89f0b0-389b-47fd-bf3b-ed2fef244734", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "37a44ff6-0cac-4322-94d7-e2dab3720189", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "8749ee38-f40e-406e-97ed-6b85d2b37625", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "deb0e54d-ed6a-41e0-989d-3223b71a2b77", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "25b1a40c-b327-4bc6-adf5-b589f313c130", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "cf9bfbeb-564f-45e0-943c-38c3ce75d561", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "00b09e58-a049-476a-8c96-5f52ef02a860", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "ff4c726b-fd9d-44aa-beb7-d1519cd9d810", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "75747e1a-d46a-40fd-96f6-dc3e91825155", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "2e4dce7a-1d2c-4c30-aba8-6fe4ad1a3049", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "858b4921-1e22-47b0-b2a7-062821971b8b", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "7aec596e-a250-49b5-bc84-82c76e1513cd", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "1a2ab188-8ad5-4bcc-83c5-3d1586f359c9", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "01a2a895-e688-4eb1-a911-93171f2303ac", "comment": "Supprimer la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1a0cd61a-cd06-4a29-b8e7-7fc15d1b4cc5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "15eac05f-168e-4e85-a43f-192d59c10576", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1d8e9960-6f34-494c-9df1-0c8475e6c5ab", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "814fd96d-59ba-495d-97ea-11300a043546", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"delete.php\")]", "targets": [], "value": "" }, { "id": "73e1c4f3-6edf-4963-bda2-01d7ac8809ec", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "94f96e12-2cfb-402a-bf4d-a4578d2cdc26", "comment": "", "command": "click", "target": "name=delete", "targets": [], "value": "" }, { "id": "973e8145-717b-4dd7-8846-f80d462099c4", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "455af00b-6c8b-4e01-a5bf-8c93fab28d26", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "89b93d57-9377-4fd6-a5bf-e2b36bc68662", "comment": "", "command": "click", "target": "xpath=//button[contains(@class, \"closeBtn\")]", "targets": [ ["css=.closeBtn", "css:finder"], ["xpath=//button[@type='button']", "xpath:attributes"], ["xpath=//dialog[@id='dialog']/header/button", "xpath:idRelative"], ["xpath=//header/button", "xpath:position"], ["xpath=//button[contains(.,'Fermer')]", "xpath:innerText"] ], "value": "" }, { "id": "e112c3ad-0a13-4bc5-b650-22c5c52a21c8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "c38b2445-1882-440e-befa-1dd78c918593", "name": "14-03 vider et supprimer catégorie", "commands": [{ "id": "baff443e-3470-4d8d-9db2-a697ed21663c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "c61801d9-39a0-4371-9f7d-9ff1cba20d1b", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "38a19c50-07fe-4f41-a0f1-8705ea33b70e", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "56832eed-fc00-469d-8613-445fc7afa7d5", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "0ea88685-a873-490e-a5b1-de17518bc1f0", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "a113aeea-fb3f-4ff8-8d68-d0215f08aeec", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "bd0d05e0-a2a4-4760-9e7b-4daf27e2d19e", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "a14d0015-a0e2-4b4a-90ee-29045e81b460", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c467e86c-cd47-480a-abd2-27cb9ad5127a", "comment": "", "command": "store", "target": "Fourre-tout", "targets": [], "value": "nom_categorie" }, { "id": "a213fc57-3add-4ad3-9890-2ea1b50b9973", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "0b480d8b-fa49-4dd9-b83c-fad290583e08", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "69d338bd-6dcb-4c73-b7fe-8214b1561554", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "157c4f5d-d5e6-4751-8ed0-439d2b13480d", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]", "targets": [], "value": "cat_presente" }, { "id": "7aa6fd13-42ae-40ff-8b82-eeaf84e73300", "comment": "", "command": "if", "target": "${cat_presente} != 0", "targets": [], "value": "" }, { "id": "04d838e0-6611-408e-b02f-77a3db5fdf0a", "comment": "Supprimer les membres de la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "cf20cf7d-0def-4dae-a173-a6327d81f3f5", "comment": "Menu Membres", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "targets": [], "value": "" }, { "id": "17582a28-7b8e-493d-b004-5e77bfc28ade", "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": "01e3ff2c-8e1c-4da7-8d99-878738ad38c9", "comment": "", "command": "click", "target": "xpath=//a[contains(., \"${nom_categorie}\")]", "targets": [], "value": "" }, { "id": "516b5625-9c39-4929-8438-32980591eb88", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"${nom_categorie}\")]//small", "targets": [], "value": "membres" }, { "id": "ace574dd-b51e-44b5-a401-d25ff875f6a0", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres" }, { "id": "0c69a2be-6481-490e-95db-198ced57c959", "comment": "", "command": "while", "target": "${nb_membres} > 0", "targets": [], "value": "" }, { "id": "054d5f2d-96cd-49b9-a026-502cae6af430", "comment": "cocher toutes les cases de la page", "command": "executeScript", "target": "function cocher(idCase) { const table = idCase.closest(\"table\"); const body = table.querySelector(\"tbody\"); const elems = body.querySelectorAll('td[class=\"check\"] > input[type=\"checkbox\"]'); for (let i = 0; i < elems.length; ++i) { elems[i].checked = true; }} cocher(f_all)", "targets": [], "value": "" }, { "id": "f0e70ef7-2b01-4332-8ce8-c0945daa0c01", "comment": "", "command": "click", "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]", "targets": [ ["name=action", "name"], ["css=select", "css:finder"], ["xpath=//select[@name='action']", "xpath:attributes"], ["xpath=//select", "xpath:position"] ], "value": "" }, { "id": "17c4dea0-22b5-454b-ae50-740db05afcec", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "b5da0627-cbf8-41c3-b5c4-abb9c41b0ae5", "comment": "", "command": "click", "target": "name=delete", "targets": [ ["name=delete", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='delete']", "xpath:attributes"], ["xpath=//button", "xpath:position"], ["xpath=//button[contains(.,'Supprimer')]", "xpath:innerText"] ], "value": "" }, { "id": "c582eecf-f919-4483-b771-63ed9240d561", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "4741a9b6-3707-4be2-98f7-d43220e8538b", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"${nom_categorie}\")]//small", "targets": [], "value": "membres" }, { "id": "6805a272-d262-4dc7-b9ed-ee1915b25633", "comment": "", "command": "executeScript", "target": "return Number(${membres}.split(/ /)[0])", "targets": [], "value": "nb_membres" }, { "id": "824d5d61-88f8-4692-9a26-bdd7f1f483e3", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "714b1e6a-781e-4fdd-8c58-f28ba2706a6d", "comment": "Supprimer la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "29ab44cc-4b39-4367-81eb-acbfbdb241af", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "fa10fbc9-f13e-4d49-b783-c875eb34cd45", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "90f1e7ea-cb8e-4436-bd92-0d3836a22173", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7cfb2f4c-0cd7-4fc5-95d7-41e433a4dbee", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"delete.php\")]", "targets": [], "value": "" }, { "id": "751a4c80-e7c5-43b5-9e17-58bd429f5f1a", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "65cbd1a1-c779-43ba-963b-0a86de59d5d1", "comment": "", "command": "click", "target": "name=delete", "targets": [], "value": "" }, { "id": "5e4a1b53-5906-4bdf-b89c-238c1cdaf5d5", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "065d0026-9341-4ffe-bddf-7c25fcf73f4c", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]", "targets": [], "value": "" }, { "id": "36dacccc-ce97-42d5-8ea5-3407a30d9195", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }] }, { "id": "5f7e280d-ec44-49b7-b373-6109494ba9f7", "name": "14-10 inverser visibilité catégorie", "commands": [{ "id": "94ff44fe-1fbd-4a15-b3ee-3cd949be535d", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "93b7b33a-1154-4fc2-9a9d-50eb4d6bc6e7", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "df30eebc-dfd4-4e35-831a-0de3f136c0d1", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "38511bf9-23ec-47a0-8544-c830c5811f51", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "7d36559e-6db4-4f44-8bbd-281cbf08a154", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "dd63d0a1-f0f4-4c9d-9191-8dce6b2b0433", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "96909abd-67db-48da-8702-fbc21dfc9913", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "c8583d1f-695d-4c92-a597-9668a0d08e44", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "e43b5f46-c726-437e-b04c-c62a451ee777", "comment": "Créer un membre dans la catégorie à inverser", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0410b243-addb-468c-aee0-5f23750085ea", "comment": "", "command": "store", "target": "Anciens membres", "targets": [], "value": "nom_categorie" }, { "id": "34f7962d-6da5-4b9f-b3e3-d5c38dd8697a", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "610e1b67-a269-4210-82ad-77fb7c2121e7", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "6a94990a-9c4b-47bc-960a-5f4ddf85cfc8", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "319430ef-35fc-4b70-91c8-c7d336441e27", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "e6ac5e3e-5e49-4f0f-9982-2e61d47f36a4", "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": "1d56e8da-de18-4b82-b3c6-2e3feae2077d", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "d1100ed6-a57a-4ca4-99de-923c0d2ce518", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "3ee78361-dfe7-4b0a-bbf7-44fae9318e7a", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "8ba6edf5-e384-44a1-a4c3-807e7ea47cfe", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "5d0774cc-0b3a-4fd1-810c-3e9a72f9590b", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "10a28bfe-3014-4026-98e8-891194e4d34d", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "d451ca96-1438-4baf-a024-85356025bbf5", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "ba1bf43d-48ac-43b2-8027-c1ff798e888d", "comment": "Vérifier la catégorie du membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "a0e04dc3-dbf6-496c-8a84-0d8e9a14dde7", "comment": "", "command": "storeText", "target": "xpath=//dt[contains(.,\"Catégorie\")]/following-sibling::dd[1]", "targets": [], "value": "categorie_membre" }, { "id": "7a28cb21-dec6-4270-872f-2b9ccd63273a", "comment": "", "command": "assert", "target": "categorie_membre", "targets": [], "value": "${nom_categorie}" }, { "id": "575e14e8-fe0b-42aa-9331-39ebd8489751", "comment": "nombre de membres par catégorie visible/cachée", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7a245c0f-a60f-472c-8504-0c80ea809f61", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "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": "f4f78b61-e897-410d-a046-dd922775cf30", "comment": "", "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": "9f873bee-636f-4bc1-a9b5-cca31f5519ed", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "tous" }, { "id": "f70bdb26-f07c-406b-8325-116331f47f60", "comment": "", "command": "executeScript", "target": "return Number(${tous}.split(/ /)[0])", "targets": [], "value": "nb_total_init" }, { "id": "8906afd8-6455-4361-82c3-f061a075998f", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]//small", "targets": [], "value": "visibles" }, { "id": "d6683fda-22c0-4af3-b2a3-39bc5fd5a238", "comment": "", "command": "executeScript", "target": "return Number(${visibles}.split(/ /)[0])", "targets": [], "value": "nb_visibles_init" }, { "id": "741fbc2b-0441-4c8f-9bca-2468086b25f3", "comment": "compter les membres dans chaque type de catégorie cachée/visible/", "command": "", "target": "", "targets": [], "value": "" }, { "id": "942f9073-4e07-42e3-adcb-c51fd155d038", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "6ee723d5-fea8-4a74-bd9f-15dc8c8e1e5f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "cf7f79d6-dd46-4273-b260-75ce4b4b86d7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1c2c69b6-e961-4195-bf93-44d9ad96bbe3", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody//tr", "targets": [], "value": "nb_cat" }, { "id": "7c36698a-f144-4b7b-9b68-518a2af4b383", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_visibles" }, { "id": "5297ad79-94d4-4360-ae4a-8b995759ea61", "comment": "", "command": "executeScript", "target": "return 0", "targets": [], "value": "nb_caches" }, { "id": "f1d2e487-b3e3-4606-8da5-e689856d2232", "comment": "", "command": "executeScript", "target": "return 1", "targets": [], "value": "num" }, { "id": "fd8f0535-ce36-4c11-89c6-a401d3b98557", "comment": "", "command": "while", "target": "${num} <= ${nb_cat}", "targets": [], "value": "" }, { "id": "32bb6b8b-94e6-41de-98a4-72c236b64062", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]", "targets": [], "value": "nb_membres" }, { "id": "6e5bff55-c91e-4f2e-a160-44b1ba67e374", "comment": "", "command": "storeText", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th", "targets": [], "value": "categorie" }, { "id": "bbc121a6-6fb4-46b7-a22e-7866485b42af", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "44f33872-40b4-4533-86fb-92e095874220", "comment": "", "command": "storeAttribute", "target": "id=f_hidden_1@checked", "targets": [], "value": "cache" }, { "id": "38594fba-4cd1-435a-b18e-51147516d1c5", "comment": "", "command": "if", "target": "${categorie} == ${nom_categorie}", "targets": [], "value": "" }, { "id": "15f9d9fe-1d31-46a1-a7db-c10aae375db0", "comment": "", "command": "if", "target": "${cache} == null", "targets": [], "value": "" }, { "id": "c4d3bf6d-6ca5-4ba2-8043-154aa93e472a", "comment": "", "command": "executeScript", "target": "return ${nb_caches} + Number(${nb_membres})", "targets": [], "value": "nb_caches" }, { "id": "f7b9bb28-0e55-44d1-9a33-40a84a3676c2", "comment": "", "command": "check", "target": "id=f_hidden_1", "targets": [], "value": "" }, { "id": "39eea3b0-5f9d-42e5-841f-749b03b74a89", "comment": "", "command": "executeScript", "target": "return -Number(${nb_membres})", "targets": [], "value": "delta_visibles" }, { "id": "f5daf0c2-7ef4-4aa0-9aa2-4c43280b99f4", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "f23e2a93-ec25-438c-ace3-58c2d94e9f8f", "comment": "", "command": "executeScript", "target": "return ${nb_visibles} + Number(${nb_membres})", "targets": [], "value": "nb_visibles" }, { "id": "278b650e-eae9-4c78-af08-f9ac55335452", "comment": "", "command": "uncheck", "target": "id=f_hidden_1", "targets": [], "value": "" }, { "id": "59fc2287-0441-4cc2-8582-a04dce26e35a", "comment": "", "command": "executeScript", "target": "return Number(${nb_membres})", "targets": [], "value": "delta_visibles" }, { "id": "4e9aaea2-6b72-48e5-8300-ff427b0bde58", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "fccb9d11-4788-40d6-9921-6acc72377cb3", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "853d84ec-0046-49b1-91ff-c40db494cdfb", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "24de922a-aa21-4edc-925a-06f95f934135", "comment": "", "command": "if", "target": "${cache} == null", "targets": [], "value": "" }, { "id": "615b0797-8021-406e-b43f-7086a783cb61", "comment": "", "command": "executeScript", "target": "return ${nb_visibles} + Number(${nb_membres})", "targets": [], "value": "nb_visibles" }, { "id": "fb505682-f412-43e5-b7c8-1e555e488c8c", "comment": "", "command": "else", "target": "", "targets": [], "value": "" }, { "id": "97e1a4ce-1f08-49d7-a120-e491b4d14086", "comment": "", "command": "executeScript", "target": "return ${nb_caches} + Number(${nb_membres})", "targets": [], "value": "nb_caches" }, { "id": "b9cb2495-f161-43bf-8c2a-265af3372e3b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "5eefa6f4-3fd8-4447-a0a1-c5f1ffd58962", "comment": "", "command": "executeScript", "target": "history.back()", "targets": [], "value": "" }, { "id": "ca756b2a-6caf-4940-b345-d3e9cf22fc3d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "31c1e60b-d773-4042-a956-888c48be8d89", "comment": "", "command": "executeScript", "target": "return ${num} + 1", "targets": [], "value": "num" }, { "id": "1ba51c6b-cd3f-4a07-bdae-f5f5b354ba9e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "08f56275-0cdb-434a-bb5b-3cc6e584f8fb", "comment": "Vérifier le nombre de membres dans les catégories visibles/cachées", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8d103255-aae9-43fc-96c0-e6af71ec7b9b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users')]", "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": "b388a3b6-1007-4939-a91e-394e2da6da8f", "comment": "", "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": "f29fc371-c2f1-437b-b446-c65377673916", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small", "targets": [], "value": "tous" }, { "id": "8965ba34-0e44-43fc-80ed-45e2efc5e659", "comment": "", "command": "executeScript", "target": "return Number(${tous}.split(/ /)[0])", "targets": [], "value": "nb_total_fin" }, { "id": "658fc614-631c-44c0-bd9e-177f25c6a507", "comment": "", "command": "storeText", "target": "xpath=//a[contains(., \"Toutes, sauf cachées\")]//small", "targets": [], "value": "visibles" }, { "id": "9db03da0-aa42-4014-b41f-44e98ffa491a", "comment": "", "command": "executeScript", "target": "return Number(${visibles}.split(/ /)[0])", "targets": [], "value": "nb_visibles_fin" }, { "id": "34e029e5-302f-4e80-bbf7-b465c4ed37ef", "comment": "", "command": "executeScript", "target": "return ${nb_visibles_init} + ${delta_visibles}", "targets": [], "value": "nb_visibles_attendu" }, { "id": "8a9ef015-b90e-4056-be31-4c11b77cbe9e", "comment": "", "command": "assert", "target": "nb_visibles_fin", "targets": [], "value": "${nb_visibles_attendu}" }] }, { "id": "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "name": "14-11 interdire connexion", "commands": [{ "id": "606f2d0c-e2dc-4bf3-89b0-247301351d89", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "b46bd7e4-2798-4f76-9996-42f44adfe3f3", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "e123b69f-6144-4308-b4f6-15b95312a299", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "79294f93-f3cf-4ce8-a959-a02cbaefb493", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "e537311b-e458-4802-b0fc-9b1aeac9ef2f", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "04753624-0ce8-42cc-b0da-eb1f39d4a1d4", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "07ad79b1-62ca-437c-a9ce-9218e1df4eaa", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "5d26e6d7-d207-4468-824d-30200c66e78e", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "0ba0587e-2f61-428a-a988-1b889b3942a6", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "e2249d5e-8bfa-4258-be09-bcd1d208a2c2", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b57c1d70-2029-460c-933b-132890326572", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "55e00e42-bb78-4691-8d0c-e6005308023d", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "5b442582-9c85-4718-977b-85a23a55ff65", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "ffe91b38-41f8-4958-b839-6e015a0350ba", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "4de6bc3b-c127-44d0-86ba-dcc722c09cae", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "7b22dcdf-5a72-418c-a202-a0f9d1700f08", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "a8879887-a765-4ad9-b4e1-c67ffc4feb03", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "b7db4d7c-6b3e-4b53-87fd-69e2dbe9bacd", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "d0195658-51f6-4f92-bc22-31e4f41d1b75", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "ca44f036-34b3-42db-8c3f-51033aa5c936", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "de7c2700-8cfa-4bd8-847c-ec548f6a1f78", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "5a1dcb98-b94f-419d-b17a-1f4f129098ad", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7d76ec37-45dc-4d03-a41f-99b721902783", "comment": "attribuer un mot de passe au membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7ff95a31-1ac9-4f87-8111-d885dcb02ac7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "0e268e30-b810-4c97-9dd4-cbe96a6011be", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "f315d153-72d2-4e91-ac3b-cfd53feb17ad", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "9c7119e0-9b34-408e-a5c5-f6c8393eb11d", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "8c4ba525-6655-4c39-9013-aacb880e709f", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "c27665b4-ad37-4ff3-aa6a-a004f2152122", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "f7c16c45-b037-4fc6-8c2f-372db64d1305", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "85b8852f-8bb0-4e8c-b3ba-08ccbda2c31a", "comment": "modifier la catégorie : interdire la connexion", "command": "", "target": "", "targets": [], "value": "" }, { "id": "dff81ef3-b836-41c5-8bd7-3f966ee81e3c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "7de112a4-3444-41dd-ac89-e30e8d41e6bc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7bd314a6-7b25-43f3-8593-54e8cc3ede38", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "f2bf7f51-8860-475f-bd5a-c9e58f3107f6", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "64eff831-3b84-4d87-a8a1-8a6e2dda743c", "comment": "", "command": "check", "target": "id=f_perm_connect_0", "targets": [], "value": "" }, { "id": "405ce0be-7a4a-4a1c-ba3f-a68c46bf2a9f", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "2c98ac2b-7624-415f-b1bc-41daa3eb7cc1", "comment": "Vérifier qu'un membre de cette catégorie ne peut se connecter", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1f95afff-9215-4812-9387-dac506cae297", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "34de8508-8a84-4353-bf56-67105790eddf", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "b21f3583-2d62-420e-a5af-65eaf460d9c5", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "14ebedce-ca61-4ce7-8ee1-a99df5cd2250", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "179e0607-f483-4bc9-8743-7c314acc3e97", "comment": "", "command": "assertElementPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }] }, { "id": "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "name": "14-12 autoriser connexion", "commands": [{ "id": "3cfd5b1e-a85c-4db2-aa52-37a095e3de4c", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "c6d0a805-1af8-4fa2-ab93-f3ef233210bd", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "5d9c78e5-6e3e-4f4f-bd4c-9de610439237", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "5c3715a0-d740-4dd1-8392-4adcb79f33bc", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "dd5ec22f-c5cd-4ddf-930d-4cb2d56223ef", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "1f3d9f83-1ea3-4ecc-b067-836ce1a607db", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "9a2c4b54-1c15-46e3-a8b6-3f9e5c28c8b7", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "466ffdd8-cda0-4750-9e9c-f588c9cc731b", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "59b1383a-182d-4b79-9fe3-08c743d56d5c", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "fa266b32-10fd-4532-be5f-cd299b6eebfb", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "00da3371-c14f-4223-b7a8-6bde49773dfd", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "cd28e564-c2c7-4e29-a1dd-4a920af656cd", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "f2441dc4-581f-457f-9236-f22e82b825d9", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "48cadd23-f355-47f2-a6b8-4cf7b36adc88", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "cbead36a-c947-4c6c-93be-5f710b047889", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "494787e7-03e1-4719-968d-6a8a6fb5ea56", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "6ed3ffe6-c17c-48e6-ae3a-045c7ff1d7b9", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "a3dca9cc-ee58-465b-a476-d8b19f4e0f5c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "13b404a6-c5fd-452a-888a-feaa53dbdb17", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "c6b87851-c8b4-4c1a-aa04-ae42588c6b4e", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "6f8d93d3-f868-49ea-a0aa-8f1c0c7af146", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "bd89e812-7e85-43e7-9835-244b5724025f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "9216b2da-8257-44f5-b1ca-b0a1a7640211", "comment": "attribuer un mot de passe au membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "ef3affaf-8cad-43c5-90c5-87b083c43d16", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "6c3b08b9-606d-417f-9b14-27999eac1cc2", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "154e5b48-a885-41d5-96f1-66f9b1175f3d", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "6787aeb4-8913-47be-990e-b3b4d05b328b", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "d81a5930-4835-4581-8d8a-1d4a80160cad", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "f09bccc4-df66-48c8-bb26-51522b3d69ce", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "5b2e4ae1-8524-4dfa-ab37-ff90abf65278", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6c4ebdcc-bea4-4178-84b5-3d90a48edd98", "comment": "modifier la catégorie : autoriser connexion", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0918a4df-aa57-4581-a55e-f1d90c5aed12", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "9177aaf7-2e6e-4b2e-a4dc-784065a04c83", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5ef969c1-5c3c-44b7-918d-7488e094ac11", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "241b7ae7-4cde-48b2-b0ed-af1bf5d25553", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "32319e88-4192-48d0-b022-fd174213610a", "comment": "", "command": "check", "target": "id=f_perm_connect_1", "targets": [], "value": "" }, { "id": "1b7a2901-f132-434e-bdd6-12a35a23871a", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "f65d9f3b-cd45-4ce4-991b-2faefe86f9a5", "comment": "Vérifier qu'un membre de cette catégorie peut se connecter", "command": "", "target": "", "targets": [], "value": "" }, { "id": "db8aa0e1-31e3-427b-8fb0-3c0858624a29", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "f104dbb7-f700-4a1b-b484-92e2c4b714c9", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "fddf13d1-04c9-4a9a-be12-042cceb9226a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "d12a0a3e-8392-495f-95fb-42d235052786", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "3181b171-dac2-40b1-aa19-c8582ed377ea", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//div[contains(@class, \"error\")]", "targets": [], "value": "" }, { "id": "f1f16450-1780-4a56-a3cd-0942ffc4e2de", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[contains(text(), \"Bonjour ${nom}\")]", "targets": [], "value": "" }, { "id": "da33323d-0e71-4a40-ad49-b564cc9fe3b0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }] }, { "id": "08ad7abc-cc17-456f-9ff0-a10a7a29e784", "name": "14-20 aucun droit", "commands": [{ "id": "0f182bd4-b52f-4bc0-8948-b040ee0f915e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "9a176f10-a084-4a07-8bdf-6fe7ef730306", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "2a158b3c-6bcf-415a-b30c-599585026794", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "ed625ff0-077e-4d59-a166-014e11f99f53", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "529cc411-f4fe-4edd-8b60-9631b4ba5858", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "2c1ddf6e-2d13-4119-be20-9ec12de7945e", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "6fd924b7-f1fe-476e-9aab-5fcb72629a2a", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "a74ef1ef-7220-470f-a31e-f34810b5e8a8", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "20a90540-332d-4839-95fc-03f60b02f770", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "2205fc2c-34ec-49a4-b2de-384f1904409a", "comment": "modifier la catégorie : aucun droit", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1b03968d-6b3b-48d8-a6e5-f1f9499d0b47", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "c9990014-5373-4fbc-b806-112c9f746206", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "56b569a3-a77c-4817-b567-5ab166ca6a1e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1af3b073-f311-4707-8a32-cf4ca8000f8f", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "8c44e427-2349-4711-b2c0-65fe562880f4", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "82b29ead-31ed-4d2b-a5f5-37353909ac61", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "e5090738-9acc-4768-93d7-a60d10b5d6bc", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f208b01e-ce84-4a19-8cc7-e42da8a6df7a", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "5a633f01-05f4-4696-bd03-54838c4e7619", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "c466ea8b-213b-4312-aa0a-99838e5a9179", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "6bd5e85a-e355-4636-b7e2-13d59edbdb19", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "8a4fb923-b185-4d24-ba21-5e811b05cfcc", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "f2e28259-db8c-470f-a7af-4e28b7b9e203", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "924850e2-22bc-4cfd-a48f-862c28bf44bd", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "34197bd4-443b-4d58-9a1a-ed0f258683b4", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "fccf77bc-49fb-4739-8104-3d4fe2177bca", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "468e6264-c570-4563-96f5-dcf4b0ef08a8", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "30844384-23e5-4302-97b9-296c2c0dd18c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "fb453fec-0b72-40ce-a17c-55c135634f9e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7b98283c-70e4-4491-bedb-fd1338ca5d14", "comment": "Connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d98cc239-3c7b-4595-bed7-111139a7347f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "661e623d-c521-4301-a498-792278d020f5", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "69fab2e5-4292-4f57-bee0-217057f00e12", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "5e1bd7df-42e4-4c27-a732-913c3f82bacc", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "ef87b748-fe9a-4ef2-a660-8555b250da94", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "982ea71a-4f01-4fd8-b971-b338249f922a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "b631ca1a-851e-45fd-b80a-bece63e9a04f", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "69af0959-4e27-41d5-8a73-7640c21b1e03", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "cb159ca3-2768-4f7b-9296-c4d18864042d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "8180b1ab-548d-4b68-920f-22ee4e02e487", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "92b569d7-a2ea-4c3c-954f-598000a7996e", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e934ced1-e4f7-48b0-abb5-fbb64f4e4142", "comment": "Vérifier qu'un membre ne peut voir les infos des autres membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7942e1d0-581f-4426-a336-4d6036cb3d77", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "05d2126e-0d36-401f-8abf-452b288ad015", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "9c1894b7-5a5f-459e-a87b-74c27407e727", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "a5d57c78-994f-4f61-9822-027ac1b87791", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "d3eed66d-10cc-428e-b46d-ce8a7092d6c0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "da408a69-e21f-4fb3-ab30-137eb29f88cc", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3346fbbb-0c37-4a73-bd93-13d8ee4f6ff6", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "12f61d9c-510a-475b-a6b3-606d4eac5674", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "fabbecf2-6933-463e-b764-0749157f5edf", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "767d3548-45f6-4f08-9982-b89a8c18a400", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "e1edf69b-fbd5-4f50-aa19-fe665acbf478", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ad0022d3-d2db-48d3-a9ac-8212e4f8c93c", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "28c9f4e9-8496-4c14-9542-e498b564d47f", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "773a4626-69fe-4065-a154-dc5a33912015", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "8b29c931-a500-4cf3-9079-13dbe03d1909", "name": "14-30 droit lecture", "commands": [{ "id": "c4a46159-4ab0-4d7d-831d-87e5fbfacba3", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "1931fc00-556d-40c5-99c2-13ce0f713329", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "9492bdac-92e8-44f8-968f-f928c531cf4c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "0ba5250a-3985-4d7a-919a-954eefecc530", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "9a83f5b5-ba65-4c90-b2fa-c19d323e306e", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "81dd4ea0-fd4b-41d1-99e2-502a77b1e6cf", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "ec8662d3-93fb-4848-908c-c8d0b735fcbc", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "0e0bfcb4-b4f5-4496-a5ef-6aaccbeae26f", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c8ad51cd-3532-4105-897b-1cf91ab2e05f", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "b19a3089-61c3-4ec1-ad25-64cbca5aad72", "comment": "modifier la catégorie : droit lecture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "880ed74c-c4be-4e49-945c-f05ceaa5d451", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "18cdce15-ca3d-4d0d-b984-0461a661efd0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "e3f93353-80a2-46dc-9a89-1326d1eaceb4", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7578a539-eb2f-4567-8edc-2cdbcbe7d4b8", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "d0c969a7-a66d-4a6b-b7c2-d8ba3418d8e1", "comment": "", "command": "check", "target": "id=f_perm_users_1", "targets": [], "value": "" }, { "id": "c7e33c89-b50d-47a6-b48e-413c598037d7", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "5ef5dad9-71da-4b88-a961-f95ee1f48b64", "comment": "Créer deux membres dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f1684d6f-badb-4e9a-9a6d-65719a99e727", "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": "nom1" }, { "id": "ea0d284c-d573-4c8b-b017-e1e65c98c1e9", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "abad6c79-7b6a-4f8b-ad71-8f8dc017c613", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "7b3d932d-2953-43eb-bb11-2fd9d00ef778", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "bda0d24c-1f0b-4fbf-88e6-300115ea263f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ca7ab15e-3b96-440a-b741-3bce6f318823", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "77278e11-a6f7-43df-9e35-6e921c8296c8", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "0b4b92af-f1bc-4d91-a154-b7960e504759", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "19f14800-e361-4b21-8c89-a299d014b71e", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "f558b1c3-ef5d-4946-a1f3-635d1a51690b", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "48834878-9eef-448b-93b7-05c9424dc878", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "10384ed3-a154-4d4d-909d-492cbdca4d69", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "42b34498-14dc-4126-bd8c-05be03631d7f", "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": "nom2" }, { "id": "8a442ffa-bd50-41ce-b700-dec24106c5dd", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "aa7f7d3a-57f2-4f44-9783-e9adc28c584e", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "513b51a5-88d4-4f66-8df2-f1a1174a61e9", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "3e6ad69f-dad3-4345-8c6a-da4244ff8eb1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "e882edfd-5a2c-4eb7-a164-c0df8d45a2b3", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "e4491144-8949-4d2d-8c27-a7e8dc7c3fa5", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "31f28194-2ea8-446b-85e2-ac28176fc4da", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "b18a33ab-115b-4393-b976-451712caaed7", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "1ceb6725-1dca-429f-8d01-51e75eaa95ea", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "b654d460-7192-49bd-bdfd-5f59ce1ea3cd", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "5c5c0334-618e-4e19-a657-4d9d688b3bb0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "d4eafe15-d298-4bc1-94a1-e1e34ab0c38b", "comment": "connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6c99b425-ca2d-4cec-bc2d-82b24880ee08", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "c8d0ca0b-3f03-4b98-862e-01e1a62ff227", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "8beb839c-90c8-4533-801c-0622ef80ae1e", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "dfd7873e-7d17-447c-8b3d-415958e2998c", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7164c18e-1695-4f6b-b47f-d7ba0b5cb373", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "7d3b9a3b-2fd4-451e-9752-168d0143ee21", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "931988a2-47f8-4853-ba75-59c5e13e0bfe", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "30f6798b-98ba-4f1d-a19b-4231da49dc4c", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "2223e976-6bf5-4003-a7c7-429a3887d9a4", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel2}" }, { "id": "9d5c8d6f-43b9-4285-bcdc-cd7dab95143b", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "b1d87401-7d25-4481-92b3-48ad85367b6f", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "5a4c2ff5-a491-422c-9828-510f976a1063", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "6abe2634-c8d6-40d7-b2c4-fff67e9f66da", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "36aefb61-c3b7-480c-ac2a-851b186790a9", "comment": "Vérifier que le membre peut voir les infos d'un autre membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "93557fbb-7cd0-4e26-b62c-99a42c58d7fe", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "2167783e-db65-43c8-8309-61af5c567f01", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "58e03eab-d499-489a-b591-12d186e31f15", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "78c2bf43-66b4-4d37-94a3-c042eb35091a", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[starts-with(text(),\"${nom1}\")]", "targets": [], "value": "" }, { "id": "d1815bdb-3361-4803-abd4-0b95ff66d78f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero1}" }, { "id": "4486eee1-152a-43f1-8783-11abd4c81a21", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom1}" }, { "id": "b08556d6-8093-4c01-a771-18e949a110f8", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel1}" }, { "id": "2298cbcf-4251-49e3-9891-6d0b200aba57", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "0118dd11-c722-4e40-a1e6-2e7e65e94380", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "aa4142f5-4390-4c6c-ba55-50047396c84e", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "6c4a6958-a620-45a6-8a80-dd63d91bb940", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "a67cd059-3f14-40d2-8dc6-848bb34bd320", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "0c48c177-7834-4123-8ac4-d688a9ae9d7b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "eb9629e4-5036-4848-afe2-ca088352c048", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "aadf2e2c-166a-4084-9fbd-b5e4cb69f1a5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "d9d23e92-3ad4-41aa-a103-b005e84a8ae9", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "078a1c31-3653-49ae-a966-bdc8adffe3ae", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "ec45a021-6add-4de5-9f69-eb1b218d8434", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "918d1f7a-7547-4c00-8972-fc4744da82cc", "name": "14-31 droit lecture modif autre membre impossible", "commands": [{ "id": "8e3148ed-44a6-45f6-97b6-451d93087236", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "90ff0496-af79-4844-b88e-ca159faa0557", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "23821e44-058b-4019-9eaa-2627df7407ac", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "4834131a-a279-4762-ba31-c663ed3118e8", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "10cd4568-24d9-4a1d-98d0-47c52496d029", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "db1f7bf8-8ef6-4306-b543-13d7e086a454", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "8609a695-03e2-4eab-8a0e-73cb1405eb49", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "37f5a3be-3608-484e-a749-c2a9c0cb9a76", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "b550bdc5-f020-41c5-bced-3021293368e4", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "d1f017e2-cff5-4ab5-a42e-5135c4152d37", "comment": "modifier la catégorie : droit lecture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "27d73cf1-6a24-4a05-b2c8-fdd2bba26c9f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "51d2c8c2-2c9a-420d-ba73-80d6ff67b0da", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "0feb9cba-caa8-4f14-87a2-893262971a6c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c1c8b759-cd53-4950-8969-53936e65037e", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "a6ad9ba0-5234-4fc6-9c0e-37e8af168214", "comment": "", "command": "check", "target": "id=f_perm_users_1", "targets": [], "value": "" }, { "id": "a91ae65b-b3c1-4c1a-a8bf-8160fbd79b50", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "7c7b85ec-8679-4c17-935b-eca235fe75f1", "comment": "Créer deux membres dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "1be6500c-d658-4f38-b9f7-48ca9807ffd2", "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": "nom1" }, { "id": "42dfefd3-56c0-4fda-a1fc-c562f3a6a8e5", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "ad5544db-5df5-4c53-a28c-e5118a3c1db7", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "694fddd9-0533-4293-afc6-7c35da8c3ee9", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "aec2cf1c-f4a4-44df-81bd-998092eec243", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "ae7e6728-44c1-44af-b2f3-11109b2c9cc4", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "f88604ce-dbf7-477e-92cd-0ac406373b90", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "eb3afc60-4564-446d-8fc3-b83daf9316d4", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "a8c3549a-85b6-4bf0-bfd7-f18889723978", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "e04e2797-93d4-4aba-b5af-29fb44a88014", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "abcdfc31-f628-46e5-b339-1958527b2f7c", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "24519054-2562-4376-af46-2a9385241751", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "35aa6880-c86a-4b93-a646-0094f7621fe2", "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": "nom2" }, { "id": "5f30d4b1-82f7-4a75-baa4-3f389c76931d", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "1138463f-64ff-4686-92f3-4b41e862ee83", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "0e6ccb49-ed27-4d2b-8f57-03a22e353fc2", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "1fb7f0e7-d5ce-4ac9-bcf5-ec01aa1ad1ca", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "5a9d3c3e-c567-459f-8751-2fce662c452a", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "c01522fc-377a-4169-944f-0fe7d39b0fdc", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "63fbc3c9-fcf3-4110-b009-2b4356255386", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "03d83b03-ac1a-4f52-90a6-b37a206971d9", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "69b472fa-74fc-48da-a058-36e624e606cc", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "5ffa495e-66ee-4366-b32b-dd9470d12e69", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "76956f28-7edd-43e3-b122-39a04965c719", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "c04e9f18-9ae9-4a32-bc99-89a6541d3fec", "comment": "Vérifier qu'un membre ne peut modifier les infos des autres membres", "command": "", "target": "", "targets": [], "value": "" }, { "id": "fa5ebf71-07b9-4e29-90f7-9e401e206029", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "7f67b952-d5a5-45f1-840e-31629c4b7cf0", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "4667ab44-8026-47f4-bde2-baa8a0ea6efc", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "dbebc27f-6cba-4313-9b06-cdb8edebf61b", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "67c87fd9-36e3-40cd-a1a1-0930c0e8b2d1", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "74e46d97-8e5e-486b-95f9-a9a3b41c79a3", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "61f39a29-e234-43ef-b6e1-7dad90a44450", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "060bbb78-528a-4e08-87e9-3a9f7556c51a", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "e3f8207d-6d58-49ca-92d9-21be40b14eb3", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel2}" }, { "id": "5334fc49-5cac-46a9-9af1-42d43502c80f", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "f9112ec0-5719-436e-882f-84ac6523e5b5", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "9389cf39-0f3d-4941-8243-83001bc7a90e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "80944b5a-28dd-4898-80c6-f9a5a87e5ad4", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "d2bbff40-5d8f-4534-84d8-7d602e259cad", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "b40750f5-97d3-42ad-a83c-2bd41b3e00a1", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "398bef66-34da-4001-9666-05d53bbac947", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "11f9afd0-102e-4090-844a-5f439a939f5b", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "00d66503-aa08-471f-a890-e8419d14ae49", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "59d5243c-dc89-4ab3-8bb3-6d6189b3e92b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "69a33ed3-f0fb-40a8-adf6-f6216c5d3759", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "12fa8a44-151b-4367-b677-b7c17772733f", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "a40ec345-5ebe-4b54-afa6-851dee2178cc", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "a874faa0-ee23-4409-85a7-c85887d2c355", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "e7597330-c3f0-4a91-909b-c4923e053dfe", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5ce43928-b1af-4de6-bf95-526275aeeff7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "532d840c-b579-45b8-ad72-b0d75ec25905", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "e76098f6-7012-4adf-8c03-e2f678b00031", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "78ce3531-c5c2-4898-9824-9da16de24a2f", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "61e3023d-156d-47cb-a26a-5750b7d3ceb6", "name": "14-32 droit lecture créer membre impossible", "commands": [{ "id": "df7c95ff-1452-4b37-aed2-894d3472870e", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "84c209f7-c9c8-4c4b-881c-6e36a57cc224", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "b7557a20-d720-4ddd-8be8-bdb3a466557a", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "35b62b9a-668b-491d-90ad-fd9dc8257ba1", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "74521ed2-c1f4-492f-8994-de5aaa0cf4e7", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "5d8d249e-1725-4df4-9bcf-bc91449011dd", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "dfed02c3-f219-49d4-8b6a-3d7514b12897", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "9a431e6f-eb29-4677-82f4-709c3a40cac2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "d55de872-fc42-47b9-a52d-0641f2aaab6b", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "456f35b5-fdd2-4877-8407-f0ed988d1495", "comment": "modifier la catégorie : droit lecture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3a01a6ec-1ee0-4111-9c3c-f57bfb3d0211", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "56fca65e-e61d-491b-b8c1-4f6e0b84e93d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "2456fd46-2897-4dbe-a616-1433644bc13a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "89e089e1-5b81-4a13-8f96-5411acdc8d22", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "1473e320-7d7b-4388-9183-5ef3b82004e9", "comment": "", "command": "check", "target": "id=f_perm_users_1", "targets": [], "value": "" }, { "id": "3d7270dc-b88f-4e68-8005-6e3c1408a8f4", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "7d39ad3c-1204-4f62-a59e-5d38a93d9941", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b21f5e34-25d4-4489-80f4-21640a874979", "comment": "", "command": "executeScript", "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" }, { "id": "7ba9f954-0797-4ec7-87cd-4318a78f9624", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel" }, { "id": "053ff0a7-477c-4950-bbb5-8b8d94803025", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "2601b0b7-e8e6-4655-a473-940e6b667a0f", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "408d9420-d346-4bf2-9c00-cc872e978622", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "864c4bed-f78b-4a4f-83d3-a36416fa9f78", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero" }, { "id": "f01863aa-69e5-436b-a9ab-d8e8829b36ec", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "4f39f4cd-228a-40f3-9632-9e74df2cacbb", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom}" }, { "id": "2e5e12f6-b8c1-4c89-9678-6b75bded2e0f", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel}" }, { "id": "21b16d29-94c9-42b8-8912-30c368de119c", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "a5d95959-302f-4641-b183-0a09ea6b3daf", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "f2e63133-9547-43ed-be41-74503ffddf09", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "f88065a5-2c26-43d4-948a-36630bcc551f", "comment": "Vérifier que ce membre ne peut pas créer d'autre membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "402301c1-617c-4f7d-bdb8-0aa1d8bc5e8c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "071f6fba-58e1-4581-9272-1fbb0b23ebd7", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "cf537ce4-4b7e-4603-ac6f-8f90f751bacf", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "a5e97f97-422f-45a5-9e43-81595cf3cfe8", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "f96b2a11-a78e-4496-8205-5043566e802e", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "58b4ae59-f71a-4c31-a913-00aee77a5dd8", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "a3bf13a4-5fe1-486d-8679-3cb7b3087972", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "22612f39-a4d4-4499-8146-08bf4c438e38", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "f894fb6c-a28d-41e0-82eb-ddb1934460f7", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel}" }, { "id": "84d3764e-5c72-4d13-b0cf-9c21456f6126", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "e88dbeb9-7c9e-48d7-ad49-d64752556ba0", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "6dfed5fa-8e99-4385-b65d-e9df4f837874", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "5899f78d-763c-4806-818c-f09456d875ce", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero}" }, { "id": "c0f42938-d840-4ae4-9cb6-92f67b6d4ed6", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [], "value": "" }, { "id": "878b31f7-35ad-4f3c-bcfd-9822d49fa89b", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "b22574b0-d921-4f46-ae25-c1d03a368fb7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "2e6801e9-b83e-4d94-97e9-bcc899fb40b6", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "22f38f49-4546-46a3-a6fc-c803cb0e3e00", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "d197ce78-5794-47e0-a707-4579a8645788", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "43a526c7-ddc5-4551-9e06-bfd278f2bf11", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "5ce7e3bc-2761-4074-a557-3f5db9770098", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7f7a34c6-ea33-4d00-b25d-e5367f8af67f", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "89163d30-1733-4814-824f-98f29c7c652f", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "d7b54e09-ead7-420a-8d82-34cce5a8b320", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "48beddc0-5c9b-4edd-82fe-1c07da76b622", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "7402d095-05b5-45eb-8029-9c6b106cf42d", "name": "14-40 droit écriture : création membre possible", "commands": [{ "id": "825887f7-22fc-43c2-ae07-82f5d15bf7eb", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "5076d731-ffaf-4520-bdac-757f22c78801", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "76d6be03-54f8-4fd5-ad91-efc54839963b", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "0a19a1da-b00c-4fb3-81c6-1986d3043e3e", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "a7a3a888-1d50-4add-8d3d-c2a1ffd19de5", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "819ac834-9127-4f4f-9fc4-c425c9bbe724", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "41e5957b-469a-44d1-ac31-6bb1dc599e95", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "282846c1-1104-4fba-bda6-8f96a997522d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f4eebfe8-ded0-4a89-ab31-467f12c56239", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "7f73e5e9-fb6a-413f-829c-bbfbb65703f2", "comment": "modifier la catégorie : droit écriture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "9b459953-d800-4e47-a500-a13dcfd60c15", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "0ed1fb40-e460-4557-bb29-71f54eb25ff0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "b42f1f0e-2f50-4242-aee4-9bd5309e2060", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1845580a-2c26-48a1-b6f7-b4f2dc85b76e", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "3b1eb9b0-5759-46da-a364-e2dc2984791d", "comment": "", "command": "check", "target": "id=f_perm_users_2", "targets": [], "value": "" }, { "id": "b9853df4-6972-400b-988f-8782b02383b3", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "b4c80b7c-26de-40bd-ac31-26e8c6437690", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7373184b-3e32-47b2-8bf7-00cf1ee64b1b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "9a392498-1428-465e-a281-b970ac7a4e9a", "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": "nom1" }, { "id": "55e1fa0c-1c20-4453-8514-74369caa7247", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "dceb8d6c-c65d-4f12-8b24-f8d4d444bfe7", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "9c34e64a-afc4-4ed9-8641-5ef6653f639b", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "d3e57716-6647-4a58-9794-552776a1c622", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "75510fe6-a712-474f-ac3b-7487501173c9", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "b1e2fe54-bca5-4591-bb0e-866d2ee036b6", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "fa4fd0a4-6583-444a-87e3-67a4bdccdbed", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "24d3ee84-282f-4d37-802d-61a22a93fe30", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "e4bdde05-26a7-4299-aabb-8b8cde4da737", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0bb3539a-e0de-4156-b2be-b34284980a66", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "654be9d9-0d60-43c4-964c-0086aed7e565", "comment": "Connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e1be2396-c8d5-4aa5-bd27-ce97c83f3abb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "a4f6813f-0f44-410e-9342-655b788d857c", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "2bedf2af-944f-4d34-a19d-26d32fd9ef0c", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "131a8dbb-645a-4005-8dac-b0ede2f61c19", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "bacb3314-8028-4e21-9114-76391f230c5f", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "8dc719d0-418a-4c51-8985-7d5987ec05c3", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "3f47e0e4-7f39-4e90-b147-66cbecb0fd1d", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "6aa9737b-440d-450c-b3d7-2c96a298abb6", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "cd54dd93-795e-43d6-b803-35c7db747c62", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel1}" }, { "id": "90ede966-f025-420c-88dd-8a69fcbc04a1", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "8695e125-1a00-4ae6-bb3e-20cd3f2c3a37", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "64675812-3571-43e5-953a-c5c654eb7626", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "73c32441-fd4a-4026-87d4-1c022cef3164", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero1}" }, { "id": "f0f03618-ec55-41ad-8839-717ca4634c28", "comment": "Vérifier que ce membre peut créer un autre membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3f2fe547-9bf9-47d9-8212-1608f427d1a1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "76f0e7db-9387-4837-992d-9c7f203fb5f2", "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": "nom2" }, { "id": "d595c68d-1c17-4afe-a5ec-dcb9b4dc438f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "23726ccb-fd3f-495f-afaf-07a28b4e377a", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "3e67bfb9-36f9-43a3-84f7-bec85ab7b3d8", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "f12faf3e-430f-4b0e-9b32-cfb65f0747af", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "1405bded-811e-4304-a7f7-afdb2de50696", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "49836c78-62e6-45b1-969d-06abbc34da76", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "9b01d197-ee22-4448-9d0a-0ceab93b7292", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "95043eb0-785d-4b48-bb37-ed7d6875bf62", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "d00518a2-8eb9-4042-bb45-7d4634dff85a", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "8a2cd906-3986-4e4e-8fbe-e75fbf916a07", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "cec3442e-746c-4e30-a786-71fbbbf88968", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "9079d750-b261-4802-b566-87c0befe9677", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", "targets": [], "value": "${nom2}" }, { "id": "7ed7fbdb-1f77-4d76-951a-149c581ae62f", "comment": "", "command": "assertText", "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${courriel2}" }, { "id": "9fb310d6-5d8c-46f4-a396-d9190f3d49d1", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f8b0d858-aeb7-4123-9269-214b79ab5faa", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "580d8505-6a8d-4a92-88ea-2964fa0b7198", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "5f75fbd2-9f6f-491b-b6f8-9ebd9ab32193", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "8a4079ae-6e7a-4d9b-b095-00f107b1f6e2", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "6cdd3507-7727-4386-ac4f-687e6684b7bd", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ac0c1d0b-1a90-4325-b6bb-5e1699869025", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ff9f0fbd-87c1-4b33-af28-1b58f7344ea7", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "2a4b3f51-b8e8-4887-bb70-962f5939e141", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "81261c00-da92-465f-bd4f-1cf41cd5157a", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "92e395e4-e16c-4313-ab0e-621b1490d5a2", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "8311e834-db9a-40cc-a3ff-558b5be6ba2c", "name": "14-41 droit écriture suppression autre membre impossible", "commands": [{ "id": "5f19f36a-5564-4e07-922e-8e6641afbb63", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "40fbe064-2174-4d62-8214-55fe69299d43", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "0784b3bc-423a-4243-8f54-55e28c7de46c", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "b2847c91-9767-47d0-821d-4e0eff926a16", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "4a0563ee-6c75-4431-91a0-3b7490a3ef88", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "30abe6c1-a5c5-476d-b132-776965ff28c8", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "ea4106cc-d73b-4d08-b189-b03edd06e746", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "7c22cbc1-2ba9-4ff6-9fcd-a609d73d8ce2", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "493e603f-9897-40f1-a950-3d1029bdd2f5", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "0f9653c2-f3d7-4317-b0ca-f0dcbf8efa25", "comment": "modifier la catégorie : droit écriture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "68b0150f-671d-47bf-9984-08776b2fca75", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "52d4b6f1-6572-4661-9b86-d22ea7a67bdb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8e48c303-c429-4cae-9523-db6a20fae06b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "11118d12-1d39-444e-a4d2-5e11fd46e624", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "3c1fb936-d8f2-4a2f-8a70-61946f93ea8b", "comment": "", "command": "check", "target": "id=f_perm_users_2", "targets": [], "value": "" }, { "id": "3b74deb9-0585-46e6-aa9c-f89611dcdddb", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "88df3ab3-0e15-42f5-8eec-8e01d421f81c", "comment": "Créer deux membres dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "400463d2-9431-4420-88ee-498328946013", "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": "nom1" }, { "id": "b43208d4-b4af-4189-a20b-d4d8a9dc4a5b", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "b87f2c3f-66a7-4e1f-adf1-28cc690643da", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "89acb040-3c86-4a65-80a4-ba2aa233c984", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "08320603-3af6-4366-bb98-9b17a6c3fc73", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "a866727d-1095-4e46-8e38-7a4f1b183424", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "49f1d0ba-d142-4f2c-bb60-c2d44b7397c5", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "50abf10a-b77f-4614-801e-c03b6de7a21c", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "4ead56d4-6535-491f-a488-f27397101506", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "14b47b8b-6c89-42e6-a851-7939bcd9fadb", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "06956da8-6473-4371-af5c-acb5753dcf22", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "30ab9f1c-76c7-442a-9695-835b4e789622", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "5d92d3fb-d3a2-406b-acae-6498f9f8a7ba", "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": "nom2" }, { "id": "8e824c50-9544-43b1-b3f1-3ce61ef4c712", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "44612036-7c1e-437d-ae9b-7baea20247ae", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "93a3fd4b-363b-4870-a87d-a2c5a65782d9", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "10181d3c-6e4a-40a2-b92d-350c1f0274ee", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "cc6a1733-a3a4-4c18-b01f-9c63ebfbd44e", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "9466956f-0bff-4a47-9e3a-ffc1ca7357f8", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "63e04750-b253-4488-8db4-2fdd8cdc2a22", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "57946fc0-9bdb-4196-8206-742830a3f1cb", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "222c88b6-47bb-4d88-8668-58f40dd754c9", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "ffc7d155-0fb9-44e6-b884-04018b9ca5f3", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "0eade969-fef5-4c1a-93fa-4bc96290f36a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "1f568233-e2cc-48d5-bcf4-f7b1bcc98316", "comment": "Connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "8199b687-cccb-4db3-b44d-a4c0faa80943", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "ae00ab85-af78-4a5b-a6a5-60cc25620d93", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "41f285d9-b7f1-4b26-b7c7-9949dfaa156c", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "fcf3f9cb-eb82-401f-b75d-7d6a07efd72c", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "ab845a79-bd73-4f9d-b7a5-46a647bf1b8f", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "475e7a72-10d2-4ccb-b6dc-9a15849a65a0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "5fb8443e-f813-4592-a81e-6ae6b2ff0d99", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "2e8a035b-dca3-4825-b09c-100f17d580a6", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "dd8a6b55-5be3-4f2c-ac43-7aedef5ad38e", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel2}" }, { "id": "3d59e354-9976-468a-97a7-76b45ae0ac36", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "247886f2-8169-4dc1-82e4-d042f063b3f0", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "0d25122a-aa6a-46b1-a448-2d35cc964c36", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "7c7adab5-ac30-4e95-be33-0976bb696cbe", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "ba993536-ec9c-4e3b-bb74-a7a3958be47f", "comment": "Vérifier qu'un membre ne peut supprimer un autre membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "916020ab-530e-4bbf-bc38-22552c8dde2e", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]", "targets": [], "value": "" }, { "id": "9bf11601-deaf-47fa-89b5-4dc329406756", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "d8f35af4-18ad-4f3f-9461-85158a6c7fdf", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "d9ab90f4-4c8e-4376-a667-1c44d90d84a2", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "709da714-334c-49d0-89c8-520904486dd8", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[starts-with(@href, \"delete.php\")]", "targets": [], "value": "" }, { "id": "9c689ad5-d2fc-47ff-9b15-7cdee11da80a", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "eae4eb1e-ff96-4399-bbf8-c0084c4349a5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "87591fde-993d-4ac7-83be-889da28819f2", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "3d5f7d43-e488-4750-9514-81b4876e648d", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "2c899ca8-3b6a-4af4-be11-8c7b666d7f53", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2db7dcb1-a6a4-415d-9e7e-76ac48b25c72", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "847528da-1984-4d6f-9d43-4c9049d38ab6", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "7071dfc9-6274-4ee6-8be3-fd5ec1cbd9b0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "41c649c5-db76-436a-81ee-a45bc48dc8dc", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "1538f26b-9cb3-4cbf-84ba-c17d7e341128", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "e5a31cc6-bbab-4329-8478-40a18a1fdba8", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "182cfb32-6ded-4b73-8857-bb85476d34ac", "name": "14-42 droit écriture : changer de catégorie possible", "commands": [{ "id": "f2d125b7-339a-4b64-83b7-557997673f42", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "0ca338e8-9f7d-448d-a0d5-d5d2fea0e708", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "fcaa7746-6bf9-42bc-aa77-a8a40c4d1996", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "c62b9be6-979a-48e2-bcd3-db8d03658fbb", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "2589b932-6234-4411-b00a-9c72ef742a56", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "1ba45836-57fc-42b4-b214-6f0fc3535c46", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "b913b04a-89a3-42cc-b779-17223b3fa53b", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "9ad19325-af42-4d5d-a69c-13d0f785c710", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "c81cb5a9-8057-43cd-9827-ceea6c4f50bb", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "bc35354e-66cf-481c-8329-d5710d0e5efa", "comment": "modifier la catégorie : droit écriture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2cdf3e02-3798-4e53-a306-8cb5f12d82ce", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "a16defa5-681b-4672-84ad-827732e45300", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "21ce3cda-73f6-4879-942d-007787b802c0", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "ef1ab73e-b0ea-45c3-954b-76172f1edcc7", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "8fc1ca44-f209-4262-bb84-8de9bc84af10", "comment": "", "command": "check", "target": "id=f_perm_users_2", "targets": [], "value": "" }, { "id": "2506658e-fdfa-4d88-a9a3-aa6adf3560df", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "17b2c94a-a61e-4a76-a066-6d16886038bd", "comment": "Créer deux membres dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "18dc6cd0-9f54-403c-8a39-57abee7452a1", "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": "nom1" }, { "id": "1532390f-d3b1-4529-a99d-dafcdc78fea6", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "7d35ee14-104c-4140-987b-4e6b5ff15a1a", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "3b2bd282-f257-4502-8bbe-eb9a90090914", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6e009f81-8343-40ca-8448-15c7fb4722ff", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "fad9eeda-2bf1-4951-aa7b-c70fb3c229c3", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "5481c179-039c-4748-81f8-43e5621c7159", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "6611e6b4-4bff-4332-8176-31bd9f3618e1", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "7f1ad2ba-f9f1-428b-ad30-8b562da9e04b", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "7fc743d2-edd4-48c3-a323-7bc1274d604e", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "455e2be0-7438-4420-940f-e67320a6b836", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "236ee869-3e0e-496d-af1d-a076038f50fd", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "0e1fcbaf-ded6-436e-90a4-fdff2d658006", "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": "nom2" }, { "id": "ce1513d3-785c-4b15-bfaf-aeba07bee97f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "2520220f-4987-49d1-8367-211aa3daa38b", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "038a9540-b06e-4a59-9921-8a15b09073f3", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "1f006292-1b97-4983-ae92-900b2e521843", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "b4088ccd-4265-4943-ba99-e469e0ee6bde", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "96f17dc3-c3e7-4984-854f-4c85daedfd40", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "070f5830-e0fe-45a3-a905-e2b72b3e2364", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "4fcf8df2-8048-4caa-a187-23b87aaceb38", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "b9309eb2-2c96-4ab7-b7e1-a03e3a21166f", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "837b3b1e-2e17-4a8d-ab31-98be9eb00863", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "b48f4b33-639b-455a-a805-e7bf743b3d3b", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "e54550f0-8da6-4114-92e6-55efe9eaba5e", "comment": "connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "786a93a7-c77e-45a4-beed-644d79884864", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "4a506339-78c7-443e-9727-8d48861d20ac", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "68bca0c2-6028-4d2c-9d49-cce93fa732d3", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "25081105-2e17-430e-960a-29af78101aca", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "681c8d6f-d6e9-4882-8271-4c6d169e3f67", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "6e54b9bd-532e-436e-b77b-73008253d00f", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "46adff2a-9f5f-46a4-afb4-54c793ca7620", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "c0b46b62-94b6-46b9-b159-6737e61df27f", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "6e1e6db5-77ec-4355-9a4a-cd5176adcefb", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel2}" }, { "id": "5ddb1286-35f0-42c2-925c-457b492ba432", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "6d9deb30-7ed9-4d68-8a72-feede3647844", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "e3079503-57d9-4eb9-b6b3-10a504a49df4", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "fd8ea9fa-4df4-47c9-ab89-d6a7bbf8ef96", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "f790a9b5-b813-4453-9016-b4239f045429", "comment": "Changer l'autre membre de catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "14eb55e2-cf14-4bfa-b7df-84b57b0df850", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "01d7baaa-d596-48d1-ba9f-87532550120e", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "45f2128e-d21c-4ace-b408-b4be853f7b1e", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "208c578a-fa99-4403-83ed-f7d943b4b211", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[starts-with(text(),\"${nom1}\")]", "targets": [], "value": "" }, { "id": "3d8b9762-5fa9-4147-b4e7-ad37b4b52fee", "comment": "", "command": "assertText", "target": "xpath=//aside[@class=\"describe\"]//dt[text()=\"Catégorie\"]/following-sibling::dd", "targets": [], "value": "${nom_categorie}" }, { "id": "58bbcd05-788b-4e0f-abf9-903dc8d8d9d1", "comment": "", "command": "store", "target": "Anciens membres", "targets": [], "value": "nouvelle_categorie" }, { "id": "0ea95c56-ea7d-4a19-9587-01755b2c96eb", "comment": "", "command": "click", "target": "xpath=//a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "30dd6da3-eca2-4033-b39f-bddeadb8929d", "comment": "", "command": "assertElementPresent", "target": "xpath=//select[@id=\"f_id_category\"]/option[text()=\"${nouvelle_categorie}\"]", "targets": [], "value": "" }, { "id": "415b8344-cece-4d07-9595-d8294be27292", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[text()=\"${nouvelle_categorie}\"]", "targets": [], "value": "" }, { "id": "79c0b30f-c4ba-41e6-bf88-faaa967d1838", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "65cc7176-9cbe-485b-a9b8-4608e199e7ff", "comment": "", "command": "assertText", "target": "xpath=//aside[@class=\"describe\"]//dt[text()=\"Catégorie\"]/following-sibling::dd", "targets": [], "value": "${nouvelle_categorie}" }, { "id": "46b41dac-c6e4-4b85-9a93-b2b8af211c2b", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "19586edf-bf3a-432a-8e54-68f70e1bb015", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "720d37e7-a2c7-42f4-9042-380a6b37e6a5", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "c583291f-2d97-43e9-8ece-9a192b76cd7c", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "668ee203-8c0a-4c16-a902-f0353374f231", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2f073d37-1a76-4412-ad0c-559573ff5f2b", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ebb5c195-074f-4176-affc-88e7036b6a01", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "5d66e2e0-5ec3-4026-94c1-db05a65425db", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "24dd9a8c-6885-4c5c-989c-f99197d8762c", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "1a1f24d1-aacd-4d2a-8ad3-384f508cf5a5", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "c878f652-8a54-43e5-8261-cb4e290f77f6", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "e186b063-f0d3-4a57-b58f-2ae29c4e57ab", "name": "14-43 droit écriture : modifier admin impossible", "commands": [{ "id": "b89a502e-c195-4988-acce-52bfa7b7ca45", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "ca442b86-5f47-4e9f-ba54-4f9f8e6a6e82", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "2bacc2d2-be77-442a-a3e5-a2e80eec78e3", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "2ed480e7-c2e6-4dcc-9e10-538999d76839", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "9252e5d6-8b95-4b98-b6ca-b15d876a583d", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "e3658dca-5d8c-4f99-b75c-cd6aeb7cd8da", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "27647361-bc04-432c-b267-ddeca6d739a5", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "858bfc5f-a0aa-4786-9ff5-38443d6a78cd", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "6370246e-e0c2-4671-befc-51db094cb656", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "428b23a3-8ffe-44b4-9ff6-75a5e4a07440", "comment": "modifier la catégorie : droit écriture", "command": "", "target": "", "targets": [], "value": "" }, { "id": "7af6bd9c-bf28-4768-bcea-c16964f7fe0a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "2532cbba-7c76-4dbb-97c8-e362b2604ab2", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "49e031fe-fe3f-4f04-8b89-0b33fbe2be19", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "c34bdfd7-b106-4ff6-af12-68fb6d2482f7", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "3f25dda9-7d0d-4a74-8295-735c31e86ba1", "comment": "", "command": "check", "target": "id=f_perm_users_2", "targets": [], "value": "" }, { "id": "6a5c0d26-d45c-4004-b3c7-5404e9b59229", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "17214637-b387-4f8f-8b78-0be4a7b14eae", "comment": "Créer un membre dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "6247122a-a42e-40cd-8e79-65d385bfb927", "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": "nom1" }, { "id": "dd5d6ece-0905-43d9-9f50-701458064ddb", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "e166ec25-93ce-4848-9454-d15b850b8d75", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "c32c8bf1-3724-43bd-8d98-5ccbb59e72b0", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "359af1d9-af14-4630-b667-3b5584618b60", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "8c0b7004-8e79-420c-b422-e940098ec516", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "e689a50d-3835-4f51-a081-4e15fa97a3de", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "d40e75cf-6540-48bb-b998-47f8f8df3a59", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "eab78d36-0e03-403b-ba7d-e216d0ebe8be", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "f5d2b3d4-0d89-43ad-bbc1-2b3c43b59f66", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "1d2cbfae-372a-44c0-875d-dc4d928bebe7", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "5826679d-34cf-4ab9-823d-9d99fe46c5b0", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "fc804356-0e01-4a0f-96ce-6aa3654fdddb", "comment": "connecter ce membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "5eca6870-7b30-4647-ab80-f1bc53d57db8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "a7bb7d76-0d6f-486e-86ce-ae70b7c7165f", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "321c49fb-4d25-433f-9990-1150f2ca2a29", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "e3949a08-51b2-4176-ba18-efb24d4c0918", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "75281e4f-27d1-4471-baa1-125d95969d05", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "04d7120e-865e-4200-9f56-1473916bf6ae", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "b4e5bcd3-77e2-4435-bc10-41485b3e0058", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "90db4732-5ce6-4ece-8d86-bb48e910ada3", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "a44262ef-b18c-42d1-a500-2c22b3eb26b3", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel1}" }, { "id": "1b45e131-5ade-47b9-8b4a-7c6f28ba1fa7", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "2bd9f2e1-54b9-48ab-9918-a0e23da20d16", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "0d68fc80-0465-497c-89fe-d0a2783775b3", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "cf64019c-f39c-4cac-af80-c8965f97ac8c", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero1}" }, { "id": "d25cd5e8-c80e-4743-9713-3d07051541d3", "comment": "Essayer de modifier un admin", "command": "", "target": "", "targets": [], "value": "" }, { "id": "3db20955-7757-404c-bf31-0f4c9ddca0af", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "c18f08fd-b094-40cc-a833-578a8b45c458", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "1" }, { "id": "83c12b4e-75b8-44d9-b1d0-29a11f4eb261", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "72ff66af-f2e6-4513-8a1b-3f6f0fdd25c6", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "1" }, { "id": "1c0a320c-4cc6-43b3-a48c-498426ef0090", "comment": "", "command": "assertText", "target": "xpath=//aside[@class=\"describe\"]//dt[text()=\"Catégorie\"]/following-sibling::dd", "targets": [], "value": "Administrateurs" }, { "id": "9a3b7ae8-5766-4b3c-beae-cf20d5fd31b7", "comment": "", "command": "assertElementNotPresent", "target": "xpath=//a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "04f5a0af-3030-42ed-8b85-990aee418b45", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f06cdbd0-acee-4d30-894f-a3dcafac4110", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "1787b8c0-9b3c-4cd9-bda2-5cc46761dd8b", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "cdcaa16d-112c-49e1-9aca-e417015fa86a", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "3db75bbb-8020-41ff-b6f6-b883a5864805", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "92e59772-4526-42ca-8803-12fe9463afb1", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "67f58f44-6daa-412a-b60a-7b78261882d9", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "8572c8de-881a-4ada-8bbd-b10999e85202", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "a4b6248d-9ab9-4908-bbe6-66424728a897", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "28db0c1f-3ea9-4553-9873-789940173cf8", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "240f9e5a-c2de-45c6-ba9b-09d85e3e8f87", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }, { "id": "793d3286-9eca-4939-b066-a522c7f390e1", "name": "14-50 droit administration", "commands": [{ "id": "3f95c13c-4da1-49c4-a9e8-e0cb5cce0f99", "comment": "", "command": "open", "target": "http://test.paheko.localhost/admin/login.php", "targets": [], "value": "" }, { "id": "cf8bdc16-ac4b-4498-9ae5-83a1b3ae18b8", "comment": "", "command": "setWindowSize", "target": "1280x1020", "targets": [], "value": "" }, { "id": "b9a73ad1-83a4-4bcd-952f-a7d5d4d1cd82", "comment": "Vérifier si déjà connecté", "command": "storeXpathCount", "target": "xpath=//button[@name='login']", "targets": [], "value": "connecte" }, { "id": "c402688a-4d59-404f-ba67-19e4edfcc1cc", "comment": "", "command": "if", "target": "${connecte} > 0", "targets": [], "value": "" }, { "id": "51e343eb-cc47-45e1-8c31-af8de3861c78", "comment": "", "command": "type", "target": "id=f_id", "targets": [ ["id=f_id", "id"], ["name=id", "name"], ["css=#f_id", "css:finder"], ["xpath=//input[@id='f_id']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "jckix@free.fr" }, { "id": "55632802-6e57-423a-85fd-8a7f505afe73", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["name=password", "name"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[2]/input", "xpath:position"] ], "value": "interpeller noircir colis allumer" }, { "id": "5b0c99ea-6fd3-49dc-9518-4a554fa76c2e", "comment": "", "command": "click", "target": "xpath=//button[@name='login']", "targets": [ ["name=login", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='login']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] ], "value": "" }, { "id": "c9b8b52f-9eba-448b-8164-d5d1b82f5e5d", "comment": "", "command": "end", "target": "", "targets": [], "value": "" }, { "id": "f6458fc9-f472-47f4-a6ca-bd7846ea6955", "comment": "", "command": "store", "target": "Membres actifs", "targets": [], "value": "nom_categorie" }, { "id": "1c77cf12-80ec-4209-97c9-9dbc7d7969d2", "comment": "modifier la catégorie : droit administration", "command": "", "target": "", "targets": [], "value": "" }, { "id": "e2d116e9-8699-48fd-b82f-bba3a6dda2d8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "f683c7bc-2ed8-450a-bfac-a4d68830f82e", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "a0f14d1e-1655-4790-8a53-f816a11b1108", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "1f6045e7-a5d0-4d65-a6ba-33d6a371384d", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "7f5e1d95-31a3-4b28-86f8-1d67d784615c", "comment": "", "command": "check", "target": "id=f_perm_users_9", "targets": [], "value": "" }, { "id": "12234cea-e36d-42ba-9c75-21a256fdc405", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }, { "id": "d8a3b6c3-4118-44cd-bdd2-0af8b2f183ba", "comment": "Créer deux membres dans la catégorie", "command": "", "target": "", "targets": [], "value": "" }, { "id": "f72838e5-6242-415b-bc86-6da83e20efb8", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "042771c6-b1fe-43b7-9e4d-eb344cc97f82", "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": "nom1" }, { "id": "57bc071b-7766-465f-8ef7-559d23c19ae6", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel1" }, { "id": "abc8872e-c56f-4e42-bb35-347d27815e6f", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "02e8e328-f2f9-450a-b977-b1fce1096f18", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "259e0ae2-10c5-4efd-bebe-9ac96bc5d117", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero1" }, { "id": "2f65d1ff-91e1-4f7a-bacb-a35318ea0c10", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "9335db21-e0af-41af-8a8c-849e56587c8e", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom1}" }, { "id": "2699b028-9e1c-41e1-8067-c3c96899b4df", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel1}" }, { "id": "418b9a03-0cc5-4db4-b4c5-acf9c97a4626", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "966318e9-3e02-4e40-9965-b40c8510e89f", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "3dd78c6f-a0bb-4570-9bee-d816eeb4154a", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "534992c4-150f-458c-9478-ac577098c17c", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", "targets": [ ["linkText=Ajouter", "linkText"], ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], ["xpath=//li/a", "xpath:position"], ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] ], "value": "" }, { "id": "a26b4ad0-db2e-4e8c-a871-af854062689d", "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": "nom2" }, { "id": "95a5075d-abf4-444a-a4a6-99e9b489bcbc", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@free.fr\"", "targets": [], "value": "courriel2" }, { "id": "9e443b20-a988-4364-9828-61308c99fe8d", "comment": "", "command": "executeScript", "target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", "targets": [], "value": "ville" }, { "id": "61c92da2-5a1c-40c0-ae3d-c2e74697e905", "comment": "", "command": "executeScript", "target": "return '0' + Math.random().toString(10).substring(2, 11);", "targets": [], "value": "tel" }, { "id": "6fc577b4-0045-4bff-b54c-44ddc13fc3eb", "comment": "", "command": "storeValue", "target": "id=f_numero", "targets": [], "value": "numero2" }, { "id": "425f31b8-91bd-4144-80b8-25bb59592167", "comment": "", "command": "click", "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", "targets": [ ["css=#f_id_category > option:nth-child(3)", "css:finder"], ["xpath=//option[@value='1']", "xpath:attributes"], ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], ["xpath=//option[3]", "xpath:position"], ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] ], "value": "" }, { "id": "9c9b3027-e9d0-4ef0-ad78-1803a16178da", "comment": "", "command": "type", "target": "id=f_nom", "targets": [ ["id=f_nom", "id"], ["name=nom", "name"], ["css=#f_nom", "css:finder"], ["xpath=//input[@id='f_nom']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${nom2}" }, { "id": "76a332a3-ced2-4098-8627-d2acaa1955e4", "comment": "", "command": "type", "target": "id=f_email", "targets": [ ["id=f_email", "id"], ["name=email", "name"], ["css=#f_email", "css:finder"], ["xpath=//input[@id='f_email']", "xpath:attributes"], ["xpath=//dd[4]/input", "xpath:position"] ], "value": "${courriel2}" }, { "id": "14d04685-5c12-4171-82bf-6968c1404839", "comment": "", "command": "type", "target": "id=f_ville", "targets": [ ["id=f_ville", "id"], ["name=ville", "name"], ["css=#f_ville", "css:finder"], ["xpath=//input[@id='f_ville']", "xpath:attributes"], ["xpath=//dd[10]/input", "xpath:position"] ], "value": "${ville}" }, { "id": "31a8f746-4b15-43a3-af9e-f98f3b72bda6", "comment": "", "command": "type", "target": "id=f_telephone", "targets": [ ["id=f_telephone", "id"], ["name=telephone", "name"], ["css=#f_telephone", "css:finder"], ["xpath=//input[@id='f_telephone']", "xpath:attributes"], ["xpath=//dd[11]/input", "xpath:position"] ], "value": "${tel}" }, { "id": "9e5160e4-0771-45b7-a1fb-afb54b2365a6", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" }, { "id": "7e05eeaa-20be-4905-b0a9-5831926222c9", "comment": "Vérifier qu'un membre peut supprimer un autre membre", "command": "", "target": "", "targets": [], "value": "" }, { "id": "2d8d5593-3fa4-4366-815d-94663736255d", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"edit_security.php\")]", "targets": [], "value": "" }, { "id": "c9ba5ed6-9926-4c7c-9d67-68b383fd9ab4", "comment": "", "command": "store", "target": "soin oeuf mélodieux intellectuel", "targets": [], "value": "mdp" }, { "id": "30eb9e85-e355-44e6-bea8-270d95592809", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [ ["index=0"] ], "value": "" }, { "id": "08a38a96-0886-43e6-a044-2469bbb845a9", "comment": "", "command": "type", "target": "id=f_password", "targets": [ ["id=f_password", "id"], ["css=#f_password", "css:finder"], ["xpath=//input[@id='f_password']", "xpath:attributes"], ["xpath=//dd[3]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "3603cb4c-6259-440a-b499-c79b7d0f6fdf", "comment": "", "command": "type", "target": "id=f_password_confirmed", "targets": [ ["id=f_password_confirmed", "id"], ["name=password_confirmed", "name"], ["css=#f_password_confirmed", "css:finder"], ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], ["xpath=//dd[5]/input", "xpath:position"] ], "value": "${mdp}" }, { "id": "e71d30ea-9f8d-40e5-8a5e-daaba7a6c26e", "comment": "", "command": "click", "target": "name=save", "targets": [ ["name=save", "name"], ["css=.main", "css:finder"], ["xpath=//button[@name='save']", "xpath:attributes"], ["xpath=//p/button", "xpath:position"], ["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"] ], "value": "" }, { "id": "2433db5d-44f9-45bc-b8f5-7727ab9f4784", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [ ["relative=parent"] ], "value": "" }, { "id": "5fd00532-3e5f-415f-8ad9-7650b5c66493", "comment": "Déconnexion admin", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "de6c4366-7030-4c40-9745-caa2a4a6be5d", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "${courriel2}" }, { "id": "49f8d45d-0154-4f02-8a67-b60227887ff9", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "${mdp}" }, { "id": "1aac7e6d-5eca-408e-9091-0c0f5294e6f2", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "d5c14127-4d50-4423-aacb-f889b24b58cf", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/me/\")]", "targets": [], "value": "" }, { "id": "8595ff87-e184-465d-aeeb-da629b927634", "comment": "", "command": "assertText", "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", "targets": [], "value": "${numero2}" }, { "id": "7499ecda-07d9-4c17-b228-5cd00caabe89", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/users\")]", "targets": [], "value": "" }, { "id": "76fcc0cf-ad5a-4ab1-a68a-46799313cb0c", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "9e0a5f12-ce5e-4767-b235-26421da5af32", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "8b69413b-c3d2-4ebf-9846-e448e7354d86", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[starts-with(text(),\"${nom1}\")]", "targets": [], "value": "" }, { "id": "d0eab1a0-1302-4577-9dac-1b7a8aa42a7c", "comment": "", "command": "click", "target": "xpath=//a[starts-with(@href, \"delete.php\")]", "targets": [], "value": "" }, { "id": "3f7bac6b-a953-4d5a-8988-994f7d6578f4", "comment": "", "command": "selectFrame", "target": "index=0", "targets": [], "value": "" }, { "id": "290f10d2-1979-46c0-8154-2663b4af2845", "comment": "", "command": "click", "target": "name=delete", "targets": [], "value": "" }, { "id": "45f1bd41-e036-4f5e-b228-f24484575253", "comment": "", "command": "selectFrame", "target": "relative=parent", "targets": [], "value": "" }, { "id": "4ef93950-12e6-4cf2-abbd-cc6a69ced9c6", "comment": "vérifier que le membre a été supprimé", "command": "", "target": "", "targets": [], "value": "" }, { "id": "778b8216-0000-46c2-bacd-4329d0d9ce48", "comment": "", "command": "type", "target": "name=qt", "targets": [], "value": "${numero1}" }, { "id": "098284cd-85d3-467c-a972-88e21f19a8d5", "comment": "", "command": "click", "target": "xpath=//button[@title=\"Chercher\"]", "targets": [], "value": "" }, { "id": "6371b361-37dd-4518-bd8d-77bcd938d000", "comment": "", "command": "assertElementPresent", "target": "xpath=//h1[text()=\"Recherche de membre\"]", "targets": [], "value": "" }, { "id": "1b028e6a-6035-4c1a-a76f-0d480091153f", "comment": "", "command": "storeXpathCount", "target": "xpath=//table[@class=\"list\"]/tbody/tr", "targets": [], "value": "nb" }, { "id": "b65a82d9-ae08-4727-ba51-a9ecb1fb1628", "comment": "", "command": "assert", "target": "nb", "targets": [], "value": "0" }, { "id": "9ed24c92-6b55-41e0-a105-e35907b055b7", "comment": "remettre les droits à l'état initial", "command": "", "target": "", "targets": [], "value": "" }, { "id": "694002ea-c89e-4ad1-8813-c033e31db5fb", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, '/admin/logout.php')]", "targets": [], "value": "" }, { "id": "09b983ad-0a21-4f60-bcbe-730153943347", "comment": "", "command": "type", "target": "id=f_id", "targets": [], "value": "jckix@free.fr" }, { "id": "9080c639-970e-46bf-aca9-f6c89e5b5bbc", "comment": "", "command": "type", "target": "id=f_password", "targets": [], "value": "interpeller noircir colis allumer" }, { "id": "9f4d9e26-c32e-4799-8612-b7ba1a81c0ad", "comment": "", "command": "click", "target": "name=login", "targets": [], "value": "" }, { "id": "2d77f47b-98e6-40ca-956c-d9e8f9bb908a", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/\")]", "targets": [ ["css=li:nth-child(6) b", "css:finder"], ["xpath=//li[6]/h3/a/b", "xpath:position"], ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] ], "value": "" }, { "id": "ee39ee25-cb21-47d1-9d21-0e13e7736216", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "0225c258-22e8-48c5-a7d3-bbe893e45af5", "comment": "", "command": "click", "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", "targets": [ ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], ["xpath=//nav/ul/li[3]/a", "xpath:position"] ], "value": "" }, { "id": "43ba52ea-f698-446e-a42d-d1c73ca25bb8", "comment": "", "command": "click", "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", "targets": [], "value": "" }, { "id": "7201ce6b-5880-4355-8435-f7b7c8711dae", "comment": "", "command": "check", "target": "id=f_perm_users_0", "targets": [], "value": "" }, { "id": "6127af2c-2d6e-4fef-a65a-e6d46c72e59c", "comment": "", "command": "click", "target": "name=save", "targets": [], "value": "" }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", "name": "01 Installation", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["b3fdeef5-2f6f-46e8-a9db-5995bbf94957", "b468a6eb-1199-460a-95f8-820df1f2c2f9", "d6791401-e683-4d44-9513-24c52f1c6517"] }, { "id": "d35b71cd-b332-4210-ad59-1a0742386aac", "name": "02 Connexion", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["0849fbc2-a4f9-48a5-8698-afec02eb558f", "87aa0ef5-bb8c-496d-a196-0f92278e98b1", "c36d64ef-b5db-4c15-90aa-204431553d05"] }, { "id": "7fc1abfa-640b-438d-8357-d16f42212a22", "name": "03 Créer membre", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["efad291c-7700-4c1d-a0c7-393264364aa1", "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"] }, { "id": "3b9945ba-2eb9-4f38-82ec-9a225b926d5c", "name": "04 Lister membres", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["f1a25071-156c-4487-984c-6fb730b0e8e2", "91ef7a3d-27a5-4d1a-bb91-5ffdb927bb64", "eba6c550-37b2-4e7e-9352-d50cd1aeb2bf", "2f1dd424-4188-4ff9-ba9b-63c1085b89d0", "8275ba53-edfc-40c6-ab55-2c9d9d76c10b", "1493219f-1880-4b77-8332-e780660d301e", "cbd065d0-2d2e-4433-b7b3-756af25bdbf5", "5a7f0fc2-fc66-46b2-a5f6-0d97c61d515a", "e6dc8eef-f38a-482b-8128-f46648bffe42", "3d1fc496-8036-4948-af1e-607d5375e813", "2d33e4b1-0a99-4c1f-a6b8-154362a00c66", "06e32c55-bd03-4164-8dc4-c3f36e39575d", "25e25640-41c1-4a8c-a8f3-288fed7fb46e"] }, { "id": "6b30df35-a48e-4c91-9fb6-6ae47eaa85be", "name": "05 Recherches", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["e222e9ff-b40c-4b8b-a9b8-1adfc1e68184", "e0b8520c-d128-4cd9-b6fa-b351ea91d4d2", "cb3e76df-5def-477c-bad3-fbf27d8240f3", "7c55c402-5f6b-4b67-bbfe-b4d167ea2dda", "222c2c01-b33a-4c51-8f6e-103f9ac3504d", "748d040b-eed8-4d60-a769-a2e9f58ddd6b", "61d20306-ee4b-4221-a7b4-2c39558e4c74", "e47f2275-c9d9-4183-adf7-ca74b5b9cd75"] }, { "id": "0892a5e5-31d7-45f4-a947-48fce2559bbe", "name": "06 Suppressions", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["13254e39-41ef-4909-ac46-f8ad0174d1b0", "e9ac5acc-6ff2-4523-807e-1316b020d8ca"] }, { "id": "04cff365-32de-4189-b4f6-b16bd9679421", "name": "07 Modifications", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["4c95e2ee-667c-4e1b-b55b-4cc92eda3c6f", "1e8af828-327f-4540-99ee-9f9843826f29", "51e58cf8-5b73-4a92-8bd9-1a25c9d7ee3a"] }, { "id": "5af091f3-096d-49d7-8829-68f8365996f4", "name": "08 Importer membres", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["65a4ae11-9b9b-4c9d-ada7-0f0966023fe0", "f5864c55-04ad-413e-a5a7-d48b78e473d8", "a050c509-bc64-425a-b616-91ef9af5468a", "083c0a0f-6c03-49bd-89e1-dc2dad9a465a", "c1d36861-8621-4441-8d12-2d28a9d68ff2", "416d76c8-f5ea-4dce-99d9-96c0ad39f940"] }, { "id": "aa2d7766-1666-46fc-ad7f-04957935e1d2", "name": "09 exporter membres", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["a9ffdcda-44f9-49a9-9205-e05e3a3e6005", "9117e7d1-aa61-4299-94b4-f1175df013e2", "d8c6a9ac-cd5f-4bda-8e3c-f3fb6ccd50f0", "4ab0f776-0e9a-4f14-820c-a6f592f7614c"] }, { "id": "5f6ab0b7-810c-46e4-b3e8-75f9c771a772", "name": "10 configuration fiche membre", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["d2e0733a-118a-4d98-a508-0b727abcfd3c", "fc3ad5c3-261a-481a-9f7e-1910280b2787", "02fea879-c742-4a8e-af1d-6df832e7a947", "639dbeb9-8199-4613-98e7-ae8948f484a2", "67bfd994-d024-48bd-a966-508263ad5687"] }, { "id": "40d04477-f2e7-4b20-bfd1-463ff672bcba", "name": "11 ajout champs fiche membre", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["ba5e6368-646b-447e-9e5e-3c3cdded211a", "482dfae4-a690-4334-a7f0-6207ab17e15b", "e465aafe-cbe2-47d2-853f-ad1df276fbfb", "4ca407f4-01a9-466a-89ee-c7d772a0281e", "1af743ad-6fd1-4adc-a2e7-0bc3bfbc026e", "731de8ad-89b7-4242-ab2f-27310e42f6ff", "ee2ad930-7a67-41d0-9723-fec221c087e3", "a0a6c815-f9c9-49ae-ab27-4163b3938ca6", "4feea72e-c577-48ea-85c9-eaf585c73125", "34ba9dd6-5286-4f13-8258-f3250cc09186", "950a6823-ce21-4ddc-a5f8-75902d8d59a0", "f3d16774-e224-4813-8a5a-f9dc795ba159", "2949f623-c0f5-47b8-beb0-38a9d3e42a8c", "01eaf4aa-1799-4407-83c4-ae2ed011ac63", "9ce79904-4a45-4a8f-89b5-5a18e73e374b", "9ba45fa6-cbe4-4bea-8de6-d57505df827b", "3d0feea6-0edc-4669-ab3c-54f2b5d4ebca", "340b4d62-de7f-4c00-a559-e4f6a2246f08", "7a858aed-70b7-4c7a-bc4f-799216bb455b", "4073d67e-c10e-4c4a-a994-b6c8e2520b19", "2f90c2f6-6b1b-4703-abc9-a137b58f0443", "c548c5b3-dada-4e5d-af7f-2767bf5e2b6d", "8462cb7c-312b-4a01-a91d-bbe93166deab", "6cf67a44-31a7-4633-9a7d-e5e6fb63fb79", "296dd358-da84-4f5d-a1e0-e035021b288c", "092e4b79-eeae-4ea9-8c09-1c059370f310", "9ee360d7-d167-4cb6-9a6f-c571c52a0c7f", "0e90818d-fe5f-4135-bafa-99f640d63714", "22bcb88c-198f-4e5d-b3b0-d58feb9100be"] }, { "id": "3e627f3e-f1a1-4408-9c1c-182641ddda9c", "name": "12 modification champ fiche membre", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "98cd4288-efed-412c-ae9f-ff8f97366fae", "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de", "8f0f0203-7b71-44eb-bb81-1fcab1183a83", "fb565ffb-1563-4c63-82a7-a9b31fa04f8f", "22c57d8c-1859-4552-8bd5-499cf5523542", "8a5bf185-6feb-4652-95e5-f372a900a4f7"] }, { "id": "ea114d93-45a4-4e15-b31b-b3a6452cdb47", "name": "13 changer ordre champs fiche membre", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["5d8a90e7-d3ca-42b8-ad1e-80cc61af38a9"] }, { "id": "f37c8e34-fe55-47f1-87d4-2187a6adadd5", "name": "14 catégories et droits", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "e4a2e4a5-a2e1-4ce2-a29a-85581f6cd77a", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "08ad7abc-cc17-456f-9ff0-a10a7a29e784", "8b29c931-a500-4cf3-9079-13dbe03d1909", "918d1f7a-7547-4c00-8972-fc4744da82cc", "61e3023d-156d-47cb-a26a-5750b7d3ceb6", "7402d095-05b5-45eb-8029-9c6b106cf42d", "8311e834-db9a-40cc-a3ff-558b5be6ba2c", "182cfb32-6ded-4b73-8857-bb85476d34ac", "e186b063-f0d3-4a57-b58f-2ae29c4e57ab", "793d3286-9eca-4939-b066-a522c7f390e1"] }], "urls": ["http://test.paheko.localhost/"], "plugins": [] }