Feature: Validations: Setting variables
File name: setting.feature
Relative path: features/setting.feature
{
"directory": "./test"
}
{
"lastRun": "15"
}
Then
it is equal to "15"
00:00:00.000
{
"a": 3
}
Then
item "a" is not null
00:00:00.000
And
item "b" is null
00:00:00.000
{
"directory": "./test"
}
{
"lastRun": "15"
}
Then
it is equal to "15"
00:00:00.000
{
"a": 3
}
Then
item "a" is not null
00:00:00.000
And
item "b" is null
00:00:00.000
{
"directory": "./test"
}
{
"environment": "MAF"
}
{
"hello": "MAF"
}
{
"directory": "./test"
}
{
"environment": "MAF"
}
{
"hello": "MAF"
}
{
"directory": "./test"
}
{
"hi": ""
}
Then
"${hi}" is equal to ""
00:00:00.000
{
"directory": "./test"
}
{
"hi": ""
}
Then
"${hi}" is equal to ""
00:00:00.000
{
"directory": "./test"
}
{
"hi": {}
}
Then
item "hi" is equal to "{}"
00:00:00.000
{}
Then
item "well.hello.there" is equal to "me?"
00:00:00.000
And
item "well.hello" is equal to '{ "there": "me?" }'
00:00:00.000
And
item "well" is equal to '{ "hello": { "there": "me?" } }'
00:00:00.000
{
"hi": {
"hello": {
"there": "General Kenobi!"
}
}
}
Then
item "hi" is equal to '{ "hello": { "there": "General Kenobi!" } }'
00:00:00.000
{}
Then
item "hi" is equal to '{ "hello": { "there": "General Kenobi!" } }'
00:00:00.000
{}
Then
item "hi" is equal to '{ "hello": { "there": "General Kenobi!" }, "over": { "here": "I see you!" } }'
00:00:00.000
And
item "well" is equal to '{ "hello": { "there": "me?" } }'
00:00:00.000
{
"directory": "./test"
}
{
"hi": []
}
Then
item "hi" is equal to "[]"
00:00:00.000
{
"hi[0]": "hello"
}
Then
item "hi[0]" is equal to "hello"
00:00:00.000
{
"directory": "./test"
}
{
"hi": 3
}
Then
item "hi" is equal to "3"
00:00:00.000
{
"hi": {}
}
And
item "hi" is not equal to item "hello"
00:00:00.000
{
"directory": "./test"
}
{
"username": [
"User",
"User2"
]
}
{
"pass": [
"Pass",
"2Pass"
]
}
| username | pass |
|---|---|
| User | Pass |
| User2 | 2Pass |
Then
"${username[0]}" is equal to "User"
00:00:00.000
Then
"${username[1]}" is equal to "User2"
00:00:00.000
{
"username": "User"
}
{
"pass": "Pass"
}
| username | pass |
|---|---|
| User | Pass |
Then
"${username}" is equal to "User"
00:00:00.000
{
"hi": "hello"
}
{
"item2": "hello"
}
Then
"${item2}" is equal to "hello"
00:00:00.000
{
"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"
00:00:00.000
Then
"${meh}" is equal to "Test"
00:00:00.000
{
"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.000
{
"a": 3
}
{
"a": "\"hi\""
}
{
"item": {
"a": "\"hi\""
}
}
{
"a": "${a}"
}
Then
item "item" is equal to:
00:00:00.000
{
"a": "\"hi\""
}
{
"directory": "./test"
}
{
"a": "3"
}
{
"item": {
"a": 3
}
}
{
"a": ${a}
}
Then
item "item" is equal to:
00:00:00.000
{
"a": 3
}
{
"a": "\"hi\""
}
{
"item": {
"a": "\"hi\""
}
}
{
"a": "${a}"
}
Then
item "item" is equal to:
00:00:00.000
{
"a": "\"hi\""
}
{
"directory": "./test"
}
Given
parameters are:
00:00:00.000
{
"hello": "world"
}
{
"hello": "world"
}
{}
Then
5 = 5
00:00:00.000
{
"directory": "./test"
}
Given
parameters are:
00:00:00.000
{
"hello": "world"
}
{
"hello": "world"
}
{}
Then
5 = 5
00:00:00.000