How to perform testing phase using a terminal session?

57 Views Asked by At

I have a few Jenkins builds that have tests that require an existing session (Windows GUI) so they cannot run as a service.

Because these tests (using nunit) do not need to install things on the machine they could easily run in separate terminal server sessions.

How is it possible to enable this, so it would start the tests (a batch script that is supposed to return zero on success) as a different user in a different session?

1

There are 1 best solutions below

0
On
  • You can define a program (one of the tests in your case) in the Programs tab of an RDP connection and activate:

    [✔] Start the following program on connection

  • You can start an RDP connection programmatically via mstsc:

    mstsc [<connection file>] [/v:<server[:port]>] [/admin]
          [/f[ullscreen]] [/w:<width>] [/h:<height>] [/public] | [/span]
          [/edit "connection file"] [/migrate] [/?]