csv parameter files from DevWeb script are not being copied to LG when executed from LRE

Hi Team, 

We're attempting to run a DevWeb script scaled up in LRE (2023.1).  The script runs fine as a DevWeb script.  Using ScaLRE, the script uploads to LRE, but cannot run because it fails on finding the first parameter file on the load generator.

I've since tried running multiple times in LRE, and I can see that the <parameter_name>.csv files are not present in the directory on the load generator when the test spins up..  In traditional LRE / vugen scripts I use .dat files.  I even tried creating a duplicate.dat file for one of the paramaters, and referencing that in the parameters.yml, but I just get odd behaviour and no resolution.

The parameter files aren't terribly large; one of them is, but it is not huge.  I have not seen other users reporting this issue, so I'm really struggling to understand what I could be doing wrong.

I've attached screenshots from the folder on the LG, the folder of the script on my own machine, and the script in LRE showing that the parameters have been uploaded ok with the script.

Also including my parameters.yml as a screenshot for reference and the log showing the error.

Any ideas would be greatly appreciated.

Many Thanks

Claire

Start auto log messages stack.	[MsgId: MMSG-10546]
Error: Error loading parameters.yml, error reading data from C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: open C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: The system cannot find the file specified.	[MsgId: MERR-103938]
End auto log messages stack.	[MsgId: MMSG-10544]

Start auto log messages stack.	[MsgId: MMSG-10546]
Notify: Vuser 1 requested to abort the script execution with message: error reading data from C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: open C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: The system cannot find the file specified.	[MsgId: MMSG-104000]
Error: The user aborted the execution, message: error reading data from C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: open C:/Program Files (x86)/Micro Focus/LoadRunner OneLG/Temp/brr_Aau.658/netdir/C/LREHost/scripts/3Fq+g+78keBpP3fhTOJ4Q/407/scenario/prm_deptcity.csv: The system cannot find the file specified.	[MsgId: MERR-103993]

  • Suggested Answer

    0  

    Hi Claire,

    I think that you did not use VuGen to create your script. When I create a file parameter in a DevWeb script. along the parameters.yml file, also a ScriptUploadMetadata.xml file is created (or it was updates). That file lists data about your project. You might need to create/add that one as well. Here is an example that you might apply and tailor to your needs:

    <?xml version="1.0" encoding="utf-8"?>
    <VugenScriptMetadata>
      <ScriptName>scenario</ScriptName>
      <Protocol>DevWeb</Protocol>
      <ActionFiles>
        <FileEntry Name="main.js" Filter="2" />
      </ActionFiles>
      <GeneralFiles>
        <FileEntry Name="scenario.usr" Filter="4" />
        <FileEntry Name="default.cfg" Filter="4" />
        <FileEntry Name="default.usp" Filter="4" />
        <FileEntry Name="parameters.yml" Filter="2" />
        <FileEntry Name="transactions.yml" Filter="2" />
        <FileEntry Name="rts.yml" Filter="2" />
        <FileEntry Name="erik.csv" Filter="2" />
        <FileEntry Name="Bookmarks.xml" Filter="1" />
        <FileEntry Name="Breakpoints.xml" Filter="1" />
        <FileEntry Name="devwebLrF.546.log" Filter="1" />
        <FileEntry Name="DevWebSdk.d.ts" Filter="1" />
        <FileEntry Name="mdrv_cmd.txt" Filter="1" />
        <FileEntry Name="output.bak" Filter="1" />
        <FileEntry Name="output.txt" Filter="1" />
        <FileEntry Name="OutputColoringDatabase.json" Filter="1" />
        <FileEntry Name="ReplaySummaryReport.xml" Filter="1" />
        <FileEntry Name="replay_summary.json" Filter="1" />
        <FileEntry Name="ScriptUploadMetadata.xml" Filter="1" />
        <FileEntry Name="tsconfig.json" Filter="1" />
        <FileEntry Name="UserTasks.xml" Filter="1" />
        <FileEntry Name="results\" Filter="1" />
      </GeneralFiles>
    </VugenScriptMetadata>

    I expect that files listed with

    • Filter=1 are temporary files that will (should) not be uploaded to LRE.;
    • Filter=4 are the code-configuration files and
    • Filter=2 are other important files.

    How to ask questions

    Reward contributions via likes or 'verified answers'

  • 0 in reply to   

    Hi JHF, thank you for the response.  I'm only seeing it now.  The notifications don't appear to come through.

    You are correct in that I did not create the script in vugen.  We do all our DevWeb work in the VS Code IDE.  We are due to get an in-farm upgrade to 2024.3 later this month, and I have been working with support team on the issue.  I was specifically using the ScaLRE function, running from the terminal in VSCode.  As a workaround, I have saved the script from vugen, and uploaded to LRE that way and scaled up the test then without any issues.  I'll update the post whenever I get around to testing out a scaled up attempt following our upgrade.

    Many Thanks