开发者

How can i automatically convert Selenium HTML tests to Ruby Test::Unit tests?

I have a bunch Selenium HTML tests that are very convenient to edit using Selenium IDE. But my testing system uses Test::Unit tests. How can i convert my HTML tests to Ruby format? Converting t开发者_JS百科hem by hand is tedious and time consuming job, by the way sometimes i forget some test so this way is a no-go for a long run. So what can you guys suggest my?


You can open your HTML tests in Selenium IDE, following File > Export Test Case As... > Ruby (Test/Unit), then save the exported ruby file.

You have to focus on the Selenium IDE, or you won't see the correct menu if you're using Firefox on Mac.

UPDATE: there's an addon for batch convert: https://addons.mozilla.org/en-US/firefox/addon/197691/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜