Forum Discussion

whuang's avatar
whuang
Regular Contributor
6 years ago

Unable to launch TC from QAComplete when remote machine is not connected

Hi everyone,

 

I have my automated test linked to QAComplete, and I am able to launch the automated tests from QAComplete when I sign into the host machine, but if I don't log on to the host machine just launch the test directly from QAComplete, it would fail. Does anyone know why? and how can I get it running without logon to the host machine.

 

Thanks

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    > if I don't log on to the host machine

    'Host machine' is the machine where tests are executed, right?

     

    > Does anyone know why?

    If my above guess is correct, that, as it is stated in the test log, test code fails because tested application does not have user desktop where it (application) can render its UI and thus TestComplete cannot find this UI and fails to interact with it.

     

    > how can I get it running without logon to the host machine.

    No way. Point.
    This is not a problem of TestComplete, but essential behaviour of the WIndows OS.

    https://support.smartbear.com/testcomplete/docs/testing-with/running/on-locked-computers.html and https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/index.html might provide you with some ideas.

     

    • whuang's avatar
      whuang
      Regular Contributor

      Ok, thanks AlexKaras so I guess my best choice is logon to the host machine first, and then launch the test from QAComplete, then disconnect from RDP while keep the remote session alive.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        Yes, this is the way that works.

        Note: Remember, that the session that was used to start test must left active and not locked after you disconnect your remote client.