Highlighted
Absent Member.. Absent Member..
Absent Member..
299 views

loadrunner 12.5 Cannot run HTTP script multiple times due to ERROR - System.IO.IOException

LoadRunner 12.50.00 using HTTP/HTML protocol on a Windows 7 SP 2 box.

Running the script once works as expected.  Running the same script, with no changes, a second time gives the error:   "An error has occurred". The only workaround is to save the script as a new name and then run it. Is there a setting I can change to allow script to be run multiple times? I get this same error when running the script on different machines, so this is not machine dependent.

The %temp/hp.lr.vugen.log file shows this error:

2016-08-29 10:36:54,952 VUGEN         [  1] ERROR - A request was made for a ThumbnailFile that does on exists on storage request:<ThumbnailRequest Id:0 for:C:\Users\d1bif01\Documents\LoadRunner\PG6.10\610_TCS_Single_PC_Auth_Forcec\data\t1.inf State:Failed Size:Small> ThumbnailFile:C:\Users\d1bif01\Documents\LoadRunner\PG6.10\610_TCS_Single_PC_Auth_Forcec\data\t1.inf
2016-08-29 10:38:11,471 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:25,184 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:26,707 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:28,241 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:29,761 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:31,269 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:34,339 CORRELATION   [Step Matching Scheduler] ERROR - The count of step that needs to be updated is wrong. ToUpdateLocation 0  ToUpdateCount 1, ToAddCount 0, ToRemoveCount 0, UpdateList 0 
2016-08-29 10:38:37,249 ExceptionFormatter [  1] ERROR - System.IO.IOException: The process cannot access the file 't1.xml' because it is being used by another process.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at HP.LR.Vugen.DebuggerBackend.VugenDebuggerUtilities.StartReplay(String usrFileName, String& mdrvCmdFileName, String replayResultName, Object extraData, Boolean saveBeforeReplay) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\BackEnd\Current\Debugger\HP.LR.Vugen.DebuggerBackend\VugenDebuggerUtilities.cs:line 174
   at HP.LR.Vugen.FrontEnd.DebuggerAddin.Gui.ReplayOperations.StartReplay(Boolean pauseOnStart, String usrFileName, String replayResultName) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\FrontEnd\Current\CoreAddins\VuGenDebugger\Gui\ReplayOperations.cs:line 92
   at HP.LR.Vugen.FrontEnd.DebuggerAddin.Gui.ReplayOperations.ExecuteReplay(Boolean pauseOnStart, Action`1 callback, CompilationResult compilationResult) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\FrontEnd\Current\CoreAddins\VuGenDebugger\Gui\ReplayOperations.cs:line 175
2016-08-29 10:38:37,249 VUGEN         [  1] ERROR - The process cannot access the file 't1.xml' because it is being used by another process.
Exception Data:
The process cannot access the file 't1.xml' because it is being used by another process.
Stack Trace:
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at HP.LR.Vugen.DebuggerBackend.VugenDebuggerUtilities.StartReplay(String usrFileName, String& mdrvCmdFileName, String replayResultName, Object extraData, Boolean saveBeforeReplay) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\BackEnd\Current\Debugger\HP.LR.Vugen.DebuggerBackend\VugenDebuggerUtilities.cs:line 174
   at HP.LR.Vugen.FrontEnd.DebuggerAddin.Gui.ReplayOperations.StartReplay(Boolean pauseOnStart, String usrFileName, String replayResultName) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\FrontEnd\Current\CoreAddins\VuGenDebugger\Gui\ReplayOperations.cs:line 92
   at HP.LR.Vugen.FrontEnd.DebuggerAddin.Gui.ReplayOperations.ExecuteReplay(Boolean pauseOnStart, Action`1 callback, CompilationResult compilationResult) in e:\LT\LT-LR\win32_release\12.50.1096.0_clean\app\VuGen\FrontEnd\Current\CoreAddins\VuGenDebugger\Gui\ReplayOperations.cs:line 175

2016-08-29 10:38:37,250 SharpDevelop  [  1] ERROR - An error has occurred.

 

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: loadrunner 12.5 Cannot run HTTP script multiple times due to ERROR - System.IO.IOException

Hello Fench,

This script was recorded on LR 12.50?

If you record a new script on 12.50, are you able to reproduce the issue?

One thing that you can do is to run a process explorer during the execution of the script on VuGen, in that way you can probably have a clue about what could be causing the issue from the background.

 

 

Regards,

Daniela Gómez Alvarado
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: loadrunner 12.5 Cannot run HTTP script multiple times due to ERROR - System.IO.IOException

Daniela,

The script was created using Lr 12.50 but, it was not recorded. The web custom request was made by manually adding the soap message to the post.

This had to be done as there is a certificate and also a tls socket option that had to be configured. 
I was not able to find an attachment in the message for process exploring. Could you send a link instead?
 
french
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: loadrunner 12.5 Cannot run HTTP script multiple times due to ERROR - System.IO.IOException

If it was scripted and not recorded, I think that you need to post the script, at least the part of the script that is failing.

Seems it could be something with the snapshost in the script (created when recording and used for correlation).
When scripting manually you should not use "Snapshot=t1.inf", as it then refers to something that doesn't exist.

When replaying the first time, the scripts maybe copes, but there could be residues left behind like an open file handle preventing some process to close. When running the second time, the handle is still held but that resource and cannot be used and gives the errormessage.

Try processexplorer from Sysinternals, to find out what is holding t1.xml.

But my best guess is that all manually created steps should have the "Snapshot=t1.inf", parameters removed.

br /ola


Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

 

.
Tags (1)
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.