почему команда TIMES внутри do l oop повторяется только в первый раз - Selenium IDE - PullRequest
0 голосов
/ 17 апреля 2020

Здесь я пытаюсь ввести команду TIMES в DO l oop. $ {checktimes} должен быть равен 9 к концу DO l oop. Однако, если я выполню тест, он только при первом запуске выполнит команду TIMES .

Снимок экрана

"name": "times nested inside do loop",
"commands": [{
  "id": "009cf10d-159f-4cd3-b04f-f9645b45ef23",
  "comment": "",
  "command": "executeScript",
  "target": "return 0",
  "targets": [],
  "value": "check"
}, {
  "id": "00a0c93e-ef61-4662-8631-92dea81914f8",
  "comment": "",
  "command": "executeScript",
  "target": "return 0",
  "targets": [],
  "value": "checktimes"
}, {
  "id": "0befe0cb-1cb0-4338-9728-4af6bc367e99",
  "comment": "",
  "command": "do",
  "target": "",
  "targets": [],
  "value": ""
}, {
  "id": "0785491f-ead8-40b5-9f5b-7107708b3248",
  "comment": "",
  "command": "executeScript",
  "target": "return ${check} + 1",
  "targets": [],
  "value": "check"
}, {
  "id": "7123bbfe-1088-493a-a296-00f2f97e44ac",
  "comment": "",
  "command": "times",
  "target": "3",
  "targets": [],
  "value": ""
}, {
  "id": "bf9f98a5-0c5c-4c31-b8e9-b0d3d3ddbdb0",
  "comment": "",
  "command": "executeScript",
  "target": "return ${checktimes} + 1",
  "targets": [],
  "value": "checktimes"
}, {
  "id": "7dcdf705-2f54-4b09-85be-0b97a29f2fa2",
  "comment": "",
  "command": "end",
  "target": "",
  "targets": [],
  "value": ""
}, {
  "id": "fa5f94e2-802c-40a4-a236-201e50ec39f3",
  "comment": "",
  "command": "repeatIf",
  "target": "${check}<3",
  "targets": [],
  "value": ""
}, {
  "id": "553fd165-e353-4b97-bcd6-13817b9dd056",
  "comment": "",
  "command": "assert",
  "target": "check",
  "targets": [],
  "value": "3"
}, {
  "id": "86259120-cf74-44ff-bafa-ff53d474311a",
  "comment": "",
  "command": "assert",
  "target": "checktimes",
  "targets": [],
  "value": "9"
}, {
  "id": "44a5dcf9-b185-417c-84f0-a1ebdf57c91f",
  "comment": "",
  "command": "//Note - only does the times loop on first pass",
  "target": "",
  "targets": [],
  "value": ""
}]

}

Здесь я пытаюсь ввести команду TIMES в DO l oop. $ {checktimes} должен быть равен 9 к концу DO l oop. Тем не менее, если я выполню тест, он только запускает команду TIMES во время первого прохода.

...