Executing multiple test cases with one app session


So here is the problem, whenever I try to execute my tests, multiple session IDs will be created and multiple app windows will be open. I wrote my test cases using javascript (mocha and chai), basically I have one test file per screen. For example. one test file for the home page, one test file for the sign in page, one test file for profile page. If I run my test cases, a window will popup (I am using appium with youi engine), it will open one UI for home page, another UI and another session ID will open for sign in page, etc. I tried to set the capabilities in the Appium GUI for noReset(true), but it did not work.

I also tried adding the capabilities in the code directly and it still did not work, it still opened multiple UI for each test files I have. I just organized each screen with a separate file for organization purposes.

Here are the links: http://appium.io/docs/en/writing-running-appium/caps/
Appium with YOUI Engine https://github.com/YOU-i-Labs/appium-youiengine-driver

Thank you.

Have you asked the “You i” developers how to do this? Have you scanned through the driver logging to see if the capabilites flag is being passed though correctly by that framework?

1 Like

Thank you for your reply. I will check out the logs and will ask the developers