Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

后端 未结 6 548
南方客
南方客 2021-01-01 20:48

Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

Hi,

I want to JS code coverage done by my Selenium T

6条回答
  •  自闭症患者
    2021-01-01 21:30

    I don't know what you are trying to achieve, but:

    • Selenium is testing the final output, as seen on the page itself.

    So it really does not matter if its PHP, HTML, JSP, ASP or .NET - the Selenium is designed to mimick the end user and click the final application - the final HTML code generated by whatever is under the hood.

    Selenium is also not that good for code coverage tests - one piece code can be on many pages - so better approach with selenium is to do the "user" coverage - try to cover all the possible actions which living human could possibly do with your page

提交回复
热议问题