cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sending a post request with form-data content-type

JingJCV
Newcomer_

I'm new to Dynatrace, and have a bunch of questions of Synthetic Monitoring..

Question 1:

I use this in pre script, 

const formData = new FormData();
formData.append("type", 1);
formData.append("name", "apimonitor_add_group1");
request.setBody(formData);

but got SCRIPT_EXECUTION_FAILED

How should I set the body correctly?

Question 2:

Is there any place to check the specific error place of SCRIPT_EXECUTION_FAILED ? 

Now I can only know the test failed, but don't know where's the wrong place. The only way I can use to debug is using api.info("xxx") everywhere in my scripts to print information and use an on-demand trigger to test it.

Is there an easier way to validate the script?

Question 3:

Is there any way to pass variables between different synthetic monitors?

I've checked the document and Community, but not found the answer. 
Would be very grateful for a help.


1 REPLY 1

olegus
Contributor

Did you find an solution? I'm in the same boat.

Featured Posts