loadrunner - Upload csv files with comma inside it -
as per requirement, need upload .csv file application. trying simulate using loadrunner. issue encoutering csv file in below format
header - aa,bb,cc
data-xyz,"yyx,zzy",xxz
on using below statement upload file, getting error ""line 2 contains 4 columns instead of 3"
web_submit_data("upload", "action=xxx/upload", "method=post", "enctype=multipart/form-data", "reccontenttype=text/html", "referer=xxx", "snapshot=t86.inf", "mode=html", itemdata, "name=utf8", "value=✓", enditem, "name=token", "value={token_1}", enditem, "name=upload_file", "value={newparam_5}", "file=yes", "contenttype=text/csv", enditem, "name=button1", "value=upload", enditem, last);
as per information provided in how deal string comma in csv, when have read data using loadrunner? , tried updating .prm file new delimiter pipe, | still error.
[parameter:newparam_5] delimiter="|" paramname="newparam_5" tablelocation="c:\temp" columnname="col 1"
i notice though set delimiter pipe, if rightclick on web_submit_data() , go parameter properties, see column delimiter option there , not set pipe , set comma indicates setting taking higher precedence setting in .prm file.
can please guide me right way set new delimiter vugen recognizes , parses csv file want to.
i using loadrunner 12.5
thanks help.
do need upload file or line of comma separated variables? right appear reading line of csv variables, not file parameter file contain list of filenames or single file reference within directory of virtual user (extra files, transferred use) or created virtual user , uploaded.
Comments
Post a Comment