Skip to main content

FreeRDP connection

You can use Eggplant Gateway to create remote desktop (RDP) connections to Windows and Linux machines to execute tests using Eggplant Functional and Eggplant DAI.

info

For Linux based client machines, it is required to install FreeRDP before creating RDP connections via Eggplant Gateway.

note

Starting in version 4.1, FreeRDP dependency packages are bundled along with the Eggplant Gateway MacOS archive. Mac users are no longer required to manually install FreeRDP.

Starting in version 4.21, Windows Platform will default to using FreeRDP version 3.

Creating a Connection

To create an Eggplant Gateway remote desktop connection, run the following command:

./epgw add rdp \
--name <name> \
--serverHostname <RDP server hostname> \
--username <RDP server username> \
--password <password> \
--serverPort <RDP server port> \
--domain <RDP server domain> \
--resolution <screen resolution>

The available options are:

KeyDescription
nameThe name of the connection you want to create. You can freely choose this name.
serverHostnameThe RDP server hostname that you want to remote to. This can be the hostname or IP address.
usernameThe name of the RDP server login user.
passwordThe password for RDP server login user.
serverPortThe RDP server port number to connect to remote session. Default:3389. (Integer)
domainThe domain for the RDP server login account.
resolutionThe resolution at which to initialize the remote desktop.

For example, to create a connection which will launch remote desktop session to the System Under Test:

./epgw add rdp --name test_rdp --serverHostname "Rpd_Server_Hostname" --username "RdpUser" --password "RdpUser123" --serverPort 3389 --domain "domain" --resolution "1600x900"

Creating a Connection with RDP Security Options

To create an Eggplant Gateway remote desktop connection with rdp security options, run the following command:

./epgw add rdp \
--name <name> \
--serverHostname <RDP server hostname> \
--username <RDP server username> \
--password <password> \
--serverPort <RDP server port> \
--domain <RDP server domain> \
--resolution <screen resolution> \
--rdpSecurity \
--tlsSecurity \
--nlaSecurity \
--extSecurity \
--authentication \
--securityNegotiation \
--ignoreCertificate \

The available options are:

KeyDescription
nameThe name of the connection you want to create. You can freely choose this name.
serverHostnameThe RDP server hostname that you want to remote to. This can be the hostname or IP address.
usernameThe name of the RDP server login user.
passwordThe password for RDP server login user.
serverPortThe RDP server port number to connect to remote session. Default:3389. (Integer)
domainThe domain for the RDP server login account.
resolutionThe resolution of at which to initialize the remote desktop.
rdpSecurityConfigure standard RDP Security. Default:[True]
tlsSecurityConfigure Transport Layer Security. Default:[True]
nlaSecurityConfigure Network Level Authentication. Default:[True]
extSecurityConfigure Extended Security. Default:[False]
authenticationConfigure Basic Authentication. Default:[True]
securityNegotiationConfigure Security Negotiation for TLS, NLA and RDP security. Default:[True]
ignoreCertificateConfigure Certificate Validation. Default:[True]

For example, to create a connection which will launch remote desktop session with rdp security options:

./epgw add rdp --name test_rdp_security --serverHostname "Rpd_Server_Hostname" --username "RdpUser" --password "RdpUser123" --serverPort 3389 --domain "domain" --resolution "1600x900" --rdpSecurity --tlsSecurity --nlaSecurity --extSecurity --authentication --securityNegotiation --ignoreCertificate

Creating a Connection with Smart Card Authentication

To create an Eggplant Gateway remote desktop connection with smart card authentication, run the following command:

./epgw add rdp smartcard\
--name <name> \
--serverHostname <RDP server hostname> \
--username <RDP server smart card username> \
--pin <smart card pin> \
--serverPort <RDP server port> \
--domain <RDP server smart card domain> \
--resolution <screen resolution>

The available options are:

KeyDescription
nameThe name of the connection you want to create. You can freely choose this name.
serverHostnameThe RDP server hostname that you want to remote to. This can be the hostname or IP address.
usernameThe name of the RDP server login user with smart card enrolled.
pinThe pin number for smart card reader.
serverPortThe RDP server port number to connect to remote session. Default:3389. (Integer)
domainThe domain for the RDP server login account with smart card enrolled.
resolutionThe resolution of at which to initialize the remote desktop.

For example, to create a connection which will launch remote desktop session with Smart card authentication:

./epgw add rdp smartcard --name test_rdp_smartcard --serverHostname "Rpd_Server_Hostname" --username "RdpUser" --pin "12345678" --serverPort 3389 --domain "domain" --resolution "1600x900"

Creating a Smart Card Authentication Connection with Multiple Smart Cards

To create an Eggplant Gateway remote desktop connection with smart card authentication, run the following command:

./epgw add rdp smartcard\
--name <name> \
--serverHostname <RDP server hostname> \
--username <RDP server smart card username> \
--pin <smart card pin> \
--serverPort <RDP server port> \
--domain <RDP server smart card domain> \
--resolution <screen resolution>
--readerName <smart card reader name>

The available options are:

KeyDescription
nameThe name of the connection you want to create. You can freely choose this name.
serverHostnameThe RDP server hostname that you want to remote to. This can be the hostname or IP address.
usernameThe name of the RDP server login user with smart card enrolled.
pinThe pin number for smart card reader.
serverPortThe RDP server port number to connect to remote session. Default:3389. (Integer)
domainThe domain for the RDP server login account with smart card enrolled.
resolutionThe resolution of at which to initialize the remote desktop.
readerNameThe smart card reader name that use for SUT authentication.

For example, to create a connection which will launch remote desktop session with Smart card authentication that have multiple smart card:

./epgw add rdp smartcard --name test_rdp_smartcard --serverHostname "Rpd_Server_Hostname" --username "RdpUser" --pin "12345678" --serverPort 3389 --domain "domain" --resolution "1600x900" --readerName "reader name A"
info

All security options used with the Add rdp command are also available for use with the Add rdp smartcard command.

Connecting to Eggplant Functional

Follow these steps to log into your remote desktop and establish a connection to Eggplant Functional:

  1. Start Eggplant Functional
  2. Run epgw connect <name>, where name is the name of your Gateway connection. For example, epgw connect test_rdp

Eggplant Gateway will now log in to your the server remote desktop, establish a connection, and connect to Eggplant Functional.

Setting up a VNC Server for Your Remote Desktop Connection

Alternatively, you can set up a VNC server for your remote desktop connection. To do so:

  1. Run epgw vnc <name>, where name is the name of your Gateway connection. For example, epgw vnc test_rdp

Eggplant Gateway will now log in to your remote desktop server, establish a connection, and start a VNC server at port 5900.

You'll need to manually add your device to the connection list in Eggplant Functional.