Feature: Validations : Setting variables
{
"directory": "./test"
}
{
"lastRun": "15"
}
Then
it is equal to "15"
0s
{
"a": 3
}
Then
item "a" is not null
0s
And
item "b" is null
0s
{
"directory": "./test"
}
{
"environment": "MAF"
}
{
"hello": "MAF"
}
{
"directory": "./test"
}
{
"hi": ""
}
Then
"${hi}" is equal to ""
00:00:00.001
{
"directory": "./test"
}
Then
"5" is not equal to:
0s
17
Then
"5" is equal to:
0s
5
{
"hi": {}
}
{
"hi.there": "yo"
}
{
"hi.yo": "yo"
}
{
"hi.arr": []
}
{
"hi.arr[0]": "hello"
}
{
"hello": {
"there": "yo",
"yo": "yo",
"arr": [
"hello"
]
}
}
{
"hi": 3
}
Then
item "hi" is equal to "3"
00:00:00.001
{
"hi": {}
}
And
item "hi" is not equal to item "hello"
0s
{
"directory": "./test"
}
{
"username": [
"User",
"User2"
]
}
{
"pass": [
"Pass",
"2Pass"
]
}
| username | pass |
|---|---|
| User | Pass |
| User2 | 2Pass |
Then
"${username[0]}" is equal to "User"
0s
Then
"${username[1]}" is equal to "User2"
0s
{
"username": "User"
}
{
"pass": "Pass"
}
| username | pass |
|---|---|
| User | Pass |
Then
"${username}" is equal to "User"
00:00:00.001
{
"hi": "hello"
}
{
"item2": "hello"
}
Then
"${item2}" is equal to "hello"
0s
{
"directory": "./test"
}
{
"param": "meh"
}
{
"url": "http://google.com"
}
{
"meh": "Test"
}
{
"meh2": "Another Test"
}
{
"deepMeh": {
"deep1": "Testing1",
"deep2": "Testing2"
}
}
{
"deepMeh2": {
"deep3": "Testing3",
"deep4": "Testing4"
}
}
{
"arrayTest": [
"Testing1",
"Testing2",
"Testing3"
]
}
{
"deep3": "Testing3"
}
{
"deep4": "Testing4"
}
Then
"${deep3}" is equal to "Testing3"
0s
Then
"${meh}" is equal to "Test"
0s
{
"directory": "./test"
}
{
"num": "5"
}
{
"hi": {
"num": 5
}
}
{
"num": ${num}
}
{
"directory": "./test"
}
{
"a": "3"
}
{
"item": {
"a": 3
}
}
{
"a": ${a}
}
Then
item "item" is equal to:
00:00:00.001
{
"a":3
}
{
"a": "\"hi\""
}
{
"item": {
"a": "\"hi\""
}
}
{
"a": "${a}"
}
Then
item "item" is equal to:
0s
{
"a": "\"hi\""
}
{
"directory": "./test"
}
Given
parameters are:
0s
{
"hello": "world"
}
{
"hello": "world"
}
{}
Then
5 = 5
0s