kroe761
10 years agoContributor
Solved
Can't call functions from other files more than once when returning data- HELP! (Jscript web testing)
I have been running into this problem off and on, but today it became a full on blocker. Everytime I try to call a function from another file AND I return an object into a variable, I get the error "...
- 10 years agoThe solution is just as John Smith/SmartBear support said.
I was able to run your project successfully simply by adding "var" before each of your variable declarations. Also not good practice to define your local variable with the same name as the function you are calling. Essentially you were redefining each function as a global variable, and when your second run came around you were trying to call that variable ex(blogLink()) as a function.
Reference: http://stackoverflow.com/questions/1470488/what-is-the-function-of-the-var-keyword-and-when-to-use-it-or-omit-it
See attached revised project.