User Code Library and Exceptions

Best practices, code snippets for common functionality, examples, and guidelines.
HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

User Code Library and Exceptions

Post by HansSchl » Tue Sep 29, 2020 5:51 pm

Hi all,

I created a user code library which I only hand out in compiled form (*.dll and *.xml). Testers use this library to create test cases. This normally works fine.

The user code reports execution errors by throwing a RanorexException. This causes the test to fail, and the failure is recorded in the log.

The problem is: When the tester opens the log and hovers the failed step, it displays a link "Jump to item". When they click the link, an error message pops up with the test "Can't load file xxx.cs etc." where "xxx.cs" is the source code file where the custom action is implemented. This is great while developing that code, but a tester would prefer to jump to the step in the recording which triggered the custom action, as is the case for built-in actions.

Is that possible?

Thank you
Hans

(Ranorex version 9.3.1 under Win10 with all recent updates)

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: User Code Library and Exceptions

Post by odklizec » Mon Oct 05, 2020 7:52 am

Hi,

I'm afraid, there is no workaround for this. But you can always make a feature request here:
https://uservoice.ranorex.com/forums/15 ... ve-ranorex
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Re: User Code Library and Exceptions

Post by HansSchl » Mon Oct 05, 2020 3:42 pm

But you can always make a feature request here:
I did :-) https://uservoice.ranorex.com/forums/15 ... -step-in-t

HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Re: User Code Library and Exceptions

Post by HansSchl » Tue Oct 06, 2020 9:36 am

Email reply from Ranorex:
Thanks for the great recommendation.
We are going to be phasing out User Voice.
Please contact support by filling out the form here: https://www.ranorex.com/support-query/
I hope to win the struggle with that form :?