In my case, I used the file in listing 4 to seed the database before running my component tests and then used the same file to indicate which data to delete from the database upon test completion.
在本文的例子中,将在运行组件测试前使用清单4中的文件在数据库中播种,然后使用相同的文件指示测试完成时从数据库中删除哪些数据。
Instead of having a test method per use case, we have a text file containing the expected generated code and a optional text file containing the expected compiler messages.
和每个用例有一个测试方法不同,我们有一个文本文件包含所期望的生成代码以及包含所期望编译器消息的可选文本文件。
The following sample code first checks if an entry is made to the log file after the test case completes.
接下来的范例代码首先会检查测试用例完成以后日志文件是否做了一个条目。
Configure the hosts file as explained above according to the use case you wish to test.
根据您希望测试的用例,按照上面的说明配置主机文件。
In this case, import from the XML file, and then manually enter the values for any values that the test client missed.
在这种情况下,应从XML文件导入,然后手动输入测试客户端丢失的任何值。
The limitation with the log file is that at the end of test suite you are not able to determine which exception belongs to which test case.
日志文件的缺陷在于,在测试套件的结尾您无法去决定什么例外与什么测试用例相对应。
From this file, you can determine the compilation errors that are related to a particular test case.
从这个文件中,您可以决定与特定测试用例相关的汇编性错误。
Therefore, before a test case run, your must clean or delete the log file to ensure that the log entries belong only to the most recently run test case.
因此,在测试用例运行之前,您必须删除或者精简日志文件,以确保日志条目只属于最近所运行的测试用例。
The image below illustrates a piece of an SDD file that carries out a test case.
下图显示了执行测试用例的SDD文件的片断。
The output to the cactus_client.log file, typically written to the root of the Application Developer installation, should resemble the following if the test case ran successfully.
如果测试案例成功运行,那么输出到cactus_client . log文件的结果(通常写到Application Developer的安装根目录)应该类似于下面所示。
This test case will also use the user.txt file as input for users that will concurrently claim and complete 50 tasks if everything goes well.
该测试案例也使用user . txt文件作为用户输入,将同时申明且完成50个任务,如果一切顺利的话。
This test case USES the user.txt file as input for users that will concurrently claim and complete 50 tasks.
该测试案例使用user . txt文件作为用户输入文件,这将同时申明且完成50个任务。
The setUp function prepares the test fixtures used throughout the tests, in this case just the path to the test RSS file you'll parse in the test function.
setup函数负责准备整个测试过程中需要使用的测试装置,在本例中只有测试用的RSS文件的目录,测试函数将对其进行解析。
Test above allows the test case code to run only if this file is run as a command.
测试使得只有当文件作为命令运行时才运行测试用例代码。
Select the test case MoneyBag Equals (the red leaf node) and locate the problem line in each file. This information is given in the lower part of NUnit's right hand pane, shown in Figure 3 .
选择MoneyBag Equals测试用例(红色的叶结点),并定位到该文件的出错行,此时NUnit的右侧下方会显示相关信息,如图二
The included project interchange file also contains a unit test case for the AddressCSV_To_Address map.
所包括的项目交换文件还包含一个用于AddressCSV_To_Address映射的单元测试用例。
Therefore, we took the approach of using Rational Manual Tester, and we associated a test file that contained only the test unit within each configured test case.
因此,我们采取利用RationalManualTester的方法,并将一个仅包含一个测试单元的测试文档与每一个已配置测试用例联合起来。
The template file for this test plan example is testplan_001, which contains one test case, named testcase_001.
对于本测试规划范例的模板文件是testplan_001,它包含了一个测试用例,名字叫做testcase_001。
Create a jar file, named BasicAddUnitTest.jar, containing the two Test case classes.
创建一个jar文件,命名为BasicAddUnitTest . jar,包含这两个测试用例类。
Inside the database main directory (in this case, test) are a log directory, a seg0 directory, and a properties file.
数据库主目录(本例中为test)内有一个log目录、一个seg0目录和一个属性文件。
In the simple case of a development environment test server, the WebSphere sample file registry was used.
在开发环境测试服务器这一简单的示例中,使用了WebSphere示例文件注册中心。
The key file that the test facilities focus on is the proxy file, in this case AddressBookProxy.
测试工具关注的关键文件是代理(proxy)文件,即此例中是AddressBookProxy。
According to the current research status of software unit test problems, we will investigate module dependencies in the source file and the automated test case generation.
结合目前软件单元测试技术的研究现状,我们将深入研究单元测试中源文件的模块依赖问题和测试用例的自动生成问题。
Simulation test showed that the model can realize effectively conversion from text file to useful case, and find a new way to case learning.
仿真试验表明,该模型可以实现避碰案例从文本文件到可用案例的有效转换,为案例学习提供新的方法。
After analyzing module dependencies, test case must be designed for each module in the source file, to achieve some test coverage criteria, and to ensure test adequacy.
分析模块依赖关系之后,需对源代码中各个模块设计测试用例,以达到一定的测试覆盖标准,保证测试的完整性。
After analyzing module dependencies, test case must be designed for each module in the source file, to achieve some test coverage criteria, and to ensure test adequacy.
分析模块依赖关系之后,需对源代码中各个模块设计测试用例,以达到一定的测试覆盖标准,保证测试的完整性。
应用推荐