For this example, the test assertion identifier is WSI2406.
对于本例,测试断言标识符是WSI2406。
The test assertion results are listed by entry within an artifact type.
测试断言结果由构件类型中的条目列出。
The following figure contains an HTML rendering of a single test assertion.
下图包含某个测试断言的HTMLrendering。
A test assertion is a testable expression of one or more requirements in the Basic Profile.
测试断言是基本概要(BasicProfile)中一个或多个要求的可测试表达式。
The following table contains a description of the primary components of this test assertion.
下表包含了对这个测试断言中主要组件的描述。
A test assertion may have one of five possible results: passed, failed, warning, notApplicable, or missingInput.
测试断言可以有五种可能的结果中的某一种:已传送(passed)、已失败(failed)、警告(warning)、notApplicable或missingInput。
The detailed test assertion results are listed by entry (for example, WSDL binding element, message log entry ID, etc.).
已失败的测试断言结果由条目(例如WSDL绑定元素、消息日志条目id等等)列出。
The input for the analyzer includes the location of the test assertion document and references to the Web service artifacts.
分析器的输入包括测试断言文档的位置和对Web服务构件的引用。
If overall summary result is failed, then you should look through the detailed test assertion results to determine which test assertions failed.
如果整个摘要结果失败,您就应该仔细分析失败的测试断言结果以判断哪一个测试断言失败。
Each test assertion has a unique identifier and contains all of the information that is needed to understand how the analyzer will process the assertion.
每个测试断言都有一个惟一的标识符,并且包含需要用于理解分析器将如何处理该断言的所有信息。
For instance, a good test assertion is a JUnit test that returns true if and only if the SOAP envelope returned by a Web service is identical to a pre-defined XML document.
例如,一个较好的测试断言为JUnit测试,即当且仅当Web服务返回的SOAP信封与预定义的XML文档完全相同时,返回true。
Reviewing the test assertion description and the associated profile requirements will help you understand what you need to change to make your Web service conform to the Basic Profile.
回顾测试断言描述和相关的概要要求将有助于您理解需要更改什么以使您的Web服务符合基本概要(BasicProfile)。
All of the test assertions are listed in a test assertion document (see Resources), which is an XML document whose contents are segmented by artifact type (discovery, description, and messages).
测试断言文档中列出了所有的测试断言(请参阅参考资料),测试断言文档是一个XML文档,其内容是按照构件类型(发现、描述和消息)划分的。
Assertion validation can be enabled or disabled at any point in time, so it is possible to test with assertions enabled and deploy with them disabled.
由于可以在任何时候启用或禁用断言验证,因此可以在测试时启用断言验证而部署时禁用断言验证。
Perform the assertion related to the test case.
执行与测试用例相关的断言。
The latter assertion has been at the crux of Western philosophy since Plato, but it's taken until now to devise an empirical test for it.
后面的主张从柏拉图开始就一直处于西方哲学的核心,不过现在已经为它设计出以观察和实验为依据的测试了。
As you can see from this failing test, the assertion failed because we never did anything to create this file.
这个失败测试显示,断言失败,原因是我们根本没有创建这个文件。
There is a small group of people in the Agile community who think it's a sin to put more than one assertion per test.
敏捷社区中部分人认为每个测试中有多于一个断言是邪恶的。
The Test::Unit assertion follows a basic pattern, whereby the first parameter is the result expected and the second parameter is the actual result.
Unit断言采用一种基本模式:第一个参数是预期的结果,第二个参数是实际结果。
Test failures are indicated by throwing unchecked exceptions, typically by using JUnit-provided assertion and failure methods.
测试失败通过抛出未经检查的异常来指示,通常使用JUnit提供的断言和故障方法指示。
You can enhance this test to cover the assertion of other display parts of the portlet.
您可以加强该测试,使其包含portlet其他显示部件的断言。
Now add another assertion to the test case to test the new balance after somebody calls the deposit() method. The testDeposit() method should now look like Listing 3
现在向测试案例添加另一种断言,以在某些人调用 deposit()方法后测试新的余额。
If the test case produces an error, you see an E. If any assertion is not true, you see an F. Next, you see that all tests that you requested finished and the time it took to complete them.
如果某个断言不是true,那么将看到F。接下来,可以看到所请求的全部测试都将完成,以及完成这些测试需要的时间。
A test can fail because some specific assertion does not hold (assertion methods either start with ".fail "or".assert ").
一个测试可能会因为一些具体的断言无效而失败(断言方法或者以“。fail”开头,或者以“。assert”开头)。
Now that we have the subject model validation in place, we can actually test the above validation using an assertion.
既然已经建立了主题模型检验,就可以使用断言实际测试上面的检验了。
This test case will fail at assertion because the results page contains no link with this text.
这个测试用例遇到断言的地方会失败,因为结果页面中不包含带有这个文本的链接。
The experiment guaranteed supplies, so it did not test the assertion that you need to charge something to encourage reliable suppliers.
但这个试验有充足的供应保证,因此关于需要收费以鼓励可靠供给的主张并没有在此试验中得到测试。
As an assertion, meaning that a test for a certain condition will be applied to an instance document.
作为断言,这意味着对应用于实例文档的特定条件进行测试。
Lastly, in line 18 an assertion statement is issued to determine the success or failure of a test case.
最后,在第十八行的断言语句中,决定了这个测试用例的成功与失败。
Using an assertion, you can essentially "test" that your application is returning the results you expect it to.
使用断言你本质上你可以测试你的应用程序返回你期望的结果。
应用推荐