Wikis - Page

Knowledge Doc: LoadRunner DevWeb - Sample code to send a large file content

0 Likes

This article shows a sample code to upload/send a large file content.

Environment

LoadRunner Professional  202x
 

Situation

When sending large file content in DevWeb (sample code below), VuGen may hang or observe a MemoryViolation error.

 const webResponse1 = new load.WebRequest({
        id: 1,
        url: "https://testapp/addDocument"",
        method: "POST",
        body: {
            "filename": "TestDoc.docx",
            "content": "LargeFileContentHere"
        },
		
    }).sendSync();

Cause

VuGen Editor is a text editor; like many text editors, such as Notepad, it will become unusable when the text file (main.js in DevWeb or Action.c in Web HTTP) has too much data.

Read full article

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended