tests_paheko/paheko.side

8864 lines
295 KiB
Plaintext
Raw Normal View History

2024-04-22 11:19:25 +02:00
{
"id": "33c8862c-14bd-405e-882f-5b3a904a2e90",
"version": "2.0",
"name": "paheko",
"url": "http://testpaheko.local.bzh/",
"tests": [{
"id": "0849fbc2-a4f9-48a5-8698-afec02eb558f",
"name": "2-01 connexion correct",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "7bbc53e7-fe56-460a-a7a6-e9139c354956",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "f7fa777f-fd29-4f0e-ba56-86fef62e6006",
"comment": "identifiant connexion",
"command": "type",
"target": "id=f_id",
"targets": [
["id=f_id", "id"],
["name=id", "name"],
["css=#f_id", "css:finder"],
["xpath=//input[@id='f_id']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "jckix@free.fr"
}, {
"id": "53b19364-7089-453c-8ccb-5520bb327dfd",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["name=password", "name"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "interpeller noircir colis allumer"
}, {
"id": "7c9c73bd-21d6-4493-8281-07e86b662a59",
"comment": "",
"command": "click",
"target": "xpath=//button[@name='login']",
"targets": [
["name=login", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='login']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a0b40845-f16e-4a92-bb91-9c051c47b07b",
"comment": "Pas d'erreur ?",
"command": "assertElementNotPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}, {
"id": "67e8d492-998e-4cce-aabb-5635a7f08ed0",
"comment": "Bonjour",
"command": "assertElementPresent",
"target": "xpath=//h1[contains(text(), \"Bonjour\")]",
"targets": [],
"value": ""
}]
}, {
"id": "89d56a6e-79b3-40e4-984e-0f7a92f2a83b",
"name": "xx saisie recette",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "5b4b2cea-2c7f-4ee8-9a9a-f835e6a18489",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "bbc774a0-3941-4043-b50e-6ef26d1df45f",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "c074006c-9482-4f62-9bef-26597f191144",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "17725bf6-697f-4290-a653-67d81b1c3e8a",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "4f645223-40ea-4976-b54c-1d119107f8b8",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "df6de365-4648-4791-bd5b-27c0d7279f8d",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "9dca891d-52dd-4075-8ff7-4abae662d3a2",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "892f235d-9ed4-4b46-b4c8-0c58be8cc448",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "c282b0b3-17da-4fa8-bcec-cb0a60214cb9",
"comment": "Menu Saisie",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/acc/transactions/new.php')]",
"targets": [
["linkText=Saisie", "linkText"],
["css=li:nth-child(3) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Saisie')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/acc/transactions/new.php')]", "xpath:href"],
["xpath=//li[3]/ul/li/a", "xpath:position"],
["xpath=//a[contains(.,'Saisie')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "829f54dd-894b-41d0-8586-27e541cb38c9",
"comment": "",
"command": "click",
"target": "css=.radio-btn:nth-child(1) > label",
"targets": [
["css=.radio-btn:nth-child(1) > label", "css:finder"],
["xpath=//label", "xpath:position"],
["xpath=//label[contains(.,'Recette')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a8f55810-982c-4c03-859b-ad04f444c5e1",
"comment": "",
"command": "click",
"target": "id=f_date",
"targets": [
["id=f_date", "id"],
["name=date", "name"],
["css=#f_date", "css:finder"],
["xpath=//input[@id='f_date']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": ""
}, {
"id": "3b65691e-fce6-4049-b85e-1f953631c349",
"comment": "",
"command": "type",
"target": "id=f_date",
"targets": [
["id=f_date", "id"],
["name=date", "name"],
["css=#f_date", "css:finder"],
["xpath=//input[@id='f_date']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": "10/04/2024"
}, {
"id": "c5989ec8-2f28-4d18-bd57-8ef12ab5cf59",
"comment": "",
"command": "click",
"target": "id=f_label",
"targets": [
["id=f_label", "id"],
["name=label", "name"],
["css=#f_label", "css:finder"],
["xpath=//input[@id='f_label']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "126d09fb-1f05-4058-a563-cdd6232b0565",
"comment": "",
"command": "type",
"target": "id=f_label",
"targets": [
["id=f_label", "id"],
["name=label", "name"],
["css=#f_label", "css:finder"],
["xpath=//input[@id='f_label']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd[2]/input", "xpath:position"]
],
"value": "Recette test1"
}, {
"id": "eac81ceb-1d5e-4b0b-9cb9-525042cdaf7c",
"comment": "",
"command": "click",
"target": "id=f_reference",
"targets": [
["id=f_reference", "id"],
["name=reference", "name"],
["css=#f_reference", "css:finder"],
["xpath=//input[@id='f_reference']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd[3]/input", "xpath:position"]
],
"value": ""
}, {
"id": "5da66ae2-d8b5-45c1-b88a-9bb19ccf217b",
"comment": "",
"command": "type",
"target": "id=f_reference",
"targets": [
["id=f_reference", "id"],
["name=reference", "name"],
["css=#f_reference", "css:finder"],
["xpath=//input[@id='f_reference']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd[3]/input", "xpath:position"]
],
"value": "PC00001"
}, {
"id": "4b662db5-b679-42dc-bb80-708ad83a3c9f",
"comment": "",
"command": "click",
"target": "id=f_amount",
"targets": [
["id=f_amount", "id"],
["name=amount", "name"],
["css=#f_amount", "css:finder"],
["xpath=//input[@id='f_amount']", "xpath:attributes"],
["xpath=//nobr/input", "xpath:position"]
],
"value": ""
}, {
"id": "8335a62b-d93a-4e9f-9694-eb017c5d57e4",
"comment": "",
"command": "type",
"target": "id=f_amount",
"targets": [
["id=f_amount", "id"],
["name=amount", "name"],
["css=#f_amount", "css:finder"],
["xpath=//input[@id='f_amount']", "xpath:attributes"],
["xpath=//nobr/input", "xpath:position"]
],
"value": "123.45"
}, {
"id": "173c26af-3b51-466f-8ebb-534791c54ed1",
"comment": "",
"command": "click",
"target": "css=#f_simple1credit_container > .icn-btn",
"targets": [
["css=#f_simple1credit_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/admin/acc/charts/accounts/selector.php?targets=6&chart=3']", "xpath:attributes"],
["xpath=//span[@id='f_simple1credit_container']/button", "xpath:idRelative"],
["xpath=//fieldset[3]/dl/dd/span/button", "xpath:position"],
["xpath=//button[contains(.,'Sélectionner')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2022cb7d-b35d-4b53-bfb4-a54876ee0fc4",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "1edd5b40-77f4-4253-b79a-955d4f740e4a",
"comment": "",
"command": "click",
"target": "css=.account:nth-child(5) > th",
"targets": [
["css=.account:nth-child(5) > th", "css:finder"],
["xpath=//tr[5]/th", "xpath:position"],
["xpath=//th[contains(.,'Ressources liées à la générosité du public')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2679403b-7be2-4632-bf49-8b8a9ad6b687",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [
["relative=parent"]
],
"value": ""
}, {
"id": "f9aab44c-b7ab-456b-981b-4d50b6faec0b",
"comment": "",
"command": "click",
"target": "css=#f_simple1debit_container > .icn-btn",
"targets": [
["css=#f_simple1debit_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/admin/acc/charts/accounts/selector.php?targets=1:2:3&chart=3']", "xpath:attributes"],
["xpath=//span[@id='f_simple1debit_container']/button", "xpath:idRelative"],
["xpath=//dd[2]/span/button", "xpath:position"]
],
"value": ""
}, {
"id": "32bf0836-41e6-4ae5-aa93-823c52a86b10",
"comment": "",
"command": "mouseOver",
"target": "css=#f_simple1debit_container > .icn-btn",
"targets": [
["css=#f_simple1debit_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/admin/acc/charts/accounts/selector.php?targets=1:2:3&chart=3']", "xpath:attributes"],
["xpath=//span[@id='f_simple1debit_container']/button", "xpath:idRelative"],
["xpath=//dd[2]/span/button", "xpath:position"]
],
"value": ""
}, {
"id": "086bccfe-592a-4a3d-85a4-2b71d2970831",
"comment": "",
"command": "mouseOut",
"target": "css=#f_simple1debit_container > .icn-btn",
"targets": [
["css=#f_simple1debit_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/admin/acc/charts/accounts/selector.php?targets=1:2:3&chart=3']", "xpath:attributes"],
["xpath=//span[@id='f_simple1debit_container']/button", "xpath:idRelative"],
["xpath=//dd[2]/span/button", "xpath:position"]
],
"value": ""
}, {
"id": "82692896-a7a3-4b37-bbba-f3637b8a0ef7",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "58438826-97c6-4f46-8558-c8124e5fa34f",
"comment": "",
"command": "click",
"target": "xpath=//td[2]",
"targets": [
["css=.focused > .num", "css:finder"],
["xpath=//td[2]", "xpath:position"],
["xpath=//td[contains(.,'512A')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "3e4245e8-91a3-4b0b-92ed-3f87a2ca38b8",
"comment": "",
"command": "selectFrame",
"target": "relative=parent",
"targets": [
["relative=parent"]
],
"value": ""
}, {
"id": "a6580a8d-c4f8-410d-af90-3a13ebc4f2fc",
"comment": "",
"command": "click",
"target": "id=f_payment_reference",
"targets": [
["id=f_payment_reference", "id"],
["name=payment_reference", "name"],
["css=#f_payment_reference", "css:finder"],
["xpath=//input[@id='f_payment_reference']", "xpath:attributes"],
["xpath=//fieldset[9]/dl/dd/input", "xpath:position"]
],
"value": ""
}, {
"id": "cefaa588-0fa9-4ef7-9b58-d98831a3cebb",
"comment": "",
"command": "type",
"target": "id=f_payment_reference",
"targets": [
["id=f_payment_reference", "id"],
["name=payment_reference", "name"],
["css=#f_payment_reference", "css:finder"],
["xpath=//input[@id='f_payment_reference']", "xpath:attributes"],
["xpath=//fieldset[9]/dl/dd/input", "xpath:position"]
],
"value": "chèque 123456789"
}, {
"id": "cd055d93-1198-434d-8178-e36d8df8d155",
"comment": "",
"command": "click",
"target": "id=f_notes",
"targets": [
["id=f_notes", "id"],
["name=notes", "name"],
["css=#f_notes", "css:finder"],
["xpath=//textarea[@id='f_notes']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": ""
}, {
"id": "99225ce7-f7fd-45b0-82ea-7c611755b9ea",
"comment": "",
"command": "type",
"target": "id=f_notes",
"targets": [
["id=f_notes", "id"],
["name=notes", "name"],
["css=#f_notes", "css:finder"],
["xpath=//textarea[@id='f_notes']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "rien d'important"
}, {
"id": "17bb6e6d-8dfb-45c3-b827-a629253ffaec",
"comment": "",
"command": "click",
"target": "id=f_id_project",
"targets": [
["id=f_id_project", "id"],
["name=id_project", "name"],
["css=#f_id_project", "css:finder"],
["xpath=//select[@id='f_id_project']", "xpath:attributes"],
["xpath=//dd/select", "xpath:position"]
],
"value": ""
}, {
"id": "c4fc6258-d973-47c7-a33e-aae853770f18",
"comment": "",
"command": "select",
"target": "id=f_id_project",
"targets": [],
"value": "label=0005 — Collectes et dons reçus"
}, {
"id": "118559a6-c09b-480f-8380-61085119ae30",
"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": "ab90bd52-d933-4f26-8e99-1be7d5e3a9a2",
"comment": "Message de confirmation de la création",
"command": "assertText",
"target": "xpath=//p[@class=\"block confirm\"]",
"targets": [],
"value": "L'écriture a bien été créée. "
}, {
"id": "96e61d3f-5ac1-4d12-aa8a-c4c64d8ba994",
"comment": "Libellé",
"command": "assertText",
"target": "xpath=//section//h2",
"targets": [],
"value": "Recette test1"
}, {
"id": "795eaa4b-527b-43a2-987c-ef560640da77",
"comment": "Type d'écriture",
"command": "assertText",
"target": "xpath=//dd[2]",
"targets": [],
"value": "Recette"
}, {
"id": "7bda1bf0-ea54-434f-8da4-e1a9cb922c88",
"comment": "Numéro pièce comptable",
"command": "assertText",
"target": "xpath=//mark",
"targets": [],
"value": "PC00001"
}, {
"id": "fb3bce27-66a9-482c-8bfc-78297a332aa5",
"comment": "Référence de paiement",
"command": "click",
"target": "xpath=//dd[6]/mark",
"targets": [
["css=dd:nth-child(12) > mark", "css:finder"],
["xpath=//dd[6]/mark", "xpath:position"],
["xpath=//mark[contains(.,'chèque 123456789')]", "xpath:innerText"]
],
"value": "chèque 123456789"
}, {
"id": "e507e864-a78c-48f8-b8d3-55a2428a94a6",
"comment": "Remarques",
"command": "click",
"target": "xpath=//dd[8]",
"targets": [
["css=dd:nth-child(16)", "css:finder"],
["xpath=//dd[8]", "xpath:position"]
],
"value": "rien d'important"
}, {
"id": "41bc99e6-1ac1-4d0a-9e12-a048f17b6bdf",
"comment": "date en toutes lettres puis en chiffres",
"command": "",
"target": "xpath=//dd[3]",
"targets": [],
"value": ""
}, {
"id": "0bf01ac9-39fd-495b-88a1-239fd26ba803",
"comment": "Montant",
"command": "assertText",
"target": "xpath=//span[@class=\"money\"]",
"targets": [],
"value": "123,45"
}, {
"id": "e3290f23-6c51-4314-85ff-38864b56f8d6",
"comment": "Type de recette",
"command": "assertText",
"target": "xpath=//div[@class=\"account\"][1]//span",
"targets": [],
"value": "754 — Ressources liées à la générosité du public"
}, {
"id": "e8879912-f7e9-4a81-997d-3152363fbe3c",
"comment": "Compte d'encaissement",
"command": "assertText",
"target": "xpath=//div[@class=\"account\"][2]//span",
"targets": [],
"value": "512A — Compte courant"
}]
}, {
"id": "b3fdeef5-2f6f-46e8-a9db-5995bbf94957",
"name": "1-01 installation",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "61bab7ef-9d04-40de-8b87-98999729b832",
"comment": "Page installation",
"command": "open",
"target": "/admin/install.php",
"targets": [],
"value": ""
}, {
"id": "71275c7f-557e-4df3-8cea-df31739292c6",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "fe3f8eb9-deb5-4c83-8a0f-4959dc795db9",
"comment": "Liste pays",
"command": "click",
"target": "id=f_country",
"targets": [
["id=f_country", "id"],
["name=country", "name"],
["css=#f_country", "css:finder"],
["xpath=//select[@id='f_country']", "xpath:attributes"],
["xpath=//select", "xpath:position"]
],
"value": ""
}, {
"id": "1616fb13-8f21-42df-85a1-02c9438654cd",
"comment": "France",
"command": "click",
"target": "css=option:nth-child(2)",
"targets": [
["css=option:nth-child(2)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_country']/option[2]", "xpath:idRelative"],
["xpath=//option[2]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5e44cad4-268c-4953-a40d-6e72a99c28ec",
"comment": "",
"command": "click",
"target": "id=f_name",
"targets": [
["id=f_name", "id"],
["name=name", "name"],
["css=#f_name", "css:finder"],
["xpath=//input[@id='f_name']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "3e9d9317-5b89-4af3-bc6b-d1408beaf235",
"comment": "",
"command": "store",
"target": "Cassiopée",
"targets": [],
"value": "nom_asso"
}, {
"id": "a6ebba35-2e98-46d1-8733-f46c696aab48",
"comment": "Nom de l'asso",
"command": "type",
"target": "id=f_name",
"targets": [
["id=f_name", "id"],
["name=name", "name"],
["css=#f_name", "css:finder"],
["xpath=//input[@id='f_name']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "${nom_asso}"
}, {
"id": "7f6615a1-b7a9-4a61-be99-2118c6efe3bf",
"comment": "",
"command": "click",
"target": "id=f_user_name",
"targets": [
["id=f_user_name", "id"],
["name=user_name", "name"],
["css=#f_user_name", "css:finder"],
["xpath=//input[@id='f_user_name']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": ""
}, {
"id": "c9801d83-4da1-4895-a3a6-9bb2de318da8",
"comment": "",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom_admin"
}, {
"id": "61706b69-8a95-4f55-b53e-79eb8317f5e8",
"comment": "Nom premier membre",
"command": "type",
"target": "id=f_user_name",
"targets": [
["id=f_user_name", "id"],
["name=user_name", "name"],
["css=#f_user_name", "css:finder"],
["xpath=//input[@id='f_user_name']", "xpath:attributes"],
["xpath=//fieldset[2]/dl/dd/input", "xpath:position"]
],
"value": "${nom_admin}"
}, {
"id": "0bc0fe40-75cc-4ac3-be1f-3f97b9325194",
"comment": "",
"command": "store",
"target": "jckix@free.fr",
"targets": [],
"value": "courriel_admin"
}, {
"id": "697ca21a-79b7-4138-9e21-e6f00a28321d",
"comment": "Adresse courriel",
"command": "type",
"target": "id=f_user_email",
"targets": [
["id=f_user_email", "id"],
["name=user_email", "name"],
["css=#f_user_email", "css:finder"],
["xpath=//input[@id='f_user_email']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "${courriel_admin}"
}, {
"id": "0bb8f2ed-f15d-45f8-bfa7-545612b85893",
"comment": "",
"command": "click",
"target": "css=input:nth-child(2)",
"targets": [
["css=input:nth-child(2)", "css:finder"],
["xpath=//input[@value='Copier']", "xpath:attributes"],
["xpath=//input[2]", "xpath:position"]
],
"value": ""
}, {
"id": "aa08301f-53d7-4fa4-92e2-5dd1cb6224ae",
"comment": "",
"command": "store",
"target": "interpeller noircir colis allumer",
"targets": [],
"value": "mdp_admin"
}, {
"id": "9c99910e-2797-4608-b056-52018171ed7f",
"comment": "",
"command": "click",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["name=password", "name"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dl[2]/dd[3]/input", "xpath:position"]
],
"value": ""
}, {
"id": "43f025a8-6dd0-4f60-9484-0069c6e19c3b",
"comment": "Mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["name=password", "name"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dl[2]/dd[3]/input", "xpath:position"]
],
"value": "${mdp_admin}"
}, {
"id": "86d5dff6-1cd7-4ac2-a8f5-885f9ed6c6d5",
"comment": "",
"command": "click",
"target": "id=f_password_confirmed",
"targets": [
["id=f_password_confirmed", "id"],
["name=password_confirmed", "name"],
["css=#f_password_confirmed", "css:finder"],
["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"],
["xpath=//dd[5]/input", "xpath:position"]
],
"value": ""
}, {
"id": "69e59788-0f98-46b1-8362-39f979b44073",
"comment": "Mot de passe (bis)",
"command": "type",
"target": "id=f_password_confirmed",
"targets": [
["id=f_password_confirmed", "id"],
["name=password_confirmed", "name"],
["css=#f_password_confirmed", "css:finder"],
["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"],
["xpath=//dd[5]/input", "xpath:position"]
],
"value": "${mdp_admin}"
}, {
"id": "f9af3a0d-0d68-44a9-ad9d-a603cf45f9cb",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Commencer à gérer mon association')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8bdb6048-f614-4e87-ad22-fb451fa8c225",
"comment": "Menu Configuration",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/config')]",
"targets": [
["css=li:nth-child(6) b", "css:finder"],
["xpath=//li[6]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "18965af9-b3ad-4b6b-85a1-c924b283fb1d",
"comment": "Nom de l'asso",
"command": "assertValue",
"target": "id=f_org_name",
"targets": [],
"value": "${nom_asso}"
}, {
"id": "6d51ef7f-5a72-490c-a636-aa8c4126a719",
"comment": "Adresse e-mail de contact",
"command": "assertValue",
"target": "id=f_org_email",
"targets": [],
"value": "${courriel_admin}"
}, {
"id": "0d10eb36-b5d6-4004-8272-e03fe4e6647e",
"comment": "Pays",
"command": "assertSelectedLabel",
"target": "id=f_country",
"targets": [],
"value": "France"
}, {
"id": "65740c53-7195-40a2-8829-0549149244af",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [
["css=li:nth-child(2) b", "css:finder"],
["xpath=//li[2]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Membres')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b6df3153-03ec-4b6e-92fb-80077dcd6d40",
"comment": "Nom premier membre",
"command": "assertText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[1]/th//span",
"targets": [],
"value": "${nom_admin}"
}, {
"id": "44fc6c36-f8b6-457c-a3ef-01d968672885",
"comment": "Bouton Fiche membre",
"command": "click",
"target": "xpath=//span[contains(.,'Fiche membre')]",
"targets": [
["css=.actions > .icn-btn:nth-child(1) > span", "css:finder"],
["xpath=//tbody/tr/td[4]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Fiche membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5f6a5b2b-501d-4e56-b8df-cb35005b3255",
"comment": "Numéro de membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "1"
}, {
"id": "33022e6f-811b-4192-9180-0a99f3243855",
"comment": "Nom et prénom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom_admin}"
}, {
"id": "64e9103a-370c-4737-9882-685d7feaf552",
"comment": "Adresse E-Mail",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel_admin}"
}]
}, {
"id": "d6791401-e683-4d44-9513-24c52f1c6517",
"name": "1-02 vérif 1er membre",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "992c77f4-75bc-4088-bcd9-331061c0b221",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"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": "d33d67f7-28a1-470b-a59a-d7329a6dc09d",
"name": "xx 01 démarrer compta",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "a2b0eaef-fe0d-4797-a7dd-25f55abf431c",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "81a0acde-d8be-45a3-91e8-e1fb0e62bb7a",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "5270fbf4-31dd-4c9a-9324-301a40b89640",
"comment": "Menu comptabilité",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/acc')]",
"targets": [
["css=li:nth-child(3) b", "css:finder"],
["xpath=//li[3]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Comptabilité')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8e410189-2084-44ab-9a87-c344a43c000e",
"comment": "Choisir PC",
"command": "click",
"target": "id=f_change_chart",
"targets": [
["id=f_change_chart", "id"],
["css=#f_change_chart", "css:finder"],
["xpath=//button[@id='f_change_chart']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Choisir un autre plan comptable')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "dcb77bc4-bf4c-4e0f-a81f-5c562b64e4f7",
"comment": "",
"command": "click",
"target": "id=f_chart",
"targets": [
["id=f_chart", "id"],
["name=chart", "name"],
["css=#f_chart", "css:finder"],
["xpath=//select[@id='f_chart']", "xpath:attributes"],
["xpath=//select", "xpath:position"]
],
"value": ""
}, {
"id": "4c609b2c-a7b5-434e-be48-2f3bd261c3f0",
"comment": "PC 2020",
"command": "click",
"target": "xpath=//option[@value=\"fr_pca_2018\"]",
"targets": [
["css=option:nth-child(2)", "css:finder"],
["xpath=//option[@value='fr_pca_2018']", "xpath:attributes"],
["xpath=//select[@id='f_chart']/option[2]", "xpath:idRelative"],
["xpath=//option[2]", "xpath:position"],
["xpath=//option[contains(.,'Plan comptable associatif 2020 (Règlement ANC n°2018-06)')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b6e68444-8aef-4f3a-818c-9a2d722dade2",
"comment": "",
"command": "type",
"target": "id=f_start_date",
"targets": [
["id=f_start_date", "id"],
["name=start_date", "name"],
["css=#f_start_date", "css:finder"],
["xpath=//input[@id='f_start_date']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "01/07/2023"
}, {
"id": "0e6a2dd3-7d7d-4945-aba5-54f9e8493cb7",
"comment": "",
"command": "type",
"target": "id=f_end_date",
"targets": [
["id=f_end_date", "id"],
["name=end_date", "name"],
["css=#f_end_date", "css:finder"],
["xpath=//input[@id='f_end_date']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "30/06/2024"
}, {
"id": "52430c7d-ca8e-4f58-b52d-a4d2e72a4fcd",
"comment": "",
"command": "click",
"target": "name=step",
"targets": [
["name=step", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='step']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Étape suivante')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ba36bec7-61bd-4d1c-ac3c-2b72d0936504",
"comment": "",
"command": "type",
"target": "id=f_accountsbalance",
"targets": [
["id=f_accountsbalance", "id"],
["name=accounts[balance][]", "name"],
["css=#f_accountsbalance", "css:finder"],
["xpath=//input[@id='f_accountsbalance']", "xpath:attributes"],
["xpath=//nobr/input", "xpath:position"]
],
"value": "1234.56"
}, {
"id": "ca4cfa78-ff97-4f3e-a785-9672305dafef",
"comment": "",
"command": "click",
"target": "id=f_accountsbalance",
"targets": [
["id=f_accountsbalance", "id"],
["name=accounts[balance][]", "name"],
["css=#f_accountsbalance", "css:finder"],
["xpath=//input[@id='f_accountsbalance']", "xpath:attributes"],
["xpath=//nobr/input", "xpath:position"]
],
"value": ""
}, {
"id": "9e9dac78-99a3-4879-8c19-75b018622079",
"comment": "",
"command": "click",
"target": "css=td:nth-child(1)",
"targets": [
["css=td:nth-child(1)", "css:finder"],
["xpath=//tfoot/tr/td", "xpath:position"]
],
"value": ""
}, {
"id": "07517ee9-e7f2-49af-bb13-83b658138e02",
"comment": "",
"command": "click",
"target": "id=f_result",
"targets": [
["id=f_result", "id"],
["name=result", "name"],
["css=#f_result", "css:finder"],
["xpath=//input[@id='f_result']", "xpath:attributes"],
["xpath=//dd/nobr/input", "xpath:position"]
],
"value": ""
}, {
"id": "9f331343-c219-4a57-93d9-5e963b678ce6",
"comment": "",
"command": "type",
"target": "id=f_result",
"targets": [
["id=f_result", "id"],
["name=result", "name"],
["css=#f_result", "css:finder"],
["xpath=//input[@id='f_result']", "xpath:attributes"],
["xpath=//dd/nobr/input", "xpath:position"]
],
"value": "987.65"
}, {
"id": "971f1424-302c-429a-803c-7c8a16636606",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//button[2]", "xpath:position"],
["xpath=//button[contains(.,'Enregistrer')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "1e1ab5c5-e6ef-4bb9-ac86-74c0967d7e64",
"comment": "Confirmation création 1er exercice",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, 'confirm')]",
"targets": [],
"value": ""
}, {
"id": "90c5bbf0-0098-4391-bf5d-928b1bfebcfa",
"comment": "nombre d'écritures",
"command": "assertElementPresent",
"target": "xpath=//table[@class=\"list\"]//tr[1]/td[1][contains(text(), \"2 écritures\")]",
"targets": [],
"value": ""
}, {
"id": "553786b8-c659-4e4b-85d9-fcedf655f3cb",
"comment": "PC 2020",
"command": "assertElementPresent",
"target": "xpath=//table[@class=\"list\"]//tr[1]/td[1]/a[contains(text(), \"Plan comptable associatif 2020 \")]",
"targets": [],
"value": ""
}, {
"id": "835d38ff-3ee4-41b2-b5f1-eae8468a7c7e",
"comment": "Date début exercice",
"command": "assertElementPresent",
"target": "xpath=//table[@class=\"list\"]//tr[2]/td[1][contains(text(), \"01/07/2023\")]",
"targets": [],
"value": ""
}, {
"id": "2ca65e0a-3bc5-490d-925f-8ea4cabf02ed",
"comment": "Date fin exercice",
"command": "assertElementPresent",
"target": "xpath=//table[@class=\"list\"]//tr[2]/td[1][contains(text(), \"30/06/2024\")]",
"targets": [],
"value": ""
}, {
"id": "7bdcd91f-6c97-40b0-a3cd-a6ba76c52eb1",
"comment": "Suivi des écritures",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/acc/accounts/simple.php')]",
"targets": [],
"value": ""
}, {
"id": "b1c59841-dc87-496e-8b1e-e83ee00b4de6",
"comment": "Solde d'ouverture",
"command": "assertText",
"target": "xpath=//th[contains(text(), \"Solde d'ouverture du compte\")]/ancestor::tr/td[@class=\"money\"]/span",
"targets": [],
"value": "1 234,56"
}, {
"id": "a14bcadd-4a33-4d73-8e63-97f49c316847",
"comment": "Report solde",
"command": "assertText",
"target": "xpath=//th[contains(text(), \"Report du résultat\")]/ancestor::tr/td[@class=\"money\"]/span",
"targets": [],
"value": "987,65"
}]
}, {
"id": "5a23a860-bc10-46d8-9f98-177430d4e04a",
"name": "zz forEach",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "3318aa15-f121-455e-ae74-48b29b962a98",
"comment": "",
"command": "executeScript",
"target": "return [\"apples\", \"bananas\", \"oranges\"]",
"targets": [],
"value": "lesfruits"
}, {
"id": "2e51a45d-279d-46d9-a785-511cf4fdfc87",
"comment": "",
"command": "executeScript",
"target": "return ${lesfruits}.concat(\"kiwi\")",
"targets": [],
"value": "lesfruits"
2024-04-22 11:19:25 +02:00
}, {
"id": "3bff9bd0-1277-4571-8fa3-930a10a2014f",
"comment": "",
"command": "forEach",
"target": "lesfruits",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "elem"
2024-04-22 11:19:25 +02:00
}, {
"id": "8c86557b-dbee-4a7c-befa-e7333efe707d",
"comment": "",
"command": "echo",
"target": "${elem}",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "a5753ade-9e60-42a5-9db9-5e6f218d6955",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8422a64d-a929-4046-a2ea-127560fcfda3",
"comment": "",
"command": "forEach",
"target": "lesfruits",
"targets": [],
"value": "elem"
}, {
"id": "758c316c-033b-403d-a8b7-801b62d28ad0",
"comment": "",
"command": "echo",
"target": "${elem}",
"targets": [],
"value": ""
}, {
"id": "1d95e558-61fa-4818-ae51-8de0d7b6034f",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
"id": "2cd723fd-5c3b-4573-9f2d-581b0189a93a",
"comment": "",
"command": "executeScript",
"target": " return [{nom:\"Angela\",age:\"55\"},{nom:\"Linda\",age:\"50\"}]",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": " MyArray"
}, {
"id": "47ec3303-ffc7-4de2-9cd8-19f53ab1ec8c",
"comment": "",
"command": "forEach",
"target": " MyArray",
"targets": [],
"value": " it"
2024-04-22 11:19:25 +02:00
}, {
"id": "595770f5-5710-4241-b11a-4c1f18080d91",
"comment": "",
"command": "echo",
"target": "nom = ${it.nom}, age = ${it.age}",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "630bc138-835a-48ec-b176-83cc9d73e24f",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "7760e4cc-0406-4a07-85aa-96a62e5140a1",
"name": "zz créer membre avec objet",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "9ae96632-9e60-417e-afac-5daebc61e2ba",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "796e7045-3ea9-4f71-ba99-b4f02d0879f2",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "49ab5dfa-0d00-4535-9f47-e4f0ff9feecd",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "22de4c24-4997-4cf6-977f-e917066f6720",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "9ec5c1c4-543e-477a-b1ac-a02554cf08cf",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "0bde71dd-68eb-4060-8790-5c6c45e82958",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "e500c640-2f39-4daa-84f4-ff5b73a7b109",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8bd7373e-2ee2-4d69-80ea-6c6918637969",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "637e341c-206e-4b27-baaa-3b375e31402d",
"comment": "",
"command": "executeScript",
"target": "return [{cat:\"Membres actifs\",nom:\"Membre 2\",courriel:\"membre2@ici.fr\",pays:\"France\",adresse:\"2 rue des arbres\",cp:\"22222\",ville:\"Dreux\",tel:\"2222222222\",lettre:false,date:\"02/02/2022\"}, {cat:\"Anciens membres\",nom:\"Membre 3\",courriel:\"membre3@ici.fr\",pays:\"Cuba\",adresse:\"3 rue des arbres\",cp:\"33333\",ville:\"Troyes\",tel:\"3333333333\",lettre:true,date:\"03/03/2023\"}]",
"targets": [],
"value": "nouveaux_membres"
}, {
"id": "28416457-2dca-40e1-861e-f91ee6ec0c35",
"comment": "",
"command": "forEach",
"target": "nouveaux_membres",
"targets": [],
"value": "membre"
}, {
"id": "270abd94-4839-49e1-9acd-f21c334cb819",
"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": "6ed96765-f747-4725-abbb-a9acbd428701",
"comment": "Catégorie de membre",
"command": "click",
"target": "id=f_id_category",
"targets": [
["id=f_id_category", "id"],
["name=id_category", "name"],
["css=#f_id_category", "css:finder"],
["xpath=//select[@id='f_id_category']", "xpath:attributes"],
["xpath=//select", "xpath:position"]
],
"value": ""
}, {
"id": "3c2009f4-0e27-4d98-81a7-d65b7027c2c1",
"comment": "Membres actifs",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${membre.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": "2f67cd07-4d8c-49a7-bf83-9cb505eee1d7",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
2024-04-22 11:19:25 +02:00
}, {
"id": "d3a94597-57ce-40d1-b87f-6bbe546f78e0",
"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": "${membre.nom}"
}, {
"id": "f8ab5f14-dce3-4d8e-8742-15d4dfab7857",
"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": "${membre.courriel}"
}, {
"id": "b5550445-7e0b-4d7a-8373-0b0d5981d474",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "ab80d92e-8ca0-43d3-bec4-cd4993af142c",
"comment": "",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${membre.pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "1a176392-0f78-4108-8bba-1f5c12bbfbaf",
"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": "${membre.adresse}"
}, {
"id": "f36604c2-fb06-4764-b6a8-713e27b7bcaf",
"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": "${membre.cp}"
}, {
"id": "4841809c-cbfd-4a43-a723-ac824e8dbd59",
"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": "${membre.ville}"
}, {
"id": "6295ffe0-806b-4936-aa28-7dd5b65ea891",
"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": "${membre.tel}"
}, {
"id": "b59b6a64-cb70-4f71-bf9e-10dc1b429376",
"comment": "",
"command": "if",
"target": "${membre.lettre}",
"targets": [],
"value": ""
}, {
"id": "f262f731-24ae-44e5-baf7-a4a30b439669",
"comment": "",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "9e0c8942-a50b-4ea2-86f4-c0d4b128b475",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "eee7d99e-7755-4700-93a0-fac29e9def41",
"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": "${membre.date}"
}, {
"id": "17d8fa15-0c2b-4ce9-910f-8898b60a9ded",
"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": "4f019f96-f3b9-4f50-85a0-f373b2951675",
"comment": "",
"command": "",
"target": "",
"targets": [],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
"id": "9a8423c6-4584-4cad-9d68-76696e870d50",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "e297bc71-5e05-4783-a72a-567214ed4c5d",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${membre.nom}"
}, {
"id": "bd6a2cd6-439c-4fcf-8604-334212d5f337",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${membre.courriel}"
}, {
"id": "090e0694-2583-40e5-a212-99c2fcbc1936",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${membre.pays}"
}, {
"id": "8b25a689-f6a0-487d-aaad-b7a178fae59c",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${membre.adresse}"
}, {
"id": "47b574a0-c407-47df-b477-ca8884488140",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${membre.cp}"
}, {
"id": "9a9c0162-429d-40f1-90c4-043896edc7b9",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${membre.ville}"
}, {
"id": "d701bde6-512b-4232-84ac-e58788951f31",
"comment": "Vérif téléphone",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "${membre.tel}"
}, {
"id": "740fc36e-b875-449f-9a02-b8cb4ba5b4df",
"comment": "",
"command": "if",
"target": "${membre.lettre}",
"targets": [],
"value": ""
}, {
"id": "be8f66e8-9b2f-4680-8628-5f9687c8ad49",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "9f785ea8-f2ef-4d84-91ce-00526e8a8a45",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "faf7bbc4-3236-4fa4-a23d-5a40534b0507",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "5f45a447-72ed-4357-93b7-fec22ad42b51",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "68cfba7c-a406-42d0-8950-f724b4e61d1a",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${membre.date}"
}, {
"id": "8e0f5dba-777b-413c-bc44-e0abee21cc2a",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "fd7a4ceb-9488-492b-8c6c-790258956c77",
"name": "zz times",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "247a3df9-a29d-4af7-b577-9864bbae16c7",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin",
"targets": [],
"value": ""
}, {
"id": "6e94e99e-4f3b-4390-9884-42578b965f75",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "280aba6f-045f-4cbd-9e7e-ee049c88d802",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "7fa9b7d2-5efd-40d7-8b8f-5dd9ab2b2d95",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "6f2735d6-e975-44e9-9708-83f2a2e18c18",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "1b597673-2be8-4d45-9316-d22a462efde2",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "6f5b023b-5380-4338-b700-7890b1f7c58c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
2024-04-22 11:19:25 +02:00
}, {
"id": "6c56ae48-1a03-41d7-bb0d-5a4b892432db",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "3b28e5e3-7043-4966-b2f0-da769fc8b41c",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb"
}, {
"id": "8560cbee-7821-4dd0-bdb6-160711fe50e0",
"comment": "",
"command": "echo",
"target": "${nb}",
"targets": [],
"value": ""
}, {
"id": "dc6eb719-3153-4c1f-973b-0ab117a28073",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
"id": "7c1c50dc-8653-42b9-9ade-a9ab58526d13",
"comment": "",
"command": "while",
"target": "${i} <= ${nb}",
"targets": [],
"value": ""
}, {
"id": "be17dca4-bbdb-4021-af76-3f76dcff50b5",
"comment": "",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${i}]/th//span",
"targets": [],
"value": "elem"
}, {
"id": "46574204-c241-41de-8018-a7e71fea66d9",
"comment": "",
"command": "echo",
"target": "${elem}",
"targets": [],
"value": ""
}, {
"id": "5c22cb4c-0336-4e96-afb2-fc85d368449a",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "cf66b28a-82e1-49ca-ab9e-c397bf1a1fc0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "73154344-9dc7-43b7-beba-85d3f16cfe93",
"name": "3-zz lister membres (aucun intérêt)",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "c561e0b2-5367-420e-a530-8e24d3cf9297",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "c63df998-f847-47ec-aed8-fec4934ef3b6",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "d090b2c0-814a-4a72-87d7-af0886072530",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "f6fd62aa-c1db-42da-a5f1-80e0852f2eb0",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "0f655ac2-d905-4a14-b8b1-2d92001a895b",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "453b055d-80f4-4097-ab4d-3aff80516186",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "ee961f42-9ace-4468-a030-39bf873b9a88",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "693bea62-5404-40e1-ba7f-a4ccd3323374",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "1682c797-1ef4-4826-b100-6284f9f0c928",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "292be0eb-c74b-40dc-9b90-dafd4d0ec06c",
"comment": "Filtrer par catégorie",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); for (const l of li) { l.style.display=\"block\"; } return;",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "19a1b7ef-8969-432f-8c4d-43c9b6936237",
"comment": "Toutes même cachées",
2024-04-22 11:19:25 +02:00
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "ad08b4b8-9058-43e6-be28-848d6a695808",
"comment": "Nombre de membres",
2024-04-22 11:19:25 +02:00
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_elem"
}, {
"id": "0b3f6c7c-14ab-4ede-ae49-4b659d093fbe",
"comment": "",
"command": "echo",
"target": "${nb_elem}",
"targets": [],
"value": ""
}, {
"id": "234819b7-c75f-4f15-acb8-ab293e8837e0",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "ee10387e-e8b1-4023-9edb-de63b04f51eb",
"comment": "Itérer sur les membres affichés",
2024-04-22 11:19:25 +02:00
"command": "while",
"target": "${num} <= ${nb_elem}",
"targets": [],
"value": ""
}, {
"id": "1c35bf5e-d7db-4389-936c-cfca34b7a04a",
"comment": "Nom du membre courant",
2024-04-22 11:19:25 +02:00
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nom"
}, {
"id": "24c2ff2f-ad77-4f52-b3ea-46747afdefc1",
"comment": "",
"command": "echo",
"target": "${nom}",
"targets": [],
"value": ""
}, {
"id": "b25a3810-d452-4df3-81c5-67322e8b56a5",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "b666dc38-8cd4-4e17-a56f-2eee14017c0a",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "898d7888-4934-41a8-87bd-ca835189f143",
"name": "zz vérif date",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "bfaf1074-5858-40bc-9c4c-191f8c0e614c",
"comment": "",
"command": "store",
"target": "14/05/2024",
"targets": [],
"value": "ds"
}, {
"id": "e9844aa5-9613-4e58-b46a-85ae2080c9b5",
"comment": "",
"command": "echo",
"target": "${ds}",
"targets": [],
"value": ""
}, {
"id": "4c4e5413-a2d1-4381-b0ea-a19f97969b28",
"comment": "",
"command": "executeScript",
"target": "return ${ds}.split('/')",
"targets": [],
"value": "ts"
}, {
"id": "3aac3a16-4b6f-4bfa-a54a-cac47ae8e947",
"comment": "",
"command": "executeScript",
"target": "return ${ts}[1] + '-' + ${ts}[0] +'-' + ${ts}[2]",
"targets": [],
"value": "dd"
}, {
"id": "a0e86c3e-e4f8-4a0b-929c-65cade8223d2",
"comment": "",
"command": "executeScript",
"target": "return ! isNaN(Date.parse(${dd}))",
"targets": [],
"value": "ok"
}, {
"id": "a2acfdc8-b1fe-4e26-a267-58b63fa2aaf7",
"comment": "renvoie faux si date non valide",
"command": "echo",
"target": "${ok}",
"targets": [],
"value": ""
}]
}, {
"id": "c36d64ef-b5db-4c15-90aa-204431553d05",
"name": "2-03 connexion échec mdp",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "d63f59cc-7b13-416c-ac4e-5520b4f5e299",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "9c144216-af36-4843-a761-d73fbdaa9e90",
"comment": "identifiant connexion",
"command": "type",
"target": "id=f_id",
"targets": [
["id=f_id", "id"],
["name=id", "name"],
["css=#f_id", "css:finder"],
["xpath=//input[@id='f_id']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "jckix@free.fr"
}, {
"id": "73a8add8-f646-47a4-8de1-20099832c251",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["name=password", "name"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "xxx"
}, {
"id": "4eb7de55-7b4a-41ab-b16c-5b1e4838c0cf",
"comment": "",
"command": "click",
"target": "xpath=//button[@name='login']",
"targets": [
["name=login", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='login']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2072df70-2639-48a2-8b4d-00e6e42d0812",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "87aa0ef5-bb8c-496d-a196-0f92278e98b1",
"name": "2-02 connexion échec identifiant",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "5a8e495b-987a-4099-b397-70c9650e111a",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "d4e49a22-2897-459f-9169-2d1e6adbe0df",
"comment": "identifiant connexion",
"command": "type",
"target": "id=f_id",
"targets": [
["id=f_id", "id"],
["name=id", "name"],
["css=#f_id", "css:finder"],
["xpath=//input[@id='f_id']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "polo@free.fr"
}, {
"id": "ab9f41ed-6165-4b4c-b24a-2f4a505f86cf",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [
["id=f_password", "id"],
["name=password", "name"],
["css=#f_password", "css:finder"],
["xpath=//input[@id='f_password']", "xpath:attributes"],
["xpath=//dd[2]/input", "xpath:position"]
],
"value": "interpeller noircir colis allumer"
}, {
"id": "8dc91265-cc24-4929-8bf8-9811f04095eb",
"comment": "",
"command": "click",
"target": "xpath=//button[@name='login']",
"targets": [
["name=login", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='login']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "63ae88e9-f6a2-4bcf-8d13-5a4c5d8a1897",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "efad291c-7700-4c1d-a0c7-393264364aa1",
"name": "3-01 créer membre France",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "b14ce7cc-11db-4a3b-bfbf-12ec4765eeeb",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "4d1a1742-d8e9-4481-a97a-eeea7d5c70f7",
"comment": "Catégorie du membre",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "ad938cad-27c2-4945-a24b-e3b40ec90c74",
"comment": "Nom & prénom",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "nom"
}, {
"id": "4348c18a-7fb2-4ab6-b429-e3beb3c052c0",
"comment": "Adresse E-Mail",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "courriel"
}, {
"id": "ef6a56e3-8ec9-47dd-a1b5-2025df5012a5",
"comment": "Pays",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0abd1709-be5d-4042-81f0-93700b43c1f8",
"comment": "Adresse postale",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "5d8bb54b-1be1-44ab-902e-124fe9819cc0",
"comment": "Code postal",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "95b41cf8-950a-4157-8bbd-5e8959fb4230",
"comment": "Ville",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
"id": "44c5177c-dce7-4702-a31a-08b791368b0a",
"comment": "Numéro de téléphone",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "tel"
}, {
"id": "8051aed2-39c2-48a7-8d00-101f9d26a508",
"comment": "Inscription à la lettre d'information",
2024-04-22 11:19:25 +02:00
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "c0d7b692-3a8f-408d-8b0e-4ec4385cfae3",
"comment": "Date d'inscription",
2024-04-22 11:19:25 +02:00
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "beb2f78b-8a2a-4e7d-bb48-772c5ade5b49",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8dc7d09d-1019-4987-91c3-1fd882700650",
"comment": "Mémoriser numéro de membre",
2024-04-22 11:19:25 +02:00
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "786b3eab-e51b-46ca-a9f7-b5f0a46ed43b",
"comment": "Catégorie de membre",
2024-04-22 11:19:25 +02:00
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "91cb43db-cac3-4d72-b364-6e912697b71a",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "372ef039-8e00-46d1-b6d6-e14a9e1a0a2a",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "9ca7bf72-7213-4edf-9d20-13589ec9d8d3",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "c84e6073-7d7e-4116-b825-83f0a245141b",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "84552c91-deed-4d0f-aae1-8933597eec1d",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "389a2d01-5eac-4590-9358-87e741da1b99",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "e8255b4f-3597-4d55-b32e-277b081c8a8b",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "41e693e8-4f2e-44ce-ab5f-6396217d89d5",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "de8dae66-cbd2-46db-af11-798dfe544d96",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "5d054771-d040-43f6-b91c-33969b7c2947",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "99c18ac1-66f3-4133-944b-519254ae277c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8ee205d2-b206-4407-b6cb-bc07eb3ad40c",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "46e2408d-9a9f-4c62-80ce-3cfa08c33e62",
2024-04-22 11:19:25 +02:00
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [],
2024-04-22 11:19:25 +02:00
"value": ""
}, {
"id": "328116f9-cef6-4508-a26c-62789787c2d1",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "af297835-cb69-4675-a63b-3df85c8b2ab5",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "85367a29-1f35-493b-8172-161dd625c5c1",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "c414ed84-69e1-4069-8d89-76cc7d94d985",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "fa560762-3b6c-4f64-a0ce-4f92805a5503",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "f26e25ab-c200-4a13-b350-000781f1b781",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "77fa9b84-b444-4ab3-a220-b9b98866286c",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "d1bacf54-ff6c-45cb-9f40-2a91f90360e7",
"comment": "",
"command": "storeText",
2024-04-22 11:19:25 +02:00
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "4d4515b8-c135-4cbd-a1bc-12562e1f9f35",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "e18777ad-f909-4898-92dc-e48733dbf8a4",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
2024-04-22 11:19:25 +02:00
}, {
"id": "26026b3b-602f-4cda-b57d-89aa834d5c9a",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "c1e4769a-c485-45ee-aa79-0c2a317b36a6",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "c743f7d1-bfd0-4b91-95c9-c61a1807e839",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "f5d093a4-7d04-4751-a695-f2cd4b270ca1",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "782f3943-b137-49bc-8178-ea9b8923282b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "37a555eb-1147-4375-ad85-7fd52d37792e",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "efb8a434-ee82-48e0-a770-d4a668e28eec",
"name": "3-04 créer membre Inscrit lettre",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "65ccf874-7ebe-4aa7-be36-d2361e2f041c",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": ""
}, {
"id": "47d22a7d-8aae-45be-a9bd-824475be6756",
"comment": "",
"command": "store",
"target": "Membres actifs",
2024-04-22 11:19:25 +02:00
"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)",
2024-04-22 11:19:25 +02:00
"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\"",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "courriel"
}, {
"id": "2f9d6666-9017-4df2-8483-d6757a42a163",
"comment": "",
"command": "store",
"target": "France",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "pays"
}, {
"id": "009a0309-b962-49fb-b5f6-bb67e9d84443",
"comment": "",
"command": "store",
"target": "3 rue des vagues",
"targets": [],
"value": "adresse"
}, {
"id": "680d7ee1-aa80-48e3-a37a-a16386e2d63d",
"comment": "",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "79323d74-2df4-41ef-910b-5a96fbe1035c",
"comment": "",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "ville"
}, {
"id": "98d2dc19-3680-41c4-8fdb-a81167927ef2",
"comment": "",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "tel"
}, {
"id": "927c3533-0896-4cdf-95e0-61cfc72d39c8",
"comment": "",
"command": "executeScript",
"target": "return true",
"targets": [],
"value": "lettre"
}, {
"id": "c5a70e2b-3ac7-4a4f-b099-0c55ea3b3f36",
"comment": "",
"command": "store",
"target": "03/03/2023",
"targets": [],
"value": "date"
}, {
"id": "f19d24bc-fb8f-4ef2-88cb-a9c8fe423310",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "3e9cde50-321a-4d61-9439-65b56a1c0005",
"comment": "",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "ea8da6bc-e080-4b5e-bc6f-7ad41d8efe6d",
"comment": "Catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "6cb02725-9dcb-4aea-998f-52540487b1c5",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "88c0c06e-54b9-4da2-bbc3-76bc14d82f3e",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "469a96d1-5a00-42c0-ad2e-ebf5bfea2ad4",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "9a463acc-7950-4a04-806c-04669a0fb84b",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "1376637c-6418-4a61-80e3-3bc88e08ed89",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "7d5e5ea1-09c1-489e-8174-5634f51f2e09",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "b62857cd-f7cd-4feb-8c5e-e98e8bc0236d",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "910538f3-4c2f-4072-b2df-c5f6ddd60463",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "fa4683ba-1af7-4775-b044-07d3cc4d41b0",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "9fcdd36c-23d3-424a-909e-9de3f62ccb39",
"comment": "Inscription lettre info",
"command": "check",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "f933ed8c-fce5-4edf-a19c-53af6a1f22ea",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "bbf1ff6b-887e-40da-acce-e9d7f1167995",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "9ce84e89-38f3-4835-a773-e5c3dcd2fb1d",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "72b3f608-6788-449c-a841-cf5ab43b4455",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "a9a663f7-286f-4202-aa7b-402188459f70",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "09dfe60c-4593-4e76-92c0-d738ff7ce220",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "2429c4fd-8a60-4731-943f-9f4364d4b515",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "3aea85a1-f5d6-48cd-a4df-0e0cd5e14a72",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "56aa6e82-5925-46d2-8817-8fab68ced661",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "caccfb3f-a54f-45e6-b4b0-0d03df713f44",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "36a87f3a-cc93-4722-84ee-dbeb3fc72557",
"comment": "",
"command": "storeText",
2024-04-22 11:19:25 +02:00
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "4864681b-fbe1-481e-b41a-519331ff10bf",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "5bb863af-dcd1-4486-9934-a389e40bfae8",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
2024-04-22 11:19:25 +02:00
}, {
"id": "2f93b0b3-8621-4015-8142-13682c7ffe2f",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "7be4c4ee-27f8-4558-883b-740247bc3db0",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "fd2ba9ed-a620-4e7b-9fde-5217bc4e77b3",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "47218bc2-e094-4b01-bb03-27eef5ed5005",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "fd4c321a-ec5c-4073-a7c6-cf1c37a9eecd",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "fe919632-25c1-44bd-a554-855ab13154e1",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "95f14ce1-1f97-4fc0-97d0-14fa6d0c999d",
"name": "zz chaine",
2024-04-22 11:19:25 +02:00
"commands": [{
"id": "109bee2a-7f09-4048-90b4-19f065f1fa41",
"comment": "",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(30)",
2024-04-22 11:19:25 +02:00
"targets": [],
"value": "chaine"
}, {
"id": "7ef39d6e-24fe-4292-91bb-4de2832d6136",
"comment": "",
"command": "echo",
"target": "${chaine}",
"targets": [],
"value": ""
}]
}, {
"id": "a10913d7-dd6d-4c13-9bda-6293705343f8",
"name": "3-02 créer membre Cuba",
"commands": [{
"id": "cd1b3adf-7dcd-4e70-9cfb-45c8911d39a2",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "acdc5e0f-7d1b-46e7-8ee0-4abcbd25686a",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "011df170-505b-4649-a142-3eb62d7208ae",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "18b1a3b7-db73-4791-96bb-f5dc2cee1f59",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "9e67fe3b-785f-443f-bfe7-dc422d640aa6",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "aeb9d1b4-68df-4424-a5ea-10bcd3525819",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "99a70849-5f2f-4fd6-8826-0135df9c07ce",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d1932dc5-5c00-4422-b820-9e1def70b333",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "cf968ce5-2a90-4b39-9a22-d71ed9e224c8",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "2fbaa703-6ddc-4036-b7da-95c565f3c153",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "0e59addb-c875-4ca0-be08-8db5c852a40a",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "d5ad8f2c-c892-4b1d-a44c-4e15fca13ac8",
"comment": "Pays",
"command": "store",
"target": "Cuba",
"targets": [],
"value": "pays"
}, {
"id": "6bfb7453-f253-4ed2-92c1-d16a5e072d4c",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "a4277129-8287-4d44-ac81-b8cdc4b5506c",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "738d1e26-d2c3-45ec-a98e-ecc0eccd7e05",
"comment": "Ville",
"command": "store",
"target": "La Havane",
"targets": [],
"value": "ville"
}, {
"id": "afd2f570-4d60-440c-98e1-3eff825247e5",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 10);",
"targets": [],
"value": "tel"
}, {
"id": "0bd8c512-99bb-44b0-835c-394b58a35244",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "f40d1c92-c15a-4d34-a5d7-9a9d2cb862f4",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "34c8202c-c40a-46ec-a7e3-d4441c0f63b5",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4a33b555-5920-4683-9f15-6347e954fc35",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "705bb55d-5756-4f18-ba8e-aae002e1d932",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "df2c64e6-4a13-4116-a224-fffef3c5b77d",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "a3d02a94-e276-4fb4-95ce-7f760f8d7c41",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "21f60530-c4c9-4e23-816d-eec1df4fa006",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "5783a98f-6ba4-44d6-8d80-ca885dcec67a",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "80581213-bda0-4110-a45f-b3ffb69aa090",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "1fa3cb82-2537-422d-9f2a-76b691988882",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "eeb0e82d-0652-410b-abd9-08a7a0563bcc",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "4ceeb0ba-f95f-4f5d-8161-9ecfb92117a7",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "df224c52-3af7-4bf0-920b-779acf86504d",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "eadcc5cf-767e-4507-9257-2dbb0be0aca7",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "3672d94d-1ce2-47df-8915-86c97882086c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9b4a7137-34ec-43fa-b8ee-e0922564c878",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "fee7637c-f245-42c7-8427-a73430ea72ce",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "bced6da0-b1a7-4db1-9c18-ccfc30d2daf7",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "a169f017-2f5a-4dac-87e8-1681ad77bfb2",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "f1867735-60cd-40b6-abb0-cc7d3c7714b4",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "3cfad45e-2569-4e9e-afb9-89f4d5d26ed6",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "da8a9379-e38d-4599-bbff-8fee2c749f69",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "a6211476-e9f5-4686-9f67-b2ff22e74c24",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "3002b0de-954f-4ae5-ba99-af0c4905e1c0",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "c45277dd-3372-44cc-840c-f218e9fa0919",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "ae12ca29-3596-422d-99b6-042c091824a8",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "85a3fcdb-2a68-4d83-bbea-a837c75e3542",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "2b049a8d-f876-4082-a7e5-3e8f2dddcff6",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "84ca99ab-ab3c-4720-8c04-3427ad87cadf",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "318a5291-ad53-4193-a4f8-241139c21b98",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d6f5dc83-d622-4837-9e6b-c837e0a87526",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "18d8ab4b-4ef8-4d49-8c48-4e2e95388d8b",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c1ea77ae-9f99-44c5-b44a-717065f050df",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "542187b1-45cd-4f09-bad6-b1220fbfc754",
"name": "3-03 créer membre catégorie ancien",
"commands": [{
"id": "a8bc6b39-fd0c-4bd0-ac5c-5c6de1e7973b",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "a3d96f44-f1b6-4cb0-b575-9a577ad3e0fc",
"comment": "Catégorie du membre",
"command": "store",
"target": "Anciens membres",
"targets": [],
"value": "cat"
}, {
"id": "70a188d0-500f-4e7f-b4cc-b729d8b14b49",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "a19c958f-5619-4721-b532-97af4b24ab96",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "014f1bc2-059b-4731-b9b8-959b3a046e7b",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "3d52af5d-6637-4424-8179-e7b1a10bf24b",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "93a82799-df8c-43db-8d27-a3b04662fc8c",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "7ce7e1eb-4892-4296-bc86-e71031b8b2a4",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "1056a2ee-4e5a-4bf4-a1c0-2155b00af5e4",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "9e76f500-d05e-4f67-93b6-a9064c7d1ff8",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "9e64999d-9bee-4b7d-aa2d-4da11d50817f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f0cef9ba-c0f3-46f1-8bff-0fa9674d0b40",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2fc843d2-be98-4426-9433-3f3458f97e2a",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "c4e38f50-5403-4d2c-9b3e-ab40ef48f1f5",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2c0e46de-b4d3-4bc0-91d2-673d0c5a623e",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "fd75ac9e-66a0-4413-b94e-0242112d8f57",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "a4aa9ecd-b849-4009-b6ee-c04007b17ad4",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "c8a2357e-a3b3-47d9-98dd-a2ab3034dbea",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ba793090-3027-4217-875b-f3209ece7a9b",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "e718fcad-6dc4-42d4-a20d-34603e88fd5a",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "d5e3c0ba-3f4e-4b21-abc4-2268d2acc6cc",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "1ac5dc35-ca1c-4426-8569-ad17e4f0a7e3",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "0120e17a-437a-44b3-ba96-bef536372503",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "ca16f01a-365e-4c10-8036-257b209fe1ba",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "20e796aa-55fc-40e1-91e5-d0843786b263",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0cc12d6f-b5c9-4c6f-ae13-bfa420a0f54e",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "f45dec33-a4c2-4cdc-83fc-dcf48e22fd87",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ec1dc916-aedb-4b23-8a61-fcbbe6d7fa65",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "0c720acd-08ac-4b80-9569-fcb1ff4f9687",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "897fcf68-a122-487c-a4bb-beea5bcb0a42",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "28a6cc2b-5d0b-4032-affd-38fe234e4b55",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "57d9e90b-4e62-44cb-88b6-240cc937cbb7",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "732b550b-713a-4d71-ac8e-b39cd8b5f7e3",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "0f769f80-11a5-4931-97f6-ee48ede02ac2",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "bed84971-ddff-4b27-af87-5c710f8df251",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "8d8f01b0-e669-47c4-8e45-2ee0e7d4910e",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "c45e4383-5d3e-4173-9a3e-1ce04fd8f7fe",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "44961419-af5c-4064-96fa-e50f350a7429",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "4804b34c-68b0-41aa-898b-98ae271b8ca8",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "2668188e-680f-4276-83b8-2a6294c4b310",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4a6e1e0d-d5d5-4c4a-b56f-d9f0418b9e84",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "76f9bf91-fc1c-460c-8db7-a7ac0dc68858",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d760d487-3e61-4030-96f7-4c889d1e6df3",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "71fe09f0-51bb-4d2f-8c66-91ec5e235105",
"name": "3-05 créer membre date bizarre",
"commands": [{
"id": "32553fb9-6558-466f-90c0-31471c43187e",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "4a190edd-637a-4f52-94cc-25ae3f84b8b9",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "54e94108-5ead-496d-9607-c44adb4f272a",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "409faadb-00e7-4a63-bf4c-a215d21c66ed",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "874a6349-1535-4a98-9db2-bd7b31649af4",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "fc48899a-134c-4874-b53c-2e2dcce9d339",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "f9616679-abfb-4ea1-aa19-f91fb7d7aea9",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "481d5dd0-ef2a-4329-85a4-b76412b01a98",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "70c0c835-6920-4bdf-9eec-6a1dd1e90a6c",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "07b86442-7ea1-457a-b517-0dd4710f5743",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "4756e0f7-7435-4269-b2d9-4d0578a248bc",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "4d196958-b7f4-4f7e-bfd0-846e304767f1",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "5896a2ab-c2f0-4a1f-b6c8-2bfa024e835f",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "a7b6db66-a516-4744-b8ed-e6bca89fdf62",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "49db377e-0fad-4b10-8a6e-8cf4f087f98a",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "e739c2a5-d60f-4af7-b6e7-a4c24189eb49",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "c478a9ed-2317-4272-bb80-c6ebcdc6dffc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "1f654505-cd0e-45cb-8e9e-74df1afb61cb",
"comment": "Date d'inscription",
"command": "store",
"target": "95/31/2020",
"targets": [],
"value": "date"
}, {
"id": "78670de0-b279-4e37-ac87-f837ece72faa",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "03b93d25-c1d3-43e8-b9ed-ac763565dd72",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "0d2a4755-db45-4773-8ed2-d8d57b9c4b75",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4f00e4dd-d9d9-474f-b3b7-e9afd63b4680",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "1ddfe1a4-2c08-4562-9fd7-270d6ba33861",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "77d2378d-a83c-4076-9907-23d3aea1c0b4",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "73871e9e-1857-49ff-a572-9c893ba1e6b3",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8521c5bd-a29a-4688-8217-bc2877757382",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "5a306c9d-f979-4c35-b2e9-1153664fb67d",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "65e39991-4968-40fe-ae84-a5c5e0a68e4a",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "c2bfc3e3-6ca8-424b-8dc8-4f1df61d00cf",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "7b61142a-69da-47f3-96cc-6eb7ad6b904f",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "fdbb47ab-7aeb-42e7-a9c1-875003eb071d",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "b2545c4e-8b48-4002-8f32-e49289285669",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5776a36d-28b7-45e5-a923-24f26a42631b",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "26000250-ebb2-422a-b0b2-49503bfdfa39",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "f77af470-496f-43e2-bd30-539109685105",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "c9005e28-4d5c-401e-b299-18c916e4cd27",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "b4b51d1a-509b-4851-9529-3981dd3a8c8a",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "c6cb668d-47fd-411c-bb75-a26128af03ec",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "1d5966a8-b875-48fd-b56f-ee2c9ae23d8a",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "2cf267c8-49b4-4769-9830-485f5a241ecf",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "f78944db-fb67-4791-ab65-5d73faef62e2",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "1d279688-a9d5-4164-8e8a-fb31e354712f",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "1b131ce0-3f25-4962-af3b-ec5d92864bbf",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "c6a16bc9-3393-4282-9a95-f08d155324f6",
"comment": "Vérif téléphone",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "1cf499d7-0026-4074-abb5-850efd958e04",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "6cfdeb15-0085-436d-ac26-b15577d40cf0",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "8af9eb6b-6972-480d-a199-e61664a01f0f",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "7373abb6-1b87-42ad-bc96-cc524230e224",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "d46f966f-dec0-4956-98ea-400660f9a947",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e383f517-b5ae-4cdf-83c6-66ab5d0b1ede",
"comment": "Vérif date inscription",
"command": "storeText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "date_affichee"
}, {
"id": "8734fa90-92e3-42ae-9a19-9b5f407f8eeb",
"comment": "Calcul date réelle",
"command": "executeScript",
"target": "function joursMois (annee, mois) { return new Date(annee, mois, 0).getDate(); } function getDate(chaine) { var ds = chaine.split('/'); var jour=ds[0]; var an = Math.floor(ds[1]/12); var annee = Number(ds[2]) + an; var mois = ds[1] - 12 * an; var dm = joursMois(annee, mois); while (jour > dm) { jour -= dm; ++mois; if (mois > 12) { mois = 1; ++annee; } dm = joursMois(annee, mois); } if (jour < 10) { jour = '0' + jour; } if (mois < 10) { mois = '0' + mois; } return(jour + '/' + mois + '/' + annee); } return getDate(${date});",
"targets": [],
"value": "date_calculee"
}, {
"id": "54ccfc65-eec8-492e-a6ed-5a085a493022",
"comment": "",
"command": "assert",
"target": "date_calculee",
"targets": [],
"value": "${date_affichee}"
}]
}, {
"id": "a6af2537-7860-43b2-92b6-1a93bb173a6c",
"name": "3-92a créer membre date erronée cas 1",
"commands": [{
"id": "828addae-4a29-465c-bc17-6f6aa011a333",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "13fa53e4-8fb3-4c09-9698-cf15ef7fa7e2",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "d1639cda-f43d-4a46-8f31-a45845f18012",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "3aa81cc3-b73f-4cbd-83cc-21f995f7fb89",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "eff183bd-f7a1-4547-ba6a-88d9b5d4c906",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "229586b3-ab68-4d2c-9311-90e5ec230ec5",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "295a7bca-2ad5-4c17-9ea0-e785cb350fa5",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "688c9732-36ae-49da-a118-d3d51d9a8f1c",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "d46946e9-e633-454b-9c9a-ef1ecfc4b5a6",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "a25a9808-fbb6-4a95-b9b2-b950c683994f",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "4baa6042-575a-4e0d-b350-4f089d9bd8bc",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/1515",
"targets": [],
"value": "date"
}, {
"id": "4222fb5e-02b8-4bc3-b75d-e7be88205d9f",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2836eb76-087c-43c9-978a-9ce995817dd1",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "31173028-aef1-4f73-9e60-6966b2b4c430",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "96caaa3f-70a3-4504-93fd-1b615fee32f4",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "ee25159c-d537-42c8-84d2-c32b418c66b3",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "9829dda7-c7fa-4de7-a185-04031e266da2",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "7ccf9ace-4194-45cf-8581-b1a4a5fb07f3",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ef3d0879-e451-4069-9baf-54b6cb5811cf",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "252d1735-6a43-464c-b446-c737858b3e49",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "480dbe17-a9be-4467-a42a-11b8198074c4",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "3a1153c6-9a18-4e12-9b7a-c0484929a5f4",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "37a52481-ef23-4cb6-9e89-4068a9a3a5d3",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "7e74176f-2d36-4351-96f1-bd33f0d0ff2f",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "f4e66ef5-12d1-47e9-866d-49b2c0450543",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "a89cc104-19ba-46ae-b372-d72a88b54468",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "8f0bd285-4016-4179-a76b-a5fee22710c6",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "e9a7eab9-6c71-4dd0-a53c-9ee26d250975",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "155a53f2-766f-4748-b11f-722b520df2eb",
"name": "3-92b créer membre date erronée cas 2",
"commands": [{
"id": "bae01400-5545-48b2-a212-5d4cd5c50797",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "646291e6-03dd-41f7-8d6e-4afee8bfb522",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "262ee9b1-5c47-465c-9342-287c39838070",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "ff4352b0-fa9f-4d96-bab3-b306c1e974fe",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "977b4cb8-b190-41b2-be24-a3ab15880b90",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "3ff2f21f-b062-4265-bfb8-61d2255cd722",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "4334f5c1-f9e5-40ef-9526-f73043072ea0",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "cb59498a-7399-4952-8c12-96e5c51842d7",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "49667317-b1cc-4705-a4e0-7a8565065d67",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "bfb9295a-650c-4050-a630-74d9ff5471bc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "ba55dd35-73fa-4db1-9c1a-d2dfdfdbb801",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2105",
"targets": [],
"value": "date"
}, {
"id": "c3335bd0-4144-4978-a536-f06cd2a92135",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "65c47b88-c005-43f7-83b5-96249f4f1b3d",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "b22b8275-a0ef-4e03-b82e-5dbf47b4e984",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "7e1ff47f-54ff-4f8b-965c-35631d6e3d52",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "def2b845-4e2d-4273-8f6d-c975aa21ad80",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "71e80643-1bd4-4f6f-901a-466e55034b11",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "3b11ec51-6d78-486d-8cb6-fbbe7525ccdb",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d3e7886f-363f-49d8-9c4a-267dd8b4ca37",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "d68fcb4e-45d6-46eb-aa48-3f825ed3e120",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "2aef92de-5e3e-47e8-ae4f-0b49af16b143",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "6a542e83-7389-4b30-9710-e03cc080ca77",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "09c17bd0-afbf-4408-9e22-31f5b5990458",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "8438637f-0b67-49be-9cc7-8d7cbb117d4a",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "054c3b19-44ff-4b69-9179-b27179048ec5",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "fac99186-dd38-41a7-9297-7933794151f5",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "8c0979ad-246a-4712-b51f-e505e5a3d059",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "7e1d0aa1-4975-42fd-bdc0-096c04f082ab",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "c05cb267-660d-46ab-8fe9-a7e042aa9c8f",
"name": "3-91 créer membre échec numéro présent",
"commands": [{
"id": "0a919074-cafe-4f35-97d0-dff060157b5b",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "eb273f23-27f9-4f15-a21f-4854696648e3",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "0d7185be-af76-4b47-929f-fe990d527cfd",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "7b8ebf47-a369-474a-af53-7e78575dfc09",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "a04df44f-738c-4aaa-a8dd-3e8cca9eac78",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "cb650d21-a943-4f06-9d9a-9e9941e1efbe",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "41b16e1e-ab01-48c5-a301-409dbdc6ea7e",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "4f63c95e-f347-480b-ae1a-843f631b6726",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "c1eead33-8aed-4f05-8e72-98a3ef3427b4",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "d9f426d8-9daa-4890-b918-d1426a710a16",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "c0008cbb-b899-4ea3-92ae-cec64b66fc4d",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "5fe0f5a3-4faa-4b69-bc88-7add4a656c03",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "1b752fa3-3c65-4a62-909c-2cbf7150ba5a",
"comment": "",
"command": "type",
"target": "id=f_numero",
"targets": [
["id=f_numero", "id"],
["name=numero", "name"],
["css=#f_numero", "css:finder"],
["xpath=//input[@id='f_numero']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "1"
}, {
"id": "bb96ad08-62c8-4d72-9abc-406a6791ebbb",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a4c24f08-a244-45ca-91e9-d8aa5f847bbc",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "12c99a6f-2efa-478d-9a0b-11ce7b4ea034",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "0b8e7a8f-ab4a-4e7d-9914-74c445741e30",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "e9b448cf-24a8-44f0-a054-5a58e5e15c11",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "120d346c-4569-4203-ab5d-7517eed5a90d",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "40e6a573-2ed3-48f8-9782-18d5d4281e3c",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "4a11369b-4907-4a48-995e-03f3e79f7d3f",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "406b55bb-8572-4401-983d-6aa7ae0be342",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "36af241b-c825-4f71-973e-15c462851326",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "1c713af6-54c5-4bca-8e50-4432fe0daefc",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "6a7ff05f-f637-46e3-b23c-821fb439d964",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "40ec0740-36f7-47ad-bf48-1bf4aea22f8a",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "2abcc6d0-c97b-40aa-85c4-f073bc987c0d",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "14e83449-b1bb-4ce2-969c-e2c88cc2cd79",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//div[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
}, {
"id": "895513b5-888a-4ea2-8036-5a97569cd6df",
"name": "3-06a créer membre rattaché choix unique",
"commands": [{
"id": "fadb5d39-1907-417b-9d02-79547c3dc04a",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "e4abd389-b84d-4765-ac92-e6b81f98aa9f",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "9c7bbbc2-230e-4801-977a-4c68176f49a6",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "27686919-327a-4850-9bf5-b846a2872f02",
"comment": "Nom du responsable",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom_responsable"
}, {
"id": "e211cc9b-6075-420b-b6e8-8ec5b01b52a0",
"comment": "Numéro du responsable",
"command": "store",
"target": "1",
"targets": [],
"value": "numero_responsable"
}, {
"id": "9a06fd19-ed46-460b-9a90-69f38435f6e9",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "acfc959b-04c2-415d-870a-a798c4b1d107",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "5e02f2f1-585f-40d1-8b31-3d8b725c1f45",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "597b48f1-3a27-450a-881a-4b6ff46b89f6",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "3c543bc9-4f56-4c5d-b43d-2b55b9c3018e",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "4e43bf74-a10b-42ac-b64e-436d89e5e51b",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "2b1b82a9-016a-4c6e-9c7d-8a92b5182888",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "f382f8d8-6a34-4c74-8952-1c225420bfc4",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f4949ce4-37ae-4f1a-ad5b-43ef180a1f9c",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4c8764cb-88c6-4bf0-b19a-a2c0e2e55691",
"comment": "Rattacher à un membre",
"command": "click",
"target": "xpath=//span[@id=\"f_id_parent_container\"]//button",
"targets": [
["css=#f_id_parent_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/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": "207196a5-8de9-4883-881f-ec0ba8d496c5",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "34ee90e0-b301-4d20-b988-b1820ce5566a",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2580aabe-3ebf-4fc3-a275-2013947b9c2f",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "89b70650-203a-4e4b-86c3-e49a42c57c4c",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "47a06ec2-25bf-4942-ad52-b68b5c4b75ac",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "116ddb48-4dc9-405a-ac47-dce8fd3e6f63",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "9b5410e2-24da-4620-89f9-714db8bbeccc",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "4d6fa971-0517-49c3-b342-e53e4093a2a5",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "64bebdd9-e465-42ef-a40d-d04659803932",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "71f41783-8a82-4a83-acfc-c6e2dace3d26",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "6c49dbc2-f385-4976-86ce-a2823c746281",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "574e8477-a4ed-46c7-a3ce-e019cda8f132",
"comment": "Vérifier Membre responsable",
"command": "assertText",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [],
"value": "${nom_responsable}"
}, {
"id": "5c694f9f-2e9f-4367-9b7f-cf742b9c10c3",
"comment": "Afficher fiche du responsable",
"command": "click",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [
["css=dd:nth-child(5) span", "css:finder"],
["xpath=//dd[3]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a798423d-11fd-4a30-afee-422d143ac052",
"comment": "Vérifier numéro responsable",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero_responsable}"
}, {
"id": "75a18d53-6a37-422d-b3c0-ee8214774ec9",
"comment": "Vérifier présence membre rattaché",
"command": "assertElementPresent",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "b80eb8cd-4154-4216-a7f2-0f3ba28600ec",
"comment": "Retour fiche nouveau membre",
"command": "click",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "6613c9f0-d47d-48a6-b396-68bc5e3c5721",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "d4a803d2-5b84-4cda-a7a3-c5b5142c6812",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "63619154-1f63-429c-9be0-7e014283ddd4",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "4c9e3aab-19df-4812-9702-6aa5fb68b051",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "c4a67d17-17ef-4af3-89ef-42dc59c5db55",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "547562da-703c-40d9-aa51-795ac6d63dfa",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "8a979c72-c25f-4140-809c-af964bc07efb",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "bfa25d47-d5d8-4544-a06b-0686f18c6e08",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "5a1d9eaa-772b-4e45-8667-3ad65ba557f6",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "4b43fbd3-1da6-4eed-94d1-ec2af53980e0",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "16d27d73-b816-4cbf-b4e4-e83dcfd6c75a",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "7bffacb6-36e7-4eff-ae72-816231e3d7aa",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "270e237e-edeb-4cd0-821f-3aaae082002e",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5a5d7b3e-c066-4355-bf66-026861e775dd",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "83db0aa0-420f-4c52-9af4-4b9059825bb7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "edf49f14-1b94-4bf7-b9de-f456035369a9",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "4369d68b-3e2c-470e-b2b1-5a0825c35aa0",
"name": "3-93a créer membre nom présent refusé",
"commands": [{
"id": "de0c9cad-cb05-4f20-ada8-fe2924b92d08",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "dc9a7604-8fb1-49fa-a6b2-ad079371e7c2",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "b2e217e2-def6-41a8-ab30-a1a6f454f51f",
"comment": "Nom en double",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom"
}, {
"id": "32184ddd-c7a1-4abb-bd02-8d31941f661d",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "a31eed35-08ed-4461-ba7f-3b2fe06f9575",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0f647a3d-21f1-4831-a59f-d74bcd35d103",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "18f94418-d7a0-4f21-9d0d-a34b3ae1eb37",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "097ec1c5-8442-4d4e-aa65-128b105ca4bc",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "664cf575-3f94-4d24-adf2-5f0b9ef5307e",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "46b5f764-f3ef-45f0-9d8e-1cdaab6390af",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "a13ecf6e-0e0a-437f-9070-9e5e4ba7c28e",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "7a7ff05f-0cee-425d-adb9-d8d4fe9b5942",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5081e469-29a8-4f05-bf22-2a9d9f808a54",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "49e58e12-190b-4ce3-915c-74154106477c",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b5824593-52cc-4934-ba19-deed04a17408",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "876b2509-459f-450b-9832-efd47612e3e1",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "73e4e90a-f8ef-4c30-b38a-81628e545dc0",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "99c64321-6a7c-4725-9b81-a4e72d29a7de",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "9c11922d-ce4d-4b4f-a4fe-84bb6bcf98db",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "bb1b2f59-37ed-4822-8501-a45925d9d149",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "62673593-5315-41e9-a1a1-86e52a05b0ec",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "1d40a16d-0754-4cdf-a61e-f906f7721328",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "9f1bae31-b61e-4568-8bda-a07cbba34c75",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "15348857-a8d9-45d4-9ffd-9f4a801beaf3",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "a7d57bc4-10b6-479d-9309-ed3f8fea3fb0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "ca0add45-148a-4053-bffa-df6390a147b8",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "36f55bb7-97c0-4710-aa16-a36f5be40379",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "aa609cd7-aa9d-4752-960c-34717346ce1c",
"comment": "Déjà présent",
"command": "assertElementPresent",
"target": "xpath=//p[contains(@class, \"alert\")]",
"targets": [],
"value": ""
}]
}, {
"id": "077fea95-219b-4ab2-a10d-800ec7f39fb1",
"name": "3-93b créer membre nom présent accepté",
"commands": [{
"id": "d4554ace-88d7-4d2e-83d4-7cce4097aa75",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "be10eb6d-36b2-40c8-84eb-6580af51bf18",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "f32fd2e3-d4f6-4cc5-ba37-5af1352925ee",
"comment": "Nom en double",
"command": "store",
"target": "Lambert Paul",
"targets": [],
"value": "nom"
}, {
"id": "920c27e9-9949-4592-a8cf-87b4cd4ab021",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "ff484a1f-8f73-45a8-adba-c9e92984e4d5",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "3f6f2d20-719c-43da-bffc-da4a22deb2eb",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "d5e587e9-c742-49b4-a9f4-242c8241b1c4",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "93ef8988-e1ba-4852-9fcd-1248533bbc07",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "4a669a98-9fe4-4cbf-8016-43d5e0197f3e",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "6528d530-c349-4034-9176-2fa6ae5db9bc",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "605b1dc2-09d1-4532-ab37-f58ea2338d60",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "442cc883-b598-4fd1-b9db-d85d6c04bf57",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5330b5b0-7442-43c2-a517-1d6e7891aa46",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "aad56270-3032-42c7-b9a5-1f383ef2f20e",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "45f75a2e-16c7-40ff-8751-0841957beaa4",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "3158b5d9-9f9f-4f71-88e8-0fed3c3dd631",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "771d68af-4baa-40ad-9b7f-a2a06ccc325c",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "45d063ee-0ef3-47de-ad72-46c98b072b73",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "3d1afcff-1633-4ead-8af5-fe995229c22e",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "7c51d5f4-a9d3-4e83-bd05-574855dced14",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "b8623938-de5f-4a92-9761-1759986cacf4",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "8e8a1e7b-0865-4bf7-8177-a46482c6b727",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "0d94f36f-b5ca-4e8a-9f65-3c64c8964718",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "98cf1afc-9562-43bb-8318-a0e1c18b85d3",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "79d4eea8-aee4-4f32-a83b-a8965c13f38e",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "be81785a-7ad7-4ea4-a6d8-f673d1e4024c",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "bd7b5d55-6584-4837-b684-dcfec9255f71",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "745ff6f9-4890-4bf9-836c-f46f55ca5a37",
"comment": "Déjà présent",
"command": "assertElementPresent",
"target": "xpath=//p[contains(@class, \"alert\")]",
"targets": [],
"value": ""
}, {
"id": "a7705060-457d-4854-8a3c-9f427fce7a01",
"comment": "Accepter le doublon",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.icn-btn:nth-child(5)", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//button", "xpath:position"]
],
"value": ""
}, {
"id": "605865cd-94f6-4420-a15f-660a4e1975c0",
"comment": "",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "46343db0-3e17-47bb-bb70-dffd007d817d",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "75a52ac5-5286-409d-8591-efefa27c680b",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "505dbd0f-9d76-4042-8197-3ee5b54e0a65",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "b9f4f884-97d9-4f0d-9e21-86378f3b6afa",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "9101d731-d209-41a1-a280-307e54af0045",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "052708c2-eb37-4f7b-a11a-4dc615aa84e5",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "6d74cb87-be97-42b4-93f1-c6e9a7b41339",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "b48b7328-507f-4fc5-9cc0-72e2ec594aed",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "00f4e960-2c86-4f72-83fc-5a6c677ac986",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "1156bdd3-b6f7-4a2d-87b3-24a4724976f0",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "ae682a21-6c75-4dcd-8415-427394d244e2",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "109033e5-d2a9-4b96-acc8-1a8d57fd5ce8",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "00f3d6eb-5581-4a7a-bccc-9962760ad81b",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "0e16146d-d672-4b75-b446-134bbb77a17f",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "8fce980c-51c5-4dae-966c-6c72f35870b7",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4e4ebdf0-40eb-4f2e-9b40-e2795ff72953",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "20360774-e683-425b-a9b9-350dc0fb6ef3",
"name": "3-06b créer membre rattaché Plusieurs choix",
"commands": [{
"id": "f2ae936e-54ea-4773-82b2-581ded63ce85",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "97b81218-28eb-46a8-905f-692459d24c28",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "babda5cf-a571-42b3-b3b5-7a668153cade",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "d964a6e7-eaca-4008-879b-ae56fd2e8fe5",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "f8c8d715-ecd7-4417-a26e-181520963dec",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "60703fc4-811b-41de-90d5-3334475e50d1",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "a21ed2e8-9e3f-4687-9d02-17bcb53a0a90",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "55db0a06-ae98-44a3-9ba2-d24c5faad807",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "48e88160-9e46-42c8-92b9-98ea1f10b772",
"comment": "Créer un responsable",
"command": "",
"target": "",
"targets": [],
"value": ""
}, {
"id": "a82b78fc-30dd-4265-bfc7-e6ab8ce21efa",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "bc2b3008-e73a-45d5-865a-1de7c9d64a71",
"comment": "Mémoriser numéro du responsable",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numresponsable"
}, {
"id": "d4da98a2-1f99-4b36-a056-2a9617c77f6c",
"comment": "Le responsable",
"command": "type",
"target": "id=f_nom",
"targets": [],
"value": "Zhamberlain Luuc"
}, {
"id": "8a8ab9cc-8d39-4462-9acc-611144afaab0",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2f94bd66-13fc-4a51-9d2b-92a73a8ff064",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "9c4d5fc5-0925-434d-928f-8696ad7e0f6e",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "08ab8378-1cf9-4309-9ad7-d08caf770986",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "9cda4c46-e4df-4959-9cd7-b06c69e958b3",
"comment": "",
"command": "store",
"target": "amber",
"targets": [],
"value": "responsable"
}, {
"id": "bfedc5a3-ede2-4b22-bd92-b41fc938aaa0",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "8afb2f34-46b3-410c-b733-20f45e1ff657",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "a660f928-50a3-4a6b-b546-987e13b853d1",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "d6004a7d-2ba3-402b-951d-28b88e2f8748",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "df681c95-e148-4183-90d2-9336eeb2c1f7",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "6132c6ba-d8e9-4071-b578-1b1ec23cad93",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "67eb1920-fca1-4e10-8f85-1f2e115b140d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "2b93bfdf-8047-4db9-b8ae-ac7b72a83213",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "f0416e70-9d9d-4a3b-80c6-340b126a7cd6",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ab243806-0d90-4a82-97e2-4042e5a4ffa4",
"comment": "Rattacher à un membre",
"command": "click",
"target": "xpath=//span[@id=\"f_id_parent_container\"]//button",
"targets": [
["css=#f_id_parent_container > .icn-btn", "css:finder"],
["xpath=//button[@value='http://testpaheko.local.bzh/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": "04adad26-3b22-413a-9d2a-86fef5d8ddbe",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "79382d6c-5cf7-4ba2-b168-02d0b02ff62e",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "91702519-b59f-4ed3-8074-fdbc639ece86",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "77b09efa-dd77-4722-8560-a1fca6f42aa3",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "7d7c8ff8-fe9e-4f64-a245-23314e6059a8",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "b4abda30-1256-435a-b3d1-43c9778003d7",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "6f82bfd4-4519-4413-ad9f-fb6e8ff936df",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "cbe9b2a5-b3dd-4400-a9a6-d04333460420",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "020cf20b-4554-4fc8-b7f5-ee73663838dc",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "9c7b5cef-20c9-467d-942e-6c720d384fcc",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "d24383f5-2919-4803-9cb5-1377a51c0d27",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b13a885d-232a-4678-a650-80d6bc68be78",
"comment": "Vérifier Membre responsable",
"command": "assertText",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [],
"value": "${nom_responsable}"
}, {
"id": "c4a7e9b9-43dd-4b45-bf6a-358cd126a91f",
"comment": "Afficher fiche du responsable",
"command": "click",
"target": "xpath=//dt[contains(., \"Membre responsable\")]/following-sibling::dd//span",
"targets": [
["css=dd:nth-child(5) span", "css:finder"],
["xpath=//dd[3]/a/span", "xpath:position"],
["xpath=//span[contains(.,'Zhamberlain Luuc')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "63b99000-3d03-4c2a-a00e-bcbf14248841",
"comment": "Vérifier numéro responsable",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero_responsable}"
}, {
"id": "de2bad37-9847-4022-9021-319c58b14139",
"comment": "Vérifier présence membre rattaché",
"command": "assertElementPresent",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "0fc66279-d61c-4fa7-ba80-19dbc9ebd359",
"comment": "Retour fiche nouveau membre",
"command": "click",
"target": "xpath=//dt[contains(.,'Membres rattachés')]/following-sibling::dd//span[contains(., \"${nom}\")]",
"targets": [],
"value": ""
}, {
"id": "e8bb762d-76f0-4ae8-9725-d2bca0741b1b",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "001e8d83-d171-4503-ba2f-d6ffd72dd9db",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "f7765c6d-d42f-4af5-a939-87a0cd971447",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "ec1f5103-aeeb-4a1c-be84-26c93b7bbefc",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "2e5d7700-563d-4e05-a605-3314c332f2d7",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "b4833f59-a9ea-40cb-a316-3f270fb7173f",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "63cff9d3-1cdb-46a3-a670-76b0bc53a743",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "ae725152-288c-4c63-9646-267fbbaee64d",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "60ee30c9-c42f-4b07-820c-5c1c76eac0fd",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "1bf4a8a0-7b6f-4db9-a28e-900fcd898944",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "c0550765-8b44-46f9-b642-895e54386c81",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "e01cf96b-63e8-433c-b510-0e738e52078c",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "ed16361f-1057-476e-8ce9-df70ff70ed6e",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "b13e8002-3893-465c-b756-9e64366868e4",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "76f4cd12-e93c-48d7-9afe-ebcc651ac749",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "137c3d09-9d21-407c-95dd-2fd5df6783ba",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "91ad3d23-dd66-4084-beeb-ea89ec4bfabc",
"name": "3-07 créer membre numéro choisi",
"commands": [{
"id": "a6972706-0c56-46c5-9a2f-5f9ca9e7a52b",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/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": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "09066653-b8a8-4ec6-ba3f-b1defc04890a",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "f97e3190-ae0f-4de0-bfbb-1e03852597b2",
"comment": "Nom & prénom",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)",
"targets": [],
"value": "nom"
}, {
"id": "50e4310d-b75e-4990-8bd3-b8b385cc0b37",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "e71c0422-9471-4d62-a43e-7da5200052b1",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "0e7fc5d1-d5aa-4efc-b5e6-396ba22331c8",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "8e11d770-9756-4f0f-a779-b90b730fc91b",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "299ec2d6-d8e7-43f5-ba7c-002612ea8bd9",
"comment": "Ville",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)",
"targets": [],
"value": "ville"
}, {
"id": "57b91f4c-9c1c-4466-933e-8be7d3ddf839",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "32ba984a-1f16-44b3-bddf-5992ad65c69d",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "7db8cce3-6e38-4098-92b0-be0f3bccd28f",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "ff2f7191-51e1-4318-a9fa-1a37b3f201b8",
"comment": "Membres/Ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d7ceb825-e0fe-414b-950c-10ec99ddceae",
"comment": "Numéro proposé",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "cf4d7e4d-dc1a-44e2-a396-f5fc9481f207",
"comment": "Choisir numéro de membre",
"command": "executeScript",
"target": "return Number(${numero}) + 100",
"targets": [],
"value": "numero"
}, {
"id": "20bbc394-9977-4ee8-b73f-982cf0ddcbc4",
"comment": "Imposer numéro calculé",
"command": "type",
"target": "id=f_numero",
"targets": [
["id=f_numero", "id"],
["name=numero", "name"],
["css=#f_numero", "css:finder"],
["xpath=//input[@id='f_numero']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "${numero}"
}, {
"id": "efcd239c-6ffc-4192-9af0-870c6104e888",
"comment": "Catégorie de membre",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${cat}\")]",
"targets": [
["css=#f_id_category > option:nth-child(3)", "css:finder"],
["xpath=//option[@value='1']", "xpath:attributes"],
["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"],
["xpath=//option[3]", "xpath:position"],
["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d0de6beb-a913-4891-b324-9ac0223721de",
"comment": "Nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "7126a123-f17b-4004-966d-98e86c56ae31",
"comment": "Courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "63bf7072-1fde-4f84-b892-dd4cee1abcea",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "01040a1a-37be-4440-9270-10ab30450d39",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "22d15378-fe16-45ff-aec5-c4058e9a6f75",
"comment": "Adresse",
"command": "type",
"target": "id=f_adresse",
"targets": [
["id=f_adresse", "id"],
["name=adresse", "name"],
["css=#f_adresse", "css:finder"],
["xpath=//textarea[@id='f_adresse']", "xpath:attributes"],
["xpath=//textarea", "xpath:position"]
],
"value": "${adresse}"
}, {
"id": "ce92e5c8-dd7d-4bbc-9c44-f805198b1e04",
"comment": "Code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "9fe5fc12-5736-46e0-8223-2eb77ed6f15f",
"comment": "Ville",
"command": "type",
"target": "id=f_ville",
"targets": [
["id=f_ville", "id"],
["name=ville", "name"],
["css=#f_ville", "css:finder"],
["xpath=//input[@id='f_ville']", "xpath:attributes"],
["xpath=//dd[10]/input", "xpath:position"]
],
"value": "${ville}"
}, {
"id": "725835ff-a614-4269-8547-6a324fdd2d31",
"comment": "Téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "b2f53dae-3338-4514-b7fd-2d51971ffd18",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "19e8f3a7-f81a-4b37-9d4e-5d7a84b2808c",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "088478f0-dbef-4e9b-9ecf-373eab3191cf",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "23c1e1e1-b5cd-45fd-ba68-6e74343d52ed",
"comment": "Date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "${date}"
}, {
"id": "4ac05314-10df-4c87-8d6d-1a65bb4eb81f",
"comment": "Enregistrer",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "270079c9-9f95-4185-bbec-22cc6df3c073",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "119b0281-b232-4ecf-b61b-05b21d4fc470",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "0ef3c9dc-98fb-4b14-9828-b0c423cae1ea",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "86f2975c-c56e-4b59-86f9-9d3c4fe10bcb",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "ce79a6a6-5eed-4afe-9144-68b090310bfc",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "7a61578f-d2dd-4a70-965b-1b758171579b",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "e5a2d5f7-625d-46a0-9de3-7505744a0cf5",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "1a91161f-ae27-419a-a04c-c70a22fa74e8",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "c2d4331d-2881-4725-9ed2-cf6d37b18460",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "57244951-2db2-495c-90ad-5512f9190928",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "b846e886-d7a1-45a6-ae7b-152a77e60713",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "975edcd9-969a-430c-bc91-9ffc65061d1c",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "a6b351bb-d426-47aa-8437-fe7c482d2bd2",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "3d490bef-7264-4433-ac9e-159667490349",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "2c89a233-08fd-43e8-85f1-b2ef7ed45fc8",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "4575eea8-fb0b-4933-a58c-4695d5e3b84e",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}]
}, {
"id": "1e422ed1-1291-44bc-beb9-6028a68474e7",
"name": "4-01 lister membres toutes catégories",
"commands": [{
"id": "2fd6d4c7-9f15-40ca-9f96-3b9cc2948cdf",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "b5f5863a-dbd9-4623-a842-72f4de989285",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "e57bb132-ce68-4464-967f-95aab07d45dc",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "4080279f-86be-4bb4-9847-e72bc1d22e9d",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "3683fd22-fbcf-4fed-975f-6e1068fe5c91",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "e43a2329-60cf-4f3f-99b1-d8e1c930a319",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "cbf069b3-9981-43ab-85a9-980b0f40ea5d",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "5fe6c28a-a78c-4a51-9777-2fd6e29cd064",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "36208941-ab41-44be-9a9c-ddf241fa818b",
"comment": "Nombre catégories",
"command": "storeXpathCount",
"target": "xpath=//nav[@class=\"dropdown\"]//a[contains(@href, \"?cat=\")]",
"targets": [],
"value": "nb_categories"
}, {
"id": "1dbf5b56-db31-486e-b46d-d624381663d1",
"comment": "idem",
"command": "executeScript",
"target": "return ${nb_categories} - 2",
"targets": [],
"value": "nb_categories"
}, {
"id": "7fed4008-6d13-40c6-b50c-f4f8a97e8f1f",
"comment": "",
"command": "echo",
"target": "nb catégories = ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "d05d2440-f8a0-4b5c-85b7-4a3bbe8ce936",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [],
"value": ""
}, {
"id": "8c26b180-80ae-41c6-81b2-6c20ebd7e961",
"comment": "Mémoriser premier numéro disponible",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "premier_numero"
}, {
"id": "4740bfc0-1687-405e-8996-0053a2b00e8d",
"comment": "",
"command": "executeScript",
"target": "return Number(${premier_numero})",
"targets": [],
"value": "premierNumero"
}, {
"id": "88f11538-5654-4744-b477-4c984c67b19e",
"comment": "",
"command": "echo",
"target": "Premier numéro = ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "7e279d37-2086-406b-8936-e31c19f0dbed",
"comment": "Init liste noms",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnoms"
}, {
"id": "291c6fbd-72b4-4128-8a6a-c573033277ae",
"comment": "Remplir liste des noms",
"command": "executeScript",
"target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length));} let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin; }; for (let i = 0; i < 7 + Math.floor(Math.random() * 15); ++i) { ${lesnoms} = ${lesnoms}.concat(chaine(12)); } return ${lesnoms};",
"targets": [],
"value": "lesnoms"
}, {
"id": "54daebab-d468-45ba-aa07-fab2d262532c",
"comment": "Init liste des numéros",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lesnumeros"
}, {
"id": "342c4bfd-8ae1-4fdb-9428-3373d19bc85a",
"comment": "Init liste des catégories",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "lescategories"
}, {
"id": "d298c94a-8bbb-430a-bb70-44b5b2aa0013",
"comment": "Parcourir liste noms pour ajout dans la base",
"command": "forEach",
"target": "lesnoms",
"targets": [],
"value": "nom"
}, {
"id": "f2e81172-7810-4526-a5e0-8fe86233ec86",
"comment": "Menu ajouter",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "073c5011-c04e-459a-96d2-da8bab40a767",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "55e94304-2e8c-4454-bd42-50fca46ef272",
"comment": "Ajouter numéro à la liste",
"command": "executeScript",
"target": "return ${lesnumeros}.concat(${numero})",
"targets": [],
"value": "lesnumeros"
}, {
"id": "77f23aa1-3c1b-4e95-83a4-5786a9ce2e7d",
"comment": "Générer numéro catégorie",
"command": "executeScript",
"target": "return 1 + Math.floor(Math.random() * ${nb_categories})",
"targets": [],
"value": "num_cat"
}, {
"id": "a3c53c4a-a555-4080-b47d-0e8bf1842871",
"comment": "Ajouter catégorie à la liste",
"command": "executeScript",
"target": "return ${lescategories}.concat(${num_cat})",
"targets": [],
"value": "lescategories"
}, {
"id": "8a1ab6ce-6722-41d7-b6c8-68df46747152",
"comment": "Sélectionner catégorie",
"command": "click",
"target": "xpath=//select[@id=\"f_id_category\"]/option[@value=${num_cat}]",
"targets": [],
"value": ""
}, {
"id": "ffc7fd11-ba0f-4171-8812-5b9770ebca2b",
"comment": "Saisir le nom",
"command": "type",
"target": "id=f_nom",
"targets": [
["id=f_nom", "id"],
["name=nom", "name"],
["css=#f_nom", "css:finder"],
["xpath=//input[@id='f_nom']", "xpath:attributes"],
["xpath=//dd[3]/input", "xpath:position"]
],
"value": "${nom}"
}, {
"id": "a9a2445b-3e01-4986-8f45-b62d63c2d2c5",
"comment": "Afficher nom catégorie",
"command": "echo",
"target": "Ajout de ${nom}, catégorie = ${num_cat}",
"targets": [],
"value": ""
}, {
"id": "f92ea725-4791-4c31-ada2-55a176d56bf0",
"comment": "Générer courriel",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "401f35fc-be6d-4355-bf1e-8c5a7db9aab7",
"comment": "Saisir courriel",
"command": "type",
"target": "id=f_email",
"targets": [
["id=f_email", "id"],
["name=email", "name"],
["css=#f_email", "css:finder"],
["xpath=//input[@id='f_email']", "xpath:attributes"],
["xpath=//dd[4]/input", "xpath:position"]
],
"value": "${courriel}"
}, {
"id": "488335cb-fae7-483d-975f-cf955aa7c0fb",
"comment": "Générer code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "bf3e0d8c-1a24-4941-bf9a-08205fee35e9",
"comment": "Saisir code postal",
"command": "type",
"target": "id=f_code_postal",
"targets": [
["id=f_code_postal", "id"],
["name=code_postal", "name"],
["css=#f_code_postal", "css:finder"],
["xpath=//input[@id='f_code_postal']", "xpath:attributes"],
["xpath=//dd[9]/input", "xpath:position"]
],
"value": "${cp}"
}, {
"id": "9a09459c-61e7-432c-9478-934a732c7885",
"comment": "Générer numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "a169d4a1-f937-4594-8507-70fc194f082f",
"comment": "Saisir numéro de téléphone",
"command": "type",
"target": "id=f_telephone",
"targets": [
["id=f_telephone", "id"],
["name=telephone", "name"],
["css=#f_telephone", "css:finder"],
["xpath=//input[@id='f_telephone']", "xpath:attributes"],
["xpath=//dd[11]/input", "xpath:position"]
],
"value": "${tel}"
}, {
"id": "d618999e-b168-4d46-9ae0-dbe990eb0da1",
"comment": "Saisir date inscription",
"command": "type",
"target": "id=f_date_inscription",
"targets": [
["id=f_date_inscription", "id"],
["name=date_inscription", "name"],
["css=#f_date_inscription", "css:finder"],
["xpath=//input[@id='f_date_inscription']", "xpath:attributes"],
["xpath=//dd[13]/input", "xpath:position"]
],
"value": "01/01/2001"
}, {
"id": "4accaa57-86c6-42dc-b27c-c08af547ce5e",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_date_inscription",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "6e1c1e28-bb76-4e98-b506-6b9ade8d9ccd",
"comment": "essayer de rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "xpath=//span[@class=\"datepicker-parent\"]//button",
"targets": [],
"value": "${KEY_TAB}"
}, {
"id": "f6c96446-cfc7-4dbb-962e-5533e670a903",
"comment": "Enregistrer les infos",
"command": "click",
"target": "name=save",
"targets": [
["name=save", "name"],
["css=.main", "css:finder"],
["xpath=//button[@name='save']", "xpath:attributes"],
["xpath=//p/button", "xpath:position"],
["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ec7876c0-4b38-4537-9a46-a764dda97204",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "190bf88c-f44d-4c0f-b8d6-d27cb3bfc357",
"comment": "Menu membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "484b17fb-b89b-4d3b-8055-4c1dd05b7e17",
"comment": "Rendre visibles les options du menu Filtrer",
"command": "executeScript",
"target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;",
"targets": [],
"value": ""
}, {
"id": "ffa88538-fe57-4796-9619-ea43deae3932",
"comment": "Filtrer : tous même cachés",
"command": "click",
"target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
"targets": [],
"value": ""
}, {
"id": "719535c3-c0a3-4c3c-868e-551cf9c7b99f",
"comment": "Nombre de membres",
"command": "storeXpathCount",
"target": "xpath=//table[@class=\"list\"]/tbody/tr/th//span",
"targets": [],
"value": "nb_membres"
}, {
"id": "d5978b1b-d519-4973-b89a-658bf4c53584",
"comment": "",
"command": "echo",
"target": "nombre de membres = ${nb_membres}",
"targets": [],
"value": ""
}, {
"id": "30572695-e0fa-4fee-831b-a38d69c55faa",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "num"
}, {
"id": "78cac4da-2c9a-466c-8c54-ef4d7bf4fc87",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "6b67c901-3fcd-436a-adbf-c9d95321c0c8",
"comment": "Parcourir les membres affichés",
"command": "while",
"target": "${num} <= ${nb_membres}",
"targets": [],
"value": ""
}, {
"id": "8685ee29-2bc7-44c0-9860-2117a94aacfc",
"comment": "numéro affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numeroAffiche"
}, {
"id": "44091abf-a12d-4c18-ae2a-9d9a54f7503e",
"comment": "nom affiché",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/th//span",
"targets": [],
"value": "nomAffiche"
}, {
"id": "845fc9ce-c67b-47d4-87ae-1a72393bc3e1",
"comment": "numéro mémorisé",
"command": "executeScript",
"target": "return ${lesnumeros}.at(${i})",
"targets": [],
"value": "numero"
}, {
"id": "229a6712-eca4-4100-b65a-580330d42f8f",
"comment": "nom mémorisé",
"command": "executeScript",
"target": "return ${lesnoms}.at(${i})",
"targets": [],
"value": "nom"
}, {
"id": "59bb5518-8ad4-4e7d-ade7-fd959512436b",
"comment": "",
"command": "echo",
"target": "n=${num} ${numeroAffiche} ${nomAffiche}",
"targets": [],
"value": ""
}, {
"id": "f3450d13-d29c-412b-a104-32dfea83af95",
"comment": "",
"command": "echo",
"target": "i=${i} ${numero} ${nom}",
"targets": [],
"value": ""
}, {
"id": "e5c33df5-6b7e-49ba-b016-f82c17d4ffda",
"comment": "",
"command": "executeScript",
"target": "return Number(${numeroAffiche})",
"targets": [],
"value": "numaff"
}, {
"id": "bc993cb3-3cc6-4951-aa48-66ca1bac8553",
"comment": "Si c'est un des noms générés",
"command": "if",
"target": "${numaff} >= ${premierNumero}",
"targets": [],
"value": ""
}, {
"id": "1f66de5e-1137-47b9-9f72-e1e1540eb682",
"comment": "",
"command": "assert",
"target": "numeroAffiche",
"targets": [],
"value": "${numero}"
}, {
"id": "82978c13-826c-4185-b298-fd21c8862341",
"comment": "",
"command": "assert",
"target": "nomAffiche",
"targets": [],
"value": "${nom}"
}, {
"id": "964d6ebe-951f-4e83-a358-70b699d95bcb",
"comment": "",
"command": "executeScript",
"target": "return ${i} +1",
"targets": [],
"value": "i"
}, {
"id": "d7c971a6-3cb0-4c80-bee9-15868eed12b2",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "ca7fbf8f-379e-4956-85c7-9e387bea07ee",
"comment": "",
"command": "executeScript",
"target": "return ${num} + 1",
"targets": [],
"value": "num"
}, {
"id": "fb5060a6-4685-4efd-aa10-77d177aaa28c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-05-15 11:29:19 +02:00
}, {
"id": "b468a6eb-1199-460a-95f8-820df1f2c2f9",
"name": "1-01 installation échec",
"commands": [{
"id": "fd5b9d86-7bfa-46ba-a15d-bce85f1441bb",
"comment": "Page installation",
"command": "open",
"target": "/admin/install.php",
"targets": [],
"value": ""
}, {
"id": "f653a356-df0c-4ec6-86a4-0a67e290fa6c",
"comment": "",
"command": "setWindowSize",
"target": "1080x1020",
"targets": [],
"value": ""
}, {
"id": "e005004f-2832-422b-8e57-f3990ed3ec3b",
"comment": "Erreur ?",
"command": "assertElementPresent",
"target": "xpath=//p[contains(@class, \"error\")]",
"targets": [],
"value": ""
}]
2024-05-15 11:17:06 +02:00
}, {
"id": "9ce868ad-3dac-4107-af91-50101a81fec0",
"name": "3-01b créer membre France mobile",
"commands": [{
"id": "51d9b6f8-b86f-4015-a598-094ada8a30b5",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "0895af76-c5ea-4ec4-ac07-14bbd6975753",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "3ca112e4-e2a3-4c3b-a847-792e10ab8024",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "0adb306a-7417-4612-8953-550f6dcd5c5a",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "063873da-123f-4e47-b28a-56487ce81387",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "5f222a62-6267-4c0b-ae0c-f6745481b8b0",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "7af4ff34-31c0-4dcb-af9f-9431b131d1b0",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "63519c69-aeee-4fc3-97c3-e9d01179874e",
"comment": "",
"command": "setWindowSize",
"target": "800x800",
"targets": [],
"value": ""
}, {
"id": "c03fe988-b613-4ef7-9d1a-5bbc00e4f1cb",
"comment": "Catégorie du membre",
"command": "store",
"target": "Membres actifs",
"targets": [],
"value": "cat"
}, {
"id": "64b2e614-66de-46cc-9ad9-e4e9d74deb93",
"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": "93481134-f639-4380-bd7a-65a77dfcfbe9",
"comment": "Adresse E-Mail",
"command": "executeScript",
"target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@ici.fr\"",
"targets": [],
"value": "courriel"
}, {
"id": "ca38c960-6de5-4dbd-bfc0-82af373d741a",
"comment": "Pays",
"command": "store",
"target": "France",
"targets": [],
"value": "pays"
}, {
"id": "82b697c5-8510-4023-89de-f4e9e9e89d0b",
"comment": "Adresse postale",
"command": "store",
"target": "2 rue des arbres",
"targets": [],
"value": "adresse"
}, {
"id": "7bed2a10-1b9d-4031-825f-a738348a62a5",
"comment": "Code postal",
"command": "executeScript",
"target": "return Math.random().toString(10).substring(2, 7);",
"targets": [],
"value": "cp"
}, {
"id": "220fa2f4-71df-4843-8670-a8cff7d5ce38",
"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": "5468a53a-cfca-494e-992f-71cff6775658",
"comment": "Numéro de téléphone",
"command": "executeScript",
"target": "return '0' + Math.random().toString(10).substring(2, 11);",
"targets": [],
"value": "tel"
}, {
"id": "132df784-6dde-497b-985a-673b4bb29b2b",
"comment": "Inscription à la lettre d'information",
"command": "executeScript",
"target": "return false",
"targets": [],
"value": "lettre"
}, {
"id": "7970d807-c9c0-448f-9d10-ef60470decce",
"comment": "Date d'inscription",
"command": "store",
"target": "02/02/2022",
"targets": [],
"value": "date"
}, {
"id": "a849d74a-bdfb-4fc1-ba30-51198b264e2c",
"comment": "Menu Membres",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [],
"value": ""
}, {
"id": "507702e7-e21b-4531-bfc8-6bffe966be80",
"comment": "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": "9a4205e2-310e-4e5d-96a6-2386d562b981",
"comment": "Mémoriser numéro de membre",
"command": "storeValue",
"target": "id=f_numero",
"targets": [],
"value": "numero"
}, {
"id": "7f7b34f6-ce26-4acc-a1d3-f109b0133f49",
"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": "280b9a0c-bca8-4a90-972d-bd30690d3a45",
"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": "1307c38d-08ac-4bb8-8d1b-b36a85460bbe",
"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": "f5920fa4-e748-4a1d-97cc-247f27d81973",
"comment": "",
"command": "click",
"target": "id=f_pays",
"targets": [
["id=f_pays", "id"],
["name=pays", "name"],
["css=#f_pays", "css:finder"],
["xpath=//select[@id='f_pays']", "xpath:attributes"],
["xpath=//dd[6]/select", "xpath:position"]
],
"value": ""
}, {
"id": "ff5696b0-9882-4f8c-9e25-01e1e6f1b0d1",
"comment": "Pays",
"command": "click",
"target": "xpath=//select[@id=\"f_pays\"]/option[contains(text(), \"${pays}\")]",
"targets": [
["css=option:nth-child(69)", "css:finder"],
["xpath=//option[@value='FR']", "xpath:attributes"],
["xpath=//select[@id='f_pays']/option[69]", "xpath:idRelative"],
["xpath=//option[69]", "xpath:position"],
["xpath=//option[contains(.,'France')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "390d97de-6515-4abe-808a-52ecd4214c15",
"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": "626c2320-d858-4879-98b2-5afea52d4ede",
"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": "6bdfa6c2-c275-44cc-8588-5531385f6f44",
"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": "6ddd98d1-b0b3-4eb4-a1fd-f36589b373d5",
"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": "5a9e5acd-fc84-4e87-84ad-53f247817294",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "2ae52102-0f7b-4c15-af8b-ba9e95fe3111",
"comment": "Inscription lettre info",
"command": "click",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": ""
}, {
"id": "93b74d93-ad90-4cc6-b5d8-06e0bc91ddb9",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8781e7f6-3b09-41d2-830b-9ee5b1953fc0",
"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": "81442877-9f24-4f48-8290-e9775af27b3c",
"comment": "pour rendre visible le bouton Enregistrer",
"command": "sendKeys",
"target": "id=f_lettre_infos_1",
"targets": [],
"value": "${KEY_PAGE_DOWN}"
}, {
"id": "ee397391-e5c5-4d92-b077-8b20fadc0740",
"comment": "",
"command": "click",
"target": "name=save",
"targets": [],
"value": ""
}, {
"id": "06691a8d-fe54-4530-8bf0-2c2fa2222a93",
"comment": "Vérif numéro membre",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd",
"targets": [],
"value": "${numero}"
}, {
"id": "5691724e-d531-45b8-ba19-e17ab9e05ed7",
"comment": "Vérif nom",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd",
"targets": [],
"value": "${nom}"
}, {
"id": "532d6f77-f5ab-4de9-91ed-b00cde8606e9",
"comment": "Vérif courriel",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a",
"targets": [],
"value": "${courriel}"
}, {
"id": "fec111e6-918b-4320-be3c-28717096ecf0",
"comment": "Vérif pays",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Pays')]/following-sibling::dd",
"targets": [],
"value": "${pays}"
}, {
"id": "30fcc4e9-dc82-4615-9828-9d9c38438189",
"comment": "Vérif adresse",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Adresse postale')]/following-sibling::dd",
"targets": [],
"value": "${adresse}"
}, {
"id": "916216e5-88e9-4682-a6ae-4f096c808ffc",
"comment": "Vérif CP",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Code postal')]/following-sibling::dd",
"targets": [],
"value": "${cp}"
}, {
"id": "a4c16e25-a450-4d29-b4eb-b1fd05c0fce9",
"comment": "Vérif ville",
"command": "assertText",
"target": "xpath=//dt[contains(.,'Ville')]/following-sibling::dd",
"targets": [],
"value": "${ville}"
}, {
"id": "91183640-00a3-49a0-a32d-a441ec6fff7b",
"comment": "",
"command": "storeText",
"target": "xpath=//dt[contains(.,'Numéro de téléphone')]/following-sibling::dd/a",
"targets": [],
"value": "telephone"
}, {
"id": "f84c46eb-6964-45cb-921b-27b1ee9e8b4e",
"comment": "",
"command": "executeScript",
"target": "return ${telephone}.replace(/\\s/g, \"\")",
"targets": [],
"value": "telephone"
}, {
"id": "436dce52-18e5-4b1d-b040-a09822d16b85",
"comment": "",
"command": "assert",
"target": "tel",
"targets": [],
"value": "${telephone}"
}, {
"id": "811f67c9-b637-4bf2-a1c7-e690967f5131",
"comment": "",
"command": "if",
"target": "${lettre}",
"targets": [],
"value": ""
}, {
"id": "0ddd9058-5648-43e7-8bb2-407bd8293104",
"comment": "inscription lettre : oui",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Oui"
}, {
"id": "eb468162-57f9-470d-a807-01f4366d13df",
"comment": "",
"command": "else",
"target": "",
"targets": [],
"value": ""
}, {
"id": "bac7b54b-65f8-493c-bb81-f17dfea250bc",
"comment": "inscription lettre : non",
"command": "assertText",
"target": "xpath=//dt[contains(text(), 'lettre')]/following-sibling::dd",
"targets": [],
"value": "Non"
}, {
"id": "c3f50146-fbb9-42ff-aef7-6a1c37c84d15",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "e5eb0832-fda4-4809-bb18-1e17653c6f4e",
"comment": "Vérif date inscription",
"command": "assertText",
"target": "xpath=//dt[contains(.,\"Date d'inscription\")]/following-sibling::dd",
"targets": [],
"value": "${date}"
}, {
"id": "43312607-a526-4edd-b846-e6a6fb1e3e4b",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//span[@class=\"datepicker-parent\"]",
"targets": [],
"value": "dp"
}]
}, {
"id": "bcbb872f-d4fc-4702-b518-5cd1a8bdb3f5",
"name": "zz catégories",
"commands": [{
"id": "fa8789bf-470f-4498-b3fe-6f978a5472c7",
"comment": "",
"command": "open",
"target": "http://testpaheko.local.bzh/admin/",
"targets": [],
"value": ""
}, {
"id": "f8bfb545-3b49-49b0-a31a-390fb7b33691",
"comment": "Vérifier si déjà connecté",
"command": "storeXpathCount",
"target": "xpath=//button[@name='login']",
"targets": [],
"value": "connecte"
}, {
"id": "6129ccad-5589-4ab0-870e-e423f3998b48",
"comment": "",
"command": "if",
"target": "${connecte} > 0",
"targets": [],
"value": ""
}, {
"id": "9f0dac3a-794c-457d-a8ae-c539195c2802",
"comment": "identifiant",
"command": "type",
"target": "id=f_id",
"targets": [],
"value": "jckix@free.fr"
}, {
"id": "0d6cdb84-d098-426c-9c46-e43ce6fb9f93",
"comment": "mot de passe",
"command": "type",
"target": "id=f_password",
"targets": [],
"value": "interpeller noircir colis allumer"
}, {
"id": "c6f968ea-b4a7-4b89-b221-84376e54c70b",
"comment": "Connexion",
"command": "click",
"target": "name=login",
"targets": [],
"value": ""
}, {
"id": "2fa96082-af26-4480-b1e1-51e229167d67",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "d9e867d3-a463-4e64-9e43-d945cf68d91a",
"comment": "",
"command": "setWindowSize",
"target": "1000x1019",
"targets": [],
"value": ""
}, {
"id": "66d74a62-d622-4ec0-a4cb-7c7fd506b407",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users')]",
"targets": [
["css=li:nth-child(2) b", "css:finder"],
["xpath=//li[2]/h3/a/b", "xpath:position"],
["xpath=//b[contains(.,'Membres')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4a79191e-c4c8-4a92-b797-7d7722e1d736",
"comment": "",
"command": "click",
"target": "xpath=//a[contains(@href, '/admin/users/new.php')]",
"targets": [
["linkText=Ajouter", "linkText"],
["css=.current li:nth-child(1) > a", "css:finder"],
["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"],
["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"],
["xpath=//li/a", "xpath:position"],
["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4b641991-eedb-4176-a37c-4d0a85e5045f",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "categories_alpha"
}, {
"id": "c0450afd-3299-485e-9eb3-b2ab85daf1f3",
"comment": "",
"command": "executeScript",
"target": "return []",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "98e08f06-67b8-4f1c-8239-6a54d0234c95",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//select[@id=\"f_id_category\"]/option",
"targets": [],
"value": "nb_categories"
}, {
"id": "d2d05a94-f4ee-4de3-ac47-214cf2e41523",
"comment": "",
"command": "executeScript",
"target": "return 1",
"targets": [],
"value": "i"
}, {
"id": "b4271895-cd39-4736-98df-68305fb123e9",
"comment": "",
"command": "while",
"target": "${i} <= ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "6ab6904a-8b83-4148-bcc9-33eb807aa5c4",
"comment": "",
"command": "storeText",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]",
"targets": [],
"value": "cat"
}, {
"id": "a6a239ef-4432-4b90-b6da-ef5b46592333",
"comment": "",
"command": "executeScript",
"target": "return ${categories_alpha}.concat(${cat})",
"targets": [],
"value": "categories_alpha"
}, {
"id": "a69be34d-71c0-436e-9d54-ff18fbef103c",
"comment": "",
"command": "storeAttribute",
"target": "xpath=//select[@id=\"f_id_category\"]/option[${i}]@value",
"targets": [],
"value": "num_cat"
}, {
"id": "751aae9c-fcc4-44c7-a049-884963981c29",
"comment": "",
"command": "executeScript",
"target": "return ${numeros_alpha}.concat(${num_cat})",
"targets": [],
"value": "numeros_alpha"
}, {
"id": "335345c1-50ec-49c3-9a31-f8dbd38bed78",
"comment": "",
"command": "echo",
"target": "${num_cat} : ${cat}",
"targets": [],
"value": ""
}, {
"id": "9d6293a8-63bc-48b7-8808-2aac0f347a34",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "e2283ec0-00fd-4c07-987d-ec96032df8fa",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "00db03e5-1e51-4a28-bfaf-06e1eac26a43",
"comment": "Trier les catégories par numéro",
"command": "executeScript",
"target": "let tab = []; for (let i = 0; i < ${numeros_alpha}.length; ++i) { let o = Object(); o.num=${numeros_alpha}[i]; o.cat=${categories_alpha}[i]; tab.push(o);} ; tab.sort((a, b) => { return a.num - b.num; }); let categs = []; tab.forEach((e) => { categs.push(e.cat); }); return categs;",
"targets": [],
"value": "categories_num"
}, {
"id": "a7fd532c-fb17-4042-b101-8ea51aaba965",
"comment": "",
"command": "executeScript",
"target": "return 0",
"targets": [],
"value": "i"
}, {
"id": "3e85589e-6011-4f7b-9046-79a0163caec9",
"comment": "",
"command": "while",
"target": "${i} < ${nb_categories}",
"targets": [],
"value": ""
}, {
"id": "5e909f07-e8f9-4199-9a82-51048300f5b2",
"comment": "",
"command": "executeScript",
"target": "return ${categories_num}.at(${i})",
"targets": [],
"value": "categorie"
}, {
"id": "9db7adab-7a4e-403e-bd3b-4837e28aab34",
"comment": "",
"command": "executeScript",
"target": "return ${i} + 1",
"targets": [],
"value": "i"
}, {
"id": "61d7a3d8-4e33-427c-9289-fffffc2bfb1c",
"comment": "",
"command": "echo",
"target": "${i} : ${categorie}",
"targets": [],
"value": ""
}, {
"id": "385ca0c6-9f1e-47b8-93d0-ddf8c81fb06c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
2024-04-22 11:19:25 +02:00
}],
"suites": [{
"id": "6bdd4e16-7197-4388-9a5f-350523eb6c98",
"name": "1 Installation",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-15 11:29:19 +02:00
"tests": ["b3fdeef5-2f6f-46e8-a9db-5995bbf94957", "b468a6eb-1199-460a-95f8-820df1f2c2f9", "d6791401-e683-4d44-9513-24c52f1c6517"]
2024-04-22 11:19:25 +02:00
}, {
"id": "7fc1abfa-640b-438d-8357-d16f42212a22",
"name": "3 Créer membre",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
2024-05-15 11:17:06 +02:00
"tests": ["efad291c-7700-4c1d-a0c7-393264364aa1", "9ce868ad-3dac-4107-af91-50101a81fec0", "a10913d7-dd6d-4c13-9bda-6293705343f8", "542187b1-45cd-4f09-bad6-b1220fbfc754", "efb8a434-ee82-48e0-a770-d4a668e28eec", "71fe09f0-51bb-4d2f-8c66-91ec5e235105", "895513b5-888a-4ea2-8036-5a97569cd6df", "20360774-e683-425b-a9b9-350dc0fb6ef3", "91ad3d23-dd66-4084-beeb-ea89ec4bfabc", "c05cb267-660d-46ab-8fe9-a7e042aa9c8f", "a6af2537-7860-43b2-92b6-1a93bb173a6c", "155a53f2-766f-4748-b11f-722b520df2eb", "4369d68b-3e2c-470e-b2b1-5a0825c35aa0", "077fea95-219b-4ab2-a10d-800ec7f39fb1"]
2024-04-22 11:19:25 +02:00
}, {
"id": "76296e16-66cd-4d62-b008-776e204271fe",
"name": "xx Attente",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["d33d67f7-28a1-470b-a59a-d7329a6dc09d", "89d56a6e-79b3-40e4-984e-0f7a92f2a83b"]
}, {
"id": "b5ce327c-a788-4e0c-98c5-af0ba1994c90",
"name": "zz essais",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["5a23a860-bc10-46d8-9f98-177430d4e04a", "fd7a4ceb-9488-492b-8c6c-790258956c77", "898d7888-4934-41a8-87bd-ca835189f143", "89d56a6e-79b3-40e4-984e-0f7a92f2a83b", "7760e4cc-0406-4a07-85aa-96a62e5140a1", "95f14ce1-1f97-4fc0-97d0-14fa6d0c999d"]
2024-04-22 11:19:25 +02:00
}, {
"id": "d35b71cd-b332-4210-ad59-1a0742386aac",
"name": "2 Connexion",
2024-04-22 11:19:25 +02:00
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["0849fbc2-a4f9-48a5-8698-afec02eb558f", "87aa0ef5-bb8c-496d-a196-0f92278e98b1", "c36d64ef-b5db-4c15-90aa-204431553d05"]
}, {
"id": "3b9945ba-2eb9-4f38-82ec-9a225b926d5c",
"name": "4 Lister membres",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": []
}, {
"id": "f7119734-cb63-4c70-b0d6-6c1ff8281761",
"name": "test",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["1e422ed1-1291-44bc-beb9-6028a68474e7"]
2024-04-22 11:19:25 +02:00
}],
"urls": ["http://testpaheko.local.bzh/"],
"plugins": []
}