apifoxcli导入

更新场景:
检查格式
apifox cli-schema validate test-scenario-update --file .\apifox_l203.json

更新
Remove-Item Env:HTTP_PROXY -ErrorAction SilentlyContinue; apifox test-scenario update 8629949 --project 8717526 --file .\apifox_l203.json
更新结束,回传检查
Remove-Item Env:HTTP_PROXY -ErrorAction SilentlyContinue; apifox test-scenario get 8629949 --project 8717526 --with-case-detail | Out-File .\apifox_l203_check.json -Encoding utf8

powershell -NoProfile -ExecutionPolicy Bypass -File .\docs\apifox_auto\pull_all_test_scenarios.ps1 -ProjectId 8717526 -OutDir .\docs\apifox_auto -NoCaseDetail

apifox cli-schema validate test-scenario-update --file "d:\Desktop\Medic\MedicTechServer\docs\预约场景用例\L0.json"

创建一个新场景:
创建场景
apifox test-scenario create --project 8717526 --file "d:\Desktop\Medic\MedicTechServer\docs\预约场景用例\L0.json"
create 只创建“场景外壳/元数据”,不会把 steps 一起保存进去

确认场景存在:
apifox test-scenario view 8677125 --project 8717526

把具体的步骤写进去
apifox test-scenario update 8677125 --project 8717526 --file "d:\Desktop\Medic\MedicTechServer\docs\预约场景用例\L0.json"
回写检查
apifox test-scenario get 8677125 --project 8717526 --with-case-detail | Out-File "d:\Desktop\Medic\MedicTechServer\docs\预约场景用例\L0_check.json" -Encoding utf8

posted @ 2026-08-27 14:24  爱晒太阳的懒猫。。  阅读(5)  评论(0)    收藏  举报