Stop Session
5 min
stop a session when its appium test interaction is complete stopping a session ends that interaction period but does not release the allocation this distinction matters because the same allocation can be used to start another session afterward before you begin keep the sessionid returned by start session make sure the test runner has finished sending appium commands before stopping the session sdk method java node js client sessions() stop(sessionid) await client sessions() stop(sessionid) parameter parameter required description sessionid yes identifier returned by start session examples client sessions() stop("session 123");await client sessions() stop("session 123"); what happens next? start another session with the same active allocationid , or collect logs and recordings, then release the allocation if no more sessions are needed do not call allocation deletion as a substitute for stopping the session stop the session first stopping a session keeps the allocation active release the allocation only after the final session that uses it
