How to use Selenium to check for memory leaks in javascript app? - Stack Overflow

I am using java + selenium for automated testing of a javascript web-app. One question that has e up is

I am using java + selenium for automated testing of a javascript web-app. One question that has e up is memory leaks and how to test for them. Since I am already using selenium for testing the app, is there an easy way to get the memory usage and other profiling information for the web app? (leveraging selenium or/and other automated web-js testing tools)

Currently I'm using chromedriver but will be extending to use the firefox and ie drivers in the future.

I am using java + selenium for automated testing of a javascript web-app. One question that has e up is memory leaks and how to test for them. Since I am already using selenium for testing the app, is there an easy way to get the memory usage and other profiling information for the web app? (leveraging selenium or/and other automated web-js testing tools)

Currently I'm using chromedriver but will be extending to use the firefox and ie drivers in the future.

Share Improve this question edited Jun 10, 2014 at 15:40 oberlies 11.7k5 gold badges67 silver badges115 bronze badges asked Oct 29, 2013 at 19:49 Joelle BouletJoelle Boulet 3904 silver badges12 bronze badges 2
  • 1 were you able to find any such approach of capturing performance footprint of your website through selenium or any such other tool ? . Request you to share your finding , as it would be helpful for other people . Thanks in advance. – sjethvani Commented Nov 14, 2018 at 18:54
  • @sjethvani We did some javascript heap exports by injecting/executing js code via selenium but that didn't end up getting all the info we wanted. I don't work there anymore so I can't post the sample code of how we worked around this problem. – Joelle Boulet Commented Apr 25, 2022 at 15:04
Add a ment  | 

3 Answers 3

Reset to default 2

Yeah, cant be done with selenium solely, take a look into tools like dynaTrace or httpWatch. Those can be integrated with webDriver. Also, take a look at this thread here.

Selenium does not monitor any resource usage, it is just a way to emulate user actions. You could use Windows tasklist mand to get the memory usage of your browser. Modern browsers spawn many processes so remember to check all of those.

Selenium itself doesn't help report on that.
The main way I could imagine it helping out would be to have a bunch of machines runnning cases with different inputs and expected outputs and make sure that each one gives the correct output when they're run at the same time.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745132856a4613056.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信