log-20210506-145611.html 239 KB
Newer Older
piscione's avatar
piscione committed
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000
        var start = timedata[0];
        var end = timedata[1];
        var elapsed = timedata[2];
        return {
            elapsedMillis: elapsed,
            elapsedTime: util.formatElapsed(elapsed),
            startTime: util.dateTimeFromDate(start),
            endTime:  util.dateTimeFromDate(end)
        };
    }
    function createIterablePopulator(name) {
        return function (populator) {
            populateIterable(this, name, populator);
        };
    }
    function populateIterable(obj, name, populator) {
        name = name.toLowerCase() + 's';
        obj[name] = createGetAllFunction(populator.numberOfItems, populator.creator);
    }
    function createGetAllFunction(numberOfElements, creator) {
        var cached = null;
        return function () {
            if (cached === null) {
                cached = [];
                for (var i = 0; i < numberOfElements(); i++) {
                    cached.push(creator(i));
                }
            }
            return cached;
        };
    }
    return {
        Suite: Suite,
        Test: Test,
        Keyword: Keyword,
        Message: Message,
        Times: Times,
        containsTag: containsTag,  // Exposed for tests
        containsTagPattern: containsTagPattern  // Exposed for tests
    };
}());
window.stats = (function () {
    function Statistics(totalElems, tagElems, suiteElems) {
        return {total: util.map(totalElems, totalStatElem),
                tag:   util.map(tagElems, tagStatElem),
                suite: util.map(suiteElems, suiteStatElem)};
    }
    function statElem(stat) {
        stat.total = stat.pass + stat.fail + stat.skip;
        var percents = calculatePercents(stat.total, stat.pass, stat.fail, stat.skip);
        stat.passPercent = percents[0];
        stat.skipPercent = percents[1];
        stat.failPercent = percents[2];
        var widths = calculateWidths(stat.passPercent, stat.skipPercent, stat.failPercent);
        stat.passWidth = widths[0];
        stat.skipWidth = widths[1];
        stat.failWidth = widths[2];
        return stat;
    }
    function totalStatElem(data) {
        var stat = statElem(data);
        stat.type = 'all';
        return stat;
    }
    function tagStatElem(data) {
        var stat = statElem(data);
        stat.links = parseLinks(stat.links);
        return stat;
    }
    function suiteStatElem(data) {
        var stat = statElem(data);
        stat.fullName = stat.label;
        stat.formatParentName = function () { return util.formatParentName(stat); };
        return stat;
    }
    function parseLinks(linksData) {
        if (!linksData)
            return [];
        return util.map(linksData.split(':::'), function (link) {
                var index = link.indexOf(':');
                return {title: link.slice(0, index), url: link.slice(index+1)};
            });
    }
    function calculatePercents(total, passed, failed, skipped) {
        if (total == 0) {
            return [0.0, 0.0, 0.0];
        }
        var pass = 100.0 * passed / total;
        var skip = 100.0 * skipped / total;
        var fail = 100.0 * failed / total;
        if (pass > 0 && pass < 0.1)
            pass = 0.1
        if (fail > 0 && fail < 0.1)
            fail = 0.1
        if (skip > 0 && skip < 0.1)
            skip = 0.1
        if (pass > 99.95 && pass < 100)
            pass = 99.9
        if (fail > 99.95 && fail < 100)
            fail = 99.9
        if (skip > 99.95 && skip < 100)
            skip = 99.9
        return [Math.round(pass*10)/10, Math.round(skip*10)/10, Math.round(fail*10)/10];
    }
    function calculateWidths(num1, num2, num3) {
        if (num1 + num2 + num3 === 0)
            return [0.0, 0.0, 0.0];
        // Make small percentages better visible
        if (num1 > 0 && num1 < 1)
            num1 = 1
        if (num2 > 0 && num2 < 1)
            num2 = 1
        if (num3 > 0 && num3 < 1)
            num3 = 1
        // Handle situation where some are rounded up
        while (num1 + num2 + num3 > 100) {
            if (num1 > num2 && num1 > num3)
                num1 -= 0.1;
            else if (num2 > num1 && num2 > num3)
                num2 -= 0.1;
            else if (num3 > num1 && num3 > num2)
                num3 -= 0.1;
            else if (num1 > num3 && num1 == num2) {
                num1 -= 0.1;
                num2 -= 0.1;
            }
            else if (num1 > num2 && num1 == num3) {
                num1 -= 0.1;
                num3 -= 0.1;
            }
            else if (num2 > num1 && num2 == num3) {
                num2 -= 0.1;
                num3 -= 0.1;
            }
        }
        return [Math.ceil(num1*10)/10, Math.ceil(num2*10)/10, Math.ceil(num3*10)/10];
    }
    return {
        Statistics: Statistics
    };
}());
</script>
<script type="text/javascript">
window.util = function () {
    function map(elems, func) {
        var ret = [];
        for (var i = 0, len = elems.length; i < len; i++) {
            ret[i] = func(elems[i]);
        }
        return ret;
    }
    function filter(elems, predicate) {
        var ret = [];
        for (var i = 0, len = elems.length; i < len; i++) {
            if (predicate(elems[i]))
                ret.push(elems[i]);
        }
        return ret;
    }
    function all(elems) {
        for (var i = 0, len = elems.length; i < len; i++) {
            if (!elems[i])
                return false;
        }
        return true;
    }
    function any(elems) {
        for (var i = 0, len = elems.length; i < len; i++) {
            if (elems[i])
                return elems[i];
        }
        return false;
    }
    function contains(elems, e) {
        for (var i = 0, len = elems.length; i < len; i++) {
            if (elems[i] == e)
                return true;
        }
        return false;
    }
    function last(items) {
        return items[items.length-1];
    }
    function unescape(string) {
        return string.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&');
    }
    function escape(string) {
        return string.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
    }
    function normalize(string) {
        return string.toLowerCase().replace(/ /g, '').replace(/_/g, '');
    }
    function regexpEscape(string) {
        return string.replace(/[-[\]{}()+?*.,\\^$|#]/g, "\\$&");
    }
    function Matcher(pattern) {
        pattern = regexpEscape(normalize(pattern));
        var rePattern = '^' + pattern.replace(/\\\?/g, '.').replace(/\\\*/g, '[\\s\\S]*') + '$';
        var regexp = new RegExp(rePattern);
        function matches(string) {
            return regexp.test(normalize(string));
        }
        return {
            matches: matches,
            matchesAny: function (strings) {
                for (var i = 0, len = strings.length; i < len; i++)
                    if (matches(strings[i]))
                        return true;
                return false;
            }
        };
    }
    function formatParentName(item) {
        var parentName = item.fullName.slice(0, item.fullName.length - item.name.length);
        return parentName.replace(/\./g, ' . ');
    }
    function timeFromDate(date) {
        if (!date)
            return 'N/A';
        return formatTime(date.getHours(), date.getMinutes(),
                          date.getSeconds(), date.getMilliseconds());
    }
    function dateFromDate(date) {
        if (!date)
            return 'N/A';
        return padTo(date.getFullYear(), 4) +
               padTo(date.getMonth() + 1, 2) +
               padTo(date.getDate(), 2);
    }
    function dateTimeFromDate(date) {
        if (!date)
            return 'N/A';
        return dateFromDate(date) + ' ' + timeFromDate(date);
    }
    function formatTime(hours, minutes, seconds, milliseconds) {
        return padTo(hours, 2) + ':' +
               padTo(minutes, 2) + ':' +
               padTo(seconds, 2) + '.' +
               padTo(milliseconds, 3);
    }
    function formatElapsed(elapsed) {
        var millis = elapsed;
        var hours = Math.floor(millis / (60 * 60 * 1000));
        millis -= hours * 60 * 60 * 1000;
        var minutes = Math.floor(millis / (60 * 1000));
        millis -= minutes * 60 * 1000;
        var seconds = Math.floor(millis / 1000);
        millis -= seconds * 1000;
        return formatTime(hours, minutes, seconds, millis);
    }
    function padTo(number, len) {
        var numString = number + "";
        while (numString.length < len) numString = "0" + numString;
        return numString;
    }
    function timestamp(millis) {
        // used also by tools that do not set window.output.baseMillis
        var base = window.output ? window.output.baseMillis : 0;
        return new Date(base + millis);
    }
    function createGeneratedString(timestamp) {
        var date = new Date(timestamp);
        var dt = dateTimeFromDate(date).slice(0, 17);  // drop millis
        var offset = date.getTimezoneOffset();
        var sign = offset > 0 ? '-' : '+';
        var hh = Math.floor(Math.abs(offset) / 60);
        var mm = Math.abs(offset) % 60;
        return dt + ' UTC' + sign + padTo(hh, 2) + ':' + padTo(mm, 2);
    }
    function createGeneratedAgoString(timestamp) {
        function timeString(time, shortUnit) {
            var unit = {y: 'year', d: 'day', h: 'hour', m: 'minute',
                        s: 'second'}[shortUnit];
            var end = time == 1 ? ' ' : 's ';
            return time + ' ' + unit + end;
        }
        function compensateLeapYears(days, years) {
            // Not a perfect algorithm but ought to be enough
            return days - Math.floor(years / 4);
        }
        var generated = Math.round(timestamp / 1000);
        var current = Math.round(new Date().getTime() / 1000);
        var elapsed = current - generated;
        var prefix = '';
        if (elapsed < 0) {
            prefix = '- ';
            elapsed = Math.abs(elapsed);
        }
        var secs  = elapsed % 60;
        var mins  = Math.floor(elapsed / 60) % 60;
        var hours = Math.floor(elapsed / (60*60)) % 24;
        var days  = Math.floor(elapsed / (60*60*24)) % 365;
        var years = Math.floor(elapsed / (60*60*24*365));
        if (years) {
            days = compensateLeapYears(days, years);
            return prefix + timeString(years, 'y') + timeString(days, 'd');
        } else if (days) {
            return prefix + timeString(days, 'd') + timeString(hours, 'h');
        } else if (hours) {
            return prefix + timeString(hours, 'h') + timeString(mins, 'm');
        } else if (mins) {
            return prefix + timeString(mins, 'm') + timeString(secs, 's');
        } else {
            return prefix + timeString(secs, 's');
        }
    }
    function parseQueryString(query) {
        var result = {};
        if (!query)
            return result;
        var params = query.split('&');
        var parts;
        function decode(item) {
            return decodeURIComponent(item.replace('+', ' '));
        }
        for (var i = 0, len = params.length; i < len; i++) {
            parts = params[i].split('=');
            result[decode(parts.shift())] = decode(parts.join('='));
        }
        return result;
    }
    return {
        map: map,
        filter: filter,
        all: all,
        any: any,
        contains: contains,
        last: last,
        escape: escape,
        unescape: unescape,
        normalize: normalize,
        regexpEscape: regexpEscape,
        Matcher: Matcher,
        formatParentName: formatParentName,
        timeFromDate: timeFromDate,
        dateFromDate: dateFromDate,
        dateTimeFromDate: dateTimeFromDate,
        formatElapsed: formatElapsed,
        timestamp: timestamp,
        createGeneratedString: createGeneratedString,
        createGeneratedAgoString: createGeneratedAgoString,
        parseQueryString: parseQueryString
    };
}();
</script>
<script type="text/javascript">
window.testdata = function () {
    var elementsById = {};
    var idCounter = 0;
    var _statistics = null;
    var LEVELS = ['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FAIL', 'SKIP'];
    var STATUSES = ['FAIL', 'PASS', 'SKIP', 'NOT RUN'];
    var KEYWORD_TYPES = ['KEYWORD', 'SETUP', 'TEARDOWN', 'FOR', 'VAR', 'IF', 'ELSE IF', 'ELSE'];
    var MESSAGE_TYPE = 8;
    function addElement(elem) {
        if (!elem.id)
            elem.id = uniqueId();
        elementsById[elem.id] = elem;
        return elem;
    }
    function uniqueId() {
        idCounter++;
        return 'element-id-' + idCounter;
    }
    function times(stats) {
        var startMillis = stats[1];
        var elapsed = stats[2];
        if (startMillis === null)
            return [null, null, elapsed];
        return [util.timestamp(startMillis),
                util.timestamp(startMillis + elapsed),
                elapsed];
    }
    function createMessage(element, strings) {
        return model.Message(LEVELS[element[2]],
                             util.timestamp(element[1]),
                             strings.get(element[3]),
                             strings.get(element[4]));
    }
    function parseStatus(stats) {
        return STATUSES[stats[0]];
    }
    function childCreator(parent, childType) {
        return function (elem, strings, index) {
            return addElement(childType(parent, elem, strings, index));
        };
    }
    function createBodyItem(parent, element, strings, index) {
        if (element[0] == MESSAGE_TYPE)
            return createMessage(element, strings);
        return createKeyword(parent, element, strings, index);
    }
    function createKeyword(parent, element, strings, index) {
        var kw = model.Keyword({
            parent: parent,
            type: KEYWORD_TYPES[element[0]],
            id: 'k' + (index + 1),
            name: strings.get(element[1]),
            libname: strings.get(element[2]),
            timeout: strings.get(element[3]),
            args: strings.get(element[5]),
            assign: strings.get(element[6]),
            tags: strings.get(element[7]),
            doc: function () {
                var doc = strings.get(element[4]);
                this.doc = function () { return doc; };
                return doc;
            },
            status: parseStatus(element[8], strings),
            times: model.Times(times(element[8])),
            isChildrenLoaded: typeof(element[9]) !== 'number'
        });
        lazyPopulateKeywordsFromFile(kw, element[9], strings);
        return kw;
    }
    function lazyPopulateKeywordsFromFile(parent, modelOrIndex, strings) {
        var model, index, populator;
        var creator = childCreator(parent, createBodyItem);
        if (parent.isChildrenLoaded) {
            model = modelOrIndex;
            populator = Populator(model, strings, creator);
        } else {
            index = modelOrIndex;
            parent.childFileName = window.settings['splitLogBase'] + '-' + index + '.js';
            populator = SplitLogPopulator(index, creator);
        }
        parent.populateKeywords(populator);
    }
    function tags(taglist, strings) {
        return util.map(taglist, strings.get);
    }
    function createTest(parent, element, strings, index) {
        var status = element[4];
        var test = model.Test({
            parent: parent,
            id: 't' + (index + 1),
            name: strings.get(element[0]),
            doc: function () {
                var doc = strings.get(element[2]);
                this.doc = function () { return doc; };
                return doc;
            },
            timeout: strings.get(element[1]),
            status: parseStatus(status),
            message: function () {
                var msg = status.length == 4 ? strings.get(status[3]) : '';
                this.message = function () { return msg; };
                return msg;
            },
            times: model.Times(times(status)),
            tags: tags(element[3], strings),
            isChildrenLoaded: typeof(element[5]) !== 'number'
        });
        lazyPopulateKeywordsFromFile(test, element[5], strings);
        return test;
    }
    function createSuite(parent, element, strings, index) {
        var status = element[5];
        var suite = model.Suite({
            parent: parent,
            id: 's' + ((index || 0) + 1),
            name: strings.get(element[0]),
            source: strings.get(element[1]),
            relativeSource: strings.get(element[2]),
            doc: function () {
                var doc = strings.get(element[3]);
                this.doc = function () { return doc; };
                return doc;
            },
            status: parseStatus(status),
            message: function () {
                var msg = status.length == 4 ? strings.get(status[3]) : '';
                this.message = function () { return msg; };
                return msg;
            },
            times: model.Times(times(status)),
            statistics: suiteStats(util.last(element)),
            metadata: parseMetadata(element[4], strings)
        });
        suite.populateKeywords(Populator(element[8], strings, childCreator(suite, createKeyword)));
        suite.populateTests(Populator(element[7], strings, childCreator(suite, createTest)));
        suite.populateSuites(Populator(element[6], strings, childCreator(suite, createSuite)));
        return suite;
    }
    function parseMetadata(data, strings) {
        var metadata = [];
        for (var i=0; i<data.length; i+=2) {
            metadata.push([strings.get(data[i]), strings.get(data[i+1])]);
        }
        return metadata;
    }
    function suiteStats(stats) {
        return {
            total: stats[0],
            pass: stats[1],
            fail: stats[2],
            skip: stats[3]
        };
    }
    function Populator(items, strings, creator) {
        return {
            numberOfItems: function () {
                return items.length;
            },
            creator: function (index) {
                return creator(items[index], strings, index);
            }
        };
    }
    function SplitLogPopulator(structureIndex, creator) {
        return {
            numberOfItems: function () {
                return window['keywords'+structureIndex].length;
            },
            creator: function (index) {
                return creator(window['keywords'+structureIndex][index],
                               StringStore(window['strings'+structureIndex]),
                               index);
            }
        };
    }
    function suite() {
        var elem = window.output.suite;
        if (elementsById[elem.id])
            return elem;
        var root = addElement(createSuite(null, elem, StringStore(window.output.strings)));
        window.output.suite = root;
        return root;
    }
    function findLoaded(id) {
        return elementsById[id];
    }
    function ensureLoaded(id, callback) {
        var ids = id.split('-');
        var root = suite();
        ids.shift();
        loadItems(ids, root, [root.id], callback);
    }
    function loadItems(ids, current, result, callback) {
        if (!ids.length) {
            callback(result);
            return;
        }
        current.callWhenChildrenReady(function () {
            var id = ids.shift();
            var type = id[0];
            var index = parseInt(id.substring(1)) - 1;
            var item = selectFrom(current, type, index);
            if (item)
                result.push(item.id);
            else    // Invalid id. Should this be reported somewhere?
                ids = [];
            loadItems(ids, item, result, callback);
        });
    }
    function selectFrom(element, type, index) {
        if (type === 'k') {
            var keywords = util.filter(element.keywords(), function (kw) {
                return kw.type != 'message';
            });
            return keywords[index];
        } else if (type === 't') {
            return element.tests()[index];
        } else {
            return element.suites()[index];
        }
    }
    function errorIterator() {
        return {
            next: function () {
                return addElement(createMessage(window.output.errors.shift(),
                                                StringStore(window.output.strings)));
            },
            hasNext: function () {
                return window.output.errors.length > 0;
            }
        };
    }
    function statistics() {
        if (!_statistics) {
            var statData = window.output.stats;
            _statistics = stats.Statistics(statData[0], statData[1], statData[2]);
        }
        return _statistics;
    }
    function StringStore(strings) {
        function getText(id) {
            var text = strings[id];
            if (!text)
                return '';
            if (text[0] == '*')
                return text.substring(1);
            var extracted = extract(text);
            strings[id] = '*' + extracted;
            return extracted;
        }
        function extract(text) {
            var decoded = JXG.Util.Base64.decodeAsArray(text);
            var extracted = (new JXG.Util.Unzip(decoded)).unzip()[0][0];
            return JXG.Util.UTF8.decode(extracted);
        }
        function get(id) {
            if (id === null) return null;
            return getText(id);
        }
        return {get: get};
    }
    return {
        suite: suite,
        errorIterator: errorIterator,
        findLoaded: findLoaded,
        ensureLoaded: ensureLoaded,
        statistics: statistics,
        StringStore: StringStore,  // exposed for tests
        LEVELS: LEVELS
    };
}();
</script>
<script type="text/javascript">
function removeJavaScriptDisabledWarning() {
    // Not using jQuery here for maximum speed
    document.getElementById('javascript-disabled').style.display = 'none';
}
function addJavaScriptDisabledWarning(error) {
    if (window.console)
        console.error('Opening failed: ' + error.name + ': ' + error.message);
    document.getElementById('javascript-disabled').style.display = 'block';
}
function initLayout(suiteName, type) {
    parseTemplates();
    setTitle(suiteName, type);
    addHeader();
    addReportOrLogLink(type);
}
function parseTemplates() {
    $('script[type="text/x-jquery-tmpl"]').map(function (idx, elem) {
        $.template(elem.id, elem.text);
    });
}
function testOrTask(text) {
    return text.replace(/{(.*)}/, function (match, group, offset, string) {
        if (!window.settings.rpa)
            return group;
        return {'TEST': 'TASK', 'Test': 'Task', 'test': 'task'}[group];
    });
}
function setTitle(suiteName, type) {
    var givenTitle = window.settings.title;
    var title = givenTitle ? givenTitle : suiteName + " " + type;
    document.title = util.unescape(title);
}
function addHeader() {
    var generated = util.timestamp(window.output.generated);
    $.tmpl('<h1>${title}</h1>' +
           '<div id="generated">' +
             '<span>Generated<br>${generated}</span><br>' +
             '<span id="generated-ago">${ago} ago</span>' +
           '</div>' +
           '<div id="top-right-header">' +
             '<div id="report-or-log-link"><a href="#"></a></div>' +
           '</div>', {
        generated: util.createGeneratedString(generated),
        ago: util.createGeneratedAgoString(generated),
        title: document.title
    }).appendTo($('#header'));
}
function addReportOrLogLink(myType) {
    var url;
    var text;
    var container = $('#report-or-log-link');
    if (myType == 'Report') {
        url = window.settings.logURL;
        text = 'LOG';
    } else {
        url = window.settings.reportURL;
        text = 'REPORT';
    }
    if (url) {
        container.find('a').attr('href', url);
        container.find('a').text(text);
    } else {
        container.remove();
    }
}
function addStatistics() {
    var statHeaders =
        '<th class="stats-col-stat">Total</th>' +
        '<th class="stats-col-stat">Pass</th>' +
        '<th class="stats-col-stat">Fail</th>' +
        '<th class="stats-col-stat">Skip</th>' +
        '<th class="stats-col-elapsed">Elapsed</th>' +
        '<th class="stats-col-graph">Pass / Fail / Skip</th>';
    var statTable =
        '<h2>{Test} Statistics</h2>' +
        '<table class="statistics" id="total-stats"><thead><tr>' +
        '<th class="stats-col-name">Total Statistics</th>' + statHeaders +
        '</tr></thead></table>' +
        '<table class="statistics" id="tag-stats"><thead><tr>' +
        '<th class="stats-col-name">Statistics by Tag</th>' + statHeaders +
        '</tr></thead></table>' +
        '<table class="statistics" id="suite-stats"><thead><tr>' +
        '<th class="stats-col-name">Statistics by Suite</th>' + statHeaders +
        '</tr></thead></table>';
    $(testOrTask(statTable)).appendTo('#statistics-container');
    util.map(['total', 'tag', 'suite'], addStatTable);
    addTooltipsToElapsedTimes();
    enableStatisticsSorter();
}
function addTooltipsToElapsedTimes() {
    $('.stats-col-elapsed').attr('title',
        testOrTask('Total execution time of these {test}s. ') +
        'Excludes suite setups and teardowns.');
    $('#suite-stats').find('.stats-col-elapsed').attr('title',
        'Total execution time of this suite.');
}
function enableStatisticsSorter() {
    $.tablesorter.addParser({
        id: 'statName',
        type: 'numeric',
        is: function(s) {
            return false;  // do not auto-detect
        },
        format: function(string, table, cell, cellIndex) {
            // Rows have class in format 'row-<index>'.
            var index = $(cell).parent().attr('class').substring(4);
            return parseInt(index);
        }
    });
    $(".statistics").tablesorter({
        sortInitialOrder: 'desc',
        headers: {0: {sorter: 'statName', sortInitialOrder: 'asc'},
                  6: {sorter: false}}
    });
}
function addStatTable(tableName) {
    var stats = window.testdata.statistics()[tableName];
    if (tableName == 'tag' && stats.length == 0) {
        renderNoTagStatTable();
    } else {
        renderStatTable(tableName, stats);
    }
}
function renderNoTagStatTable() {
    $('<tbody><tr class="row-0">' +
        '<td class="stats-col-name">No Tags</td>' +
        '<td class="stats-col-stat"></td>' +
        '<td class="stats-col-stat"></td>' +
        '<td class="stats-col-stat"></td>' +
        '<td class="stats-col-stat"></td>' +
        '<td class="stats-col-elapsed"></td>' +
        '<td class="stats-col-graph">' +
          '<div class="empty-graph"></div>' +
        '</td>' +
      '</tr></tbody>').appendTo('#tag-stats');
}
function renderStatTable(tableName, stats) {
    var template = tableName + 'StatisticsRowTemplate';
    var tbody = $('<tbody></tbody>');
    for (var i = 0, len = stats.length; i < len; i++) {
        $.tmpl(template, stats[i], {index: i}).appendTo(tbody);
    }
    tbody.appendTo('#' + tableName + '-stats');
}
$.template('statColumnsTemplate',
    '<td class="stats-col-stat">${total}</td>' +
    '<td class="stats-col-stat">${pass}</td>' +
    '<td class="stats-col-stat">${fail}</td>' +
    '<td class="stats-col-stat">${skip}</td>' +
    '<td class="stats-col-elapsed">${elapsed}</td>' +
    '<td class="stats-col-graph">' +
      '{{if total}}' +
      '<div class="graph">' +
        '<div class="pass-bar" style="width: ${passWidth}%" title="${passPercent}%"></div>' +
        '<div class="fail-bar" style="width: ${failWidth}%" title="${failPercent}%"></div>' +
        '<div class="skip-bar" style="width: ${skipWidth}%" title="${skipPercent}%"></div>' +
      '</div>' +
      '{{else}}' +
      '<div class="empty-graph"></div>' +
      '{{/if}}' +
    '</td>'
);
$.template('suiteStatusMessageTemplate',
    '${total} {{= testOrTask("{test}")}}{{if total != 1}}s{{/if}} total, ' +
    '${pass} passed, ${fail} failed, ${skip} skipped'
);
// For complete cross-browser experience..
// http://www.quirksmode.org/js/events_order.html
function stopPropagation(event) {
    var event = event || window.event;
    event.cancelBubble = true;
    if (event.stopPropagation)
        event.stopPropagation();
}
</script>
<script type="text/javascript">
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,601],[],[[4,0,5,[],[1,382,111],[[0,6,7,0,8,9,0,0,[1,383,0],[]],[0,6,7,0,8,10,0,0,[1,383,1],[]],[0,11,0,0,0,12,0,0,[1,384,101],[[0,13,7,0,14,15,0,0,[1,384,0],[[8,384,2,15]]],[0,16,17,0,18,19,0,20,[1,384,1],[]],[0,16,17,0,18,21,0,20,[1,385,0],[]],[0,22,7,0,23,24,25,0,[1,385,0],[[8,385,2,26]]],[0,27,28,0,29,25,30,0,[1,385,1],[[8,385,2,31],[8,386,2,32]]],[0,33,17,0,34,35,0,36,[1,386,88],[]],[0,13,7,0,14,30,0,0,[1,474,1],[[8,474,2,37]]],[0,38,17,0,39,40,41,42,[1,475,10],[[8,475,2,43],[8,485,2,44]]],[0,45,7,0,46,47,0,0,[1,485,0],[[8,485,2,48]]]]],[0,49,50,0,0,51,0,0,[1,485,2],[[0,52,7,0,53,54,55,0,[1,486,0],[[8,486,2,56]]],[0,57,7,0,58,59,0,0,[1,486,1],[]],[0,13,7,0,14,60,0,0,[1,487,0],[[8,487,2,60]]]]],[0,61,50,0,0,62,0,0,[1,487,3],[[0,63,7,0,64,65,0,0,[1,487,1],[]],[0,22,7,0,23,66,67,0,[1,488,0],[[8,488,2,68]]],[0,69,70,0,71,72,0,0,[1,488,2],[]],[0,13,7,0,14,73,0,0,[1,490,0],[[8,490,2,73]]]]],[0,74,7,0,75,76,0,0,[1,490,1],[]],[0,74,7,0,75,77,0,0,[1,491,1],[]],[0,74,7,0,75,78,0,0,[1,492,0],[]]]],[79,0,80,[],[1,493,16],[[0,6,7,0,8,9,0,0,[1,493,1],[]],[0,6,7,0,8,10,0,0,[1,494,0],[]],[0,11,0,0,0,81,0,0,[1,494,13],[[0,13,7,0,14,15,0,0,[1,494,1],[[8,494,2,15]]],[0,16,17,0,18,19,0,20,[1,495,0],[]],[0,16,17,0,18,21,0,20,[1,495,0],[]],[0,22,7,0,23,24,25,0,[1,495,1],[[8,495,2,82]]],[0,27,28,0,29,25,30,0,[1,496,0],[[8,496,2,83],[8,496,2,84]]],[0,33,17,0,34,35,0,36,[1,496,9],[]],[0,13,7,0,14,30,0,0,[1,505,1],[[8,506,2,85]]],[0,38,17,0,39,40,41,42,[1,506,0],[[8,506,2,86],[8,506,2,87]]],[0,45,7,0,46,47,0,0,[1,506,1],[[8,507,2,88]]]]],[0,49,50,0,0,89,0,0,[1,507,2],[[0,52,7,0,53,54,55,0,[1,507,1],[[8,508,2,90]]],[0,57,7,0,58,59,0,0,[1,508,1],[]],[0,13,7,0,14,60,0,0,[1,509,0],[[8,509,2,60]]]]]]],[91,0,92,[],[1,510,13],[[0,6,7,0,8,9,0,0,[1,510,0],[]],[0,6,7,0,8,10,0,0,[1,510,1],[]],[0,93,0,0,0,12,0,0,[1,511,10],[[0,13,7,0,14,15,0,0,[1,511,0],[[8,511,2,15]]],[0,16,17,0,18,19,0,20,[1,511,1],[]],[0,16,17,0,18,21,0,20,[1,512,0],[]],[0,22,7,0,23,24,25,0,[1,512,1],[[8,513,2,26]]],[0,27,28,0,29,25,30,0,[1,513,0],[[8,513,2,31],[8,513,2,32]]],[0,33,17,0,34,94,0,36,[1,513,7],[[8,519,3,96]]],[0,38,17,0,39,40,41,42,[1,520,1],[[8,520,2,97],[8,521,2,98]]],[0,45,7,0,46,47,0,0,[1,521,0],[[8,521,2,99]]]]],[0,49,50,0,0,100,0,0,[1,521,2],[[0,52,7,0,53,54,55,0,[1,521,1],[[8,522,2,101]]],[0,57,7,0,58,59,0,0,[1,522,0],[]],[0,13,7,0,14,60,0,0,[1,523,0],[[8,523,2,60]]]]]]],[102,0,103,[],[1,523,25],[[0,6,7,0,8,9,0,0,[1,524,0],[]],[0,6,7,0,8,10,0,0,[1,524,1],[]],[0,104,0,0,0,105,0,0,[1,525,11],[[0,6,7,0,8,9,0,0,[1,525,1],[]],[0,6,7,0,8,10,0,0,[1,526,0],[]],[0,16,17,0,18,19,0,20,[1,526,1],[]],[0,16,17,0,18,21,0,20,[1,527,0],[]],[0,106,17,0,107,108,0,36,[1,527,7],[]],[0,38,17,0,39,40,41,42,[1,534,1],[[8,535,2,109],[8,535,2,110]]],[0,45,7,0,46,47,0,0,[1,536,0],[[8,536,2,111]]]]],[0,49,50,0,0,112,0,0,[1,536,3],[[0,52,7,0,53,54,55,0,[1,536,1],[[8,537,2,113]]],[0,57,7,0,58,59,0,0,[1,537,1],[]],[0,13,7,0,14,60,0,0,[1,538,0],[[8,538,2,60]]]]],[0,61,50,0,0,114,0,0,[1,539,6],[[0,63,7,0,64,65,0,0,[1,539,1],[]],[0,22,7,0,23,66,67,0,[1,540,1],[[8,541,2,115]]],[0,69,70,0,71,72,0,0,[1,541,4],[]],[0,13,7,0,14,73,0,0,[1,545,0],[[8,545,2,73]]]]],[3,116,0,0,0,0,0,0,[1,545,3],[[4,117,0,0,0,0,0,0,[1,546,2],[[0,118,7,0,119,120,121,0,[1,546,2],[[0,74,7,0,75,122,0,0,[1,546,1],[]],[8,548,2,123]]],[0,124,7,0,125,121,0,0,[1,548,0],[[8,548,2,126]]]]]]]]],[127,0,103,[],[1,548,23],[[0,6,7,0,8,9,0,0,[1,549,1],[]],[0,6,7,0,8,10,0,0,[1,550,0],[]],[0,104,0,0,0,105,0,0,[1,550,10],[[0,6,7,0,8,9,0,0,[1,550,1],[]],[0,6,7,0,8,10,0,0,[1,551,0],[]],[0,16,17,0,18,19,0,20,[1,551,0],[]],[0,16,17,0,18,21,0,20,[1,552,0],[]],[0,106,17,0,107,108,0,36,[1,552,6],[]],[0,38,17,0,39,40,41,42,[1,559,1],[[8,559,2,128],[8,560,2,129]]],[0,45,7,0,46,47,0,0,[1,560,0],[[8,560,2,130]]]]],[0,49,50,0,0,112,0,0,[1,561,2],[[0,52,7,0,53,54,55,0,[1,561,0],[[8,561,2,113]]],[0,57,7,0,58,59,0,0,[1,561,1],[]],[0,13,7,0,14,60,0,0,[1,562,0],[[8,562,2,60]]]]],[0,61,50,0,0,114,0,0,[1,563,7],[[0,63,7,0,64,65,0,0,[1,563,1],[]],[0,22,7,0,23,66,67,0,[1,564,0],[[8,564,2,115]]],[0,69,70,0,71,72,0,0,[1,564,5],[]],[0,13,7,0,14,73,0,0,[1,570,0],[[8,570,2,73]]]]],[0,74,7,0,75,77,0,0,[1,570,1],[]]]],[131,0,103,[],[1,572,14],[[0,6,7,0,8,9,0,0,[1,572,1],[]],[0,6,7,0,8,10,0,0,[1,573,0],[]],[0,104,0,0,0,132,0,0,[1,573,11],[[0,6,7,0,8,9,0,0,[1,573,1],[]],[0,6,7,0,8,10,0,0,[1,574,0],[]],[0,16,17,0,18,19,0,20,[1,574,1],[]],[0,16,17,0,18,21,0,20,[1,575,0],[]],[0,106,17,0,107,108,0,36,[1,575,8],[]],[0,38,17,0,39,40,41,42,[1,583,1],[[8,583,2,133],[8,583,2,134]]],[0,45,7,0,46,47,0,0,[1,584,0],[[8,584,2,135]]]]],[0,49,50,0,0,89,0,0,[1,584,2],[[0,52,7,0,53,54,55,0,[1,585,0],[[8,585,2,90]]],[0,57,7,0,58,59,0,0,[1,585,1],[]],[0,13,7,0,14,60,0,0,[1,586,0],[[8,586,2,60]]]]]]],[136,0,137,[],[1,587,14],[[0,138,0,0,0,0,0,0,[1,587,11],[[0,6,7,0,8,9,0,0,[1,588,0],[]],[0,6,7,0,8,10,0,0,[1,588,1],[]],[0,16,17,0,18,19,0,20,[1,589,1],[]],[0,16,17,0,18,21,0,20,[1,590,0],[]],[0,106,17,0,107,139,0,36,[1,591,5],[[8,596,3,96]]],[0,38,17,0,39,40,41,42,[1,597,0],[[8,597,2,141],[8,597,2,142]]],[0,45,7,0,46,47,0,0,[1,598,0],[[8,598,2,143]]]]],[0,49,50,0,0,100,0,0,[1,599,2],[[0,52,7,0,53,54,55,0,[1,599,0],[[8,599,2,101]]],[0,57,7,0,58,59,0,0,[1,599,1],[]],[0,13,7,0,14,60,0,0,[1,600,0],[[8,600,2,60]]]]]]]],[],[7,7,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*WaiSubscription","*C:\\Users\\pietr\\Desktop\\gs032p3-robot-test-suite\\MEC028\\WAI\\SUB\\WaiSubscription.robot","*../WAI/SUB/WaiSubscription.robot","*TP_MEC_MEC028_SRV_WAI_007_OK","eNq9jsFOw0AMRH/FCle6pgUEqkKkqqpQDnAgRZydxelaJLurtUvF3xPlxBdwGc0c5s3UudkH9l9ggWwWhvb9CIU1p/ipcBELQPCaTAbxZJIidOdefZG8hDceuHD0DNXh2LXw3MHLYQ83m0fYuLVbX4Mf6awMD+7e3bo7qAlC4eGpCmZZt4hDKid2bCpudlg448QeTzozVheSFWXBfkw9fi9E/BgptnGuTcufXRb3Q9N4heoDT6S4U02+M/p7tGr+d69GamrMzS/f3njf","*Should Be True","*BuiltIn","*<p>Fails if the given condition is not true.\x3c/p>","*${PIC_MEC_SYSTEM} == 1","*${PIC_SERVICES} == 1","*Send a request for creating a subscription","*AssocStaSubscription.json","*Log","*<p>Logs the given message with the given level.\x3c/p>","*Creating a new subscription","*Set Headers","*REST","*<p><b>Sets new request headers or updates the existing.\x3c/b>\x3c/p>","*{\"Content-Type\":\"application/json\"}","*settings","*{\"Authorization\":\"${TOKEN}\"}","*Catenate","*<p>Catenates the given items together and returns the resulted string.\x3c/p>","*SEPARATOR=, jsons/, ${content}","*${path}","*${path} = jsons/AssocStaSubscription.json","*Get File","*OperatingSystem","*<p>Returns the contents of a specified file.\x3c/p>","*${body}","eNq1zLEKgzAQgOFXCS5OMaJLEStYW0qHTkG63BLl1LQlF3Ln+xcfouPPB/8dRXxY1eK/qPLWqS3hcs6ObIwZGhgZE0P0KAmuyB+hCCuXdRVrnWgi0YIsmncvCM/bUFYnePUPsOMF3kyBoWem2Yqz+8Rz8lE8heKgrPvvvzWuy4sf00JRYA==","*${body} = {\n\t\"apId\": {\n\t\t\"macId\": \"macId01\"\n\t},\n\t\"callbackReference\": \"<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>\",\n\t\"subscriptionType\": \"AssocStaSubscription\"\n}","*POST","*<p><b>Sends a POST request to the endpoint.\x3c/b>\x3c/p>","*${apiRoot}/${apiName}/${apiVersion}/subscriptions, ${body}","*http","*{\n\t\"apId\": {\n\t\t\"macId\": \"macId01\"\n\t},\n\t\"callbackReference\": \"<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>\",\n\t\"subscriptionType\": \"AssocStaSubscription\"\n}","*Output","*<p><b>Outputs JSON to terminal or a file.\x3c/b>\x3c/p>","*response","*${output}","*I/O","eNp9UkFuwjAQvPMKy+eA41SgKgUk1EpVVbgU7tXiLI1LsK3YoUIVf2+cBDCl6p7s2ZnZ8cq97x6pi1oUWmWWpiQexHwY3/H4UjzqSA5c5TnJGVrr7FADrUuDvBdSbe0V1k0oNjdo08lL9B3KvkCyPWe2WltRSuOkVpZxeqU4nm/H6DIUzEt2O3IHooHbQxw4hVoBRbEGsX3DDZaoBHrFGIiPNaG5cyZl7EQaVKWsI03/hMcMpjRwDh+yOpjGeGatFksHy6DX5uoy0Rwhw/J6g/RRK4fK9U82YEwhBXg1+7RaPRCRQ2nRTSq36d+HKea65f234uh20hzVh8u9KEmSkPAEromwyquIxCOygEP9IRJOeJIORynn5Hmx+uWoUJwibBFNHwq5x5Dz6tFZg9YcJ3eoKzcZdpvpHX8AllavoA==","*${output} = {'seconds': 0.015031000000000001, 'status': 201, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'apId': {'macId': 'macId01'}, 'callbackReference': '<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>', 'subscrip...","*Set Suite Variable","*<p>Makes a variable available everywhere within the scope of the current suite.\x3c/p>","*${response}, ${output}","*${response} = {'seconds': 0.015031000000000001, 'status': 201, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'apId': {'macId': 'macId01'}, 'callbackReference': '<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>', 'subscrip...","*Check HTTP Response Status Code Is","*GenericKeywords","*201","*Convert To Integer","*<p>Converts the given item to an integer number.\x3c/p>","*${expected_status}","*${status}","*${status} = 201","*Should Be Equal","*<p>Fails if the given objects are unequal.\x3c/p>","*${response['status']}, ${status}","*Status code validated","*Check HTTP Response Body Json Schema Is","*AssocStaSubscription","*Should Contain","*<p>Fails if <code>container\x3c/code> does not contain <code>item\x3c/code> one or more times.\x3c/p>","*${response['headers']['Content-Type']}, application/json","*SEPARATOR=, ${input}, .schema.json","*${schema}","*${schema} = AssocStaSubscription.schema.json","*Validate Json","*JSONSchemaLibrary","*<p>Validates the sample JSON against the given schema.\x3c/p>","*${schema}, ${response['body']}","*Json Schema Validation OK","*Should Be Equal As Strings","*<p>Fails if objects are unequal after converting them to strings.\x3c/p>","*${response['body']['subscriptionType']}, ${SUB_TYPE}","*${response['body']['_links']['self']['href']}, ${HREF}","*${response['headers']['Location']}, ${HREF}","*TP_MEC_MEC028_SRV_WAI_007_BR","eNq9jsFOwzAQRH9lVa7USwsIVIVIVVWhHDiliPPG3dYWjm28m0b8PS4nvoDLaObwZqbJ7c6x/QR1pFUYuvcDFJac4lFg9uqAInApqcDsOF6TjxcK/gj9NIgtPqtPsTJfE4uCFxCOCvtD38FrD2/7Hdytn2FtVmZ1CzbQJAxP5tHcmwdoCFzh08vCqWbZIJ5SObNhFW+qw8IZR7Z4ltqxnMkvKXscQhrw8tuIH4FiFys20vXHNnvzTWO4QbGORxLciiTbK/19u2j/d69BahvM7Q+8ln6G","*AssocStaSubscription_BR.json","*${path} = jsons/AssocStaSubscription_BR.json","eNq1zbEKgzAQgOFXCS5OMaJLESuoLaVDlwbpclCinDZt8ULufP/iQ3T8+Yb/giJ+XdTsv6jS2qlXxPmY7FkZ01cwMEaG4FEinJA/QgEWzssilDrSSKIFWTRvXhBu5z4vDvBor2CHDt5MK0PLTJMVZ7eRp+iDeFqf3T3bNWn+vqiNa9LsB7TiU0Y=","*${body} = {\n  \"_links\":{\n  \t\"href\":\"\"\n  \t},\n      \n\t\"apId\": {\n\t\t\"macId\": \"macId01\"\n\t},\n\t\"callbackReference\": \"<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>\",\n\t\"subscriptionType\": \"INVALID_VALUE\"\n}","*{\n  \"_links\":{\n  \t\"href\":\"\"\n  \t},\n      \n\t\"apId\": {\n\t\t\"macId\": \"macId01\"\n\t},\n\t\"callbackReference\": \"<a href=\"http://callback.uri/1\">http://callback.uri/1\x3c/a>\",\n\t\"subscriptionType\": \"INVALID_VALUE\"\n}","eNpdjrEOgjAQQHe+oukqaGnAGAyD0cRB2fiBAqeg0DZwmBDDv0srA9rt3r17qfN2yPRoB7mSRUcjwtaMhUHgzhwF9gYHjM0oU8UwAUrnuQRRQGucb8vCo5IIEr100GBkoXVd5QIrJTe6VVkNzerRKbkneSnaDjDu8ebt5uZP4gryjqWJsOX6JNCW07J3CduSRAyEM+4Tn0fhNvI5OSfpX09Cbn5gzp4A2hN19YKlczH0YOnkYNWA6jEOqTVGZ/wAfRFOyw==","*${output} = {'seconds': 0.00544, 'status': 400, 'body': '', 'headers': {'Content-Type': 'application/problem+json; charset=utf-8', 'Content-Length': '0', 'Date': 'Thu, 06 May 2021 12:56:12 GMT', 'Connection': 'ke...","*${response} = {'seconds': 0.00544, 'status': 400, 'body': '', 'headers': {'Content-Type': 'application/problem+json; charset=utf-8', 'Content-Length': '0', 'Date': 'Thu, 06 May 2021 12:56:12 GMT', 'Connection': 'ke...","*400","*${status} = 400","*TP_MEC_MEC028_SRV_WAI_007_NF","*<p>Check that the IUT responds with an error when a request with not existing parameters is sent Reference \"ETSI GS MEC 028 2.1.1, clause 7.5.3.1\x3c/p>","*Send a request for creating a subscription using wrong endpoint","*${apiRoot}/${apiName}/${apiVersion}/subscriptions_INVALID_URI, ${body}","*s1-t3-k3-k6","*Response body content is not JSON. Content-Type is: text/html; charset=utf-8","eNptkE9PwkAUxO98irUHuFD7BwED4UCAGCIIkWo0ISFL+0o3ll2y+4o2hu8uu1Qoxt7e9DfT6VS+K+T4WApCwSNldYh767qNttd2S0+jXlBIMdPQnXtXSGsR5UfBqqbYvRnOBsH7fEQS3KbVDXaXXMv6Iinlm97SAr60Sm+ARpdrC0hJmFCpAI9ohrF9X6aRYQr6HEkppFacs3QinOtA3e1y7aQhB5RzgWQ+WwTE+aTM2XuOytYqlGyHTHC1Gj+99ifj4erleWxCC2PxietQ5/KrVrGI7gBSr3Ta1ogDwRE42gsIM8kwt+ciZaFZLoKYZinaSoakxgWHWpFkjG/2rzXId2DPTh21jwvFWRyX4TKqEYQvNA27513Nqv95JsA3mGiX1/bLwJCiCQuSrE7cFpnSnPiu7xHP7zRbHc8nD9PgTyKHUPfUtg+AnU1Ttocy86jVvlF1T7YFkWGvaRniUDn8AHXQw2c=","eNpVjkELgkAQRv/KJKGXcjcMjMSTeVaoS9Bl1U0F3ZXd2SKk/55bUDa393h8zHKUBgeDT4hh9DQvpai0twfqUxqEm5DOLliBp5GhscGWbicsZPWYwHM7jBaHLDmd8xQa7Du3xugirLYEHRN17HDhzDxn1Y96jgzKhinNMXYMXte7WYstdtxiqpRU1pCv+hTkf87+9aNBvcuECSER8ux4AnJnLbltiDaFLlU7YOv7/gvzEFb4","eNpVjsEKwjAQBX9lLWIvmkQUFEtPtWcFvQheYrtqoE1KdquI+O8aBa17m2F4bP/ukRpnCR+Qwj0mLJwtKV6AEkpNZuOZ6txkCDGx5jYEUzV94cGVtxfEg4qT3nKVbXfrHM5cV4MTJ3sbdCCotD2lEdqo41GXP6qRNRRn7Qk5jVo+juadlg1XGDD33vlg5Fd9Cvk/F/76UePfZaatdQzr1WYL8qqNvIwltQcqvGnYCCGevDpXtg==","*404","*${status} = 404","*TP_MEC_MEC028_SRV_WAI_005_OK","eNq9jsFOwzAQRH9lFa7US4oQCIVIVVVVOXAhRZw37qa2cGzXu6Hi7wk98QVcRqOR5s00ud06tp+gjnQRhu79AIUlp3gUuHh117TweWZRPkLwopBGkHkQW3xWnyK88ciFo2Wodoe+g30Pr7st3K2fYG1qU9+CDTQLw6N5MPemhobAFR5fKqea5RlxTOXEhlW8WRwWzjixxZMsjNWF/IqyxyGkAb+uRPwIFLu41Cb6vbDJ3nzTFG5QrOOJBDciyfZK/Z+jVfu/ew1S22BufwCiPXuY","*Retrieve the subscription information","*${SUB_FILTER}","*GET","*<p><b>Sends a GET request to the endpoint.\x3c/b>\x3c/p>","*${apiRoot}/${apiName}/${apiVersion}/subscriptions?subscription_type=${subscription_type}","eNqdU9FugjAUfecrmj7jCmzqxtTEbMmybL4ob4tZruU6OrEQWlzMwr8PEBWQxGR9oueec3q4tzV+DZIvqpBH0lfUJdaNZd0Nhw9mVdCg0wJ3LKuCVpG/z4GDskQ+QyE3qoFVruH6Ai0rQYJFhbIfEGxnM5WuFE9ErEUkFbNpQ5Gddpl5PjRP9gwa5qBxUVPnrh/LGg2UivhCQ5vTOKEjYT2Rt4+xSDvt8jIvtRzCcAV8M8c1Jih5KR4BKf56TAOtY5exI4mliaCTDnDEYNLlDvGr39nVsroFXpYPH1arla0mXpvg9Un+b6KXk+1GzrulUYtOAwQfk2Ze+hRJjVL3jtOCOA4FhyIA+1aRfCQ8gEShHqd63buvtfYkfUf5pYNCfDuw64T8ppWeXpCaxBqQGezzF+HYxHbc/sC1HfIy81qOEnl12egGMe5BKHZY57wV6LREc44WW4xSPe4fWpUZ2R9SYd47","*${output} = {'seconds': 0.004779, 'status': 200, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'staDataRateSubscription': [], 'assocStaSubscription': [{'subscriptionType': 'AssocStaSubscriptio...","*${response} = {'seconds': 0.004779, 'status': 200, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'staDataRateSubscription': [], 'assocStaSubscription': [{'subscriptionType': 'AssocStaSubscriptio...","*200","*${status} = 200","*SubscriptionLinkList","*${schema} = SubscriptionLinkList.schema.json","*${assocStaSub} IN [ @{response['body']['assocStaSubscription']} ]","*${assocStaSub} = {'subscriptionType': 'AssocStaSubscription', 'callbackReference': 'http://callback/uri', 'apId': {'macId': 'macId01'}, '_links': {'self': {'href': '/wai/v1/subscriptions/1'}}}","*Run Keyword And Return Status","*<p>Runs the given keyword with given arguments and returns the status as a Boolean value.\x3c/p>","*Should Be Equal As Strings, ${assocStaSub['_links']['self']['href']}, ${HREF}","*${passed}","*${assocStaSub['_links']['self']['href']}, ${HREF}","*${passed} = True","*Exit For Loop If","*<p>Stops executing the enclosing for loop if the <code>condition\x3c/code> is true.\x3c/p>","*Exiting for loop altogether.","*TP_MEC_MEC028_SRV_WAI_006_OK","eNqdU9FugjAUfecrmj7jCjiNY2pitmRZNl+Ut8Us13IdnVgILS5m4d8HiApIYrI+0XPPOT3c2xq/BskXVcgj6SvqEuvOsu5HD32zKmjQaYE7llVB68g/5MBRWSKfoZBb1cAq13BzhZaVIMGiQtkPCLa3mUrXiici1iKSitm0ocjOu8y8HJonewYNC9C4rKlz149VjQZKRXypoc1pnNCRsJ7IO8RYpJ11eZnXWg5huAa+XeAGE5S8FI+BFH89oYHWscvYicTSRNBpBzhmMO1yh/jV7+xqWd0BL8vHD6vVylYTb03w9iT/N9HryXYjl93KqEWnAYKPSTMvfYqkRql7p2lBHIeCQxGAfatIPhIeQKJQT1K96Y1qrT1L31F+6aAQ94d2nZDftNLTC1KTWEMyh0P+Ihyb2I47GLq2Q17mXstRIq8uG90ixj0IxR7rnLcCnZVoztFih1GqJ4NjqzIj+wNH2d44","*${output} = {'seconds': 0.004893, 'status': 200, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'staDataRateSubscription': [], 'assocStaSubscription': [{'subscriptionType': 'AssocStaSubscriptio...","*${response} = {'seconds': 0.004893, 'status': 200, 'body': {'_links': {'self': {'href': '/wai/v1/subscriptions/1'}}, 'staDataRateSubscription': [], 'assocStaSubscription': [{'subscriptionType': 'AssocStaSubscriptio...","*TP_MEC_MEC028_SRV_WAI_006_BR","*${INVALID_SUB_FILTER}","eNpdjrEOgjAQQHe+oukqaEuEGAyD0cRB2fiBAqeg0Db0MCGGf5ciA3pb3717qfN2yDjUQK5kYWhE2JqxgAehOy9QYGf5lrEZZaroR0Dp/C5BFNBa5xub4FFJBIle2muwstC6rnKBlZIb3aqshmb1MEruSV6K1gDGHd683dz8SVxB3rG0EbZcnwRO5bTsXMJCkoie+MznhPtREEbcJ+ck/etJyO0P7NkTQHuirl6wdC6WHiY6Olg1oDqMAzoZgzN8ALuwTv8=","*${output} = {'seconds': 0.005156, 'status': 400, 'body': '', 'headers': {'Content-Type': 'application/problem+json; charset=utf-8', 'Content-Length': '0', 'Date': 'Thu, 06 May 2021 12:56:12 GMT', 'Connection': 'k...","*${response} = {'seconds': 0.005156, 'status': 400, 'body': '', 'headers': {'Content-Type': 'application/problem+json; charset=utf-8', 'Content-Length': '0', 'Date': 'Thu, 06 May 2021 12:56:12 GMT', 'Connection': 'k...","*TP_MEC_MEC028_SRV_WAI_006_NF","eNq9jcFOwzAQRH9lFa7US4oQCIVIVVVVOXAhRZw37ia2SGzXuyHw9wT4By6jkWbmTZXqvWP7DupIV2FoXk+QWVIMZ4HFqwMKwDnHDIvjALSml5lF/8IQFfjTi/owQKJMEytnAS8gHBReuOfMwTIUh1PbwLGF58MebrYPsDWlKa/BjjQLw725M7emhIrAZe6fCqea5BGxj3lgwyrerA4zJ5zY4iArY7OQ31Dy2I2xw49fIr6NFJqwziZSH8MuefNF03iFYh1PJLgTibZVaudObPbpp1XU//tXIdUVpvobLwiE5g==","*Retrieve the subscription information using wrong endpoint","*${apiRoot}/${apiName}/${apiVersion}/subscriptions_INVALID_URI","*s1-t7-k1-k5","eNptkE9PwkAUxO98irUHuFD7R0AD4UCAECII0Wo0ISFL+0o3ll2y+4o2hu8uuxQoxt7e9DfT6VR+KuTwWApCwSNltYl767p3La9RL14gxUzrDfckrUSUHwSrmmLnZjDrBx/zIUlwk1bX2FlwLeuLpJSvuwsL+MIqvQEaXa4NICVhQqUCPKAZxvZDmUaGKehzKKWQWnHO0pFwrgN1t8u1lYbsU84FktEwIM4XZc7Oc1S2UqFkW2SCq+X46a03GQ+Wr89jk1n4ii9cZzqXP7WKQXQFkHqk45pG7AuOwNF+gTCTDHN7LlIWmuEiiGmWoq1kSGpccKgVScb4bp+sQb4Fe3bsqH1cKM7iuAyXUY0gfKNp2DnPakb9zzMBvsZEu7x7rwwMKJqwIMnqxG2RKc2J7/oe8fx2s9X2fDKaBn8SOYS6p7Z9AmxtmrIdlJlHrfaMqnuyDYgMu03LEPvK/hcfh8CJ","*${output} = {'seconds': 0.003614, 'status': 404, 'body': '&lt;!DOCTYPE html&gt;\\n&lt;html lang=\"en\"&gt;\\n&lt;head&gt;\\n&lt;meta charset=\"utf-8\"&gt;\\n&lt;title&gt;Error&lt;/title&gt;\\n&lt;/head&gt;\\n&lt;body&gt;\\n&lt;pre&gt;Cannot GET /wai/v1/subscriptions_INVALID_UR...","*${response} = {'seconds': 0.003614, 'status': 404, 'body': '&lt;!DOCTYPE html&gt;\\n&lt;html lang=\"en\"&gt;\\n&lt;head&gt;\\n&lt;meta charset=\"utf-8\"&gt;\\n&lt;title&gt;Error&lt;/title&gt;\\n&lt;/head&gt;\\n&lt;body&gt;\\n&lt;pre&gt;Cannot GET /wai/v1/subscriptions_INVALID_UR..."]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":7,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"WaiSubscription","name":"WaiSubscription","pass":7,"skip":0}]];
</script>
<script type="text/javascript">
window.output["errors"] = [[8,519,3,96,95],[8,596,3,96,140]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1620305771587;
</script>
<script type="text/javascript">
window.output["generated"] = 633;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;
</script>
<script type="text/javascript">
window.settings = {"defaultLevel":"INFO","minLevel":"INFO","reportURL":"report-20210506-145611.html","rpa":false,"splitLogBase":"log-20210506-145611","title":""};
</script>
<title></title>
</head>
<body>
<div id="javascript-disabled">
  <h1>Opening Robot Framework log failed</h1>
  <ul>
    <li>Verify that you have <b>JavaScript enabled</b> in your browser.</li>
    <li>Make sure you are using a <b>modern enough browser</b>. If using Internet Explorer, version 11 is required.</li>
    <li>Check are there messages in your browser's <b>JavaScript error log</b>. Please report the problem if you suspect you have encountered a bug.</li>
  </ul>
</div>
<script type="text/javascript">removeJavaScriptDisabledWarning();</script>

<div id="header"></div>
<div id="statistics-container"></div>

<script type="text/javascript">
$(document).ready(function() {
    try {
        var topsuite = window.testdata.suite();
    } catch (error) {
        addJavaScriptDisabledWarning(error);
        return;
    }
    initLayout(topsuite.name, 'Log');
    addStatistics();
    addErrors();
    addExecutionLog(topsuite);
    addLogLevelSelector(window.settings['minLevel'], window.settings['defaultLevel']);
    if (window.location.hash) {
        makeElementVisible(window.location.hash.substring(1));
    } else {
        expandSuite(topsuite);
    }
    setTimeout(function () { loadAndExpandElementIds(window.output['expand_keywords']); }, 100);
});

function addLogLevelSelector(minLevel, defaultLevel) {
    var controller = LogLevelController(minLevel, defaultLevel);
    if (controller.showLogLevelSelector()) {
        var selector = $.tmpl('logLevelSelectorTemplate', controller);
        selector.find('select').val(controller.defaultLogLevel());
        selector.appendTo($('#top-right-header'));
        $('#report-or-log-link').find('a').css({'border-bottom-left-radius': '0'});
        setMessageVisibility(controller.defaultLogLevel());
    }
}

function addErrors() {
    var errors = window.testdata.errorIterator();
    if (errors.hasNext()) {
        $.tmpl('errorHeaderTemplate').appendTo($('body'));
        drawErrorsRecursively(errors, $('#errors'));
    }
}

function drawErrorsRecursively(errors, target) {
    var elements = popFromIterator(errors, 10);
    $.tmpl('errorTemplate', elements).appendTo(target);
    if (errors.hasNext())
        setTimeout(function () { drawErrorsRecursively(errors, target); }, 0);
    else {
        // Errors may have moved scroll position. Resetting location re-scrolls.
        if (window.location.hash)
            window.location.replace(window.location.hash);
        highlightLinkTarget();
    }
}

function highlightLinkTarget() {
    if (window.location.hash) {
        var target = $(window.location.hash);
        highlight(target);
    }
}

function highlight(element, color) {
    if (color === undefined)
        color = 242;
    if (color < 255) {
        element.css({'background-color': 'rgb('+color+','+color+','+color+')'});
        setTimeout(function () { highlight(element, color+1); }, 300);
    } else {
        element.css({'background-color': ''});
    }
}

function popFromIterator(iterator, upTo) {
    var result = [];
    while (iterator.hasNext() > 0 && result.length < upTo)
        result.push(iterator.next());
    return result;
}

function makeElementVisible(id) {
    window.testdata.ensureLoaded(id, function (ids) {
        util.map(ids, expandElementWithId);
        if (ids.length) {
            expandFailed(window.testdata.findLoaded(util.last(ids)));
            window.location.hash = '';
            window.location.hash = id;
            highlightLinkTarget();
        }
    });
}

function addExecutionLog(main) {
    $('body').append($(testOrTask('<h2>{Test} Execution Log</h2>')),
                     $.tmpl('suiteTemplate', main));
}
</script>

<script type="text/x-jquery-tmpl" id="totalStatisticsRowTemplate">
  <tr class="row-${$item.index}">
    <td class="stats-col-name">
      <div class="stat-name">
        <span>{{html label}}</span>
      </div>
    </td>
    {{tmpl($data) 'statColumnsTemplate'}}
  </tr>
</script>

<script type="text/x-jquery-tmpl" id="tagStatisticsRowTemplate">
  <tr class="row-${$item.index}">
    <td class="stats-col-name" title="{{html doc}}">
      <div class="stat-name">
        <span>{{html label}}</span>
        {{if info}}(${info}){{/if}}
      </div>
      <div class="tag-links">
        {{each links}}
        <span>[<a href="{{html $value.url}}" title="{{html $value.url}}">{{html $value.title}}</a>]</span>
        {{/each}}
      </div>
    </td>
    {{tmpl($data) 'statColumnsTemplate'}}
  </tr>
</script>

<script type="text/x-jquery-tmpl" id="suiteStatisticsRowTemplate">
  <tr onclick="makeElementVisible('${id}')" class="row-${$item.index}">
    <td class="stats-col-name" title="{{html label}}">
      <div class="stat-name">
        <a href="#${id}"><span class="parent-name">{{html formatParentName}}</span>{{html name}}</a>
      </div>
    </td>
    {{tmpl($data) 'statColumnsTemplate'}}
  </tr>
</script>

<script type="text/x-jquery-tmpl" id="errorHeaderTemplate">
  <h2>{{= testOrTask('{Test}')}} Execution Errors</h2>
  <table id="errors"></table>
</script>

<script type="text/x-jquery-tmpl" id="errorTemplate">
  <tr id="${id}" class="message-row">
    <td class="error-time">
      {{if link}}
      <a onclick="makeElementVisible('${link}')" href="#${link}" title="Link to details">${date} ${time}</a>
      {{else}}
      ${date} ${time}
      {{/if}}
    </td>
    <td class="${level.toLowerCase()} level"><span class="label ${level.toLowerCase()}">${level}</span></td>
    <td class="message">{{html text}}</td>
    <td class="select-message" onclick="javascript:selectMessage('${id}')" title="Select message text">
      <div></div>
    </td>
  </tr>
</script>

<script type="text/x-jquery-tmpl" id="suiteTemplate">
  <div id="${id}" class="suite">
    <div class="element-header closed" onclick="toggleSuite('${id}')">