Grails geb getting parameters from commandline

久未见 提交于 2019-12-04 06:17:31

问题


I am writing my ui tests with geb in grails . I want to start the tests from command line with maven. This works fine. My command: mvn -Dtest=CheckMenuLinks test

Now I want to pass some parameters for tests from commandline. Is this possible?


回答1:


I found the solution: I just add some parameter like: -Dmytest=myparameter

I can use this parameter in gebconfig with:

System.getProperty("mytest")


来源:https://stackoverflow.com/questions/35840678/grails-geb-getting-parameters-from-commandline

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