Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在报表门户上查看来自gradle的TestNG测试结果xml结果?_Gradle_Kotlin_Automation_Testng_Reportportal - Fatal编程技术网

如何在报表门户上查看来自gradle的TestNG测试结果xml结果?

如何在报表门户上查看来自gradle的TestNG测试结果xml结果?,gradle,kotlin,automation,testng,reportportal,Gradle,Kotlin,Automation,Testng,Reportportal,我使用带有Kotlin、TestNG和gradle的报表门户作为构建工具 编译组:'com.epam.reportportal',名称:'agent java testng',版本:'4.2.0' 当我通过gradle包装器运行测试时,它会在运行后在build文件夹下生成一堆工件。我对/build/test results/下的.xml文件内容特别感兴趣 因为它有一个带有所有标准输出的标记。这有关于测试失败的有用上下文,例如失败之前触发了哪些API调用/流 有没有办法让这些信息显示在报表门户中

我使用带有Kotlin、TestNG和gradle的报表门户作为构建工具

编译组:'com.epam.reportportal',名称:'agent java testng',版本:'4.2.0'

当我通过gradle包装器运行测试时,它会在运行后在build文件夹下生成一堆工件。我对
/build/test results/
下的
.xml
文件内容特别感兴趣

因为它有一个带有所有标准输出的
标记。这有关于测试失败的有用上下文,例如失败之前触发了哪些API调用/流

有没有办法让这些信息显示在报表门户中

格雷德尔先生
存储库{
jcenter()
mavenCentral()
mavenLocal()
...
maven{url“http://dl.bintray.com/epam/reportportal" }
...
}
任务运行测试(类型:测试){
useTestNG(){
testLogging.showStandardStreams=true
useDefaultListeners=false
听众
repositories {
    jcenter()
    mavenCentral()
    mavenLocal()

    ...
    maven { url "http://dl.bintray.com/epam/reportportal" }
    ...
}


task runTests(type: Test) {
    useTestNG() {
        testLogging.showStandardStreams = true
        useDefaultListeners = false
        listeners << 'com.epam.reportportal.testng.ReportPortalTestNGListener'
        includeGroups System.getProperty('tag', 'NONE')
    }
}