SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to know if Agent is running on Remote Computer

    Please read completely:
    Am NOT looking for physical process (agent.exe) but am looking for to know if agent.exe on a remote computer is actually executing some scripts or not.

    The problem is when I call a API function(exposed from my dll) through silk script, it creates a worker thread and does something. This thread keeps running even I hit <SHIFT-SHIFT> on the host computer and abort the test. I need to know what to check so that I could stop the thread if my local agent is not running any scripts.

    On the host computer I found two ways to find it out,
    1. Check for .jou (journal) file in the results directory
    2. Check the Agent Main window title - It should have "IN USE" appended in the title and keeps toggling.

    On the remote computer I found only one way to find out which is by checking Agent's Window title for "IN USE" string. This approach was fine but the problem was if the silk script had sleep() functions then "IN USE" toggling does not happen. The caption of Agent process will either have "IN USE" or NOT based on the timing when Sleep() function was called.

    Thanks.

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to know if Agent is running on Remote Computer

    You can lookout following functions.
    sAgent = GetMachineName ()
    Disconnect (sAgent)
    Connect (sAgent)
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  3. #3
    Member
    Join Date
    Jan 2003
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to know if Agent is running on Remote Computer

    Did you read completely what i asked for?

    Thanks.

 

 

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 12.50%
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 09:51 AM.

Copyright BetaSoft Inc.