简体   繁体   English

当我通过 jenkins 运行我的测试时,chrome 浏览器没有被触发并且还显示 testng.xml 文件不匹配

[英]When I run my test through jenkins chrome browser is not triggered and also showing testng.xml file is not matching

在此处输入图像描述

Chrome browser is not launching when I click the build now link in jenkins, but showing build is success.当我单击 jenkins 中的立即构建链接时,Chrome 浏览器未启动,但显示构建成功。

Solution provided in Jenkins: Selenium GUI tests are not visible on Windows are not working for me. Jenkins 中提供的解决方案:Selenium GUI 测试在 Windows 上不可见,对我不起作用。 Someone please help me in this.有人请帮助我。

Started by user Karthick Ragu
Running as SYSTEM
Building in workspace C:\Program Files\Jenkins\workspace\killerFramework
Parsing POMs
Established TCP socket on 51445
[karthick.framework] $ "C:\Program Files\Java\jdk1.8.0_181/bin/java" -cp "C:\Program Files\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.13.jar;C:\Program Files\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven/conf/logging" jenkins.maven3.agent.Maven35Main "C:\Program Files\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven" "C:\Program Files\Jenkins\war\WEB-INF\lib\remoting-3.35.jar" "C:\Program Files\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.13.jar" "C:\Program Files\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.13.jar" 51445
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f D:\LEARNING\sel\karthick.framework\pom.xml clean test
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< web.automation.killer:karthick.framework >--------------
[INFO] Building karthick.framework 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ karthick.framework ---
[INFO] Deleting D:\LEARNING\sel\karthick.framework\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ karthick.framework ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ karthick.framework ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ karthick.framework ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ karthick.framework ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 3 source files to D:\LEARNING\sel\karthick.framework\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M3:test (default-test) @ karthick.framework ---
[JENKINS] Recording test results
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.339 s
[INFO] Finished at: 2019-10-06T23:35:41+05:30
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving D:\LEARNING\sel\karthick.framework\pom.xml to web.automation.killer/karthick.framework/0.0.1-SNAPSHOT/karthick.framework-0.0.1-SNAPSHOT.pom
channel stopped
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Did not find any matching files.
Finished: SUCCESS

The error is loud and clear错误响亮而清晰

Looking for TestNG results report in workspace using pattern: **/testng-results.xml Did not find any matching files.使用模式在工作区中寻找 TestNG 结果报告:**/testng-results.xml 没有找到任何匹配的文件。

That mean Jenkins not able to found xml file as per the path you have provided in jenkins.这意味着 Jenkins 无法根据您在 jenkins 中提供的路径找到 xml 文件。

Check if the path or filename is fine.检查路径或文件名是否正常。 Put the full absolute path first to check and then try to create ** relative path先把完整的绝对路径检查一遍再尝试创建**相对路径

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TestNG类可以并行运行,但方法不能并行运行。 如何配置testng.xml文件和测试类,以便方法也可以并行运行? - TestNG classes run in parallel, but methods don't. How do I configure my testng.xml file and test classes so methods will also run in parrallel? 如何通过pom.xml将参数传递给testng.xml从jenkins运行单个测试用例 - how to run individual test cases from jenkins by passing parameters to testng.xml through pom.xml 启动Maven时,显示错误testng.xml无效文件 - When launching maven, showing an error testng.xml is not valid file 当测试类作为“ TestNG Test”运行时,无法从testng.xml中检索参数值 - Unable to retrieve value of parameter from testng.xml when test class is run as 'TestNG Test' 如何在bat文件中运行testng.xml - How to run testng.xml in bat file Jenkins 管道提供用户输入以运行特定 testng.xml - Jenkins Pipeline give User Input to run specific testng.xml 从Jenkins启动TestNG.xml文件时出现以下文件无效错误错误 - Getting following File Not Valid Error when launching TestNG.xml file from Jenkins 使用跨浏览器的testng.xml - testng.xml with cross browser 如何通过eclipse或命令行从testng.xml文件执行特定的测试类 - How to execute specific test classes from testng.xml file through eclipse or command line 无法通过Maven测试对终端中的Testng.xml文件执行类,但是可以在Eclipse中使用 - Not able to execute classes through Maven test with Testng.xml file in terminal, but working in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM