人工任务的组件测试已得到改进。
将该测试引入组件测试项目中。
在sca模块上执行组件测试。
在组件测试方面,有以下一些考虑。
Here are some further thoughts on some categories of components that you might consider testing.
组件测试通常是由开发人员来建立并执行。
Component tests are most commonly created and executed by developers.
必须使GUI测试区别于单元或组件测试。
You have to approach GUI testing differently from unit or component testing.
创建一个组件测试项目。
运行修改后的组件测试。
单击Next,确认组件测试项目的目标。
Click Next to confirm the target of your component test project.
使用组件测试程序进行测试。
在我们刚刚建立的项目中,建立一个新的组件测试。
Within the project we just created, let's create a new component test.
现在,设置装配图,以便通过接口映射组件测试关系。
Now, set up the assembly diagram to test the relationship via the interface map component.
在你设置好你的组件测试之后,下一步就是运行测试。
After you have set up your component tests, the next step is to run the tests.
如图2所示,组件测试让你能够测试下列类型的组件。
As shown in Figure 2, component test allows you to test the following types of components.
组件测试:自动为你的组件生成测试而不需要你来写代码。
Component test: Generates tests for your components without requiring you to write code.
这种类型的代码复查是组件测试和运行时分析的先决条件。
This kind of code review is a prerequisite for component testing and runtime analysis.
如之前所提到的,组件测试功能是JUnit框架的扩展。
As mentioned before, the component test facility is an extension of the JUnit framework.
这些库包括JUnit和IBM组件测试支持JAR文件。
These libraries include the JUnit and IBM component test support JAR files.
现在,对装配图进行设置以通过接口映射组件测试这个关系。
Now set up the assembly diagram to test the relationship via the interface map component.
在测试组件时,您可以选择可置换元素作为组件测试的输入。
When testing a component, you can select substitutable elements as input to a component test.
下一步你可以执行为你的那部分新代码设计的组件测试。
Next you'll execute the component tests that you have created for this new block of code.
当构建的测试延长时,通常都预示着包含了一个大型的组件测试套件。
When the testing aspect of a build is prolonged, you can generally predict that a large suite of component tests is involved.
与在组件测试中一样,现在创建了大量的框架来为这些测试提供方便。
Just as in component tests, a number of frameworks have been created to help facilitate these tests.
现在可以运行组件测试,以确保所有组件都能够按预期工作。
You can now run a component test to make sure everything works as expected.
编写组件测试要花更长的时间,因为它们比单元测试所涉及的东西要多。
Component tests take longer to write because they're more involved than unit tests.
这是一点小小的误导,因为源代码已被变换并且现在处于组件测试项目中。
This is a little misleading since the source code has been converted and now exists under our component test project.
您可以创建组件测试项目,其中包含测试套件、执行跟踪、配置和模拟器。
You can create a component test project that holds test suites, execution traces, configurations and emulators.
正如清单3所示,现在组件测试可在执行期间依赖驻留在数据库中的特定数据。
As you can see in Listing 3, my component tests can now rely on specific data residing in the database during their execution.
通过计划安排全年中定期的架构组件测试,您可以更新和改进已经创建的文档。
By scheduling regular testing of the architecture components throughout the year, you can update and polish the documents that you have already created.
保证代码质量的另外一个重要的方面就是组件测试,这一项工作在开发中经常出现。
Another important aspect of ensuring code quality is component testing, which is an activity that occurs during development.
应用推荐