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
Highlighted
zobal Absent Member.
Absent Member.
1309 views

Can I set a failure status for a test from a .NET script?

Jump to solution

I have a .NET script that checks for a dialog box.  If the box exists, I'd like to somehow mark the test as a failure.  Can I do that?

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Ulrich_Kroemer Absent Member.
Absent Member.

RE: Can I set a failure status for a test from a .NET script?

Jump to solution

hi,

you can achieve this by using a Verify statement that fails:

If _desktkop.Exists(myDialogIdentifier) Then

  Workbench.Verify(False, "Dialog was not expected")

End If

0 Likes
2 Replies
Ulrich_Kroemer Absent Member.
Absent Member.

RE: Can I set a failure status for a test from a .NET script?

Jump to solution

hi,

you can achieve this by using a Verify statement that fails:

If _desktkop.Exists(myDialogIdentifier) Then

  Workbench.Verify(False, "Dialog was not expected")

End If

0 Likes
zobal Absent Member.
Absent Member.

RE: Can I set a failure status for a test from a .NET script?

Jump to solution

Thanks a lot!

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.