google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

有关Visual Unit

有关Visual Unit


我按照Visual Unit的flash对它的例子进行了操作
link是总是出现错误
不知为什么?它的错误是:
TestDemo.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CDemoAppTester::~CDemoAppTester(void)" (??1CDemoAppTester@@UAE@XZ)
TestDemo.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CMyClassTesterTester::~CMyClassTesterTester(void)" (??1CMyClassTesterTester@@UAE@XZ)
TestDemo.obj : error LNK2001: unresolved external symbol "void __cdecl GolbalGFClassTest(void)" (?GolbalGFClassTest@@YAXXZ)
TestDemo.obj : error LNK2001: unresolved external symbol "void __cdecl GeGFClassTest(void)" (?GeGFClassTest@@YAXXZ)
TestDemo.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMyClassTesterTester::ClassTest(void)" (?ClassTest@CMyClassTesterTester@@QAEXXZ)
TestDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall CMyClassTesterTester::CMyClassTesterTester(void)" (??0CMyClassTesterTester@@QAE@XZ)
TestDemo.obj : error LNK2001: unresolved external symbol "public: void __thiscall CDemoAppTester::ClassTest(void)" (?ClassTest@CDemoAppTester@@QAEXXZ)
TestDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall CDemoAppTester::CDemoAppTester(void)" (??0CDemoAppTester@@QAE@XZ)
Debug/TestDemo.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

TestDemo.exe - 9 error(s), 0 warning(s)

TOP

相关的文件未加入测试工程


除了企业版在VC6下使用IDE插件外,自动生成测试文件后要加入测试工程,下面是帮助中的相关内容。还有一个问题是:CDemoApp是工程的最高层次的类,是无法隔离,无法测试的,因为把它加到另一个工程必定产生编译错误。顺便说一下,VU是国产工具,有很方便的技术支持,有问题请直接找在线技术支持或发邮件,通常都会立即得到解决的,技术支持是不问用户身份的,联系信息:http://www.kailesoft.cn/contactus.htm
如果问题无法解决,可以将产品工程和测试工程打包发送到 Support#KaileSoft.cn (将#换成@).

----------------------------------------------------------------

产品文件加入后或生成测试文件后的编译错误

找不到文件或类
产品文件和测试文件以及产品文件的引用文件要手工加入测试工程。

找不到函数的实现代码
描述:error LNK2001: unresolved external symbol "public: __thiscall CMyException::CMyException(void)"
原因:被测试的源文件或它引用的源文件未加入测试工程。
解决:将被测试的源文件及其直接和间接引用的源文件加入测试工程。

--------------------------------------------------
C/C++单元测试工具Visual Unit
http://www.KaileSoft.cn

TOP

 
当前时区 GMT+8, 现在时间是 2008-8-30 05:24Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹