Real headless browser

前端 未结 4 1118
情书的邮戳
情书的邮戳 2020-12-13 11:05

I am in charge of testing an enterprise web application that makes heavy use of AJAX. I need to build a system that allows continuous running of tests without human interve

4条回答
  •  北海茫月
    2020-12-13 11:29

    You might be able to take advantage of some of the available JavaScript unit testing tools to assemble the sort of environment you need.

    For example I've found that loading env.js in rhino gives an acceptable fake browser for testing most JavaScript. It falls short on certain DOM attributes, like elements sized relative to their window, but that hasn't been a serious problem in my experience.

    See also:

    • http://ejohn.org/blog/bringing-the-browser-to-the-server/
    • http://pivotal.github.com/jasmine/
    • https://github.com/relevance/blue-ridge

提交回复
热议问题