Skip to content

Test Plugin

Default base URL: http://localhost:8180, prefix: /test

MethodPathDescription
GET/test/Current jobs
GET/test/integrationIntegration test jobs
GET/test/stressStress test jobs
GET/test/casesTest case list
GET/test/api/casesTest case list (standard response)
GET/test/api/stress/countStress push/pull counters
POST/test/api/cases/executeExecute test cases
POST/test/api/stress/push/{protocol}/{count}Start/scale push stress test
POST/test/api/stress/pull/{protocol}/{count}Start/scale pull stress test
POST/test/api/stress/stop/pushStop push stress test
POST/test/api/stress/stop/pullStop pull stress test
POST/test/stopStop a specific job

Returns current job list.

Response fields:

FieldTypeDescription
jobsarrayJob list
countintJob count

Returns stress push/pull counters.

Response example:

{
"code": 0,
"message": "success",
"data": {
"pushCount": 10,
"pullCount": 20
}
}
POST /test/api/cases/execute
Content-Type: application/json
{ "names": ["basic_rtmp_to_flv", "webrtc_publish"] }
FieldTypeRequiredDescription
namesstring[]YesTest case names to execute

4) POST /test/api/stress/push/{protocol}/{count}

Section titled “4) POST /test/api/stress/push/{protocol}/{count}”
POST /test/api/stress/push/rtmp/100
Content-Type: application/json
{
"remoteURL": "rtmp://localhost/live/stress/%d",
"streamPath": "live/source"
}

Path params:

ParamTypeRequiredDescription
protocolstringYesrtmp/rtsp/webrtc etc
countintYesTarget push concurrency

Body fields:

FieldTypeRequiredDescription
remoteURLstringNoTarget URL, %d placeholder supported
streamPathstringNoSource stream path, default live/source

5) POST /test/api/stress/pull/{protocol}/{count}

Section titled “5) POST /test/api/stress/pull/{protocol}/{count}”
POST /test/api/stress/pull/rtmp/100
Content-Type: application/json
{
"remoteURL": "rtmp://localhost/live/source",
"testMode": 0
}

Body fields:

FieldTypeRequiredDescription
remoteURLstringNoPull source URL, %d supported
testModeintNoTest mode, default 0
{ "id": 123 }
FieldTypeRequiredDescription
iduint64YesJob ID
{
"code": 0,
"message": "success",
"data": {
"pushCount": 100,
"protocol": "rtmp"
}
}
HTTP StatusScenario
400Invalid parameters (e.g. non-numeric count)
404Route not found
500Stream manager / service registry unavailable