2010-10-06 18:37:14 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<root>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="custom" desc="custom">
|
|
|
|
<test>
|
|
|
|
<positive format="%s%s%s AND %s%d=%d %s" params="value, prefix, ")" * parenthesis, "(" * parenthesis, randInt, randInt, postfix"/>
|
|
|
|
<negative format="%s%s%s AND %s%d=%d %s" params="value, prefix, ")" * parenthesis, "(" * parenthesis, randInt, randInt + 1, postfix"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix/>
|
|
|
|
<postfix/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="numeric" desc="unescaped numeric">
|
|
|
|
<test>
|
|
|
|
<positive format="%s%s AND %s%d=%d" params="value, ")" * parenthesis, "(" * parenthesis, randInt, randInt"/>
|
|
|
|
<negative format="%s%s AND %s%d=%d" params="value, ")" * parenthesis, "(" * parenthesis, randInt, randInt + 1"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix/>
|
|
|
|
<postfix format="%d=%d" params="randInt, randInt"/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="stringsingle" desc="single quoted string">
|
|
|
|
<test>
|
|
|
|
<positive format="%s'%s AND %s'%s'='%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s'%s AND %s'%s'='%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix value="'"/>
|
|
|
|
<postfix format="'%s'='%s" params="randStr, randStr"/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="likesingle" desc="LIKE single quoted string">
|
|
|
|
<test>
|
|
|
|
<positive format="%s'%s AND %s'%s' LIKE '%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s'%s AND %s'%s' LIKE '%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix value="'"/>
|
|
|
|
<postfix format="'%s' LIKE '%s" params="randStr, randStr"/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="stringdouble" desc="double quoted string">
|
|
|
|
<test>
|
|
|
|
<positive format="%s\"%s AND %s\"%s\"=\"%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s\"%s AND %s\"%s\"=\"%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix value="""/>
|
|
|
|
<postfix format="\"%s\"=\"%s" params="randStr, randStr"/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="likedouble" desc="LIKE double quoted string">
|
|
|
|
<test>
|
|
|
|
<positive format="%s\"%s AND %s\"%s\" LIKE \"%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s\"%s AND %s\"%s\" LIKE \"%s" params="value, ")" * parenthesis, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
|
|
|
</test>
|
|
|
|
<usage>
|
|
|
|
<prefix value="""/>
|
|
|
|
<postfix format="\"%s\" LIKE \"%s" params="randStr, randStr"/>
|
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
|
|
|
</root>
|