BrianSmart
4 years agoOccasional Contributor
Count the number of instances
Hey,
I'm trying to find a way to count the number of instances of an application without throwing an error. Part of my check is to launch a second instance, and verify that the application detects another instance running, and alerts the user. I don't want to stop testing when using Sys.Process("name", 2).Exists(). Is there a place where I can safely (without an error) count the number of instances for manual validation? Do I need to do this externally?
Thanks!
No. You can keep your .apk file anywhere, only requirement - it should be accessible from your TC machine.