Feature: Core: Test Fill Template
File name: filltemplate.feature
Relative path: features/filltemplate.feature
{
"directory": "./test"
}
When
set "attach" to "false"
00:00:00.000
And
set "no" to "yes"
00:00:00.000
{
"directory": "./test"
}
{
"lastRun": {}
}
{
"directory": "./test"
}
{
"versionNum": 3
}
{
"vNum": "$100.00"
}
{
"version": "v3"
}
{
"request": {
"url": "https://run.mocky.io",
"api": "v3/d2bc61bc-bdf1-418b-a4d5-dc1b70c86861",
"method": "GET"
}
}
{
"url": "https://run.mocky.io",
"api": "${version}/d2bc61bc-bdf1-418b-a4d5-dc1b70c86861",
"method": "GET"
}
{
"directory": "./test"
}
{
"a": "\n\n\n\nApples \nBananas \n \n \n\n\nAfrican Coffee Table \n80 \n120 \n \n\n "
}
(root) (h:table xmlns:h="http://www.w3.org/TR/html4/") (h:tr) (h:td)Apples(/h:td) (h:td)Bananas(/h:td) (/h:tr) (/h:table) (f:table xmlns:f="https://www.w3schools.com/furniture") (f:name)African Coffee Table(/f:name) (f:width)80(/f:width) (f:length)120(/f:length) (/f:table) (/root)
{
"foo": {
"bar": "\n\n\n\nApples \nBananas \n \n \n\n\nAfrican Coffee Table \n80 \n120 \n \n\n "
}
}
{
"bar": "${a}"
}
Then
item "foo.bar" is equal to item "a"
00:00:00.000
{
"directory": "./test"
}
{
"numVal": 5
}
{
"lastRun": "{\n\"bob\":\n12\\\n}"
}
{
"bob":
${
(function() {
return numVal+7
})()
}\
}
Then
it is equal to:
00:00:00.000
{
"bob":
12\
}
{
"directory": "./test"
}
{
"numVal": {
"item5": 3
}
}
{
"lastRun": "{\n\"bob\": {\n \"item5\": 3\n}\\\n}"
}
{
"bob": ${numVal}\
}
Then
it is equal to:
00:00:00.000
{
"bob": {
"item5": 3
}\
}
{
"directory": "./test"
}
{
"numVal": {
"item5": 3
}
}
{
"lastRun": "{\n\"bob\": 3\n}"
}
{
"bob": ${numVal.item5}
}
{
"what": {
"bob": 3
}
}
Then
item "what" is equal to:
00:00:00.000
{
"bob": 3
}
{
"directory": "./test"
}
{
"lastRun": "5"
}
5
Then
it is equal to:
00:00:00.000
5
{
"directory": "./test"
}
{
"var1": 3
}
{
"varOneOne": "1"
}
{
"lastRun": "Hi3After"
}
Hi${var${varOneOne}}After
Then
it is equal to:
00:00:00.000
Hi3After
{
"directory": "./test"
}
{
"lastRun": "${hello{there"
}
${hello{there
Then
it is equal to:
00:00:00.000
${hello{there
{
"directory": "./test"
}
{
"var1": 3
}
{
"lastRun": "var1"
}
${(function () {
return "var1"
})()}
Then
it is equal to:
00:00:00.000
var1
{
"directory": "./test"
}
{
"var1": 3
}
{
"lastRun": "3"
}
${${(function () {
return "var1"
})()}}
Then
it is equal to:
00:00:00.000
3