简体   繁体   English

具有无限参数值的组合测试

[英]Combinatorial Testing with unbounded parameter values

I have been using some online combinatorial test generation tools , especially for parameters with constraints.我一直在使用一些在线组合测试生成工具,尤其是对于有约束的参数。 However, these tools require the parameter values (or their range) to be specified explicitly.但是,这些工具需要明确指定参数值(或其范围)。 What if I don't know the limit of a parameter in advance and use a placeholder instead, ie, x?如果我事先不知道参数的限制而使用占位符,即 x 怎么办?

For example, CTWedge generates combinatorial test suits with this syntax:例如, CTWedge使用以下语法生成组合测试套装:

Model Phone
  Parameters:
    emailViewer : Boolean
    textLines:  [ 25 .. 30 ]
    display : {16MC, 8MC, BW}
  Constraints:
    # emailViewer => textLines > 28 #

In my case, the parameter values are like this:在我的例子中,参数值是这样的:

Model Phone
  Parameters:
    emailViewer : Boolean
    textLines:  [ 1 .. x ] // unbounded values
    param2:  [ 1 .. m ] // unbounded values
    display : {16MC, 8MC, BW}
  Constraints:
    # emailViewer => textLines > 28 #

While running this code, the tool gives error.运行此代码时,该工具会出错。 Is there any way to solve this?有没有办法解决这个问题?

No, this is not possible.不,这是不可能的。 See the language's grammar here , relevant excerpt below:请参阅此处的语言语法,相关摘录如下:

Parameter:
    (Bool | Enumerative | Range) ';'?;

Range:
    name=ID ':' '[' begin=PossiblySignedNumber '..' end=PossiblySignedNumber ']' ('step' step=INT)?; //range of value of a constant

PossiblySignedNumber returns EIntegerObject:
    '-'? INT;

So it requires a begin and an end , both of which are explicitly integers (so no "infinity" value).所以它需要一个begin和一个end ,它们都是明确的整数(所以没有“无穷大”值)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM