BeforeSuite运行失败,怎么弄啊

来源:5-7 套件测试

学习前进冲

2018-10-07


[TestNGContentHandler] [WARN] It is strongly recommended to add "<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >" at the top of your file, otherwise TestNG may fail or not work as expected.before suite运行啦

注册成功

支付宝支付成功

after suite 运行啦


===============================================

test

Total tests run: 2, Passes: 2, Failures: 0, Skips: 0

===============================================



Process finished with exit code 0

http://img.mukewang.com/szimg/5bb9efab000115f208060545.jpg

http://img.mukewang.com/szimg/5bb9efaa0001090a07240527.jpg

http://img.mukewang.com/szimg/5bb9efab0001c13105520522.jpg

http://img.mukewang.com/szimg/5bb9efac0001c94c07940488.jpg


写回答

1回答

大周

2018-10-10

你这不是运行成功了么,就是上边有一个警告。这个警告的意思是说让你加这个东西<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >  在xml文件里

0
0

Java接口自动化测试实战,搞定理论基础+典型应用场景

打破传统测试用例设计方法,搞懂基于TestNG的接口自动化测试技术

2086 学习 · 920 问题

查看课程