cancel
Showing results for 
Search instead for 
Did you mean: 

ReadyAPI 8 - Issue running a test suite in parallel mode

tsuarezc
Occasional Contributor

ReadyAPI 8 - Issue running a test suite in parallel mode

When running a test suite in parallel mode (45 test cases) and you want to STOP the execution ReadyAPI get freezing, you need to CLOSE ReadyAPI to start again

7 REPLIES 7
nmrao
Community Hero

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

One has the be careful while running the test in parallel. Especially when there are more number of tests like you mentioned.

Do you see all the tests case execution start at the same time?

Though I am not 100% sure that whether it starts 45 threads or some other way.
I would like someone from Smartbear team clarify that.

Here two things needs to be considered:
1. Does pc making API calls has the enough memory? Try configuring heap size in READYAPI_HOME/bin/readyapi.vmoptios

2. Can the service take such load?

I understand based on the question that you are into #1 problem. So, try increasing heap and see if that helps!


Regards,
Rao.
tsuarezc
Occasional Contributor

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

we have enough memory (16 Gb) and the vmotions is configured by default:
-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx8000m

I am running VisualVM and I noticed that the threads once start never are liberated (live threads) even when I try to STOP de execution

tsuarezc
Occasional Contributor

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

tsuarezc_0-1620920956156.png

 

tsuarezc
Occasional Contributor

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

tsuarezc_0-1620921018005.png

 

tsuarezc
Occasional Contributor

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

Look like the execution was stopped but we cannot run it again, the
START button remains disabled.

tsuarezc_0-1620921288208.png

 

 

nmrao
Community Hero

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

Glad to know you have the configuration already and thanks for the screen shots.

If I were to do achieve the parallel execution of tests (which I never used), probably write own script where one can have control over number of threads etc.

Found below code snippet and probably worth taking a look at it and adopt to your use case if parallelization is paramount for you
https://www.tothenew.com/blog/how-to-use-thread-pooling-using-groovy/

In the above sample (1..10) list is passed as jobs. Here one needs to pass the test case list.
And good place to have the test is questionable and test report.


Regards,
Rao.
nmrao
Community Hero

Re: ReadyAPI 8 - Issue running a test suite in parallel mode

May be worth to open a ticket with Smartbear Customer support.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors