早教吧 育儿知识 作业答案 考试题库 百科 知识分享

英语翻译我们根据规则,利用推理机,提取规则中的判定谓词(IF),进行分析后构造一个解空间树,如图2.从图中我们可以看到从树的顶点到叶子节点构造的一条分支,就对应一条规则.我们可以遍

题目详情
英语翻译
我们根据规则,利用推理机,提取规则中的判定谓词(IF),进行分析后构造一个解空间树,如图2.从图中我们可以看到从树的顶点到叶子节点构造的一条分支,就对应一条规则.我们可以遍历此树从而达到规则覆盖.这样我们就既保证了规则生成的测试用例是测试充分的.对于树中每个叶子节点就是一个程序运行结果.我们对规则的谓词进行提取和处理.
我们选取等腰的规则集{(A)and(C)},等价图中的{P1,P2,P3,P4,等腰}的路径.用来生成测试用例,此测试用例的目的是测试程序判断等腰三角形的功能实现.我们根据规则(A)(C)的谓词进行处理后得到一个等价的不等式组:
这个不等式组就确定了测试数据a,b,c的取值范围D,此时结合随机数据生成器从合法的取值范围D中随机生成一组测试数据,从而完成了测试用例的自动生成,通过驱动模块调用被测程序进行测试,分析测试结果.
同理,我们可以从其他规则中生成等边,普通,非三角形和不合法的测试输入等测试用例.再结合测试权值技术,对于不同的路径设置一个权值.来控制测试用例集中,不同测试用例的测试比例,形成有效的重点测试.
引用两个测试定义如下:
定义1  设程序Q 在测试用例集T 上执行,并且实现了功能F ,如果满足...,则称测试用例集T 是可靠的,其中T < D.其中D为输入域.
定义2 设程序Q 的规则说明中P( X1 ,X2 ,⋯,Xn) 是程序输入变量必须满足的命题逻辑条件,如果测试用例集T 是可靠的,并且在T 上能满足P ,则T 是测试充分的.
▼优质解答
答案和解析
我们根据规则,利用推理机,提取规则中的判定谓词(IF),进行分析后构造一个解空间树,如图2.从图中我们可以看到从树的顶点到叶子节点构造的一条分支,就对应一条规则.我们可以遍历此树从而达到规则覆盖.这样我们就既保证了规则生成的测试用例是测试充分的.对于树中每个叶子节点就是一个程序运行结果.我们对规则的谓词进行提取和处理.
我们选取等腰的规则集{(A)and(C)},等价图中的{P1,P2,P3,P4,等腰}的路径, 用来生成测试用例,此测试用例的目的是测试程序判断等腰三角形的功能实现.
We extracted the predicted predicates (IF) from the rules that we based on by utilizing the inference engine, and created a solution space tree (fig.2) after analyzing the predicates. As shown in the figure, from tree vertex to each of a leaf node creates a branch which corresponds to a rule. We can traverse the whole tree to achieve rules coverage. In this way, the test cases generated by the rules are adequately tested. Every leaf node in the tree is a program running result. We extracted and processed the predicates of the rules. We generated test cases by selecting the isosceles rule sets [(A)and(C)] and the paths of (P1,P2,P3,P4, isosceles) in the equivalent graph; the objective of these test cases is to achieve the judgment function of test program for isosceles triangle.
我们根据规则(A)(C)的谓词进行处理后得到一个等价的不等式组:
这个不等式组就确定了测试数据a,b,c的取值范围D,此时结合随机数据生成器从合法的取值范围D中随机生成一组测试数据,从而完成了测试用例的自动生成,通过驱动模块调用被测程序进行测试,分析测试结果.
同理,我们可以从其他规则中生成等边,普通,非三角形和不合法的测试输入等测试用例.再结合测试权值技术,对于不同的路径设置一个权值.来控制测试用例集中,不同测试用例的测试比例,形成有效的重点测试.
After processing the predicates of rules A and C, we obtained an equivalent system of inequalities:
This inequality system determined the range of values D for testing data a, b, c, at this time, a set of testing data was randomly generated from the legitimate value range by a random data generator, and so an automatic generation of test cases was completed; then the tested program was called by a driver module for testing, and the test result was analyzed.
Similarly, we can generate test cases of equilateral and general triangles, non-triangle and illegitimate test input from other rules; then by integrating the test weights technology, a weight is set up for each different path to control the concentration of test cases and the test ratio of different test cases, so as to create effective key tests.
引用两个测试定义如下:
定义1  设程序Q 在测试用例集T 上执行,并且实现了功能F ,如果满足...,则称测试用例集T 是可靠的,其中T < D.其中D为输入域.
定义2 设程序Q 的规则说明中P( X1 , X2 , ⋯, Xn) 是程序输入变量必须满足的命题逻辑条件,如果测试用例集T 是可靠的,并且在T 上能满足P ,则T 是测试充分的.
Two test definitions are taken as follows:
Definition 1 – Set program Q and implement it on test suite T, and achieve function F; if satisfied, then the test suite T is reliable; in which T < D and D is input domain.
Definition 2 – In the rule description of program Q, P( X1 , X2 , ⋯, Xn) is a propositional logic condition that must be satisfied by the program input variables; if test suite T is reliable and T can satisfy P, then T is adequately tested.
【英语牛人团】
看了 英语翻译我们根据规则,利用推...的网友还看了以下:

从利、弊两个方面分析我国的地形特点对生产、生活的影响.联系实际,和同学们展开讨论:山西的地形以什么为  2020-03-31 …

你能比较两个数20042003和20032004的大小吗?为了解决这个问题,我们首先把它抽象成一般  2020-05-13 …

“一山不容二虎”本是一句成语,如果把这句话当成一种生物学事实,我们可用生物学学科观点对这种现象进行  2020-05-17 …

感恩是人类最高尚的情感之一,我们从小要有一颗感恩的心,当面对时刻关心你,为你奉献太多的父母时,你想  2020-05-24 …

英语翻译这次报告令我们收获良多.从最初的问卷制作,再到街头访问外国人,以及最后的数据统计分析,都让  2020-06-17 …

语言品析:1.从未见过开得这这样盛的藤萝,只见一片辉煌的淡紫色,像一条瀑布,从空中垂下,不见其发语  2020-06-19 …

赏析以下文章好再给5分2.当爱像明媚的阳光一样照彻寒冷的心房时,我们会发现,爱的本身就是一波震颤的  2020-06-20 …

在电影和电视剧中,我们往往能看到古代战争中攻城的场面,城上的人用石头砸城下的攻城者.请你分析一下,  2020-06-29 …

杜怀超的“草垛”一文中,文章第一段是从哪几个角度描写草垛的?请举例简析这是我们初中的一道阅读题,希  2020-07-10 …

如何用Excel进行轨迹分析现有一张旅客住宿登记的表格,内容如下,我们要从中对人员轨迹进行分析,从  2020-08-04 …