Skip to main content

Table 2 Parameter mutation rules

From: A robustness testing approach for SOAP Web services

Data type Test name Parameter mutation
String StrNull Replace by null value
StrEmpty Replace by empty string
StrPredefined Replace by predefined string
StrNonPrintable Replace by string with nonprintable characters
StrAddNonPrintable Add nonprintable characters to the string
StrAlphaNumeric Replace by alphanumeric string
StrOverflow Add characters to overflow max size
StrMalicious Malicious predefined string (see examples in Table 3)
Number NumNull Replace by null value
NumEmpty Replace by empty value
NumAbsoluteMinusOne Replace by \({-}\)1
NumAbsoluteOne Replace by 1
NumAbsoluteZero Replace by 0
NumAddOne Add one
NumSubtractOne Subtract 1
NumMax Replace by maximum number valid for the type
NumMin Replace by minimum number valid for the type
NumMaxPlusOne Replace by maximum number valid for the type +1
MumMinMinusOne Replace by minimum number valid for the type \(-\)1
NumMaxRange Replace by maximum value valid for the parameter
NumMinRange Replace by minimum value valid for the parameter
NumMaxRangePlusOne Replace by maximum value valid for the parameter +1
NumMinRangeMinusOne Replace by minimum value valid for the parameter \(-\)1
List ListNull Replace by null value
ListRemove Remove element from the list
ListAdd Add element to the list
ListDuplicate Duplicate elements of the list
ListRemoveAllButFirst Remove all elements from the list except the first one
ListRemoveAll Remove all elements from the list
Date DateNull Replace by null value
DateEmpty Replace by empty date
DateMaxRange Replace by maximum date valid for the parameter
DateMinRange Replace by minimum date valid for the parameter
DateMaxRangePlusOne Replace by maximum date valid for the parameter plus one day
DateMinRangeMinusOne Replace by minimum date valid for the parameter minus one day
DateAdd100 Add 100 years to the date
DateSubtract100 Subtract 100 years to the date
Date2-29-1984 Replace by the following invalid date: 2/29/1984
Date4-31-1998 Replace by the following invalid date: 4/31/1998
Date13-1-1997 Replace by the following invalid date: 13/1/1997
Date12-0-1994 Replace by the following invalid date: 12/0/1994
Date8-31-1992 Replace by the following invalid date: 8/31/1992
Date8-32-1993 Replace by the following invalid date: 8/32/1993
Date31-12-1999 Replace by the last day of the previous millennium
Date1-1-2000 Replace by the first day of this millennium
Boolean BooleanNull Replace by null value
BooleanEmpty Replace by empty value
BooleanPredefined Replace by predefined value
BooleanOverflow Add characters to overflow max size