0xHiteshPatel / f5-postman-workflows

This extension is intended to be used with Postman. The purpose of this extension is to implement common functions that simplify building Collections that implement complex workflows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

f5-postman-workflows install fails

tkam8 opened this issue · comments

Issue

(udf2)
When trying to install the f5-postman-workflows into Postman Client for the first time, there is an error and leads to failed installation, and global variables not populated

http://f5-automation-labs.readthedocs.io/en/v2.0/class1/module4/lab1.html

POST
http://closure-compiler.appspot.com/compile?code_url=https://raw.githubusercontent.com/0xHiteshPatel/f5-postman-workflows/{{_f5_framework_branch}}/framework/src/f5-postman-workflows.js&compilation_level=SIMPLE_OPTIMIZATIONS&output_format=json&output_info=warnings&output_info=errors&output_info=compiled_code

Body
{"compiledCode":"","errors":[{"type":"JSC_ARGUMENTS_CALLEE_FORBIDDEN","file":"https://raw.githubusercontent.com/0xHiteshPatel/f5-postman-workflows/master/framework/src/f5-postman-workflows.js","lineno":508,"charno":26,"error":"\"arguments.callee\" cannot be used in strict mode","line":"        console.log('[' + arguments.callee.caller.name + '] ' + msg);"}]}

image

f5-postman-workflows.js lines 506-511
function f5_debug(msg) {
    if(postman.getGlobalVariable("_f5_debug") == "1") {
        console.log('[' + arguments.callee.caller.name + '] ' + msg);
    }
    return;
}

Check f5-postman-workflows Version completes as expected:

image

Global vars:
image

Same error on non-UDF Postman Version 4.10.7 (4.10.7), ill test more later today

Here is the version info:

Postman for Windows
Version 4.10.7
win32 10.0.14393 / x64

I also downgraded to below version but still same

Postman for Windows
Version 4.10.3 <---3/2/2017 release used to building the UDF lab
win32 10.0.14393 / x64