java - How to configure -D arguments in Eclipse -


i trying run maven test , testng execution. need pass config values pom.xml , when execute command using -d flag, working. how can add these values in eclipse ?

my command line argument -dusername=username , in pom.xml getting

<systempropertyvariables>     <username>${user_name}</username>                        </systempropertyvariables> 

now without specifying run configurations, when try execute testng , maven test showing error states reference undefined variable username. tried adding envirnment variables in eclipse, not working.

if go run configuration in eclipse, there tab called arguments can specify program arguments or vm arguments


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -