When I try to run a WinRunner script from QC, I am getting an error message 'Winrunner's M_ROOT not defined'. If anyone has a fix for this, please let me know.
Question asked by visitor elan
When I try to run a WinRunner script from QC, I am getting an error message 'Winrunner's M_ROOT not defined'. If anyone has a fix for this, please let me know.
Question asked by visitor elan
Hi Elan,
M_ROOT variable is usually used to invoke WinRunner using a batch file or from Command prompt. I expect QC does the same when you run a Winrunner script.
"WinRunners M_ROOT not defined" could be because the path setting for WinRunner files has not been done in M_ROOT. Try this
Under DOS prompt execute the following commands -
SET M_ROOT="C:\Program Files\Mercury Interactive\WinRunner"
%M_ROOT%\arch\wrun.exe -ini C:\WINDOWS\wrun.ini -update_ini
check if your wrun.ini file is existing or has got deleted by chance. -update_ini opens the initilization file in update mode. You can change it to read-only mode as well.
Let me know if this helps.....
Cheers....
Bizzzzzare
Thanks...Biz..
When I tried your commands, I am geeting an error msg "The Testing Tool will be terminated becaz an error has occurred.Pleaselook at the file wrstderr for more details"..But when i tried to look at this file in c:\Program files\Mercury Interactive\WinRunner\arch (and also in dat folder) I don't see this file..what should I do now..please if u have a solution let me know..
Also i wanted to let you know that when I ran the same script directly in winrunner (without running it from QC), it is successful.
Last edited by elansamy; 11-16-2007 at 09:38 PM.
Hi Elan,
I suppose you are looking for the file in the wrong place. Could you please check out at the location -
C:\Documents and Settings\UserID\Local Settings\Temp\
Else I would suggest do a file search. Incase still you are not able to locate it, another process could be to retrieve the contents of the file using a batch file. It could somewhat be like this in .bat file -
cd \
echo %username%
notepad.exe c:\DOCUME~1\%username%\LOCALS~1\Temp\wrstderr
pause
This would retrieve the contents to a notepad file.
Since you are saying that the script is being executed as a standalone from WinRunner alone, it seems the problem is only with cmd prompt execution of WR files. We would need to know the error message in the wrstderr file and only then decide the reason behind the problem...
Cheers....
Bizzzzzare
I think my machine has a different configuration...becaz I don't have a Local Settings folder under my userid...
I restarted the machin and now its having a wrstderrr file directly in C:\ drive...
the error msg i saw in this file is: "wrun: Unknown option on the command line: \arch\wrun.exe"..
But this path has wrun.exe file in there...
Also I don't see c:\Windows folder either and so I am not sure where the .ini file is located...when I did a search for this file..I see two .ini files but located under different folders..IS it find that If I change the M_ROOT path in both the files and try again...
Can anyone tell me the procedure to integrate WinRunner 8.0 with QC 9.0? The Winrunner script that I have, runs perfectly when executed from Win Runner directly..The same script when I tried to run from QC, its giving different errors..I have posted those errors here in this forum and many people helped..but nothing worked out for me...thanks for all of you who gave the solution... But what I need is a step by step setup integration procedure ..I followed the QC manual guidelines and even the winrunner guidelines..but they are all talking abt basic conenctivity between these two tools...to name a few error ..M_ROOT not defined...when I tried to put the path in INI file..the QC status shows as loading and after sometime says "WinRunner Remote Agent encountered a problem' and then times out...
Advance thanks for yoru solutions...
thansk,
elan.