Forum Discussion

rstelly's avatar
rstelly
Occasional Contributor
2 years ago

UI (browser) testing via Gitlab runner

I am able to run UI tests from a Gitlab runner, but it disconnects from the remote desktop - which is expected (https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html) I am wondering if there is anyway to re-target that session that was created and continue to run tests from that session.

  • rstelly's avatar
    rstelly
    2 years ago

    Thank you.  It seems that the potential solution is that my session creator command was using the /UseActiveSession flag.  I think if I get rid of it, my problem should be solved

  • rstelly's avatar
    rstelly
    Occasional Contributor

    So is there a workaround?  Having to start a new remote desktop session everytime I want to run a gitlab pipeline is not a viable solution.

    • rstelly's avatar
      rstelly
      Occasional Contributor

      I am running the test using Sessioncreator.  I want to know if there is a way to run tests using the session that was created in a previous test execution.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        If the session remains active and not locked (as it is, for example, in Azure when Azure client is set up to execute not as a service but as an application), then the session will be reused.

        If the session gets to be locked, then it must be unlocked. This can be done with either Session Creator or some third-party utility.