Forum Discussion

momomo's avatar
13 years ago

give testrunner.sh properties from .properties file ?

Hi,
Im running my tests from ant with <exec> task and testrunner.sh.

I need to pass a bunch of properties to soapui but i don't want to use "-Pname=value" for each one of them

Is there a way to pass a .properties file ?
Does testrunner.sh inherits the properties from my ant build.xml ?

What's a good solution to this ?
Thanks

2 Replies

  • davidp_1's avatar
    davidp_1
    Occasional Contributor

    Did you ever find a solution to this? I know it's old, but I'm looking at the same question. Thanks. 

    • nmrao's avatar
      nmrao
      Champion Level 3
      Looks you replied to a very old topic.
      It is pretty simple. you can place all your properties into a file called soapui.properties and place it under SOAPUI_HOME/bin directory.
      In order access these properties in the project, you can use them like ${#Project#PROPERTY_NAME}.

      Hope this resolves your issue.