TestName: "ランナースクリプト動作確認(ローカル&httpbin)"
# 1. 基本設定: ローカルPCへのPing (Command型のテスト)
Setup:
- Type: "Command"
Command: "ping"
Arguments: "127.0.0.1 -n 1"
# 2. 基本試験: 公開テストAPIへのGETリクエスト (API型のテスト)
BaseSteps:
- Type: "API"
Target: "DUMMY-API"
Method: "GET"
Endpoint: "https://httpbin.org/get"
Assert:
ResponseContains: "url"
# 3. ループ試験: 3種類のJSONデータを順番にPOSTする
LoopBlock:
Target: "DUMMY-API"
Method: "POST"
Endpoint: "https://httpbin.org/post"
PayloadFormat: "raw_json"
Configs:
- '{ "action": "accept", "test_id": 1 }'
- '{ "action": "deny", "test_id": 2 }'
- '{ "action": "ipsec", "test_id": 3 }'
# POST直後に毎回実行される確認コマンド
LoopSteps:
- Type: "Command"
Command: "curl.exe"
Arguments: "-s -o /dev/null -w '%{http_code}' https://httpbin.org/status/200"
# 4. 後片付け: 逆順実行の確認 (Teardownフェーズ)
Teardown:
- Type: "Command"
Command: "ping"
Arguments: "127.0.0.1 -n 1"
- Type: "Command"
Command: "ping"
Arguments: "127.0.0.1 -n 2"