【发布时间】:2015-08-20 14:25:04
【问题描述】:
我有一个测试套件在两个环境中运行。
有时,我想在 localhost:8080 中运行测试,有时在 localhost:8585 中运行测试。
Jenkins 通过“mvn test”命令运行测试。
如何通过参数传递端口?类似“mvn test 8080”。
【问题讨论】:
-
我忘记了一个细节。我必须在我的 junit 代码中使用端口:driver.get("localhost:8080");
标签: maven unit-testing testing junit automated-tests