Forum Discussion

InterContinenta_1's avatar
InterContinenta_1
Occasional Contributor
11 years ago

where do I find soapui-settings.xml in unix installation

Hello, Could I find soapui-settings.xml in linux installation.

I tried to search for that file under installation folder and I could not find it.

8 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    The soapui-settings.xml file is in your user home directory. For windows this would be something like C:\Users\<user name> and UNIX something like /home/<username>.





    Regards,
    Marcus
    SmartBear Support
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    The exact location can be found in SoapUI, Help -> System Properties, look for user.home property.



    Regards,
    Marcus
    SmartBear Support
  • InterContinenta_1's avatar
    InterContinenta_1
    Occasional Contributor
    Thanks Marcus!

    The Jenkins build log shows as below. It says it is creating a soapui-settings.xml at /home/build2/soapui-settings.xml but we can't find it.

    Any reason you can think of?


    LOG
    ----------
    Setting soapui.ext.libraries value /common/build/tools/soapui-4.5.2/bin/ext
    Setting soapui.home value /common/build/tools/soapui-4.5.2/bin
    10:50:09,210 INFO [SoapUI] Adding [/common/build/tools/soapui-4.5.2/bin/ext/poi-3.9-20121203.jar] to extensions classpath
    10:50:09,210 INFO [DefaultSoapUICore] Creating new settings at [/home/build2/soapui-settings.xml]
    10:50:09,873 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/common/build/workspace/TestHarness-SoapUI-new/scripts]
    10:50:09,887 INFO [DefaultSoapUICore] Adding listeners from [/common/build/tools/soapui-4.5.2/bin/listeners/demo-listeners.xml]
    10:50:11,635 INFO [WsdlProject] Loaded project from [file:/home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/Ihg-b2b-soapui-project.xml]
    10:50:11,783 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/common/build/workspace/TestHarness-SoapUI-new/scripts]
    10:50:12,556 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [IHG]
    10:50:12,625 INFO [SoapUIProTestCaseRunner] Running Project [IHG], runType = SEQUENTIAL
    10:50:13,293 INFO [log] ********** Results folder created
    10:50:13,447 INFO [log] Environment : utc
    10:50:13,459 INFO [log] RegressionDataFile for TestCase Amadeus is :/home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_Regression_Data.xls
    10:50:13,517 INFO [log] RegressionData File /home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_Regression_Data.xls Exists.Hence Setting The Global Property.
    10:50:13,562 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [Amadeus]
    10:50:13,902 INFO [SoapUIProTestCaseRunner] running step [RegressionData]
    10:50:14,096 INFO [SoapUIProTestCaseRunner] running step [DataGen]
    10:50:14,109 INFO [log] Environment : utc
    10:50:14,113 INFO [log] XPath Assertions Present inn File : /home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_RateRange_XPath.xls
    10:50:14,392 INFO [log] ************Removing Assertions Present if Any Before Dynamically Adding Assertions for Excel Sheet
    10:50:14,449 INFO [log]
    Xpath Assertion, Row Number :1
    10:50:14,450 INFO [log] XPATH ://*:OTA_HotelAvailRS/*:RoomStays/*:RoomStay/@AvailabilityStatus


    -Madhu.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Since you are using this with Jenkins there maybe something being thrown off. If you start SoapUI Pro GUI and go to Help -> System Properties does it show /home/build2/soapui-settings.xml?

    My <soapui install folder>\bin\soapui.log shows:
    [DefaultSoapUICore] initialized soapui-settings from [C:\Users\Marcus\soapui-settings.xml]


    Please also check if that directory has the correct read\write permissions.


    Regards,
    Marcus
    SmartBear Support
  • InterContinenta_1's avatar
    InterContinenta_1
    Occasional Contributor
    Marcus, Can I start SOAPUI from Linux? If yes, what is the file?

    In Windows I do not see any issues.

    The issue is on Linux. We still can't locate soapui-settings.xml file in Linux. If you see there is a difference in log statement between linux and windows.

    I believe in linux since it is not finding the soapui-settings.xml from the installation, it is trying to create a new one but that also I can't locate it.

    We do not think File permissions is an issue as we are able to create a file.

    Linux:
    10:50:09,210 INFO [DefaultSoapUICore] Creating new settings at [/home/build2/soapui-settings.xml]

    Windows:
    14:27:55,730 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\ChelikM\soapui-settings.xml]

    Another thing, I noticed which could be the issue.

    The zip file for Linux tarball (Java not included)Linux tarball (Java not included) under soapui does have soapui-settings.xml where as the zip file under soapui-pro tab does't.
    at http://www.soapui.org/


    Any help will be greatly appreciated.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Just to ask since you are running this from Jenkins, did you install SoapUI Pro or did someone else install?
    Which SoapUI Pro version are you using, with bundled JRE or without bundled JRE?
    Were there any errors during the installation of SoapUI Pro?

    Marcus, Can I start SOAPUI from Linux? If yes, what is the file?


    Yes, you can start SoapUI Pro from linux. There should be a <soapui install>/bin/soapui-pro.sh file that will start the GUI.


    The zip file for Linux tarball (Java not included)Linux tarball (Java not included) under soapui does have soapui-settings.xml where as the zip file under soapui-pro tab does't.
    at http://www.soapui.org/


    I will further investigate that.


    Regards,
    Marcus
    SmartBear Support
  • InterContinenta_1's avatar
    InterContinenta_1
    Occasional Contributor
    - Yes , I have installed Soap-UI Pro Linux installer (64-bit) with bundled JRE .
    - Using SoapUI Pro 4.6.2
    - Attached the installation log . Did not see any errors.

    - when I tried to start soapui/bin/soapui-pro.sh

    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:753)
    at com.eviware.soapui.SoapUIPro.a(SourceFile:135)
    at com.eviware.soapui.SoapUIPro$SoapUIProRunner.run(SourceFile:1708)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You need a x-windows client to be able to use the GUI in a "headless" environment.
    If you have Exceed x-windows server that is the easiest to use in my opinion (that is not free however).
    If not, then you can try xming. There is a blog post on how to use with SoapUI on linux.
    http://blog.ashwani.co.in/blog/2013-01- ... -x-config/



    Regards,
    Marcus
    SmartBear Support