tc_while_loop.json 738 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "version": "3.16",
  3. "name": "TC While Loop: Counter 0 to 4",
  4. "registry": {
  5. "params": [],
  6. "vars": ["$counter(INT)", "$log([STRING])"]
  7. },
  8. "steps": [
  9. {
  10. "id": "Set_Init",
  11. "target": "$counter",
  12. "value": "0",
  13. "next": "Loop_Count"
  14. },
  15. {
  16. "id": "Loop_Count",
  17. "while": "=$counter < 5",
  18. "maxIterations": 10,
  19. "mode": "serial",
  20. "children": ["Set_Log"],
  21. "next": "Stop_End"
  22. },
  23. {
  24. "id": "Set_Log",
  25. "target": "$log[_index]",
  26. "value": "=\"iter_\" + $counter",
  27. "next": "Set_Inc"
  28. },
  29. {
  30. "id": "Set_Inc",
  31. "target": "$counter",
  32. "value": "=$counter + 1",
  33. "next": "RETURN"
  34. },
  35. { "id": "Stop_End" }
  36. ]
  37. }