I have a test suite having 10000+ test cases, and as all these test cases run under one suite (Regression Suite), my suite getting crashed always due to very high memory consumption, maybe the size of the testNG object is so big that my machine's memory with 16GB ram is always getting consumed. How can I solve this problem, or what maybe I am doing wrong?
Have you tried to implement Parallel execution for such a large testNG file. software testing solutions providing companies always recommend to break the file into bits and then try to execute using multiple threads.
Parallel testing cane be implemented in following ways:
- Parallel- Single Machine - Multiple Processes
- Distributed Testing- Multiple Machines - Single Process
- Parallel Distributed Testing- Multiple Machines - Multiple Processes
Try with this and share your feedback if it works for you.