Highlighted
Respected Contributor.
Respected Contributor.
393 views

LoadRunner - TruClient - write string to file is erroring - Win2008 R2 machine (IO.write)

Jump to solution

Hi,

 

I'm getting write errors with my vusers trying to write text to a file on Win2008 R2 machines (64-bit)

 

This is working fine on Win7, Win2003 but fails for each of our load generators with the above OS.

 

Has anyone seen this before? -


I need to output to a file as subsequent scripts need the file

 

The error shows :

 

t=00046196ms: Error -203252: ** 3: Evaluate JavaScript code IO.write(filename,output) ** failed - exception occurred: API_ERROR_INVALID_ARGUMENTS_RUNTIME: IO.write("P:\Temp\BP15_BuyProtection.txt","PTestAdviser1,Bernard,Mangum","true","UTF-8") APIError: Unknown_Error error number:3       Snapshot Info [MSH 1 1]    [MsgId: MERR-203252]

 

 

 

The exact same text works elsewhere without problems.

 

eg. eval js'

var filename = "P:\\Temp\\BP03_NewUsers_" + LR.getParam('pTodaysDate') + ".txt"

var userdata = userID + ',' + LR.getParam('forename') + ',' + LR.getParam('surname')

IO.write(filename,userdata + '\r\n')

 

The IO.write works fine with my other injectors, however fails everytime with the same unknown error on each '08 LoadGen machine (ive removed the line feed incase that was causing issues on 08 but it still fails with a basic (non parameterised) IO.write statement.

 

Thanks in advance

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Re: LoadRunner - TruClient - write string to file is erroring - Win2008 R2 machine (IO.write)

Jump to solution

Are the Windows 7 and 2003 OSes 64 bit as well? If you install Vugen on one of those LGs would you see the same error?

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

1 Reply
Highlighted
Absent Member.
Absent Member.

Re: LoadRunner - TruClient - write string to file is erroring - Win2008 R2 machine (IO.write)

Jump to solution

Are the Windows 7 and 2003 OSes 64 bit as well? If you install Vugen on one of those LGs would you see the same error?

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

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.