开发者

Selenium test slow

I have a web page which has a table. There is a script that add rows to the table, and whenever a row being added some calculation being applied. I wrote a selenium test, that add 1000 rows. The test start fast, and the more rows being added the more the test become slower. the table is huge and has around 40 TD, and each one has one input item. all the javascript code written in jquery.

I tried to spe开发者_运维知识库ed up the code, and even drop some calculation, with no effect of the performance at all. is there a way to know if the slow down from the code, or from Selenium test? How can i profile? I am trying to use firebug profiler, but Selenium disables firebug when running.


I suggest the Chrome profiler. You can write a simple test case in Javascript that does a similar operation to your Selenium test (add 1000 rows, etc), and profile it with the Chrome dev tools. I find they are very handy for tracking down slowdowns and memory leaks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜