Suppression test 3-01b créer membre mobile
This commit is contained in:
parent
e723dd4086
commit
49b337d83f
442
paheko.side
442
paheko.side
@ -6870,448 +6870,6 @@
|
||||
"targets": [],
|
||||
"value": ""
|
||||
}]
|
||||
}, {
|
||||
"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://test.paheko.localhost/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": "573e0c0d-763b-4403-9b0a-4685604cabdb",
|
||||
"name": "4-02 lister membres sauf catégories cachées",
|
||||
|
Loading…
Reference in New Issue
Block a user