Feature: Validations: Equivalence testing
File name: equivalence.feature
Relative path: features/equivalence.feature
{
"directory": "./test"
}
{
"str": "I am a string\"\nwith new lines"
}
I am a string" with new lines
{
"doubleStr": "I am a string\"\nwith new lines\nNext Line"
}
${str}
Next Line
{
"newItem": {
"str": "I am a string\"\nwith new lines"
}
}
{
"str": "${str}"
}
Then
item "newItem" is equal to:
00:00:00.001
{
"str": "I am a string\"\nwith new lines"
}
And
item "doubleStr" is equal to:
00:00:00.000
I am a string" with new lines Next Line
{
"directory": "./test"
}
{
"lastRun": "5"
}
Then
it is not null
00:00:00.000
And
"5" >= "5"
00:00:00.000
{
"directory": "./test"
}
{
"bob": "6"
}
Then
item "bob" is not null
00:00:00.000
{
"directory": "./test"
}
Then
"5" is not equal to "7"
00:00:00.000
{
"directory": "./test"
}
{
"bob": "6"
}
{
"sally": "7"
}
Then
"${sally}" is not equal to "${bob}"
00:00:00.000
{
"directory": "./test"
}
{
"test1": "the quick brown fox jumped over the lazy dog"
}
Then
item "test1" contains "quick brown"
00:00:00.000
{
"test2": {
"firstname": "Robert",
"lastname": "Paulson"
}
}
{
"firstname" : "Robert",
"lastname" : "Paulson"
}
Then
item "test2" contains "Robert"
00:00:00.000
And
item "test2" contains "lastname"
00:00:00.000
{
"myItem": "Banan"
}
{
"test3": [
"Apple",
"Banana",
"Orange"
]
}
[ "Apple", "Banana", "Orange" ]
Then
item "test3" contains "Ora"
00:00:00.000
And
item "test3" contains "${myItem}"
00:00:00.000
And
item "test3" does not contain "Kiwi"
00:00:00.000