How to pass the -D System properties while testing on Eclipse?

前端 未结 6 1455
有刺的猬
有刺的猬 2020-11-29 01:52

I am developing on Eclipse on Windows and Code gets deployed on Unix. I am fetching the system property values using System.getProperty(\"key\") ... How do I pass this in Ec

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 02:34

    Yes this is the way:

    Right click on your program, select run -> run configuration then on vm argument

    -Denv=EnvironmentName -Dcucumber.options="--tags @ifThereisAnyTag"
    

    Then you can apply and close.

提交回复
热议问题