Forum Discussion
Hello,
the GUI is entirely not required, but the command line activation requires user interaction:
Do you want to install a license? [y/N]: y Please enter absolute path of the license file (.zip or .key):
This is not acceptable for CI/build server scenarios and is fatal blocker for us.
Is there any command line switch to install license without user interaction? Or is there any standard license location, where should we place the license keys to automatically install them on first run? I wasn't able to find such information in the documentation.
Is there any updates on this? I am stuck installing in docker container
- meyyazhagan8 years agoNew Contributor
The issue got resolved with following workaround.
The rootcause of the issue is, I installed the READYAPI as a root and trying to execute the same script in Jenkins. Ideally Jenkins will run their jobs as user "jenkins" so the job is failing. Here'e the steps i followed to fix it.
Appended the below content in visudo (/etc/sudoers)
# User privilege specification
root ALL=(ALL:ALL) ALL
jenkins ALL=(ALL) NOPASSWD: ALL
Defaults:jenkins !requiretty - Buthrakaur9 years agoNew Contributor
They created some "enhancement request" for the commandline activation:
I was told from the product owner that the enhancement request is in the backlog and they hope to include in the next release which is tentatively scheduled for Q1 of next year.
But the short answer is: don't use SoapUI for any serious (CI) work.
- karthikeayan9 years agoNew Contributor
Do you want to install a license? [y/N]: y
Thank you for the reply on the enhancement request.
Can you advice what is the file to execute for activating interactively?
When I install SoapUI Pro in linux, I haven't asked for this step. And when I start the SoapUI , I am getting exception like, no X11 variable set.
- Buthrakaur9 years agoNew Contributor
I use testrunner.bat on windows, which runs soapui in commandline mode. See https://www.soapui.org/test-automation/running-functional-tests.html#1-TestRunner-description-of-parameters for reference.
- tusar9 years agoOccasional Contributor
Any luck on this? I also got struck here.
- meyyazhagan8 years agoNew Contributor
Dear helper,
I have installed ReadyAPI 1.9.0(latest version so far) on ubuntu server which is my CI Jenkins server. And am trying the test script on server manually, it working as expected but whereas in Jenkins it throws below error,
No valid SoapUI NG license exists. Please enter absolute path of the license file (.zip or .key): 04:49:52,640 ERROR [SoapUIProTestCaseRunner] java.util.NoSuchElementException: No line found 04:49:52,641 ERROR [SoapUI] An error occurred [No line found], see error log for details 04:49:52,641 ERROR [errorlog] java.util.NoSuchElementException: No line found java.util.NoSuchElementException: No line found at java.util.Scanner.nextLine(Scanner.java:1540) at com.smartbear.ready.license.util.CommandLineUtils.readLine(CommandLineUtils.java:61) at com.smartbear.ready.license.headless.HeadlessLicenseInstaller.installLicense(HeadlessLicenseInstaller.java:32) at com.smartbear.ready.license.LicenseManagerServiceImpl.a(LicenseManagerServiceImpl.java:277) at
Here's the proof for license applied on server,
root@XXX:/home/admin# java -jar /home/admin/ready-api-license-manager-1.1.jar -i
Please select the tool for which license info should be printed
1. SoapUI NG
2. LoadUI NG
3. Secure
4. ServiceV
5. VirtServer
6. Ready! API TestServer
1
Licensed Module: SoapUI NG
License Number: [2016-03-29 00:00:00] XXXXXXXXXXXXXXXXXXXXXXXXX
License Type: PROFESSIONAL (floating)
Issue Date: 29-Mar-2016
Expiration Date: 30-Mar-2017Kindly throw more lights on how to fix the issue in Jenkins. I really appreciate your time on helping me, thanks!!
- TanyaYatskovska8 years agoSmartBear Alumni (Retired)
Thanks for sharing your solution, Meyyazhagan!
It will help if someone else faces a similar issue.
Related Content
- 4 years ago
- 2 years ago
- 11 months ago