Open johnsickels opened 4 years ago
Still investigating this. I did get it to work by doing this
setTimeout(() => {
pages.forEach((page) => {
suite
.html(`Page Test - ${site.name} ${page}`)
.open(site.base + page)
.next(basicPageChecks);
});
}, 100);
This makes the execution of those pages out of band with the homepage checks. So it does seem to be some sort of concurrency thing or them stepping on each other's toes... which i think we've seen happen before. Will need some more digging
Okay... still don't know the root cause and it does need to be addressed... BUT... with the new reactors in 2.4.0 the suite.setConcurrencyLimit
works now. I set it to 5, for example, which limits it to five active scenario http requests at once. This resolved it. So it's obviously something with the responses stepping on each other.
I have a large suite with 65 scenarios, multiple sites, identical assertions. When I run only 5 of the scenarios, they pass, but when I attempt all 65 the same assertions fail. I've identified which items are absent in the tests:
flo-trending ul li
flo-most-watched .most-watched-container div
Steps to repro:
forEach
to unleash 12*5 more scenarios. (lines 86-91)The
li
s in these assertions exist in a smaller suite, but are null in a suite with many scenarios. I see null when I comment the length while attempting all 65 scenarios:Here is the code:
Flagpole: 2.2.12 Node: 12.13.1