Stop Execution causes OnStop Handler to fail
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019
07:01 AM
09-24-2019
07:01 AM
Stop Execution causes OnStop Handler to fail
I noticed that when I use Stop Execution in our Keyword Tests, our OnStop Event Handler (which is a KWT) raises and exception when it tries to call an advanced script
Here are the contents of the KWT handler:
The exception raised says:
An exception occurred while executing the script routine
I added some logging to trace up to where the script actually gets to, apparently the KWT cannot even load the advanced script.
Thinking that this might be caused by a weird behavior of advanced scripts in handlers I decided to make a purely advanced script version of our KWT handler:
And surprisingly this one works. Anyone know what the possible issue might be?
I was thinking that you can either go purely KWTs with no advanced scripts or just call an advanced script for the handler.
Solved! Go to Solution.
Labels:
- Labels:
-
Keyword Tests
-
Scripting
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019
08:46 AM
09-24-2019
08:46 AM
There should be additional details in the log if you click the details tab. What does that say?
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019
10:04 AM
09-24-2019
10:04 AM
Unfortunately the contents of the details tab is just this:
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2019
02:23 AM
09-27-2019
02:23 AM
Hi @wmtan01,
I can suggest that you implement the suggestions posted in the Handling Exceptions in Scripts article. I think this may help you better understand why you get the exception.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
