コード例 #1
0
        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>();
        }
コード例 #2
0
        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>();
        }
コード例 #3
0
        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>();
        }
コード例 #4
0
        [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>();
        }