Important Notice for ReadyAPI Customers |
ReadyAPI has moved to SmartBear License Management and from October 2023, file-based licensing will be retired. As of September 2023, all licenses issued for your subscription term will be ID-based licenses by default. If you are not currently on ID-based licensing, it's time to migrate immediately. File-based licensing will no longer be supported as of October 2023. This means that technical support requests related to file-based licensing will not be accommodated. If you encounter technical issues that you're unable to resolve, it could lead to service interruption. For customers still in the process of migration, we recommend reaching out to your Account Manager to discuss your migration plan. Alternatively, you can log a support request with our Customer Care Team for assistance.
For more details regarding licensing support, please refer to this link.
When you run the test runner from Jenkins, you may encounter the "License not found" error.
A common cause of this is that you are not running Jenkins under the same user account you used to activate the ReadyAPI Test license.
Whether you are running Jenkins independently as a service or on your application server, you need to ensure it is running under the same user account you used to activate the ReadyAPI Test license. This topic describes how to fix the issue.
For Windows users
The following scenario describes how to configure licensing on the Jenkins master machine. On agent machines, you need to repeat this scenario using the same user account you used to activate the license.
-
Make sure you have a valid license activated. If you do not have a valid license, activate a ReadyAPI Test license (see License Activation).
-
Open the Control Panel.
-
Select System and Security and then Administrative Tools.
-
Run the Services utility.
-
Search for the
Jenkins
service. -
Right-click the service and select Properties.
-
On the Log On tab, select This account and enter the credentials of the Windows user account you will use to run ReadyAPI Test.
-
Note: This is the account that you used when activating the ReadyAPI Test license.
-
Restart the service to apply the changes.
For Linux/MacOS users
To fix this issue on Linux or MacOS machines, run the corresponding job on the node that is run via SSH. It allows you to select the user under which Jenkins runs the job. To create a node, perform the following steps:
-
In Jenkins, go to Manage Jenkins > Manage Nodes > New Node.
-
Specify the name of the node and select the Permanent Agent mode. Click OK.
-
To run a particular job on this node, specify a unique label for the node.
-
In the Launch method drop-down list, select Launch slave agents via SSH.
-
Specify localhost as a Host.
-
In the Credentials field, click Add and select the Jenkins provider.
-
Specify the login and password of the user under which you want to run a job and click Add.
-
Select the created credentials from the drop-down list.
-
Click Save to create the node.
To run the job on the created node:
-
Open the job’s configuration.
-
Enable the Restrict where this project can be run option.
-
Specify the needed label in the Label Expression field.
Use the command line
You can use the command line to run Jenkins under the user account you used to activate the license. To do that, log in to the operating system using this account, and then run the following command:
java -jar jenkins.war
This will force Jenkins to run under the needed user account, so the License Not Found
error will not occur.
Note: | This workaround does not work on Linux/OS X agent machines properly. In this case, you need to use the approach described above. |
Contact Support
If you fail to resolve the issue, please contact SmartBear Support.