4-09 amélioration cas parents homonymes

This commit is contained in:
Jean-Christophe Engel 2024-06-12 10:25:20 +02:00
parent 9dde5df58c
commit 0d9f5ceaf2

View File

@ -13614,7 +13614,7 @@
"value": "" "value": ""
}, { }, {
"id": "17b704fb-fc42-42ab-b627-4fb6e5413e2c", "id": "17b704fb-fc42-42ab-b627-4fb6e5413e2c",
"comment": "et le sélectionner", "comment": "sélectionner le parent",
"command": "click", "command": "click",
"target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${parent}\"]", "target": "xpath=//tr[@class=\"clickable\"]/th[normalize-space(text())=\"${parent}\"]",
"targets": [ "targets": [
@ -13688,63 +13688,63 @@
}, { }, {
"id": "9da881aa-2177-44bc-ab5f-f89b53ca31e5", "id": "9da881aa-2177-44bc-ab5f-f89b53ca31e5",
"comment": "Afficher les infos triées par parent croissant", "comment": "Afficher les infos triées par parent croissant",
"command": "echo", "command": "//echo",
"target": "Afficher les infos triées par parent croissant", "target": "Afficher les infos triées par parent croissant",
"targets": [], "targets": [],
"value": "" "value": ""
}, { }, {
"id": "72c255da-0e11-4604-96f8-425079e7bc61", "id": "72c255da-0e11-4604-96f8-425079e7bc61",
"comment": "", "comment": "",
"command": "executeScript", "command": "//executeScript",
"target": "return 0", "target": "return 0",
"targets": [], "targets": [],
"value": "i" "value": "i"
}, { }, {
"id": "fa0cf471-e20c-4572-8963-9fed96bac06f", "id": "fa0cf471-e20c-4572-8963-9fed96bac06f",
"comment": "", "comment": "",
"command": "while", "command": "//while",
"target": "${i} < ${lesnumeros_parent_asc}.length", "target": "${i} < ${lesnumeros_parent_asc}.length",
"targets": [], "targets": [],
"value": "" "value": ""
}, { }, {
"id": "eec088e5-f1dd-4eab-b062-6ea4ec582099", "id": "eec088e5-f1dd-4eab-b062-6ea4ec582099",
"comment": "", "comment": "",
"command": "executeScript", "command": "//executeScript",
"target": "return ${lesnumeros_parent_asc}.at(${i})", "target": "return ${lesnumeros_parent_asc}.at(${i})",
"targets": [], "targets": [],
"value": "num" "value": "num"
}, { }, {
"id": "4eda4c63-bd3f-4fae-a474-6fe92ccb3eb7", "id": "4eda4c63-bd3f-4fae-a474-6fe92ccb3eb7",
"comment": "", "comment": "",
"command": "executeScript", "command": "//executeScript",
"target": "return ${lesnoms_parent_asc}.at(${i})", "target": "return ${lesnoms_parent_asc}.at(${i})",
"targets": [], "targets": [],
"value": "nom" "value": "nom"
}, { }, {
"id": "b6b08f51-57ab-40ab-9758-f104a8481754", "id": "b6b08f51-57ab-40ab-9758-f104a8481754",
"comment": "", "comment": "",
"command": "executeScript", "command": "//executeScript",
"target": "return ${lesparents_asc}.at(${i})", "target": "return ${lesparents_asc}.at(${i})",
"targets": [], "targets": [],
"value": "parent" "value": "parent"
}, { }, {
"id": "0a842c8d-df0b-4f70-97d2-4690b2384f56", "id": "0a842c8d-df0b-4f70-97d2-4690b2384f56",
"comment": "", "comment": "",
"command": "echo", "command": "//echo",
"target": "${num} : ${nom}, ${parent}", "target": "${num} : ${nom}, ${parent}",
"targets": [], "targets": [],
"value": "" "value": ""
}, { }, {
"id": "07951d01-ae4c-4e11-b192-5968fa2ae5e6", "id": "07951d01-ae4c-4e11-b192-5968fa2ae5e6",
"comment": "", "comment": "",
"command": "executeScript", "command": "//executeScript",
"target": "return ${i} + 1", "target": "return ${i} + 1",
"targets": [], "targets": [],
"value": "i" "value": "i"
}, { }, {
"id": "d7d8e83e-9b16-4562-8546-c44a7afb3de7", "id": "d7d8e83e-9b16-4562-8546-c44a7afb3de7",
"comment": "", "comment": "",
"command": "end", "command": "//end",
"target": "", "target": "",
"targets": [], "targets": [],
"value": "" "value": ""
@ -13785,7 +13785,7 @@
"value": "nb_membres_cat" "value": "nb_membres_cat"
}, { }, {
"id": "a31f76d4-26bb-4d25-afa6-ff804e795f44", "id": "a31f76d4-26bb-4d25-afa6-ff804e795f44",
"comment": "Vérifier nombre de membres", "comment": "",
"command": "assert", "command": "assert",
"target": "nb_noms", "target": "nb_noms",
"targets": [], "targets": [],
@ -13820,7 +13820,7 @@
"value": "" "value": ""
}, { }, {
"id": "d2b1eec6-f76e-411d-bf2a-245499ff8589", "id": "d2b1eec6-f76e-411d-bf2a-245499ff8589",
"comment": "au moins 2 membres", "comment": "",
"command": "if", "command": "if",
"target": "${nb_membres_cat} >= 2", "target": "${nb_membres_cat} >= 2",
"targets": [], "targets": [],
@ -13848,18 +13848,39 @@
"value": "" "value": ""
}, { }, {
"id": "c725c982-1e45-4768-8b0b-04ef0dc4a525", "id": "c725c982-1e45-4768-8b0b-04ef0dc4a525",
"comment": "premier parent", "comment": "",
"command": "storeText", "command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[4]",
"targets": [], "targets": [],
"value": "premier" "value": "premier_parent"
}, { }, {
"id": "68ef9b49-6413-4da8-9532-d92cb8e7d32e", "id": "68ef9b49-6413-4da8-9532-d92cb8e7d32e",
"comment": "", "comment": "",
"command": "if", "command": "if",
"target": "${premier} != \"\"", "target": "${premier_parent} != \"\"",
"targets": [], "targets": [],
"value": "" "value": ""
}, {
"id": "9473ae96-2a7f-4555-aa81-5627b4d821d4",
"comment": "",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//th//span",
"targets": [],
"value": "nom_premier"
}, {
"id": "539d8f10-6e95-4f91-9e67-57c8e1bf5647",
"comment": "",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numero1"
}, {
"id": "b9a4b1c3-55c6-45ca-8cc6-9addc0e5c52b",
"comment": "",
"command": "executeScript",
"target": "return Number(${numero1})",
"targets": [],
"value": "numero_premier"
}, { }, {
"id": "7887e3f2-b52e-4c0a-b793-246e9b15a00b", "id": "7887e3f2-b52e-4c0a-b793-246e9b15a00b",
"comment": "trouvé", "comment": "trouvé",
@ -13917,19 +13938,40 @@
"targets": [], "targets": [],
"value": "" "value": ""
}, { }, {
"id": "e6d4f77a-baa0-41d6-9387-b615dee8bfe0", "id": "f8991fa9-f588-4a37-bd5c-a3ad1e1b757c",
"comment": "dernier parent", "comment": "",
"command": "storeText", "command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[4]",
"targets": [], "targets": [],
"value": "dernier" "value": "dernier_parent"
}, { }, {
"id": "d769de03-c678-4f0a-a261-c1ad7009c890", "id": "d769de03-c678-4f0a-a261-c1ad7009c890",
"comment": "", "comment": "",
"command": "if", "command": "if",
"target": "${dernier} != \"\"", "target": "${dernier_parent} != \"\"",
"targets": [], "targets": [],
"value": "" "value": ""
}, {
"id": "20a8bada-4099-4f0b-bba8-59bf4f3337b6",
"comment": "",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::th",
"targets": [],
"value": "nom_dernier"
}, {
"id": "1b8c7bd8-5e60-48cc-b4d6-ad69d7007d3b",
"comment": "",
"command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]//span",
"targets": [],
"value": "numero2"
}, {
"id": "eeff9c30-04a0-4b82-824b-2f63cdaec0f6",
"comment": "",
"command": "executeScript",
"target": "return Number(${numero2})",
"targets": [],
"value": "numero_dernier"
}, { }, {
"id": "951a994e-9aaa-4805-9044-15083e1500b6", "id": "951a994e-9aaa-4805-9044-15083e1500b6",
"comment": "trouvé", "comment": "trouvé",
@ -13976,7 +14018,7 @@
"id": "48dc8b1b-dd82-46e0-97ef-831866c8ddcb", "id": "48dc8b1b-dd82-46e0-97ef-831866c8ddcb",
"comment": "", "comment": "",
"command": "if", "command": "if",
"target": "${premier}.localeCompare(${dernier}) > 0", "target": "${premier_parent}.localeCompare(${dernier_parent}) > 0 || (${premier_parent}.localeCompare(${dernier_parent}) == 0 && ${nom_premier}.localeCompare(${nom_dernier}) > 0) || (${premier_parent}.localeCompare(${dernier_parent}) == 0 && ${nom_premier}.localeCompare(${nom_dernier}) == 0 && ${numero_premier} > ${numero_dernier})",
"targets": [], "targets": [],
"value": "" "value": ""
}, { }, {
@ -15098,7 +15140,7 @@
"id": "d3ed351b-f067-486d-bf7c-5f67d4727443", "id": "d3ed351b-f067-486d-bf7c-5f67d4727443",
"comment": "", "comment": "",
"command": "storeText", "command": "storeText",
"target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]/td[@class=\"num\"]/following-sibling::td[2]", "target": "xpath=//table[@class=\"list\"]/tbody/tr[${num}]//td[4]",
"targets": [], "targets": [],
"value": "dernier_parent" "value": "dernier_parent"
}, { }, {