test07_if_conditional.json 685 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "version": "3.15",
  3. "name": "Test07: If Conditional Skip",
  4. "registry": {
  5. "params": ["shouldRun(STRING)"],
  6. "vars": ["$result(STRING)", "$skipped(STRING)"]
  7. },
  8. "steps": [
  9. {
  10. "id": "Set_Init",
  11. "target": "$result",
  12. "value": "\"not_executed\"",
  13. "next": "Set_Conditional"
  14. },
  15. {
  16. "id": "Set_Conditional",
  17. "if": "=shouldRun == \"yes\"",
  18. "target": "$result",
  19. "value": "\"executed\"",
  20. "next": "Set_Skipped"
  21. },
  22. {
  23. "id": "Set_Skipped",
  24. "if": "=shouldRun != \"yes\"",
  25. "target": "$skipped",
  26. "value": "\"this_was_skipped\"",
  27. "next": "Stop_End"
  28. },
  29. { "id": "Stop_End" }
  30. ]
  31. }