MS-TEST 批处理执行测试时的资源文件目录问题

本文介绍了在使用MS-TEST的批处理执行测试DLL时,遇到访问工程目录下资源文件失败的问题,并提供了解决方法。通过将资源文件设置为‘Copy’属性和在MS工程类文件上设置特定属性,可以实现正常访问资源文件。

What:

使用MS-TEST的 批处理执行它的测试 DLL  时,如: 

MSTest /testcontainer:C:\David\ADAccountGIT\AdAccountMSTest\ADAccountGTCTest\ADGTCTest\bin\Debug\ADGTCTest.dll /test:TestMethod_GTC_CompareDB

它的实际调用目录是 C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TestResults\dwei_VMMATRIX_QA3 2015-04-17 03_03_10\Out\

如测试用例中包含访问工程目录下的某一资源文件时,则在调用时此运行目录并不包含此文件的情况下,就不能正常访问。

How:

把要访问的资源文件的VS属性变为Copy 外,还要在MS 工程的类文件上设置一个属性, 如图:

 

转载于:https://www.cnblogs.com/zencorn/p/4441563.html

段错误修复:CTest日志如下:Start testing: May 28 14:47 中国标准---------------------------------------------------------- 4/13 Testing: FaultInjectionConfigTableTest 4/13 Test: FaultInjectionConfigTableTest Command: "C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build/test_FaultInjectionConfigTable.exe" Directory: C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build "FaultInjectionConfigTableTest" start time: May 28 14:47 中国标准间 Output: ---------------------------------------------------------- ********* Start testing of TestFaultInjectionConfigTable ********* Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-llp64 shared (dynamic) release build; by GCC 7.3.0) QDEBUG : TestFaultInjectionConfigTable::initTestCase() 开始FaultInjectionConfigTable真实类测试套件 PASS : TestFaultInjectionConfigTable::initTestCase() QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 初始化多连接TCP管理器 QWARN : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳: "default" QWARN : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳间隔: "default" QWARN : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳超: "default" QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 已加载 8 个通道配置 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 已加载应用配置文件: "C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build/config/app_config.ini" QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 默认通信协议: "TCP" QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() TCP默认IP: "192.168.1.100" : 8080 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() UDP默认IP: "192.168.1.101" : 8081 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 心跳检测已 启用 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 心跳间隔: 1000 ms QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 心跳超: 5000 ms QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 日志显示已 启用 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 日志生成已 启用 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 已加载 8 个通道配置 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 网络线程已启动 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 网络线程已启动 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 开始测试用例清理 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已断开故障表格的所有信号槽连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 停止批处理执行 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 批处理执行停止完成 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已停止批处理执行 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 移除所有连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 所有连接已移除 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已清理网络连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 开始析构 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已断开所有信号槽连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已停止连接状态定器 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 停止批处理执行 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 批处理执行停止完成 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已停止批处理执行 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已断开所有网络连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 移除所有连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 所有连接已移除 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已移除所有网络连接 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 已保存配置 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [FaultInjectionConfigTable] 析构完成 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已重置故障表格对象 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() 网络线程已结束 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 开始销毁多连接TCP管理器 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [NetworkTCPManager] 多连接TCP管理器销毁完成 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已重置控制器对象 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 已重置日志文本编辑器对象 QDEBUG : TestFaultInjectionConfigTable::testConstructorAndDestructor() [TestCleanup] 测试用例清理完成 PASS : TestFaultInjectionConfigTable::testConstructorAndDestructor() QDEBUG : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [NetworkTCPManager] 初始化多连接TCP管理器 QWARN : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳: "default" QWARN : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳间隔: "default" QWARN : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳超: "default" QDEBUG : TestFaultInjectionConfigTable::testConstructorWithNullPointers() 网络线程已启动 QDEBUG : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [TestFaultInjectionConfigTable] 开始测试空指针构造函数 QWARN : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [FaultInjectionConfigTable] Controller is null, some features may not work properly QDEBUG : TestFaultInjectionConfigTable::testConstructorWithNullPointers() [TestFaultInjectionConfigTable] 空指针构造函数测试:对象创建成功 A crash occurred in C:\Work\PengGuanJun\Work\AumoFIS\AumoFIS\FaultInjectionApp\tests\build\test_FaultInjectionConfigTable.exe. Function time: 16ms Total time: 1027ms Exception address: 0x0000000000467bff Exception code : 0xc0000005 Stack: # 1: ZN5QTest15toPrettyUnicodeEPKti() - 0x000000006edc27d0 # 2: UnhandledExceptionFilter() - 0x00007ff84712c280 # 3: memset() - 0x00007ff849534600 # 4: _C_specific_handler() - 0x00007ff84951cdb0 # 5: _chkstk() - 0x00007ff8495327a0 # 6: RtlRaiseException() - 0x00007ff8494e20d0 # 7: KiUserExceptionDispatcher() - 0x00007ff8495313a0 # 8: Unable to obtain symbol # 9: Unable to obtain symbol # 10: Unable to obtain symbol # 11: Unable to obtain symbol # 12: ZNK11QMetaMethod6invokeEP7QObjectN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS5_S5_S5_S5_S5_S5_S5_S5_S5_() - 0x0000000068a83710 # 13: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 14: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 15: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 16: ZN5QTest4qRunEv() - 0x000000006edcac80 # 17: ZN5QTest5qExecEP7QObjectiPPc() - 0x000000006edcb070 # 18: Unable to obtain symbol # 19: Unable to obtain symbol # 20: Unable to obtain symbol # 21: BaseThreadInitThunk() - 0x00007ff848c67360 # 22: RtlUserThreadStart() - 0x00007ff8494dcc70 <end of output> Test time = 1.22 sec ---------------------------------------------------------- Test Failed. "FaultInjectionConfigTableTest" end time: May 28 14:47 中国标准间 "FaultInjectionConfigTableTest" time elapsed: 00:00:01 ---------------------------------------------------------- 6/13 Testing: FaultInjectionConfigTest 6/13 Test: FaultInjectionConfigTest Command: "C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build/test_FaultInjectionConfig.exe" Directory: C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build "FaultInjectionConfigTest" start time: May 28 14:47 中国标准间 Output: ---------------------------------------------------------- ********* Start testing of TestFaultInjectionConfig ********* Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-llp64 shared (dynamic) release build; by GCC 7.3.0) QDEBUG : TestFaultInjectionConfig::initTestCase() 开始FaultInjectionConfig真实类测试套件 PASS : TestFaultInjectionConfig::initTestCase() QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 初始化多连接TCP管理器 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳: "default" QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳间隔: "default" QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 当前通道不存在,无法设置心跳超: "default" QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已加载 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已加载应用配置文件: "C:/Work/PengGuanJun/Work/AumoFIS/AumoFIS/FaultInjectionApp/tests/build/config/app_config.ini" QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 默认通信协议: "TCP" QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() TCP默认IP: "192.168.1.100" : 8080 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() UDP默认IP: "192.168.1.101" : 8081 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 心跳检测已 启用 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 心跳间隔: 1000 ms QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 心跳超: 5000 ms QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 日志显示已 启用 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 日志生成已 启用 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已加载 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 网络线程已启动 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 设置通道配置表提供者并连接信号 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 网络线程已启动 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH002" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH003" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH004" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH1" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH2" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH3" 的卡片 QWARN : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 未找到通道ID为 "CH4" 的卡片 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 通道列表变化,新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 通道列表变化,新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 通道列表变化,新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 通道列表变化,新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 通道列表变化,新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始更新通道卡片中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 0 个故障配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 获取到 8 个通道 QINFO : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已处理 0 个故障配置,共 0 个故障分配到 8 个通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新模型中的故障信息 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH001" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH002" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH003" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH004" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH1" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH2" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH3" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已更新通道卡片 "CH4" 的故障信息,共 0 个故障 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已通知视图更新 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 故障信息更新完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 停止批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 批处理执行停止完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [TestCleanup] 已停止故障表格的批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 开始析构 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已断开自身的所有信号槽连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已断开故障表格的信号槽连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已断开通道列表视图的信号槽连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已断开通道列表模型的信号槽连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 停止批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 批处理执行停止完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已停止故障表格的批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 已删除通道列表模型 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfig] 析构完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 开始析构 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已断开所有信号槽连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已停止连接状态定器 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 停止批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 批处理执行停止完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已停止批处理执行 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已断开所有网络连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 移除所有连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 所有连接已移除 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已移除所有网络连接 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 已保存配置 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [FaultInjectionConfigTable] 析构完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() 网络线程已结束 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 开始销毁多连接TCP管理器 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 断开所有通道 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [NetworkTCPManager] 多连接TCP管理器销毁完成 QDEBUG : TestFaultInjectionConfig::testConstructorAndDestructor() [TestCleanup] FaultInjectionConfig测试用例清理完成 PASS : TestFaultInjectionConfig::testConstructorAndDestructor() QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() [NetworkTCPManager] 初始化多连接TCP管理器 QWARN : TestFaultInjectionConfig::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳: "default" QWARN : TestFaultInjectionConfig::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳间隔: "default" QWARN : TestFaultInjectionConfig::testConstructorWithNullPointers() [NetworkTCPManager] 当前通道不存在,无法设置心跳超: "default" QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() 网络线程已启动 QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() 已保存 8 个通道配置 QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() [FaultInjectionConfigTable] 设置通道配置表提供者并连接信号 QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() [FaultInjectionConfigTable] 强制刷新所有通道下拉框 QDEBUG : TestFaultInjectionConfig::testConstructorWithNullPointers() [FaultInjectionConfigTable] 最新通道列表: ("CH001", "CH002", "CH003", "CH004", "CH1", "CH2", "CH3", "CH4") A crash occurred in C:\Work\PengGuanJun\Work\AumoFIS\AumoFIS\FaultInjectionApp\tests\build\test_FaultInjectionConfig.exe. Function time: 25ms Total time: 568ms Exception address: 0x0000000000513b8c Exception code : 0xc0000005 Stack: # 1: ZN5QTest15toPrettyUnicodeEPKti() - 0x000000006edc27d0 # 2: UnhandledExceptionFilter() - 0x00007ff84712c280 # 3: memset() - 0x00007ff849534600 # 4: _C_specific_handler() - 0x00007ff84951cdb0 # 5: _chkstk() - 0x00007ff8495327a0 # 6: RtlRaiseException() - 0x00007ff8494e20d0 # 7: KiUserExceptionDispatcher() - 0x00007ff8495313a0 # 8: Unable to obtain symbol # 9: Unable to obtain symbol # 10: Unable to obtain symbol # 11: Unable to obtain symbol # 12: Unable to obtain symbol # 13: ZN11QMetaObject8activateEP7QObjectiiPPv() - 0x0000000068aa2960 # 14: Unable to obtain symbol # 15: Unable to obtain symbol # 16: Unable to obtain symbol # 17: Unable to obtain symbol # 18: Unable to obtain symbol # 19: Unable to obtain symbol # 20: Unable to obtain symbol # 21: Unable to obtain symbol # 22: ZNK11QMetaMethod6invokeEP7QObjectN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS5_S5_S5_S5_S5_S5_S5_S5_S5_() - 0x0000000068a83710 # 23: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 24: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 25: ZN5QTest5qInitEP7QObjectiPPc() - 0x000000006edc7fa0 # 26: ZN5QTest4qRunEv() - 0x000000006edcac80 # 27: ZN5QTest5qExecEP7QObjectiPPc() - 0x000000006edcb070 # 28: Unable to obtain symbol # 29: Unable to obtain symbol # 30: Unable to obtain symbol # 31: BaseThreadInitThunk() - 0x00007ff848c67360 # 32: RtlUserThreadStart() - 0x00007ff8494dcc70 <end of output> Test time = 0.76 sec ---------------------------------------------------------- Test Failed. "FaultInjectionConfigTest" end time: May 28 14:47 中国标准间 "FaultInjectionConfigTest" time elapsed: 00:00:00 ---------------------------------------------------------- End testing: May 28 14:47 中国标准
05-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值