Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
garecanbp Contributor.
Contributor.
435 views

Not showing error Playback Status Dialog only on .Net Script

Jump to solution

Silk Test Workbench 19.5

Hello,

I have created an error handler if the click step could not found the locator (because the locator will exist only if the object is clicked), it will create the object.

The problem is error playback dialog is always shown before the error handler works so I have to click Continue in every error

Could I disable Playback Status Dialog only in .Net script?

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Not showing error Playback Status Dialog only on .Net Script

Jump to solution
Hi,

If you are using .NET scripts and want to use your own error handling, you will need to set the "Catch Exceptions when Thrown" playback setting to "No". To do this:

1. Select Tools | Options
2. Select Playback | General from the options tree
3. Set "Catch Exceptions when Thrown" to "No"
4. Press OK

I hope that helps.

Regards
Robert
0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

RE: Not showing error Playback Status Dialog only on .Net Script

Jump to solution
Hi,

If you are using .NET scripts and want to use your own error handling, you will need to set the "Catch Exceptions when Thrown" playback setting to "No". To do this:

1. Select Tools | Options
2. Select Playback | General from the options tree
3. Set "Catch Exceptions when Thrown" to "No"
4. Press OK

I hope that helps.

Regards
Robert
0 Likes
garecanbp Contributor.
Contributor.

RE: Not showing error Playback Status Dialog only on .Net Script

Jump to solution
Thank you Robert.
Is there error handling spesific for Silk Test that I can use in .Net?
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Not showing error Playback Status Dialog only on .Net Script

Jump to solution
There is nothing specific for Silk Test.

You can simply use Try...Catch blocks to handle potential exceptions.

-Robert
0 Likes
garecanbp Contributor.
Contributor.

RE: Not showing error Playback Status Dialog only on .Net Script

Jump to solution
yes, I have created Try...Catch to handle exceptions and when it get exception, back to my question, Error Playback Status Dialog is always shown, could I disable it only in .Net Script?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.