[ { @@ -864,10 +865,11 @@
1.3. Trigger a new Run
URL: <base>/runs
Method: POST
Megatest Cmd: megatest -runtests % -target <target> :runname <run_name> -run
Request Params:
{"target": "target_value", "runname" : "runname", "test_pattern": "optional test pattern"}
1.4. Get perticular Run
URL: <base>/runs/:id
Method: GET
Filter Params: testpatt
Megatest Cmd: megatest -start-dir <path to megatest area> -list-runs <runname> -target % -dumpmode json -fields runs:runname,id+tests:state,status:id
Response:
[ { @@ -952,10 +955,11 @@
1.6. Get List of tests within a run
URL: <base>/runs/:id/tests
Method: GET
Megatest Cmd: megatest -start-dir <path to megatest area> -list-runs <runname> -target % -dumpmode json -fields runs:runname,id+tests:state,status:id
Response:
[ "tests" : @@ -979,10 +983,11 @@
1.8. Get perticular test that belongs to a Runs
URL: <base>/runs/:id/tests/:id
Method: GET
Megatest Cmd: megatest -start-dir <path to megatest area> -list-runs <runname> -target % -testpattern <pattern> -dumpmode json -fields runs:runname,id+tests:state,status:id
Response:
{"id": "4", "name":"test1", "item_path": "", "shortdir": "/temp/foo/bar/target2/runname2/test1", "final_logf": "megatest-rollup-test1.html", "status": "PASS"}