Priyank - If we compare it with Web Scenario....
Browser (Represented by WebDriver object in code) ====== Emulator (Represented by WebDriver object in code)
Selenium Grid Hub ========= Appium Server
Now I can automate a single test that launches two browsers and can send commands to them one by one.
@Test
public void twoBrowserWebTest()
{
WebDriver chrome = new ChromeDriver(new URL(gridServerUrl), dc);
WebDriver firefox = new FirefoxDriver(new URL(gridServerUrl), dc);
chrome.get("http://google.com");
firefox.get("http://microsoft.com");
}
Above test works perfectly fine as Grid Directs commands to the right browser window. But in case of two android emulators... This scenario is broken.
Hope that explains my problem better.
I might be wrong in assuming that one APPIUM Server is equivalent to HUB in Selenium GRID.... If that is the case - Can someone please confim?