Test results
1 suite, 1 failed test
tester.RegisterPage
registerSuccess (13888888888, 123456, 123456, 注册成功,跳转到登录界面,数据库成功插入了数据)
java.lang.AssertionError: expected [注册成功,跳转到登录界面,数据库成功插入了数据] but found [] at util.AssertUtil.assertTextPresent(AssertUtil.java:22) at tester.RegisterPage.registerSuccess(RegisterPage.java:72) at com.sun.proxy.$Proxy0.invoke(Unknown Source) ... Removed 37 stack frames
tester.RegisterPage
registerFailureCase (13888888888, , , 密码不能为空)
registerFailureCase (13888888888, 12345, , 密码长度至少为6位)
registerFailureCase (13888888888, 123456, 1234567, 密码不一致)
registerFailureCase (lemon, , , 非法的手机号)
registerFailureCase (13888888888, 123456, , 重复密码不能为空)
registerFailureCase (, , , 用户名不能为空)
C:\Users\Administrator\.jenkins\workspace\Lanxiang_Test01\testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "/testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" verbose="0" name="Suite">
  <parameter name="driverPath" value="src/test/resources/chromedriver.exe"/>
  <parameter name="seleniumVersion" value="2.53.1"/>
  <parameter name="browserType" value="chrome"/>
  <listeners>
    <listener class-name="org.uncommons.reportng.HTMLReporter"/>
    <listener class-name="util.TestFailueListener"/>
  </listeners>
  <test name="register_case">
    <classes>
      <class name="tester.RegisterPage"/>
    </classes>
  </test> <!-- register_case -->
</suite> <!-- Suite -->
            
Tests for Suite
  • register_case (1 class)
Groups for Suite
Times for Suite
Total running time: 17 seconds
Reporter output for Suite
registerSuccess(13888888888, 123456, 123456, 注册成功,跳转到登录界面,数据库成功插入了数据)
0 ignored methods
Methods in chronological order
tester.RegisterPage
BeforeClass(chrome, src/test/resources/chromedriver.exe, 2.53.1) 0 ms
BeforeClass 5755 ms
beforeMethod 13213 ms
registerFailureCase(, , , 用户名不能为空) 13759 ms
beforeMethod 16684 ms
registerFailureCase(lemon, , , 非法的手机号) 16889 ms
beforeMethod 19756 ms
registerFailureCase(13888888888, , , 密码不能为空) 19982 ms
beforeMethod 22744 ms
registerFailureCase(13888888888, 12345, , 密码长度至少为6位) 22905 ms
beforeMethod 25690 ms
registerFailureCase(13888888888, 123456, , 重复密码不能为空) 25885 ms
beforeMethod 28629 ms
registerFailureCase(13888888888, 123456, 1234567, 密码不一致) 28802 ms
beforeMethod 31757 ms
registerSuccess(13888888888, 123456, 123456, 注册成功,跳转到登录界面,数据库成功插入了数据) 31934 ms
afterclass 32934 ms