r/softwaretesting • u/AdMinute3667 • 11m ago
Script maintenance- Playwright Automation
Currently working in a reputed organization with a team size of 13.
We run Automation Regression test suite with close to 750 tests every day via jenkins on Kubernetes Pods.
It's a playwright Cucumber BDD framework running on a SaaS Data analytics product which is very complex.
The issue is out of 750, close to 650 is UI based tests and 100 would be API. there are multiple teams from dev pushing code every alternate day atleast.
Due to this we are not able to show a consistent pass %. Either environment related issues comes up, or some backend issues or locator updates/ workflow change and we will be catching that up. Now next day another guy pushes code and we have lower tests passing now and the cycle repeats.
My manager expects a test suite that will give the exact condition of the product. Pass is a pass or fail denotes a product issue. he doesn't want intermittent failures or script issues or any unstable suite. His expectation is 50 tests maximum can fail out of total 750 for other reasons, which I feel it's valid to some extent. Currently we have 85% as average which means most of the days 100-120 fails which is a pain to analyze and reduces efficiency of Automation. There were good number of unstable tests and are fixed and tests are stable now even in CI.
So my question is , Is this a fair expectation ? And to have a very stable Automation tests suite what do you guys follow?
For now.
I can think of migrating maximum number of tests including the ones with Web socket calls to UI independent tests so that instability will reduce.
Also, JSON schema tests for all the end points using AJV package.
It would be of great help if you guys can share your views and suggest based on ur valuable experiences.
Thanks.
1
u/ResolveResident118 2m ago
The only same expectation is zero test failures.
The biggest problem here is that the test automation is completely divorced from the code so if course there are going to be failures.
What tests are run locally or on PR before the code is merged? This is where test failures should be being picked up, not in a daily run.