Information:

Environment

  • Dynatrace Recorder

 

Symptoms

I want to get a specific object reply content for further use in a script. For example, I need to get the object reply content and grab the dynamic value in the source then use it in later steps. How can I do it?

Solution

Use a Custom action in the Dynatrace Recorder to implement this.

Add the Custom action at the beginning of the step where the specific object will be downloaded.

In the indexOf() function, specify the object that you want to capture the reply content.

The example code below captures the object whose URL contains UsernameToken.

For more information, see the help pages Custom actions and Editing Script Actions.