Menu

Running two commands on the same agent

Help
jeremy
2004-10-19
2013-04-25
  • jeremy

    jeremy - 2004-10-19

       I want to test concurrence issues by starting to processes on the same agent.  I can't seem to get the harness to start a second process on the same agent while the first is still running.  I am pushed QAT too hard?  Have you ever done this?

     
    • Web Hiker

      Web Hiker - 2004-10-20

      This should be no problem for QAT, as it's a normal thing to do when testing.
      Essentially the CMDSTART is non-blocking, you can call multiple instances of CMDSTART one after the other, even on the same agent.
      But everytime you call CMDSTATUS, it will block the agent until either
      a)timeout on the process or
      b)the process exits

      So just be sure you don't do :
      CMDSTART 1
      CMDSTATUS 1
      CMDSTART 2
      CMDSTATUS 2

      but instead
      CMDSTART 1
      CMDSTART2
      CMDSTATUS 1
      CMDSTATUS 2

      Hope this helps.

       

Log in to post a comment.