MSBuild脚本是否可以将参数传递给Selenium测试运行器,然后由Selenium-IDE测试脚本使用它?我希望我可以做这样的事情......将变量传递给Selenium-IDE脚本
java -jar selenium-server.jar -htmlSuite *firefox $(SeleniumTestBaseUrl) myTestSuite.html -myVariable $(environmentSpecificVar)
...,然后从我的硒IDE脚本中喜欢使用它...
waitForTextPresent The passed in variable is ${myVariable}
即使世界传递一个环境没有问题(即SeleniumTestBaseUrl是什么),但我无法将任何其他特定环境传递到我的Selenium-IDE脚本中。
谢谢!
我采用XmlPoke'ing相应的变量到脚本的格外讨厌policiy,因为没有别的似乎工作。 – GoatInTheMachine 2011-04-26 11:00:04