Test Templates - Save a test as a template and reuse it over and over again!
测试模板-可以把一次测试保存为一个模板,可以重复的复用它!
With this knowledge in mind we will start to put the pieces together to create our BDD Unit Test Template.
有了这些知识,我们可以把那些零散的东西放到一起,创建我们的BDD单元测试模板。
Test specification is generalized with the test template framework (TTF) based on formalization specification.
采用基于形式规范的测试模板框架(TTF)可使测试规范通用化。
The other notable line in this test is the class definition, which points to the template class, rather than one that you might create.
这个测试中另一个值得注意的行是这个类定义,它指向这个模板的类,而不是您可能创建的模板。
If something is missing that you would like to add, you can create your own test plan sections and add them to the template.
如果有什么您想要添加的东西遗失的话,您可以创建自己的测试计划,并向模板添加它们。
Successful execution of this test, as shown in Listing 21, ensures that the template and the page hierarchy match.
该测试的成功执行(如清单21所示)能确保模板和页面层次结构是相匹配的。
The required organization is part of the template for the master test plan and the iteration test plan, but the corresponding activity is unclear.
需要的组织是主测试计划和迭代测试计划模版的一部分,但是相应的活动不清楚。
Although in RUP the required man-hours are part of the template of a test plan, it is unclear what activities that the man-hours estimate corresponds to.
尽管在RUP中,所需要的人时是一个测试计划模版的一部分,但是不清楚估算人时对应于哪些活动。
The first thing I need to do is create a file for each test result. Listing 2 shows the XSL template.
首先为每个测试结果创建一个文件,XSL模板如清单2所示。
You can use these same steps to get the XML template file for the test plan, testplan_001.xml.
您可以使用这些相同的步骤,以得到testplan_001 .xml测试规划的xml模板文件。
One interesting possibility might be to pass in an XPath to be used to test whether a template should be traced, and call the EXSLT Dynamic XPath Evaluation extension (dyn: evaluate ) to execute it.
一种令人感兴趣的可能性是传递XPath,我们要用这个XPath来测试是否应该跟踪模板,并调用EXSLTDynamic XPathEvaluation扩展(dyn:evaluate)来执行它。
For this example, the authors assume that you can create a template that can be assured before a system verification test (SVT) entry.
对于这个范例,作者假设,您可以在系统认证测试(SUT)通过之前就创建一个模板。
In the next section, I'll put Groovy's template engine to the test with a more complicated example.
在下一节中,我们将会使用一个更加复杂的例子对Groovy模板引擎进行测试。
Within this generic template, you set a variable to determine whether the rule set contains an applicable test.
在这个通用的模板中,您要设置一个变量来判断这个规则集是否包含一个可适用测试。
The custom code in ModifyCase USES test case template as the input parameter to generate the 1000 test cases XML document.
ModifyCase中的通用代码使用测试用例模板了作为输入参数,以生成1000个测试用例xml文件。
Create the type of project that we want to use as the base for our new project template, so for our purposes the best option would be a Unit Test project.
首先,我们要创建一个新项目,作为我们新项目模板的基础。
The default test plan template included in Rational Quality Manager provides several features that assist you both in knowing where the test project is and communicating it to others.
Rational QualityManager中包含的默认的测试计划模板提供了帮助您了解测试项目在哪,以及帮助您与其他人交流测试项目的许多特性。
One of the changes is support for a wide variety of test frameworks You might create a test project from the ASP.MVC Web App template within Visual Studio.
其中的一个修改是支持大量的测试框架,通过这些测试框架,就可以从Visual Studio中的ASP.NET MVPWebAPP模板中创建一个测试项目。
If you want a quick way to test your setup with an application that actually displays something on the tablet, you can use the Hildon Hello World template.
如果希望用一个在tablet上实际显示内容的应用程序来测试设置,比较方便的方法是使用HildonHello World模板。
To do the actual collecting, the Template Method TestResult.runProtected(..) brackets test execution with start and end housekeeping calls and interprets exceptions thrown as negative test results.
为了完成采集工作,TemplateMethod TestResult.runProtected(..) 将测试执行放在start和end 辅助调用(housekeeping call)之间,把抛出的异常解释为负的测试结果。
You can use this as a template for other roles you want to add to your model. To test this function, do the following.
可以使用此X ML作为您希望添加到模型的其他角色的模板。
For example, you can get an XML template of various resources from the Samples folder, which is in the installation directory. You can also access the XML schema of the test plan by uri.
例如,您可以从不同的Sample文件夹中得到各种资源的XML模板,它位于安装目录之下。
When output isn't what you expect, the first thing to test is whether the template is really being activated. It's easy to accidentally skip a template for any of number of reasons, such as.
如果输出不同于预期结果,首先要检查是否确实激活了模板。
Again, to keep the test simple, you can derive each page from a common template page.
同样,为简单起见,您可以从一个公共模板页派生每个页面。
The self-test code (the command-line usage) provides a straightforward template for any importing module to follow.
自测代码(命令行用法)为任一导入模块提供了一个可遵循的简单模板。
When the Create test plan TAB finishes loading, start by entering a name for the test plan in the header and selecting the template type. Set the template field to Default test plan template.
当CreateTestPlan项完成载入时,以在表头中为测试计划输入一个名字开始,并选择模板类型,设置Template区域为Default Test Plan Template。
We wanted this deployment to be a realistic test of the C-130J to produce a template for future deployments.
我们想让这次部署成为C- 130j的一次真实测验,使之成为未来部署的一个模板。
Recently the main test methods for cylindrical mirror are template comparison measurement and interference measurement.
目前柱面镜检测的主要方法是样板比较法和干涉法。
Recently the main test methods for cylindrical mirror are template comparison measurement and interference measurement.
目前柱面镜检测的主要方法是样板比较法和干涉法。
应用推荐