In this section:
Overview
Selenic will execute your tests, even if you do not have a license. Self-healing and other features, however, will be disabled unless the product is licensed.
Open the selenic.properties file in the Selenic installation directory to configure your license settings. You can configure Selenic to use a local license, a license served from DTP, or a license served from License Server. For your convenience, all possible properties are included and commented out in the selenic.properties file. Uncomment the applicable properties and specify their values.
Local License
You will need to provide your Parasoft representative with your machine ID so that we can generate a local license. There are two methods for accessing your machine ID:
- Install the Selenic plug-in into your IDE and open the license page (see IDE Installation). The ID will appear in the Machine ID field.
- Run the Selenic analyzer with the
-machineId
flag from a command prompt:java -jar selenic_analyzer.jar -machineId
The analyzer will print your machine ID to the console.
Parasoft will provide a local license password after we've received your machine ID. Open the selenic.properties file and specify the password in the selenic.license.local.password
property of LOCAL LICENSE
section:
selenic.license.use_network=false selenic.license.local.password=<license password from Parasoft>
DTP License
Parasoft DTP is a development testing analytics and reporting platform that can host and serve Parasoft licenses.
Locate the NETWORK LICENSE
section and specify the following properties:
selenic.license.use_network=true
Locate the DTP SERVER SETTINGS
section and specify the following properties:
dtp.server=<host where DTP is installed> dtp.port=<port number for DTP> dtp.user=<username for logging into DTP> dtp.password=<password for logging into DTP>
You can run the selenic_analyzer.jar file with the -encodepass
property to encode your password. See -encodepass <password> for details.
License Server
License Server is a lightweight repository that centralizes your Parasoft licenses.
Locate the NETWORK LICENSE
section and specify the following properties:
selenic.license.use_network=true
Locate the LICENSE SERVER STANDALONE SETTINGS
section and specify the following properties:
license.network.use.specified.server=true license.network.host=<server where License Server is hosted> license.network.port=<port number for License Server>
If the License Server you are retrieving tokens from requires authentication, configure the following properties in the LICENSE SERVER STANDALONE SETTINGS
section:
license.network.auth.enabled=true license.network.user=<username> license.network.password=<password>
Authentication may be required if the Parasoft security module (pstsec.war) has been deployed and connected to License Server.
You can run the selenic_analyzer.jar file with the -encodepass
property to encode your password. See -encodepass <password> for details.
Licensing the IDE Plug-in
The IDE plug-in enables you to import and convert UI transactions recorded with the Parasoft Smart Recorder into Selenium tests. The IDE also provides a user interface for working with Selenic features, such as viewing recommendations. You can configure the plug-in to use a local license or to retrieve a license from License Server or DTP.
Local License
You will need to provide your Parasoft representative with the machine ID so that we can generate a local license. The machine ID is printed to the Machine ID field of the Parasoft Preferences License field after installing the IDE plug-in. Send your machine ID to Parasoft and we will send a license password that you can provide in the Password field.
- Choose Preference (Eclipse) or Settings (IntelliJ) from the Parasoft menu.
- Choose License and enable the Local license option.
- Specify the password sent to you from Parasoft.
- Click Apply.
DTP
The network license configuration is set to DTP by default, so if DTP is enabled then Selenic will retrieve a license from DTP unless a License Server is configured per the License Server section.
- Choose Preference (Eclipse) or Settings (IntelliJ) from the Parasoft menu.
- Choose DTP and enable the Enable option.
- Specify the following information:
- Name of the DTP host machine or IP address
- Port number for DTP
- Username and password
- Click Test Connection to verify that Selenic can connect to DTP.
- Click Apply.
License Server
- Choose Preference (Eclipse) or Settings (IntelliJ) from the Parasoft menu.
- Choose License and enable the Network license option.
- Click the Configure… link in the License settings section. By default, the network license configuration is set to DTP.
- Enable the Use the following License Server option and specify host and port number where License Server is hosted.
- If License Server is configured to authenticate user access, enable the Enable authentication option and specify your login credentials.
- Click Test Connection to verify that Selenic can connect to License Server.
- Click OK to close the network configuration dialog and click Apply.
About License Editions
You can configure specific license editions, which enables a set of functionality based on your role.
#selenic.license.network.edition=automation_edition #selenic.license.network.edition=desktop_edition #selenic.license.network.edition=custom_edition
- The
desktop_edition
enables features for desktop end-users. - The
automation_edition
enables features for automation engineers. - The
custom_edition
enables a la carte features per your license agreement with Parasoft.