Geeks Talk

Prepare for your Next Interview




Winrunner's M_ROOT not defined

This is a discussion on Winrunner's M_ROOT not defined within the WinRunner forums, part of the Software Testing category; 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 ...


Go Back   Geeks Talk > Software Testing > WinRunner

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-16-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Winrunner's M_ROOT not defined

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-16-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
Smile Re: Winrunner's M_ROOT not defined

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
Reply With Quote
  #3 (permalink)  
Old 11-16-2007
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
elansamy is on a distinguished road
Re: Winrunner's M_ROOT not defined

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.
Reply With Quote
  #4 (permalink)  
Old 11-17-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
Smile Re: Winrunner's M_ROOT not defined

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
Reply With Quote
  #5 (permalink)  
Old 11-19-2007
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
elansamy is on a distinguished road
Re: Winrunner's M_ROOT not defined

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




Quote:
Originally Posted by bizzzzzare View Post
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
Reply With Quote
  #6 (permalink)  
Old 11-26-2007
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
elansamy is on a distinguished road
Re: Winrunner's M_ROOT not defined

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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > WinRunner


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Access all tables name defined Amit Mittal SQL 1 09-25-2007 03:51 AM
User defined procedures Data911 MainFrame 0 08-31-2007 01:48 PM
How size of structure is defined svyengalwar C and C++ 5 06-24-2007 10:32 PM
Pre-defined and post-defined value JobHelper Seibel 0 12-30-2006 04:51 PM
Why are Levels defined like this GregMark MainFrame 0 10-01-2006 05:33 PM


All times are GMT -4. The time now is 01:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved