For example, I have this part of code below, which find some <a> elements where they are nested into a <ul> element of a page and then stores their href tags and their sum into those global variables:
My problem is the time that this script takes to finish. And I want to know, is it normal this for loop to take 40 seconds for 144 elements, or is something wrong with my code?
And the strange thing is that I get the optionDialog with the result very soon, but the Log Viewer keep working and the Job Progress says < Running > until the Log Viewer ends. For example it takes 4 seconds to give me the optionDialog with the result and close to 35 seconds for Log Viewer to finish and the Job Progress to say < Passed >.
So, is this normal? Is there any problem with my code? Can I do something to make it faster?
I switched “Log Viewer” from “Tree View” to “Table View”, I left enabled only “Failed”, “Error” and “Warning” messages and now… It is “flying”!!!
Thank you very much for the answer and your time!!!
@kazurayam We should pressure the devs to include this tip prominently in the docs somewhere. When a user runs some otherwise innocuous code, the affect on performance (as you noticed) can be quite dramatic.
I want Katalon Studio Free license to keep allowing users to switch the “Log Viewer” from “Tree View” to “Log View”. And in the “Log View”, I want Katalon Studio free license to keep allowing us to turn the “All button” off.