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": "<root>\n\n<h:table xmlns:h=\"http://www.w3.org/TR/html4/\">\n<h:tr>\n<h:td>Apples</h:td>\n<h:td>Bananas</h:td>\n</h:tr>\n</h:table>\n\n<f:table xmlns:f=\"https://www.w3schools.com/furniture\">\n<f:name>African Coffee Table</f:name>\n<f:width>80</f:width>\n<f:length>120</f:length>\n</f:table>\n\n</root>"
}
(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)
{
"bob": {
"what": "<root>\n\n<h:table xmlns:h=\"http://www.w3.org/TR/html4/\">\n<h:tr>\n<h:td>Apples</h:td>\n<h:td>Bananas</h:td>\n</h:tr>\n</h:table>\n\n<f:table xmlns:f=\"https://www.w3schools.com/furniture\">\n<f:name>African Coffee Table</f:name>\n<f:width>80</f:width>\n<f:length>120</f:length>\n</f:table>\n\n</root>"
}
}
{
"what": "${a}"
}
Then
item "bob.what" 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