Highlighted
Absent Member.
Absent Member.
309 views

in LR we add one file in solution explorer, so that file is saved as witch formet?

We are using Loadrunner for record REST API web services scenario.

We are using below format:

Action()
{
web_custom_request("add_order",
 "URL=http://192.168.68.119:2015/cfs/services/ordermanager/createneworder",
 "Method=post",
 "Resource=0",
 "EncType=application/xml",
 "Mode=HTTP",
 "Body=cfsorder.xml", 
 LAST);

 

And we added In the Solution Explorer, .xml file as cfsorder.xml.(one  right-click the Extra Files node and select Add Files to Script to add the .xml data file.)

We gave body name as cfsorder.xml. and my application enctype= application/xml format.

So we are getting the error while re-run the script that is:

org.xml.sax.SAXParseException; Invalid byte 1 of 1-byte UTF-8 sequence.

 

My question is in LR we add one file in solution explorer, so that file is saved as witch formet?

 

please help on this

 

thanks,

praveen.ch

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: in LR we add one file in solution explorer, so that file is saved as witch formet?

Hi,
To supply a file path to be used as the body, use the BodyFilePath attribute.

See http://lrhelp.saas.hp.com/en/latest/help/function_reference/Content/web/lrFr_web_custom_request.htm
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.