51Testing软件测试论坛
标题:
[自动化测试工具及框架]
[打印本页]
作者:
lvsong741
时间:
2018-1-9 16:37
标题:
[自动化测试工具及框架]
请问大神们。Jenkins + ant +selenium构建后会启动浏览器吗?
这是构建完的信息。不知道是不是成功了。为什么没有启动浏览器。急急急求大神帮忙
[copy] Copying 3 files to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\build\conf
[copy] Copying 4 files to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\build\res
[copy] Copying 2 files to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\build\testdata
[javac] C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\build.xml:66: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 29 source files to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\build
[javac] C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\src\com\business\Pc_LoginBusiness_New.java:25: 警告: JavaSecurityAccess是内部专用 API, 可能会在未来发行版中删除
[javac] import sun.misc.JavaSecurityAccess;
[javac] ^
[javac] 1 个警告
uiTestOnIE:
[testng] [TestNG] Running:
[testng] C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\testng.xml
[testng]
[testng] [SeleniumAutoConsole] INFO [main] com.util.DatabaseService.connectDBDriver(52) | Database connection established
[testng] [SeleniumAutoConsole] INFO [main] com.cases.TestBase.beforeClass(83) | Start to run test class com.cases.Pc_Test_New on driverType1
[testng]
[testng] ===============================================
[testng] Suite
[testng] Total tests run: 1, Failures: 0, Skips: 1
[testng] Configuration Failures: 1, Skips: 2
[testng] ===============================================
[testng]
[testng] The tests failed.
transform:
[xslt] Processing C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\report\testng-results.xml to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\report\index2.html
[xslt] Loading stylesheet C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\res\testng-results.xsl
detect.file:
uiTestOnIE2:
[testng] [TestNG] Running:
[testng] C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\report\testng-failed.xml
[testng]
[testng] [SeleniumAutoConsole] INFO [main] com.util.DatabaseService.connectDBDriver(52) | Database connection established
[testng] [SeleniumAutoConsole] INFO [main] com.cases.TestBase.beforeClass(83) | Start to run test class com.cases.Pc_Test_New on driverType1
[testng]
[testng] ===============================================
[testng] Failed suite [Suite]
[testng] Total tests run: 1, Failures: 0, Skips: 1
[testng] Configuration Failures: 1, Skips: 2
[testng] ===============================================
[testng]
[testng] The tests failed.
transform2:
[xslt] Processing C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\report2\testng-results.xml to C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\report2\index2.html
[xslt] Loading stylesheet C:\Program Files (x86)\Jenkins\workspace\PC_test\svn\repository\res\testng-results.xsl
BUILD SUCCESSFUL
Total time: 7 seconds
Sending e-mails to:
lvsong@91sph.com
Extended Email Publisher is currently disabled in project settings
Finished: SUCCESS
作者:
joykao
时间:
2018-1-10 09:41
看这个信息啊,抛开构建,你测试根本就没跑,起不起动浏览器要看你代码是怎么写的,是否加载了对应的driver,还有你的代码是不是足够支持跨平台执行
Total tests run: 1, Failures: 0, Skips: 1
[testng] Configuration Failures: 1, Skips: 2
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2