Skip to content

wsCONNECT Installation Guide

This guide describes how to install and configure Worksoft SaaS wsCONNECT tunnel on your company’s infrastructure.It includes information about the following:

  • Reviewing Information About This Guide
  • Creating Required Directories/Folders
  • Download Worksoft SaaS wsCONNECT
  • Installing Worksoft SaaS wsCONNECT
  • Configuring Worksoft SaaS wsCONNECT
  • Verifying Operability of Worksoft SaaS wsCONNECT

1. Reviewing Information About This Guide

Tasks Described in This Guide

The procedures in this guide describe how to:

  • Configure your system to support Worksoft SaaS wsCONNECT. Specifically, this involves the installation of JDK/JRE.
  • Install Worksoft SaaS wsCONNECT on the local file system
  • Configure wsCONNECT to connect with your company’s Worksoft SaaS domain and to all the web service deployed server(s) behind your AUTs

Results of a Successful Installation

After you successfully install Worksoft SaaS wsCONNECT:

  • Test if your wsCONNECT is able to communicate with your company’s Worksoft SaaS domain

Where to Get Additional Installation Information


For more information about installing, configuring & operating Worksoft SaaS wsCONNECT, refer to one of the following:

2. Creating Required Directories/Folders


Create directory/folder with a name similar to the following, and specify the correct owner, group, and permissions for it:

  • The “Worksoft SaaS” directory/folder. This directory will be referred to as $INSTALL_DIR in the rest of this guide.

3. Downloading Worksoft SaaS wsCONNECT

You can download Worksoft SaaS wsCONNECT from the Worksoft SaaS Download Center.

Once you login to your Worksoft SaaS domain, click on the “More” menu and select the “Download Center” option to go to the "Download Center".

When on the "Download Center" page, click on the "Download" button next to the "Worksoft SaaS wsCONNECT component.

4. Installing Worksoft SaaS wsCONNECT

Move/Copy the wsCONNECT zip file that is downloaded from Worksoft SaaS Download Center to the $INSTALL_DIR.

Unzip the contents of the Zip file downloaded.

You will see a folder/directory called "wsCONNECT". This directory/folder is referred to henceforth as $WSCONNECT_ROOT.

The table below lists the contents of $WSCONNECT_ROOT folder/directory.

File Name Description
wsCONNECT.jar An executable jar for Worksoft SaaS wsCONNECT component.
Config.properties The properties file contains information where the user has to configure the customer domain name, user name, and access key.
ws.json The configuration file contains the properties which represent the restful web service configurations.
PasswordEncryptionComponent.jar The executable jar which allows the passwords to be encrypted.
Start_wsCONNECT.bat The .bat file for windows which allows the user to start the component in windows environment.
Start_wsCONNECT.sh The .sh file for Linux which allows the user to start the component in the Linux environment.
Shutdown_wsCONNECT.bat The .bat file for windows which allows the user to shut down the component in windows environment.
Shutdown_wsCONNECT.sh The .sh file for Linux which allows user to shut down the component in the Linux environment.
Batch_Jobs_As_Service .pdf This file contains the instructions which allow batchjob to be configured as a service in Windows environment.
readme.txt This file contains basic information related to the component.

5. Configuring Worksoft SaaS wsCONNECT


5.1 Configuration Files

To start the Worksoft SaaS wsCONNECT component two configuration files are needed. Below section covers the two configuration files in detail.

5.1.1 Config.properties

This file contains the required properties that are needed for wsCONNECT to connect to Worksoft SaaS REST Services.

Below table represents the important properties that you must configure before starting the component.

Property Name Description
Customer's Worksoft SaaS Domain Specific Properties
eureqa.wsconnect.customer.domainname Enter your Worksoft SaaS Domain name.
eureqa.wsconnect.customer.username Enter the username of one of the users within your Worksoft SaaS Domain that you want wsCONNECT to use to connect to Worksoft SaaS.
eureqa.wsconnect.customer.accesskey Enter the access key of one assigned to the Worksoft SaaS Domain that you want wsCONNECT to use to connect to Worksoft SaaS.
Worksoft SaaS dbCONNECT Specific Core Properties
eureqa.wsconnect.filepath.separator The file separator you want to use. By default, it is (/).

You need not change the value to be different from the default.
eureqa.wsconnect.restservice.url URL for Worksoft SaaS QaCONNECT REST Services.

You need not change the value to be different from the default.
Worksoft SaaS dbCONNECT Advanced Properties
thread.workerPool The number of worker threads that are needed to execute the web service requests running behind your firewall.

You need not change the value to be different from the default. The default value given is 5.
thread.controller.sleepTime The temporary pause time for the component.

The component will be in sleep mode for the specified number of seconds before it wakes up again.
thread.shutdownPort The port number that will be used to 'gracefully' shutdown wsCONNECT.

A daemon thread will keep listening on the port number specified for a shutdown signal.
thread.softShutdown Option to allow for the soft shutdown.

If true, the daemon will keep listening for the shutdown signal on the specified port number.
5.2.2 ws.json

This configuration file contains configuration information related to web services. The information which is present is the serviceURL, Username, Password, etc.

In this file, we can specify the ‘n’ number of web service configuration information as needed. As the JSON file contains key-value pairs, we can have multiple key-value pairs for each environment separated by a unique alias name.

Sample JSON content:
{
  "qaserver": {
    "serviceURL": "<Your_Webservice_URL>",
    "username": "<Your_Webservice_Name>",
    "password": "<Your_Webservice_password>",
    "authenticationType": "<Your_webservice_authenticationtype>",
    "isPasswordEncrypted": {true|false},
    }
}

In the above json content “qaserver” represents the alias name which should be mentioned at the time of scheduling a run within Worksoft SaaS application. The keys used within the JSON file are CASE-SENSITIVE.

Below table contains the description of the parameters which are needed:

Property/Key Name Description
serviceURL

This property accepts the root part of the service URL. This means the common URL part of all the services has to be mentioned here. The resources and the actions part will be mentioned within Worksoft SaaS using the test script.

For example, please consider the below URL. https://www.web.worksoft.cloud/rest/v1/Your_Domain_Name/executions

In the above URL, the value which the current key will hold is https://www.web.worksoft.cloud/rest/v1/

and within Worksoft SaaS, the test script will hold the remaining part of the URL i.e Your_Domain_Name/executions

When there is no value to be specified for this "serviceURL", the empty value should be passed within the double-quotes.
For example, "serviceURL": "",

authenticationType

The type of validation the service accepts. Currently, it supports only HTTP Basic Authentication.

When there is no value to be specified for the "authenticationType", the empty value should be passed within the double-quotes.
For example, "authenticationType": ""

username

The username for Authentication.

When there is no value to be specified for the "username", the empty value should be passed within the double-quotes.
For example, "username": ""

password

The password for Authentication.

When there is no value to be specified for the "password", the empty value should be passed within the double-quotes.
For example, "password": ""

isPasswordEncrypted

The password encryption flag. ‘True’ indicates the password entered in this JSON is encrypted

When there is no value to be specified for the "isPasswordEncrypted", the value should be passed as 'false'.
For example, "isPasswordEncrypted": false


6. Verifying Operability of Worksoft SaaS wsCONNECT

6.1 Command Line Options for Worksoft SaaS wsCONNECT

Worksoft SaaS wsCONNECT component has many command line options which are helpful for some additional configurations at that component level. Below table contains information about all the options.

6.2 Starting Worksoft SaaS wsCONNECT Component/BatchJob

Java (JDK or JRE) must be installed in order to run the component. The PATH environment variable has to be set before starting the component.
To check the java is installed and the PATH environment variable is set to use the below command in command prompt in case of windows or terminal in case of Linux. It should print the java version which is installed in the machine.

D:\..\Worksoft SaaS wsCONNECT>java –version

Worksoft SaaS wsCONNECT component can be started using the Start_wsCONNECT.bat for windows environment and Start_wsCONNECT.sh for Linux environment. We need to edit the startup scripts to specify the tunnel name and pass the alias name mentioned in the web service configuration file (ws.json).


Setting classpath from Command Prompt in Windows:
D:\..\wsCONNECT> SET CLASSPATH = %CLASSPATH%;wsCONNECT.jar;

Setting classpath from the terminal in Linux:
[dev@..wsCONNECT] export CLASSPATH=$CLASSPATH:wsCONNECT.jar:

After setting the classpath below command triggers the component execution common for both Windows and Linux.

D:\..\wsCONNECT> java -jar wsCONNECT.jar -name < Tunnel Name> -file <ws.json filename or filename with filepath>

Note: Path should be mentioned with either single forward-slash (/) or two backward slashes (\\)

6.3 Shutdown Worksoft SaaS wsCONNECT Component/BatchJob 6.4 Shutdown of Worksoft SaaS wsCONNECT component De-registers the tunnel with the Worksoft SaaS SAAS application.

A demon thread will create a socket on a port mentioned in config.properties file, this thread will wait for the shutdown signal to send a deregister request to the Worksoft SaaS SAAS application.

6.5   Below is the command line option which allows us to trigger the shutdown process.

        D:\..\wsCONNECT> java com.eureqa.mtf.framework.ShutdownController -p 5656 -s s
        The above command is configured in ShutdownScripts.  



Feedback and Knowledge Base