Esempio n. 1
0
        public void OptInOutEmailUITest()
        {
            TestMethods test    = new TestMethods();
            var         broswer = BrowserWindow.Launch("http://*****:*****@trinitytg.com");
            test.EnterText(broswer, "phoneNumber", "9167984676");
            test.ClickCheckBox(broswer, "emailNotifications");
            test.ClickButton(broswer, "saveUserInfoBtn");
            test.ClickLabel(broswer, "savedUserInfoLabel");
            test.ClickLabel(broswer, "logoutBtn");
            test.ClickButton(broswer, "loginBtn");
            // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
        }
Esempio n. 2
0
        public void UserLoginUITest()
        {
            TestMethods test    = new TestMethods();
            var         broswer = BrowserWindow.Launch("http://localhost:31419/Thunderstruck.html");

            test.EnterText(broswer, "username", "WebTest");
            test.EnterText(broswer, "password", "password");
            test.ClickButton(broswer, "loginBtn");
            test.ClickButton(broswer, "saveUserInfoBtn");
            test.ClickLabel(broswer, "savedUserInfoLabel");
            test.ClickLabel(broswer, "logoutBtn");
            test.ClickButton(broswer, "loginBtn");
            // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
        }
Esempio n. 3
0
        public void HeaderElementsUITest()
        {
            TestMethods test    = new TestMethods();
            var         broswer = BrowserWindow.Launch("http://localhost:31419/Thunderstruck.html");

            test.EnterText(broswer, "username", "Test");
            test.EnterText(broswer, "password", "Test");
            test.ClickButton(broswer, "loginBtn");
            test.ClickLabel(broswer, "dashboard");
            test.ClickLabel(broswer, "incidents");
            test.ClickLabel(broswer, "editProfile");
            test.ClickLabel(broswer, "switchRole");
            test.ClickButton(broswer, "okBtn");
            test.ClickLabel(broswer, "logoutBtn");
            test.ClickButton(broswer, "loginBtn");
            // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
        }
Esempio n. 4
0
        public void UpdateUserProfileRandomOptInOutUITest()
        {
            TestMethods test    = new TestMethods();
            var         broswer = BrowserWindow.Launch("http://*****:*****@trinitytg.com");
            test.EnterText(broswer, "phoneNumber", "9167984676");
            test.ClickRandomCheckBox(broswer, "emailNotifications", "pushNotifications", "smsNotification");
            test.ClickButton(broswer, "saveUserInfoBtn");
            test.ClickLabel(broswer, "savedUserInfoLabel");
            test.ClickLabel(broswer, "logoutBtn");
            test.ClickButton(broswer, "loginBtn");
        }