标题: CAA: Unit Test [打印本页] 作者: xyzhu 时间: 2005-7-27 21:50 标题: CAA: Unit Test 测试(Test)是软件工程中很重要的一环.CAA提供了UnitTest的可能性(mkODT).可惜我没能找到具体的例子.由于CAA的工作对象是CATPart,CATProduct等Binary文件,给结果比较带来了困难.在"Testing Your Frameworks"一文中(见CAADoc/Doc/online/CAARqcTechArticles/CAARqcOverview.htm),解释OutputRef文件夹的时候,有下面一段话:
if you want to test a program which automate some modifications on a CATIA model, you can first perform these modifications "by hand" and save the result in a file you store in the OutputRef directory, then make a comparison (in the shell) between this model and the one produced by the test program in the Output/$OS directory.
期望DS能在r16的GA提供实用的工具。省得自己开发了作者: DS_PRO 时间: 2006-8-2 08:17
The CAA Document description is correct. You should not compare the two part document, but compare the content of the two part document.
For instance, On R15 you created a solid object in the part1 and save it to the OutputRef, during every ODT test, you run your test case and generate a new part with another solid object, then you compare these two solid from two part documents, such as there volume, COG and etc.
It is good way to catch the regression during the development