Results 1 to 6 of 6

Thread: Winrunner's M_ROOT not defined

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  3. #3
    Junior Member
    Join Date
    Nov 2007
    Answers
    3

    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 08:38 PM.

  4. #4
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  5. #5
    Junior Member
    Join Date
    Nov 2007
    Answers
    3

    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



  6. #6
    Junior Member
    Join Date
    Nov 2007
    Answers
    3

    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.


  7.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact