This action applies to Desktop Browser scripts only.
Many websites include features for uploading files; for example, adding images to a photo sharing site or attaching documents to an email message. . When you upload a file while recording a script, the file value, with appropriate locators, is added to the script. The actual file data is not stored in the script, to minimize data storage requirements. To simulate the file upload, you provide a URL to a sample data file. This URL will be downloaded by the agent during playback and then used for uploading when the File action is executed.
Add a File action
Place the mouse cursor in the timeline where to upload a file.
Click the plus icon to display the list of actions.
Define the file
Enter the path for the file in the File URL field.
You must provide the URL for the script to execute properly. Make sure that the URL points to where the file to upload is hosted.
When you test this script in the Dynatrace Portal, the nodes must have access to the URL to access the file and use it for the upload action.
Play back the script. The Target Window field and Locators are updated during playback.