您应该在单独的文件中开发这些代码,这样,就可以在将它们放入文档之前对其进行测试,以确保它们能像您期望的那样工作。
You'd probably develop this code in a separate file so that you could test it out to be sure it works as expected before putting it into your document.
性能测试代码首先将测试中使用到的文档读入到内存中,然后对文档进行一系列的操作。
The performance test code first reads the documents to be used in the test into memory, then runs through a sequence of operations on the documents.
框架中还带有一些代码示例,包括图书馆、电子邮件客户端以及面向文档的应用程序,另外还带有对单元测试的基本支持。
The framework also comes with code samples for a book library, an email client, a document oriented application, and also basic support for unit tests.
为了简要地了解实际应用中的AXIOMAPI,我们将对一些示例进行研究,这些示例来自于对AXIOM与其他的文档模型进行性能测试对比的代码。
For a quick look at the AXIOM API in action, we'll look at some samples from the code used for performance - testing AXIOM against other document models.
测试案例因为暗示了代码在测试工作中是如何工作的,所以还可以充当内行的文档。
Test cases also serve as adept documentation because they implicitly demonstrate how the code under test works.
在下一节中,我们将为Groovy方法创建一些RESTful文档,并在没有编写任何代码的情况下使用RESTdoc工具来测试api。
In the next section, we will create some RESTful documentation for our Groovy methods and use the RESTdoc tool to test our API without writing any code.
本文档中的代码示例是用IBMCognos8.4.1开发并测试的。
The code examples in this document were developed and tested using IBM Cognos 8.4.1.
波韦纳是本文档中描述完整的源代码,已经过测试。
Wave weiner is described in this document complete source code, has been tested.
波韦纳是本文档中描述完整的源代码,已经过测试。
Wave weiner is described in this document complete source code, has been tested.
应用推荐