Skip to content
Srinivasan Sekar edited this page Jan 30, 2023 · 3 revisions
  • Specific test method can be skipped based on platform (AndroidDriver/IOSDriver) when running tests Concurrently on the same OSX Host.
    @Test
    @SkipIf(platform = "Android")
    public void testOnlyForIOS() throws Exception  {
        Your test steps...
        ...
        //This will run only on iOS devices
    }
    
    @Test
    @SkipIf(platform = "iOS")
    public void testOnlyForAndroid() throws Exception  {
        Your test steps...
        ...
        //This will run only on Android devices
    
    }