in src/main/kotlin/com/jetbrains/plugin/jtreg/configuration/ConfigurationHelper.kt [33:71]
fun prepareTestData(data: TestData): Element {
val jtreg = Element("jtreg")
if (data.vmSettings.envVars.isNotEmpty()) {
EnvironmentVariablesComponent.writeExternal(jtreg, data.vmSettings.envVars)
}
jtreg.setAttribute("testMode", data.testMode.toString())
jtreg.setAttribute("testCategory", data.testCategory)
jtreg.setAttribute("reportDir", data.reportDir)
jtreg.setAttribute("excludeList", data.excludeList)
jtreg.setAttribute("concurrency", data.concurrency.toString())
jtreg.setAttribute("timeoutFactor", data.timeoutFactor.toString())
jtreg.setAttribute("timeLimit", data.timeLimit.toString())
jtreg.setAttribute("lockFile", data.lock)
jtreg.setAttribute("ignoreMode", data.ignoreMode.toString())
jtreg.setAttribute("keyword", data.keyword)
val weston = Element("weston")
weston.setAttribute("useWeston", data.weston.useWeston.toString())
weston.setAttribute("westonScreens", data.weston.screensCount.toString())
weston.setAttribute("westonScreenWidth", data.weston.screenWidth.toString())
weston.setAttribute("westonScreenHeight", data.weston.screenHeight.toString())
weston.setAttribute("wakeFieldPath", data.weston.wakefieldPath)
jtreg.addContent(weston)
val testVM = Element("testVM")
testVM.setAttribute("allowSecurityManager", data.vmSettings.allowSecurityManager.toString())
testVM.setAttribute("testJavaOptions", data.vmSettings.javaOptions)
testVM.setAttribute("nativeTestLibraryPath", data.vmSettings.nativeLibPath)
jtreg.addContent(testVM)
val repeat = Element("repeat")
repeat.setAttribute("repeatMode", data.repeat.mode)
repeat.setAttribute("repeatCount", data.repeat.count.toString())
repeat.setAttribute("maxRepeatCount", data.repeat.maxCount.toString())
jtreg.addContent(repeat)
return jtreg
}