|
|
|
@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired |
|
|
|
import org.springframework.stereotype.Component |
|
|
|
import org.springframework.stereotype.Component |
|
|
|
import tv.anypoint.ApplicationProperties |
|
|
|
import tv.anypoint.ApplicationProperties |
|
|
|
import tv.anypoint.dsl.exception.httpValidationError |
|
|
|
import tv.anypoint.dsl.exception.httpValidationError |
|
|
|
|
|
|
|
import tv.anypoint.dsl.model.LogInfo |
|
|
|
import tv.anypoint.dsl.model.RecordingInfo |
|
|
|
import tv.anypoint.dsl.model.RecordingInfo |
|
|
|
import tv.anypoint.dsl.model.http.AdsResponse |
|
|
|
import tv.anypoint.dsl.model.http.AdsResponse |
|
|
|
import tv.anypoint.dsl.model.http.AssetConvertResponse |
|
|
|
import tv.anypoint.dsl.model.http.AssetConvertResponse |
|
|
|
@ -36,12 +37,13 @@ abstract class TestCase { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
if (tc.reboot) { |
|
|
|
if (tc.reboot) { |
|
|
|
// TODO |
|
|
|
|
|
|
|
logger.info("[TC-${tc.number}] reboot STB") |
|
|
|
logger.info("[TC-${tc.number}] reboot STB") |
|
|
|
|
|
|
|
// TODO |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
logger.info("[TC-${tc.number}] get systemInfo STB") |
|
|
|
logger.info("[TC-${tc.number}] get systemInfo STB") |
|
|
|
|
|
|
|
// TODO |
|
|
|
} |
|
|
|
} |
|
|
|
startToCollectLog() |
|
|
|
startToDumpLog() |
|
|
|
|
|
|
|
|
|
|
|
auth() |
|
|
|
auth() |
|
|
|
ads() |
|
|
|
ads() |
|
|
|
@ -51,7 +53,7 @@ abstract class TestCase { |
|
|
|
test() |
|
|
|
test() |
|
|
|
stopRecording(tc) |
|
|
|
stopRecording(tc) |
|
|
|
|
|
|
|
|
|
|
|
stopToCollectLog() |
|
|
|
stopToDumpLog() |
|
|
|
} catch (e: Exception) { |
|
|
|
} catch (e: Exception) { |
|
|
|
logger.error("[TC-${tc.number}] FAILED!! ${e.message}", e) |
|
|
|
logger.error("[TC-${tc.number}] FAILED!! ${e.message}", e) |
|
|
|
tc.result = false |
|
|
|
tc.result = false |
|
|
|
@ -63,13 +65,13 @@ abstract class TestCase { |
|
|
|
tc.result = true |
|
|
|
tc.result = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun startToCollectLog() { |
|
|
|
private fun startToDumpLog() { |
|
|
|
tc.logAbsoluteFilePath = "applicationProperties.filePath/TC-${tc.number}.log" |
|
|
|
tc.logInfo = LogInfo("${applicationProperties.filePath}/TC-${tc.number}.log") |
|
|
|
// TODO |
|
|
|
// TODO 이 함수 호출된 후 main.log 에서 쌓이는 로그를 TC-${tc.number}.log 파일 새로 만들어서 적재 시작 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun stopToCollectLog() { |
|
|
|
private fun stopToDumpLog() { |
|
|
|
// TODO |
|
|
|
// TODO main.log >> TC-${tc.number}.log 적재 종료 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun auth() { |
|
|
|
private fun auth() { |
|
|
|
|