static void RunTests(Simulator sim) { try { ss = 1; Console.WriteLine("Running {0}", sim.Name); var app = ConfigureApp.Debug().iOS.EnableLocalScreenshots() .AppBundle("../../../../MusicPlayer.iOS/bin/iPhoneSimulator/Debug/MusicPlayeriOS.app") .DeviceIdentifier(sim.UDID).StartApp(); if (sim.Name.Contains("iPad")) { app.SetOrientationLandscape(); } AppInitializer.App = app; //PlayMusicTest.PlaySong (app); LoginTest.CheckLogin(); MenuTests.GotoArtist(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Artist"); MenuTests.GotoAlbums(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Albums"); MenuTests.GotoGenres(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Genres"); MenuTests.GotoSongs(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Songs"); MenuTests.GotoPlaylists(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Playlists"); MenuTests.GotoEqualizer(app); sim.TakeScreenshot(app); Console.WriteLine("Took Screenshot {0} - {1}", sim.Name, "Equalizer"); } catch (Exception ex) { Console.WriteLine(ex); } }