Forum Discussion
tristaanogre
Esteemed Contributor
When you call Log.Error, do something like this:
Log.Error ('Message: " + exception.description, exception.stack);
What that will do is, in your Additional Info pane for your log entry, you will get the stack as reported from the JavaScript/JSCRIPT enginer
Log.Error ('Message: " + exception.description, exception.stack);
What that will do is, in your Additional Info pane for your log entry, you will get the stack as reported from the JavaScript/JSCRIPT enginer
paulvinders
9 years agoContributor
Hi,
exception.stack is undefined. The Exception-Object has only the following fields: description, message, name, number
sincerely
Paul
- tristaanogre9 years agoEsteemed Contributor
Is your project a JScript project or a JavaScript project? I may have made the wrong assumption that it is JavaScript. JScript I don't believe has the stack property but JavaScript, I believe, does.
- paulvinders9 years agoContributor
Yes, it is a JScript Project
- tristaanogre9 years agoEsteemed Contributor
That explains it.
If you are so inclined, you CAN convert your project from JScript to JavaScript with very little in the way of "gotchas". There might be a few tweaks here and there that you would need to change but I think you will benefit from it since TestComplete uses the newer engine for JavaScript while JScript is going by the ECMAScript 3 standards.
Related Content
- 6 years ago
- 11 years ago
- 2 years ago
- 6 years ago
- 2 years ago
Recent Discussions
- 3 days ago