SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Question regarding Services

    User Roman Zilber (romanz@enigma.com.nospam) posted:

    1) You can use redirection of output, like:

    dos_system ("dir *.log > c:\\my_logfile.log");

    file_open(c:\\my_logfile.log",2);
    ...

    2) If you want to use directly console window here is answare from mercury

    There is a bug in WinRunner 7, that suppose to be fixed soon.
    Untill then, Mercury support delivered this workaround:
    There is supposedly a fix being prepared for DOS window recognition.
    Until then, this is what MI support has suggested:

    With WinRunner 7.0 it is now required to use the handle of the DOS Window
    in order to play back on it. Here is an example:

    rc = reload ("win32api", 1, 1);
    hWnd = FindWindowA("ConsoleWindowClass","Command Prompt");
    DWIN = "{ handle: " & hWnd & " }";

    set_window (DWIN);
    win_highlight (DWIN);
    win_type (DWIN, "dir<kReturn>");



  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Question regarding Services

    User Roman Zilber (romanz@enigma.com.nospam) posted:

    In Win2000:
    hWnd = FindWindowA("ConsoleWindowClass","C:\\WINNT\\Syste m32\\cmd.exe");


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Question regarding Services

    User Delmonte, Tom (tom.delmonte@wcom.com.nospam) posted:

    I found the discussion regarding capturing services running under Windows
    very useful, but have not found a way to capture the information in a DOS
    window and pass it to the log.

    Any ideas and/or script snippets would be appreciated.


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:39 AM.

Copyright BetaSoft Inc.