How to prevent app close after run testcases

hello all, I am performing appium automated testing with webDriver.io in my react-native application
and i have wrote test cases in total 5 files which i have marked red-round in image.
the problem that I have faced it is, when the testcase file number1 is run successfully it will close the application and for second file of test case started running after the application start, so

i need to prevent the application closing, after each testcase file. in both ios and android.

Thank you.

try dontStopAppOnReset from -> https://appium.io/docs/en/writing-running-appium/caps/

1 Like