【问题标题】:soapui-pro- change JDBC connection string dynamicallysoapui-pro- 动态更改 JDBC 连接字符串
【发布时间】:2012-06-13 03:48:42
【问题描述】:

如何在soapui -pro命令行中动态更改JDBC连接字符串、用户名和密码?

谢谢

【问题讨论】:

    标签: soapui


    【解决方案1】:

    您可以使用属性。看这里: Working with SoapUI Properties

    注意页面上关于命令行的最后一点:

    Now when you run the request, the property will automatically be replaced with its current    
    value. To use a different value just change the endpoint in the UI, or from the command-
    line you can use the -P option;
    
    -PServiceEndoint=dev.eviware.com:8884
    
    which would use the dev.eviware.com:8884 endpoint instead (entirely fictional).
    

    【讨论】:

    • 这不是一个属性。如果单击 JDBC 连接选项卡,您可以看到 Connectionstring。这就是我想要动态改变的
    • 我从 Smartbear 得知我可以定义一个项目级自定义属性,我可以通过属性扩展在连接字符串中使用它,并使用 -P 参数从命令行覆盖。所以你在某种程度上是正确的!
    猜你喜欢
    • 2018-09-20
    • 2011-04-02
    • 1970-01-01
    • 2021-12-18
    • 1970-01-01
    • 2016-08-17
    相关资源
    最近更新 更多