Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:09:24+00:00 2026-06-09T02:09:24+00:00

I want to load properties from property file as explained here http://www.soapui.org/Scripting-Properties/working-with-properties.html . I

  • 0

I want to load properties from property file as explained here http://www.soapui.org/Scripting-Properties/working-with-properties.html. I am using testrunner.sh to run the test.
I want to do something like ./testrunner.sh -PServiceEndPoint=${serviceendpointvalue} sample_soapuitest.xml but its not working.

serviceendpointvalue has been defined in properties.txt.
I modified JAVA_OPTS in testrunner.sh to include properties.txt.

Has someone tried this? Any sugesstions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:09:26+00:00Added an answer on June 9, 2026 at 2:09 am

    I think that parameters passed to testrunner.sh have to be defined prior to loading properties from a file.

    I am 99% sure that you can accomplish what you want in another way, though.

    Parameterize the endpoints in your requests. If this is a lot of work, I’d suggest using search and replace in a text editor. I’ve done it before and it worked. You just have to look out for other places the service endpoint might show up (such as in WSDL/WADL/XSD references, etc.)

    What you want for your endpoints in the requests depends upon whether you are using SOAP or REST.

    For SOAP:  ${#Project#endpoint}
    (assuming that your endpoint property is a project property)
    
    For REST:  http://${#Project#server}
    

    I forget why it has to be different, but it was a pain to figure out.

    In the properties fields, the data would look like:

    SOAP: http://server:8080
    REST: server:8080
    (whatever port is relevant)
    

    You can set these properties using a file. The file will be parsed as execution starts, and the requests will use the property values from the file.

    Edited on 07/30/12

    You can still use the approach that I mentioned.

    This command line runs my sample test specifying the test.props file. That file has just this in it:

    test=1234
    (it is output by export properties)

    My project has the project property called test set to another value besides 1234.

    ndfdXML is my project name.. just a sample name.

    COMMAND LINE:

    C:\Program Files\SmartBear\soapUI-4.5.1\bin>testrunner.bat -Dsoapui.properties.ndfdXML=test.props ndfdXML-soapui-project.xml

    soapUI 4.5.1 TestCase Runner
    Configuring log4j from [C:\Program Files\SmartBear\soapUI-4.5.1\bin\soapui-log4j.xml]
    14:32:29,283 INFO  [DefaultSoapUICore] initialized soapui-settings from     [C:\Users\chris.mead\soapui-settings.xml]
    14:32:30,081 INFO  [WsdlProject] Loaded project from  [file:/C:/Program%20Files/SmartBear/soapUI-4.5.1/bin/ndfdXML-soapui-project.xml]
    14:32:30,089 INFO  [AbstractTestPropertyHolderWsdlModelItem] Overriding 1 properties  from [test.props] in [ndfdXML]
    14:32:30,702 INFO  [SoapUITestCaseRunner] Running soapUI tests in project [ndfdXML]
    14:32:30,717 INFO  [SoapUITestCaseRunner] Running Project [ndfdXML], runType =  SEQUENTIAL
    14:32:30,718 INFO  [SoapUITestCaseRunner] Running soapUI testcase [TestCase 1]
    14:32:30,718 INFO  [SoapUITestCaseRunner] running step [CornerPoints - Request 1]
    14:32:31,132 WARN  [AbstractSoapVersion] Ignoring validation error: error: cvc-complex- type.3.2.2: Attribute not allowed: encodingStyle@http://schemas.xmlsoap.o
    rg/soap/envelope/ in element Envelope@http://schemas.xmlsoap.org/soap/envelope/
    14:32:31,449 INFO  [SoapUITestCaseRunner] Assertion [SOAP Response] has status VALID
    14:32:31,450 INFO  [SoapUITestCaseRunner] Assertion [XPath Match] has status VALID
    14:32:31,450 INFO  [SoapUITestCaseRunner] running step [Properties]
    14:32:31,454 INFO  [SoapUITestCaseRunner] running step [Property Transfer]
    14:32:31,523 INFO  [SoapUITestCaseRunner] running step [Groovy Script]
    14:32:31,912 INFO  [log] 1234
    

    That last line is output by this groovy:

    log.info(context.expand(‘${#Project#test}’))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the ClassLoader to load a properties file for the Properties
I want to load data from MySql database to a HTTP form When I
I want to load PNG-file from resources. There is a roughly MFC-way (with CResourceStream
I have spring application and using property file want to read the values from
I have an XML file with property groups and properties. I want to retrieve
We used to have a way to load properties from a file on the
I am running multiple APIs which load default properties from a text file. If
I want to load a properties file (it's a .csv file having on each
I want to lazy load of @Lob properties. First ,i use javassist to instrument
I want to load multiple variables into one .mat file at the end of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.