cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply ReadyAPI floating license to jenkins docker container

SOLVED
Occasional Contributor

How to apply ReadyAPI floating license to jenkins docker container

Hi,

I am trying to run readyapi tests in jenkins docker container. I have installed readyAPI, maven and needed tools on the jenkins docker container. I have setup jenkins and path to maven file. Now how to apply the ReadyAPI license on the jenkins container. Please let me know if you have any idea on this line. thanks

host machine os: ubuntu 16.04 LTS

docker image: jenkins

myReadyAPICode.txt (placed within /usr/local/SmartBear/ReadyAPI-3.0.0/jre/bin) - is the ReadyAPI code file

 

is this the correct  doc to follow: https://support.smartbear.com/readyapi/docs/integrations/jenkins.html

ReadyAPI_LicenseManager/ready-api-license-manager/license-manager.sh: is the license manager jar and sh file copied to jre/bin

I have run this:

jenkins@47726b07b137:/usr/local/SmartBear/ReadyAPI-3.0.0/jre/bin$ sh ./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager.sh -s licenseServer:1099 ./myReadyAPICode.txt

I am getting following error:

./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.sh: 2: ./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.s: not found

./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.sh: 4: ./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.s: not found

./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.sh: 6: ./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.s: not found

./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.sh: 7: ./ReadyAPI_LicenseManager/ready-api-license-manager/license-manager_orginal.sh: Syntax error: word unexpected (expecting "in")

      license-manager.sh file content:

#!/bin/sh

DIRNAME=`dirname $0`

# OS specific support (must be 'true' or 'false').
cygwin=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;
esac

if [ -f "$PWD/java" ]
then
JAVA=$PWD/java
else
if [ -f "$JAVA_HOME/bin/java" ]
then
JAVA=$JAVA_HOME/bin/java
else
echo JAVA_HOME is not set, unexpected results may occur.
echo Set JAVA_HOME to the directory of your local Java installation to avoid this message.
JAVA=java
fi
fi

#JAVA 12
JAVA_OPTS="$JAVA_OPTS --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.desktop/java.beans=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED"

export JAVA_OPTS

for file in $DIRNAME/ready-api-license-manager-*.jar; do
$JAVA $JAVA_OPTS -jar $file "$@"
break
done

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: How to apply ReadyAPI floating license to jenkins docker container

Hi @palatha3,

 

It's always better to address license questions to our Support Team. Could you please contact them and explain the issue you have? You can reach out to them here:

https://support.smartbear.com/message/?prod=readyapi

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

6 REPLIES 6
Highlighted
Community Manager

Re: How to apply ReadyAPI floating license to jenkins docker container

Hi @palatha3,

 

Could you please check if this article answers your question?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: How to apply ReadyAPI floating license to jenkins docker container

Thanks for information Tanya.

I tried that too before trying what I am doing now. there is no option to set specific tool like in other case MyCode.txt file for jenkins (https://support.smartbear.com/readyapi/docs/integrations/jenkins.html)

I got this following error with this command: (docker run -v="/<projectpath>/Sample-readyapi-project.xml":/project -v="/<reportpath>":/reports -it myCompany/docker)

Please select the tool for which you want to get the floating license:
1. SoapUI Pro
2. LoadUI Pro
3. Secure (if you have an old license)
4. ServiceV Pro
5. VirtServer
6. ReadyAPI Bundle
ERROR: The license is invalid: Failed to get floating license. Reason: java.rmi.UnknownHostException: Unknown host: licenseServer.com; nested exception is:
java.net.UnknownHostException: licenseServer.com

Note: My intension is not using ready-api-soapui-testrunner docker image. Just use one base docker image (jenkins in my case) and install needed tools for testing. So that we can spin up that container instance as needed and run the tests (have a maven project for ReadyAPI test project).

Highlighted
Community Hero

Re: How to apply ReadyAPI floating license to jenkins docker container

what type of license have you got?


Regards,
Rao.
Highlighted
Occasional Contributor

Re: How to apply ReadyAPI floating license to jenkins docker container

Floating license for ReadyAPI.

Highlighted
Community Manager

Re: How to apply ReadyAPI floating license to jenkins docker container

Hi @palatha3,

 

It's always better to address license questions to our Support Team. Could you please contact them and explain the issue you have? You can reach out to them here:

https://support.smartbear.com/message/?prod=readyapi

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
Occasional Contributor

Re: How to apply ReadyAPI floating license to jenkins docker container

sure. thank you.

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite