Listing 7 shows an example test case for creating a new member.
清单7显示了一个用于创建新成员的测试用例。
Listing 1 shows an example test case written with HttpUnit that tries to click on the "Cookbook" link on the HttpUnit home page.
清单1显示了一个用HttpUnit编写的测试用例,它试图单击HttpUnit主页上的“Cookbook”链接。
B. test case definition techniques are discussed in some detail with an example test case specified with a standard test definition language - TTCN-3 for TPT.
文章给出了一个运行于TPT的TTCN- 3描述的测试例来探讨了测试例的定义技术。
Of course, this is a very simple example, involving only one very simple test case.
当然,这是非常简单的例子,仅涉及一个非常简单的测试案例。
This example shows a test case added for the navigation panel referenced in the requirement added previously (see Figure 8).
这个示例显示了在以前添加的需求中,为导航模板参考添加的测试用例(图8)。
This latter code example, using the widget wrapper classes, is far more intuitive and takes much less coding to produce the same test case.
后面的代码示例使用了窗口小部件封装器类,看上去要直观得多,并且生成相同测试案例所需的编码要少得多。
Listing 10 shows an example in which both frameworks play the test case out.
清单10显示了两个框架完成测试用例的示例。
Here is the generated test case class for our simple example.
下面是我们的简单示例所生成的测试用例类。
For this example, I used it to declare the HTML fragment that will be used for the rest of the test case methods.
对于本例,我使用该方法来声明一个HTML片段,该片段将用于其他测试用例方法。
For example, in the case of the system under test, time was a much higher priority than server space.
例如,拿被测试的系统来说,时间要远远优先于服务器空间。
TDD is a style of coding where the desired behavior or specification is written first in the form of an executable example (typically as a JUnit test case).
TDD是一种编码风格,它先以可执行示例(通常是JUnit测试用例)的形式编写所需的行为或规范。
A test case that is assigned a weight of 10, for example, might take twice as long to run as a test case that has an assigned weight of five.
例如,一个分配有10加权值的测试用例,其运行的时间可能是加权值为5测试用例的两倍。
In this example, we've created a suite called MonkeyContactsSuite containing a single test case called MonkeyContactsCase.
在这个例子中,我们创建了一个叫做MonkeyContactsSuite的套件,它其中包含了一个叫做MonkeyContactsCase的测试用例。
The template file for this test plan example is testplan_001, which contains one test case, named testcase_001.
对于本测试规划范例的模板文件是testplan_001,它包含了一个测试用例,名字叫做testcase_001。
To make it obvious that this is a test case, a simple script can double each word. Taking our example from above.
为了明显地表明这是一个测试案例,可以用一个简单的脚本重复每个单词。
For example, a standalone system test environment should not require a JNDI registry. In such a case, the following alternate bean definition could be provided within the system test configuration.
比如说,一个单独的系统测试环境应该不再需要JNDI注册。
The meta data "{row: 1, column -> One} as A" means the UI element, a TextBox in our case, is in row 1 and the same column as where the header "One" is. The test code is very clean, for example
元数据“{row:1,column-> One}asA”意味着我们例子中的UI元素——一个TextBox,处于第一行,并和header“One”处在同一列。
Your objects can also run outside the container -- for example, in a test case.
您的对象也可以在容器外运行 ——例如,在一个测试用例中。
For example, a test case can be either not written or written but not run yet.
例如,一个测试用例要么没有被编写,要么已经编写但是没有运行。
Figure 2 shows an example of using test case categories.
图2显示了使用测试用例范畴的实例。
In the next example, I'll repeat this test case using dynamic BCI.
在下面的例子中,我将用动态bci重复这个测试用例。
In a unit test case, for example, the execution environment for the object is the test case itself, and the test setup code is tasked with satisfying the dependencies directly.
例如,在单元测试用例中,对象的执行环境是测试用例本身,所以测试设置代码有责任直接满足依赖项。
See Figure 2 for an example of defining test case weigh.
参见图2,定义测试用例权重的实例。
But with parametric tests, you can define one test case and then push your desired parameter patterns (for example) into TestNG's suite files. That's what I've done in Listing 6.
但是,如果使用参数化测试,就可以只定义一个测试用例,然后,(举例来说)把所需的参数模式加到TestNG的测试套件文件中。
You can use the fail method to force a test case to fail, for example if you want to force a timeout of an operation.
您可以利用fail方法强迫这个测试用例失败,例如您想要迫使一个操作暂停。
Mechanics, for example, wouldn't be allowed to test cars engines in case in wakes neighbors.
比如,机械师不得在此期间测试汽车发动机,以防打扰邻居。
This is an example of a functional test case.
这是一个功能测试的例子。
The prediction model was reasonable in the case, because the monitoring data and test time interval of prediction example were of high discreteness.
由于文中预测实例的监测数据及测试时间间隔均有较大离散性,因此应用此模型进行预测较为合理。
For example, you could create a test case, Add Item to Shopping Cart, with just one test step named create test Steps.
例如,您可以创建测试用例“向购物车中添加商品”,其中只包含一个名为“创建测试步骤”的测试步骤。
For example, you could create a test case, Add Item to Shopping Cart, with just one test step named create test Steps.
例如,您可以创建测试用例“向购物车中添加商品”,其中只包含一个名为“创建测试步骤”的测试步骤。
应用推荐