You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use your package for simple performance tests with Protractor. The issue I have is I have one spec with 3 tests that navigates to 3 different pages, I am calling perfRunner.start() and .stop() in each of these it blocks. However, every time I call for getStats('loadTime'), it returns the same value for each page which is impossible. How do I reset the perfRunner so I get a new loadTime every time?
I have a console for Javascript and loadTime in each it block and this is what it prints:
✓ logs in Javascript: 399.71500009298325 Load time: 2171
✓ goes to overview page Javascript: 1282.9210000038147 Load time: 2171
If I called perfRunner.stop(), why is my JavaScript counter incrementing while the loadTime remains the exact same? I want individual results for each it block, not aggregated values.
How do I reset or clear the perfRunner results? Where is the document that lists all the function options, other than perfRunner.start() and perfRunner.stop()? Is there anything like perfRunner.reset() or .clear() etc?
The text was updated successfully, but these errors were encountered:
I am trying to use your package for simple performance tests with Protractor. The issue I have is I have one spec with 3 tests that navigates to 3 different pages, I am calling
perfRunner.start()
and.stop()
in each of theseit
blocks. However, every time I call forgetStats('loadTime')
, it returns the same value for each page which is impossible. How do I reset theperfRunner
so I get a newloadTime
every time?Consider the following script:
I have a console for
Javascript
andloadTime
in eachit
block and this is what it prints:✓ logs in
Javascript: 399.71500009298325
Load time: 2171
✓ goes to overview page
Javascript: 1282.9210000038147
Load time: 2171
If I called
perfRunner.stop()
, why is my JavaScript counter incrementing while the loadTime remains the exact same? I want individual results for eachit
block, not aggregated values.How do I reset or clear the perfRunner results? Where is the document that lists all the function options, other than
perfRunner.start()
andperfRunner.stop()
? Is there anything likeperfRunner.reset()
or.clear()
etc?The text was updated successfully, but these errors were encountered: