18
Views
1
Comments
Solved
[Testing Framework] Testing non-public server action gives wrong error message on exception
testing-framework
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi,

If we use ProxyToAction to test a non-public server action and an error occurs within that action, its currently not possible to test if the error message is correct. 

The exception message is "Exception has been thrown by the target of an Invocation" instead of the functional error message that we want to test. 

However, if the tested action is a public server action and we perform the same actions, the functional error message of the exception is logged and we can apply an AssertText to test if the correct error is being thrown. Would it be possible to pass trough the functional error on invoking a Non-public server action with ProxyToAction?


Kind regards,

Bas

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Bas. This was fixed in 4.0.0.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.