在这个例子中的每个正规表达式都是测试字符串的子串之一。
Each regular expression in this example is a substring of one of the test strings.
正确的做法是显式地测试字符串是否为空,使用相应的内置函数。
The correct solution is to explicitly test strings for emptiness using the appropriate built-in function.
在现有的报表中添加或修改一个列标题和描述,报表属性文件中的测试字符串定义也需要被添加以及修改。
A column heading and description is added or changed in an existing report, its test string definition also needs to be added or changed in the report property file.
未使用的和改变的列用行进行测量。所以在4 月9 号的工作版本中,会测试字符串 C 的一些行。
The Unused and Change columns are measured in lines, so ten fewer lines of strings.c were tested in the Apr 9 build.
在“string”框内输入要发送到Web服务的测试字符串,并单击“Go”按钮,以调用服务,如下面的图7中所示。
Enter a test string to send to your Web service in the "string" box and click the "Go" button to invoke the service, as per Figure 7 below.
清单2给出了一些值得为任何字符串实现创建的测试。
Listing 2 shows some of the tests worth creating for any string implementation.
这是十分重要的,因为该类必须简短地返回另一个字符串才能使测试通过。
This is important because the class must shortly return another string for your test to pass.
在最初的测试客户机中,我们向队列发送一个普通字符串。
In the original test client, we sent a plain string to the queue.
清单3展示了相同的代码,但是添加了测试单词字符串长度和频率的逻辑。
Listing 3 shows the same code with logic added that tests for word string length and frequency.
输入要发送的测试消息字符串。
通过使用正则表达式引擎,很容易测试出字符串是否与模式匹配。
Using a regular expression engine, it is easy to test if a string matches the pattern.
您可以使用您自己的字符串,或者来自另一个数据源的值来替换该值,这些数据源包括数据汇,引用,通用代码,或者其他的测试变量。
You can substitute this value with your own text string or a value from another data source, such as a data pool, reference, custom code, or another test variable.
通过记录带有一个可变数据的项目和一个搜索字符串的简单测试开始。
Start by recording a simple test with one variable data item, a search string.
您需要修改发送简单文本字符串的初始测试客户机,使其发送XML消息。
You will modify the original test client that sent a simple text string to send an XML message.
较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。
Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.
这个宏需要一个字符串作为测试套件的名称。
The macro expects a string that is the name of the test suite.
清单2显示了字符串测试的更多示例。
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
更复杂的测试场景(其中可能包含多个未完成任务,每个任务需要使用不同的数据完成)将需要使用查询字符串。
More complex test scenarios, where there might be several outstanding tasks, each needing completion with different data, will require the use of a query string.
事实上,这是个棘手的测试,只要您能够把DNA表示为字符串,就可以利用一个确定串之间的差异的CPAN模块。
This is a tricky test, actually, and a CPAN module for finding the distance of strings might be useful here, as long as you can represent the DNA as a string.
清单10为字符串类定义一个测试套件。
Look at Listing 10, which defines a test suite for your string class.
您可以使用查询字符串(而不是仅使用任务名称)来指定测试。
You could have specified your test using a query string instead of just the task name.
为了加快字符串等同性测试的速度,可以打开该特性。
字符串应该描述测试需求。
The string should describe the requirement you're working to test.
要测试应用程序,可以放入任何字符串作为工作密钥,并单击Submit。
To test the application, put in any string as a work key and click Submit.
要映射TestTableName属性,请使用名称为PreTestSQL字符串的WebSphere属性,在这里您可以设置一条 SQL语句来测试每个JDBC连接。
To map the TestTableName attribute, use the WebSphere property called PreTest SQL string, where you can set an SQL sentence to test each JDBC connection.
然而,Match对象并非用于测试匹配而是为在输入字符串中找到的第一个匹配项创建的。
Instead of testing for a match, however, a match object is created for the first match found in the input string.
关键词equals是指一个内嵌的通讯,它允许对字符串和其他原始类型的相等测试。
The equals keyword refers to a built-in correspondence, which allows one to test the equality of strings and other primitive types.
我必须检查这个属性实际上是否出现,因为当没有这个属性时,contains测试将返回true(所有字符串都包含空字符串)。
Note that I have to check that the attribute is actually present, since when it's absent the contains test would return true (the empty string is contained in all strings).
在测试字段中输入相应的字符串,然后单击Submit。
应用推荐