HtmlUnit + Selenium within Production

后端 未结 3 1729
长发绾君心
长发绾君心 2021-01-04 10:27

I am currently using HtmlUnit and Selenium to drive it (WebDriver) within my production code.

I am scaping and interacting with various websites programmatically wi

3条回答
  •  半阙折子戏
    2021-01-04 10:54

    Generally, use your testing "gut feeling" about that. What WebDriver and HTMLUnit does is, that it simulates real user performing some actions in the webpage.

    My personal gut feeling says, that I should do as less production testing, as possible. So I personally would use these tools only for verification, if my webapp is still alive.

    Yes, its generic answer for generic question, but try this:

    Gather around people responsible for the webapp and ask them:

    • Should be it tested on production? (so there is always slight chance, that some customers will see those test data)

    • If yes, what should be tested on production?

    • If yes, should it be automated?

    And then you have answer ;)

提交回复
热议问题