'Is there any ways to set "noReset" Appium capability only for one test?

I wanna compare the data between closing app and launching it again. If I don't set noReset capability to true all the data clear up, but I need this option only for couple of tests, no more.



Solution 1:[1]

Solved by:

   try {
        driver.terminateApp("appPackage");
        driver.activateApp("appPackage");
    } catch (Exception e){
        e.printStackTrace();
    }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vadim