27 Aug 2020 04:19 PM
I'm using JavaScript to validate JSON response from a web page. However, when I call api.fail and supply message text that I expect would appear in the problem, all I see is "Script execution failed on <Event name>". Is there a way to make specific message text to appear in the problem when using custom scripts?
Solved! Go to Solution.
03 Sep 2020 05:26 PM - last edited on 16 Oct 2023 03:21 PM by random_user
Hi Chad,
currently this is not possible. There is a new feature being worked on that will allow these messages to be shown in the WebUI and that is expected in Q4 2020/ Q1 2021.
There are also a couple of Product Ideas that you can vote for for this:
https://community.dynatrace.com/idea/242001/allow-me-to-make-a-synthetic-test-fail-via-javascr.html
https://community.dynatrace.com/idea/243683/rfe-synthetics-http-make-apifail-message-available.html
Best wishes, Hannah
21 Dec 2021 02:45 PM
Solution is not a real solution.
First link suggest we can get if from event, while this is problem which is called for "problem notifications".
Second should do the trick as well.
Why being able to put "Api.fail" messages and descriptions if not visible in problems ? Non sense.
21 Dec 2021 02:23 PM
Solution is not a real solution.
First link suggest we can get if from event, while this is problem which is called for "problem notifications".
Second should do the trick as well.
Why being able to put "Api.fail" messages and descriptions if not visible in problems ? Non sense.
06 Jun 2023 05:23 PM
Is it was implemented?
09 Jun 2023 11:48 AM
Part 1:
https://community.dynatrace.com/t5/Product-ideas/RFE-Synthetics-HTTP-Make-api-fail-message-available...
was implemented and you can now see the messages in the WebUI.
Part 2 https://community.dynatrace.com/t5/Product-ideas/Allow-me-to-make-a-Synthetic-HTTP-test-fail-via-Jav...
making the information available to be shown in the Problem has not. You can vote for the Product Idea here