Play Framework: Run single selenium test on the command line (headless browser)

落爺英雄遲暮 提交于 2021-01-27 20:30:28

问题


I can run a single selenium test in play's browser UI, however, is it possible to execute a play selenium test on the command line?

Obviously if I run play auto-test it will execute all my selenium tests (as well as my junit tests). Is there a way that I could tell Play to execute just a single selenium test on the command line to check whether it works using the headless browser?


回答1:


I don't think it's possible to do so with the current play framework,

but see how auto-test works on https://github.com/playframework/play/blob/master/modules/testrunner/src/play/modules/testrunner/FirePhoque.java .

It get the play test lists on /@tests.list , maybe you could try to override it providing what you want to test.

Anyway, I don't see the usecase of testing only one test in a headless browser.



来源:https://stackoverflow.com/questions/7605468/play-framework-run-single-selenium-test-on-the-command-line-headless-browser

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