最后,测试模块需要访问我们正在测试的模块的接口库。
Finally, our test module will need access to the interface library of the module we are testing.
如果你不是想试试新东西,不要在紧急的情况下把很少测试的模块塞进系统。
Don't create rarely-tested modules that only kick in during emergencies, when you're least likely to feel like trying new things.
第二篇文章讨论了这些自动化解决方案如何搜索Python包以识别可能包含测试的模块。
The second article examined how these automated solutions search through a Python package to identify the modules that may contain tests.
正在测试的模块调用另一模块时,您应该同时选择两个模块,使之成为测试的一部分。
When a module that you are testing calls another module, you should select both modules to be part of the test.
本文详细讨论了这三种Python测试框架如何检查代码基并选择它们认为包含测试的模块。
The article has now covered all of the details about how these three Python testing frameworks examine your code base and select which modules they think contain tests.
我在PPCLinux上测试的模块比较老,它是一个半透明的银色版本,输入输出之间有一个开关。
The model I have tested with PPC Linux is the older, translucent-and-silver version with a switch between the input and output jacks.
不过,在本例中,我们要测试的模块将对其他模块进行服务调用,所以必须首先将其他模块部署到服务器。
However, in this case the module we're testing is going to make service calls to other modules, so the other modules must be deployed to the server first.
在您识别想要联系在一起的测试模块之后,接下来的一步是声明变量,并分配它们。
After you have identified the test modules that you want to link together, the next step is declaring variables and assigning them accordingly.
你还可以创建自己的测试模块以便重复使用。
但这不意味着不允许任何能够加载所有模块的全部单元测试的测试套件模块文件的存在。
That said, it does not mean that there cannot be a test suite module file that loads all the unit tests for all modules.
一直记录附件以及关于分割测试模块的其他信息。
Always document dependencies and other information about your split test modules.
不过,在测试时对模块进行的更改越少越好。
However, the fewer changes you make to your module when testing, the better.
这就是为什么需要记录测试模块的附件的原因之一。
This is one of the reasons why documenting your test module's dependencies is necessary.
测试变量还用于在没有模块化的规范测试之间交换数据。
The test variable is also used to exchange data between regular tests that have not been modularized.
您需要通过在ComponentA中调用操作并允许调用其他两个组件来测试您的模块。
You want to test your module by calling an operation in component a and letting the calls to the other two components occur.
此部分介绍如何测试前面创建的中介模块。
This section describes how to test the mediation module you created earlier. The process can be separated into four sections.
让自己遵从python的标准测试模块规定的方法学是良好的软件实践。
Committing yourself to the methodology provided by Python's standard testing modules is good software practice.
l _ MailService(它提供对我们要测试模块的访问)。
L_MailService (this giving access to the module we are testing).
您可以做出一些更改,重新测试映射,然后重新测试使用这些映射的模块。
You can make a few changes, retest the maps, and then retest the modules that use them.
您可以为每个模块打开新的集成测试客户端,然后附加到模块,或者在选择多个模块时,在打开的集成测试客户端中单击附加图标。
You open a new integration test client for each module and then attach to the module or, when you select multiple modules, click the attach icon in the integration test client that you opened.
测试模块:选择要测试模块中的一个或多个组件并测试多个模块。
Testing modules: selecting one or more components in a module to test and testing multiple modules.
所有选中的模块都将成为测试配置的一部分,所有未选中的模块都将从配置中删除。
All checked modules will be part of the test configuration and all uncheck modules will be removed from the configuration.
我们还演示了如何构建允许对创建的中介模块进行灵活测试的测试应用程序。
We also showed you how to build a test application that allows flexible testing of the created mediation module.
还需要使用测试模块调用正在测试的组件,我们通过将合适的接口导入到测试模块并将它们正确地连接来执行此任务。
We also need our test module to invoke the components we are testing, which we will do by importing suitable interfaces to our test module and wiring them properly.
与之类似,通过删除或者禁止特定场景所不需要的测试模块,可以使模块变得小一点。
Likewise, it can be made smaller by removing or disabling the test modules that are not needed for a particular scenario.
测试变量功能会促进测试模块之间数据的交换。
The test variable functionality facilitates the exchange of data between the test modules.
这保留了在书写和细化人工测试时所发现的模块性。
This retains the modularity discovered while writing and refining manual tests.
从单个记录那里获得测试模块,同时原始的测试丝毫未变。
Derive test modules from a single recording, while keeping the original test intact.
通过使用分割测试功能,您可以从已存在的记录那里获得测试模块,同时丝毫不改变原始的脚本。
By using the split test functionality, you can derive test modules from existing recordings while keeping the original scripts unchanged.
图2显示了一个范例,其中有三个不同的测试模块来自于单个SAP测试记录的测试。
Figure 2 shows an example where three different test modules are derived from a test from a single SAP test recording.
应用推荐