Feature: FillTemplate : Test Fill Template
{
"directory": "./test"
}
When
set "attach" to "false"
0s
And
set "no" to "yes"
00:00:00.001
{
"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.001
{
"directory": "./test"
}
{
"numVal": 5
}
"{\n \"bob\": \n 12\\\n}"
{
"bob":
${
(function() {
return numVal+7
})()
}\
}
Then
it is exactly equal to:
0s
{
"bob":
12\
}
{
"directory": "./test"
}
{
"numVal": {
"item5": 3
}
}
"{\n \"bob\": {\n \"item5\": 3\n}\\\n}"
{
"bob": ${numVal}\
}
Then
it is exactly equal to:
0s
{
"bob": {
"item5": 3
}\
}
{
"directory": "./test"
}
{
"numVal": {
"item5": 3
}
}
"{\n \"bob\": 3\n}"
{
"bob": ${numVal.item5}
}
{
"what": "{\n \"bob\": 3\n}"
}
Then
it is exactly equal to:
0s
{
"bob": 3
}
{
"directory": "./test"
}
"5"
5
Then
it is exactly equal to:
0s
5
{
"directory": "./test"
}
{
"var1": 3
}
{
"varOneOne": "1"
}
"Hi3After"
Hi${var${varOneOne}}After
Then
it is exactly equal to:
0s
Hi3After
{
"directory": "./test"
}
"${hello{there"
${hello{there
Then
it is exactly equal to:
0s
${hello{there
{
"directory": "./test"
}
{
"var1": 3
}
"var1"
${(function () {
return "var1"
})()}
Then
it is exactly equal to:
0s
var1
{
"directory": "./test"
}
{
"var1": 3
}
"3"
${${(function () {
return "var1"
})()}}
Then
it is exactly equal to:
00:00:00.001
3