public void LoginWithPredefinedEndpointTest() { EulaScreen eulaScreen = new EulaScreen(Driver); var serviceEndpointsScreen = eulaScreen.TapAccept(); var loginScreen = serviceEndpointsScreen.TapEndpoint(TestConfig.EnvName); loginScreen.Login = "******"; loginScreen.Password = "******"; var patientsListScreen = loginScreen.TapLoginButton <PatientsListScreen>(); }
public void LoginWithDifferentUsersTest(string user, string password) { EulaScreen eulaScreen = new EulaScreen(Driver); var serviceEndpointsScreen = eulaScreen.TapAccept(); var loginScreen = serviceEndpointsScreen.TapEndpoint(TestConfig.EnvName); loginScreen.Login = user; loginScreen.Password = password; var patientsListScreen = loginScreen.TapLoginButton <PatientsListScreen>(); }
public void LoginWithWrongUserTest() { EulaScreen eulaScreen = new EulaScreen(Driver); var serviceEndpointsScreen = eulaScreen.TapAccept(); var loginScreen = serviceEndpointsScreen.TapEndpoint(TestConfig.EnvName); loginScreen.Login = "******"; loginScreen.Password = "******"; var authenticationErrorDialog = loginScreen.TapLoginButton <Dialog>(); Assert.AreEqual("Authentication Error", authenticationErrorDialog.Title); Assert.AreEqual("Authentication Failed", authenticationErrorDialog.Message); loginScreen = authenticationErrorDialog.TapOK <LoginScreen>(); }
[Category("Endpoints")]//TEST public void LoginWithCustomEndpointTest() { EulaScreen eulaScreen = new EulaScreen(Driver); var serviceEndpointsScreen = eulaScreen.TapAccept(); var addEndpointScreen = serviceEndpointsScreen.TapAddButton(); addEndpointScreen.Allias = TestConfig.EnvName; addEndpointScreen.ServiceURL = TestConfig.HwsURL; serviceEndpointsScreen = addEndpointScreen.TapSaveButton(); var loginScreen = serviceEndpointsScreen.TapEndpoint(TestConfig.EnvName); loginScreen.Login = "******"; loginScreen.Password = "******"; var patientsListScreen = loginScreen.TapLoginButton <PatientsListScreen>(); }