Highlighted
Established Member..
Established Member..
2282 views

How to Import data from external csv into Vugen Script

Hi All,

Could some one please guide me how to do this

I would like to import Test Data from the csv file into Vugen Scripts.

Lets say I have Payee.csv file which has 28 columns of Data and csv file located some shared location. In script I need to pass the values from the csv file by importing.How can I do that in Vugen script?

I know in QTP we have DataTable.Import.

Thanks,

Raj

0 Likes
2 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to Import data from external csv into Vugen Script

Hi

 

Parameters in LoadRunner can use csv files directly. By default they use comma as separator, but tab or space can also be used.

Just copy the file to the script repository, create the wanted paramater and choose the type "File". Then browse to your csv file and choose it. Then just select the culumn to be used for the paramter.

.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to Import data from external csv into Vugen Script

Do you want the values to be updated dynamically, without changing the script, the use Virtual Table Store, VTS to store the values.

VTS (at least later versions) is able to import values via a csv-file, and the values is shared among the vusers. VTS is distributed with LoadRunner and more inofrmation can be found in the helpfiles.

.
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.