A person assigned to the tester perspective will read through the code thinking about what test cases could prove that the code works properly.
负责测试员透视图的人员需要通读代码,并且要考虑哪些测试例子能够证明代码能正常工作。
Additionally, for users who have only Rational Performance Tester installed, using a Web service directly with custom code would not be a workable solution.
此外,对于只安装了RationalPerformance Tester的用户来说,直接使用带有定制代码的Web服务不是可用的解决方案。
Rational Performance Tester utilizes the SRC folder within a project as the default for custom code components, in a package named test.
RationalPerformance Tester按默认的定制代码构件来使用项目中的src文件夹,它位于一个名为test的包中。
By wrapping complex Rational Functional Tester API code into methods in widget classes, we have made manual coding of scripts much easier.
通过将复杂的RationalFunctionalTesterAPI代码封装到窗口小部件类的方法中,我们使脚本的手工编码更加容易。
The examples and code snippets herein are relevant to Rational Functional Tester.
这里的一些例子和代码片断都是跟RationalFunctional Tester相关的。
IBM Rational Performance Tester can supply variable data to dynamically load test data, either straight from the CSV file or from custom code.
IBMRationalPerformance Tester能够为动态加载测试数据提供变量数据,或者直接从CSV文件中提供,或者从定制代码中提供。
This is accomplished by using Reflection to make parameterized calls to methods in the Functional Tester helper classes ( Download the code at the bottom of the article).
这可以通过利用反射在FunctionalTester助手类中参数化地调用方法来完成(下载本文底部的代码)。
But these actions require typing several lines of hard-to-remember code in Rational Functional Tester.
但是这些操作需要在RationalFunctionalTester中输入多行难记的代码。
It is assumed that if you are reading this article, you are familiar with the Rational Performance Tester mechanism to add custom code and are looking for potential opportunities for improvement.
假设您阅读了本文,并且熟悉RationalPerformance Tester机制,以添加定制代码,并查找潜在的改善机会。
You would then need to add lines of code for proper test verification and result logging. When completed, the Rational Functional Tester recorded code would look like this.
然后需要添加多行代码,进行正确的测试验证和结果记录。
In this section, we'll discuss how to choose the right method and how to organize the source code of Rational Functional Tester project.
在本段中,我们将会讨论怎样选择正确的方法,以及怎样组织RationalFunctionalTester对象的源代码。
Note: More information on Rational Performance Tester custom code can be found in the Help section Extending test execution with custom code.
注意:可以在Help部分的Extendingtestexecutionwithcustomcode中找到更多关于RationalPerformance Tester自定义代码的信息。
Once I've isolated and removed the duplicated code, both the number classifier and the prime-number tester are much simpler. Listing 4 shows the refactored number classifier.
当我隔离和移除重复代码后,数字分类器和质数检验器就变得更简单了。
If the tester sees a problem, he can recommend changes in the form of a new test case to which the developer can code.
如果测试人员看到问题,他可以以对于开发人员编码的新测试用例的形式来建议变更。
The tester can open the developer's test script, review the code and comments, and run the test script to see what the developer thought she was developing.
测试人员可以打开开发人员的测试脚本、检查代码和注释,并执行测试脚本以查看开发人员认为正在开发的内容是什么。
The motivation behind coverage tooling is simply to give you (as a developer or tester) more insight into the areas of code that are being exercised by a set of test cases.
覆盖工具背后的动机向您(作为开发员或者测试员)提供了关于代码的一系列观点,这些代码在一系列的测试之中会得到检查。
For a complex piece of code like a text editor, an external tester cannot generate tests targeting specific routines-the tester won't have much idea about internal code organization.
对于文本编辑器这样复杂的代码,外部测试者无法生成针对特定例程的测试—测试者不太了解内部代码组织。
A tester can also code a test case manually i.e. without using the recording capabilities of the tool and capture the test objects later by identifying them using tool.
测试员还可以通过使用工具识别对象,可以在不使用工具的记录功能并获取测试对象的情况下,从而手动地为一个测试用例编码。
There are multiple ways to code test scripts, depending on the skill of the tester and the complexity of the application under test.
编写测试脚本有很多种方式,这取决于测试员的技巧和测试程序的复杂程度。
After the code has been fixed and built, the tester is notified about which tests can be rerun, based on the fixes in the new build.
在修复和构建代码之后,测试员会注意到新构建修复的基础之上,可以返回什么测试。
Open-source development breaks this bind, making it far easier for tester and developer to develop a shared representation grounded in the actual source code and to communicate effectively about it.
开源开发打破了这种束缚。基于源代码,测试者和开发者可以很容易建立一个统一的模型,并借此有效沟通。
When editing test scripts, you must edit these elements (Figure 5) to incorporate the Rational Performance Tester data pool, custom code, reference, and other all functions that can be used.
在您编辑测试脚本时,您必须编辑这些元素(图5)以集成RationalPerformance Tester数据池、引用,而且可以使用其他所有的功能。
It begins with the Rational Performance Tester Custom Code feature requesting a random author name from the Web service proxy, which fetches a name from the Web service.
它从RationalPerformance Tester定制代码特性从Web服务代理那里请求随机作者名称开始,从Web服务那里取回一个名称。
It is worth emphasizing that the bottleneck is a result of the way that we implemented the solution in Custom Code; therefore, it is not entirely a Rational Performance Tester problem.
值得强调的是,瓶颈是我们在定制代码中实现解决方案的方法所导致的,因此,这不完全是RationalPerformance Tester的问题。
Fortunately, Rational Performance Tester has another feature called Custom Code, which allows users to develop their own routines for injecting data into a Web page request.
幸运的是,RationalPerformance Tester有另一个称为定制代码的特性,该特性允许用户开发其自己的将数据注入到web页面请求中的程序。
The paper introduces the failure codes of the transmission and points out that the SCAN tester must be used when taking out failure code and failure data.
介绍了该自动变速器的故障代码,要提取故障代码和故障数据,必须使用SCAN诊断仪。
If the user interface changes in a way that changes a command sequence, the tester can fix the affected test cases by modifying the spreadsheet rather than by rewriting code.
如果用户界面的一个命令序列发生了变化,那么测试人员可以通过修改电子表格,而不是重写代码来更正相关的测试用例。
If the user interface changes in a way that changes a command sequence, the tester can fix the affected test cases by modifying the spreadsheet rather than by rewriting code.
如果用户界面的一个命令序列发生了变化,那么测试人员可以通过修改电子表格,而不是重写代码来更正相关的测试用例。
应用推荐