Set JMeter properties using Maven plugin

强颜欢笑 提交于 2019-12-05 15:16:57

Outside of your <build> block. You can put:

  <properties>
    <my.host>localhost</my.host>
  </properties>

and then update your configuration block to say:

<propertiesUser> 
    <hostName>${my.host}</hostName> 
</propertiesUser> 

Finally, when executing maven, you can override with:

mvn verify "-Dmy.host=www.testsite.com"
  <properties>
<my.host>hostname</my.host>

<propertiesUser> 
<hostName>${my.host}</hostName> 

Finally, when executing maven, you can override with:

mvn verify "-Dmy.host=www.testsite.com" should it not be like this?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!