Test results
1 suite, 17 failed tests
com.ljwx.test.tenant.TenantAdminFunctionalityTest
testTenantAdminAlertManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:alert:info:page","data":{},"timestamp":1756706593572} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminAlertManagement(TenantAdminFunctionalityTest.java:225) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员告警管理功能)
testTenantAdminDataIsolation
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "io.restassured.path.json.JsonPath.getList(String)" is null at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminDataIsolation(TenantAdminFunctionalityTest.java:324) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 29 stack frames
(验证租户管理员数据隔离边界)
testTenantAdminDeviceManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:device:info:page","data":{},"timestamp":1756706593539} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminDeviceManagement(TenantAdminFunctionalityTest.java:172) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员设备管理功能)
testTenantAdminHealthDataManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:health:data:config:page","data":{},"timestamp":1756706593587} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminHealthDataManagement(TenantAdminFunctionalityTest.java:262) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员健康信息管理功能)
testTenantAdminInterfaceAndHealthConfig
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:interface:page","data":{},"timestamp":1756706593601} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminInterfaceAndHealthConfig(TenantAdminFunctionalityTest.java:295) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员接口和健康配置管理)
testTenantAdminMessageManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:device:message:page","data":{},"timestamp":1756706593556} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminMessageManagement(TenantAdminFunctionalityTest.java:198) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员消息管理功能)
testTenantAdminOrgAndPositionManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 sys:org:units:tree","data":{},"timestamp":1756706593506} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminOrgAndPositionManagement(TenantAdminFunctionalityTest.java:95) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员组织和岗位管理功能)
testTenantAdminTenantLimitations
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:customer:config:page","data":{},"timestamp":1756706593492} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminTenantLimitations(TenantAdminFunctionalityTest.java:66) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员租户管理功能限制)
testTenantAdminUserManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 sys:user:page","data":{},"timestamp":1756706593524} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.tenant.TenantAdminFunctionalityTest.testTenantAdminUserManagement(TenantAdminFunctionalityTest.java:144) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员用户管理功能)
com.ljwx.test.permission.PermissionIsolationTest
testAdminGlobalDataAccess
java.lang.AssertionError: 响应code应该为200或0,实际: 500,响应: {"code":500,"message":"服务器错误","data":{},"timestamp":1756706593675} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.permission.PermissionIsolationTest.testAdminGlobalDataAccess(PermissionIsolationTest.java:35) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证Admin全局数据访问权限)
testCrossTenantAccessDenial
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "io.restassured.path.json.JsonPath.getList(String)" is null at com.ljwx.test.permission.PermissionIsolationTest.testCrossTenantAccessDenial(PermissionIsolationTest.java:156) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 29 stack frames
(验证跨租户数据访问拒绝)
testHealthDataAccessPermission
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:health:data:config:page","data":{},"timestamp":1756706594037} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.permission.PermissionIsolationTest.testHealthDataAccessPermission(PermissionIsolationTest.java:287) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证健康数据访问权限)
testOrganizationPermissionIsolation
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 sys:org:units:tree","data":{},"timestamp":1756706593923} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.permission.PermissionIsolationTest.testOrganizationPermissionIsolation(PermissionIsolationTest.java:221) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证组织架构权限隔离)
testParameterBoundarySecurity
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "io.restassured.path.json.JsonPath.getList(String)" is null at com.ljwx.test.permission.PermissionIsolationTest.testParameterBoundarySecurity(PermissionIsolationTest.java:179) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 29 stack frames
(验证参数边界安全性)
testTenantAdminDataIsolation
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 sys:user:page","data":{},"timestamp":1756706593720} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.permission.PermissionIsolationTest.testTenantAdminDataIsolation(PermissionIsolationTest.java:79) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证租户管理员数据隔离)
testWechatConfigPermissionManagement
java.lang.AssertionError: 响应code应该为200或0,实际: 400,响应: {"code":400,"message":"无权访问 t:wechat:alarm:config:page","data":{},"timestamp":1756706594147} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.permission.PermissionIsolationTest.testWechatConfigPermissionManagement(PermissionIsolationTest.java:339) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证微信配置权限管理)
com.ljwx.test.admin.AdminFunctionalityTest
testAdminCrossTenantAccess
java.lang.AssertionError: 响应code应该为200或0,实际: 500,响应: {"code":500,"message":"服务器错误","data":{},"timestamp":1756706593401} expected [true] but found [false] at com.ljwx.test.base.BaseApiTest.verifySuccess(BaseApiTest.java:175) at com.ljwx.test.admin.AdminFunctionalityTest.testAdminCrossTenantAccess(AdminFunctionalityTest.java:303) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 32 stack frames
(验证Admin跨租户数据访问能力)
com.ljwx.test.integration.FullSystemIntegrationTest
testConcurrentPermissionIsolation
java.sql.SQLSyntaxErrorException: Unknown column 'contact_person' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.ljwx.test.data.TestDataManager.executeUpdate(TestDataManager.java:352) at com.ljwx.test.data.TestDataManager.prepareTenantData(TestDataManager.java:118) at com.ljwx.test.data.TestDataManager.prepareTestData(TestDataManager.java:38) at com.ljwx.test.integration.FullSystemIntegrationTest.setup(FullSystemIntegrationTest.java:30) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 27 stack frames
(验证高并发场景下的权限隔离)
testDataConsistencyAndIntegrity
java.sql.SQLSyntaxErrorException: Unknown column 'contact_person' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.ljwx.test.data.TestDataManager.executeUpdate(TestDataManager.java:352) at com.ljwx.test.data.TestDataManager.prepareTenantData(TestDataManager.java:118) at com.ljwx.test.data.TestDataManager.prepareTestData(TestDataManager.java:38) at com.ljwx.test.integration.FullSystemIntegrationTest.setup(FullSystemIntegrationTest.java:30) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 27 stack frames
(验证数据一致性和完整性)
testEndToEndBusinessFlow
java.sql.SQLSyntaxErrorException: Unknown column 'contact_person' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.ljwx.test.data.TestDataManager.executeUpdate(TestDataManager.java:352) at com.ljwx.test.data.TestDataManager.prepareTenantData(TestDataManager.java:118) at com.ljwx.test.data.TestDataManager.prepareTestData(TestDataManager.java:38) at com.ljwx.test.integration.FullSystemIntegrationTest.setup(FullSystemIntegrationTest.java:30) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 27 stack frames
(验证端到端业务流程)
testPerformanceOptimization
java.sql.SQLSyntaxErrorException: Unknown column 'contact_person' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.ljwx.test.data.TestDataManager.executeUpdate(TestDataManager.java:352) at com.ljwx.test.data.TestDataManager.prepareTenantData(TestDataManager.java:118) at com.ljwx.test.data.TestDataManager.prepareTestData(TestDataManager.java:38) at com.ljwx.test.integration.FullSystemIntegrationTest.setup(FullSystemIntegrationTest.java:30) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 27 stack frames
(验证性能优化效果)
testSystemBasicAvailability
java.sql.SQLSyntaxErrorException: Unknown column 'contact_person' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1061) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1009) at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1320) at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:994) at com.ljwx.test.data.TestDataManager.executeUpdate(TestDataManager.java:352) at com.ljwx.test.data.TestDataManager.prepareTenantData(TestDataManager.java:118) at com.ljwx.test.data.TestDataManager.prepareTestData(TestDataManager.java:38) at com.ljwx.test.integration.FullSystemIntegrationTest.setup(FullSystemIntegrationTest.java:30) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 27 stack frames
(验证系统基础功能可用性)
com.ljwx.test.tenant.TenantAdminFunctionalityTest
testTenantAdminDashboardAccess (验证租户管理员访问首页功能)
testTenantAdminLogin (验证租户管理员登录功能)
com.ljwx.test.auth.AuthenticationTest
testAdminLoginAuthentication (验证Admin用户登录认证流程)
testInvalidTokenAccess (验证错误Token访问被拒绝)
testLoginParameterValidation (验证登录参数验证)
testTokenValidity (验证Token有效性)
testUnauthorizedAccess (验证无Token访问被拒绝)
com.ljwx.test.api.ComprehensiveApiTest
testAdminAccessAllApis (验证Admin访问所有接口)
testSpecialParameterApis (验证特殊参数接口功能)
testTenantAdminAccessTenantApis (验证租户管理员访问租户范围接口)
com.ljwx.test.admin.AdminFunctionalityTest
testAdminAlertManagement (验证Admin告警管理功能)
testAdminDashboardAccess (验证Admin访问首页功能)
testAdminDeviceManagement (验证Admin设备管理功能)
testAdminHealthDataManagement (验证Admin健康信息管理功能)
testAdminInterfaceAndHealthConfig (验证Admin接口和健康配置管理功能)
testAdminLogin (验证Admin用户登录功能)
testAdminMessageManagement (验证Admin消息管理功能)
testAdminOrgAndPositionManagement (验证Admin组织架构和岗位管理功能)
testAdminTenantManagement (验证Admin租户管理功能)
testAdminUserManagement (验证Admin用户管理功能)
/Users/brunogao/work/codes/health/ljwx/yunxiang/ljwx-boot/test-automation/src/test/resources/testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="ljwx-boot-automation-test-suite" verbose="0">
  <parameter name="base.url" value="http://192.168.1.83:3333"/>
  <parameter name="environment" value="test"/>
  <listeners>
    <listener class-name="com.ljwx.test.listener.TestResultListener"/>
  </listeners>
  <test thread-count="5" name="Authentication-Tests" verbose="0">
    <parameter name="test.category" value="auth"/>
    <classes>
      <class name="com.ljwx.test.auth.AuthenticationTest"/>
    </classes>
  </test> <!-- Authentication-Tests -->
  <test thread-count="5" name="Admin-Functionality-Tests" verbose="0">
    <parameter name="test.category" value="admin"/>
    <classes>
      <class name="com.ljwx.test.admin.AdminFunctionalityTest"/>
    </classes>
  </test> <!-- Admin-Functionality-Tests -->
  <test thread-count="5" name="Tenant-Admin-Functionality-Tests" verbose="0">
    <parameter name="test.category" value="tenant"/>
    <classes>
      <class name="com.ljwx.test.tenant.TenantAdminFunctionalityTest"/>
    </classes>
  </test> <!-- Tenant-Admin-Functionality-Tests -->
  <test thread-count="5" name="Permission-Isolation-Tests" verbose="0">
    <parameter name="test.category" value="permission"/>
    <classes>
      <class name="com.ljwx.test.permission.PermissionIsolationTest"/>
    </classes>
  </test> <!-- Permission-Isolation-Tests -->
  <test thread-count="5" name="Comprehensive-API-Tests" verbose="0">
    <parameter name="test.category" value="api"/>
    <classes>
      <class name="com.ljwx.test.api.ComprehensiveApiTest"/>
    </classes>
  </test> <!-- Comprehensive-API-Tests -->
  <test thread-count="5" name="Full-Integration-Tests" verbose="0">
    <parameter name="test.category" value="integration"/>
    <classes>
      <class name="com.ljwx.test.integration.FullSystemIntegrationTest"/>
    </classes>
  </test> <!-- Full-Integration-Tests -->
</suite> <!-- ljwx-boot-automation-test-suite -->
            
Tests for ljwx-boot-automation-test-suite
  • Authentication-Tests (1 class)
  • Admin-Functionality-Tests (1 class)
  • Tenant-Admin-Functionality-Tests (1 class)
  • Permission-Isolation-Tests (1 class)
  • Comprehensive-API-Tests (1 class)
  • Full-Integration-Tests (1 class)
Groups for ljwx-boot-automation-test-suite
Times for ljwx-boot-automation-test-suite
Total running time: 3 seconds
Reporter output for ljwx-boot-automation-test-suite
0 ignored methods
Methods in chronological order
com.ljwx.test.auth.AuthenticationTest
setupRestAssured 0 ms
setup 183 ms
testAdminLoginAuthentication 188 ms
testTokenValidity 1020 ms
testUnauthorizedAccess 1171 ms
testInvalidTokenAccess 1192 ms
testLoginParameterValidation 1209 ms
com.ljwx.test.admin.AdminFunctionalityTest
setupRestAssured 1287 ms
setup 1288 ms
testAdminLogin 1330 ms
testAdminDashboardAccess 1330 ms
testAdminTenantManagement 1495 ms
testAdminOrgAndPositionManagement 1524 ms
testAdminUserManagement 1605 ms
testAdminDeviceManagement 1673 ms
testAdminMessageManagement 1728 ms
testAdminAlertManagement 1783 ms
testAdminHealthDataManagement 1903 ms
testAdminInterfaceAndHealthConfig 1950 ms
testAdminCrossTenantAccess 1996 ms
com.ljwx.test.tenant.TenantAdminFunctionalityTest
setupRestAssured 2021 ms
setup 2021 ms
testTenantAdminLogin 2057 ms
testTenantAdminDashboardAccess 2058 ms
testTenantAdminTenantLimitations 2088 ms
testTenantAdminOrgAndPositionManagement 2104 ms
testTenantAdminUserManagement 2118 ms
testTenantAdminDeviceManagement 2136 ms
testTenantAdminMessageManagement 2152 ms
testTenantAdminAlertManagement 2168 ms
testTenantAdminHealthDataManagement 2184 ms
testTenantAdminInterfaceAndHealthConfig 2198 ms
testTenantAdminDataIsolation 2213 ms
com.ljwx.test.permission.PermissionIsolationTest
testAdminGlobalDataAccess 2236 ms
setupRestAssured 2236 ms
testTenantAdminDataIsolation 2287 ms
testCrossTenantAccessDenial 2331 ms
testParameterBoundarySecurity 2389 ms
testOrganizationPermissionIsolation 2432 ms
testHealthDataAccessPermission 2535 ms
testWechatConfigPermissionManagement 2649 ms
com.ljwx.test.api.ComprehensiveApiTest
setupRestAssured 2763 ms
setup 2764 ms
testAdminAccessAllApis 2764 ms
testTenantAdminAccessTenantApis 3228 ms
testSpecialParameterApis 3456 ms
com.ljwx.test.integration.FullSystemIntegrationTest
setup 3529 ms
setupRestAssured 3529 ms