Esempio n. 1
0
        public void SearchRecruitmentNews_WithInputFacForm()
        {
            // create Search recruitment news page object
            SearchRNPageObject searchPage = new SearchRNPageObject();

            // search reacruitment news to application
            searchPage.SearchWithFac();

            try
            {
                // expected result
                var expectedResult = "hồ chí minh";

                Assert.IsTrue(searchPage.getTextCity().ToLower().Contains(expectedResult));
            }
            catch
            {
                // expected result
                var expectedResult = "không tìm thấy dữ liệu";

                Assert.AreEqual(expectedResult, searchPage.getTextError().ToLower());
            }
        }
Esempio n. 2
0
        public void SearchRecruitmentNews_WithInputFreeData()
        {
            // create Search recruitment news page object
            SearchRNPageObject searchPage = new SearchRNPageObject();

            // search reacruitment news to application
            searchPage.SearchWithAll(ExcelLib.ReadData(1, "Test Data"));

            try
            {
                // expected result
                var expectedResult = "lập trình";

                Assert.IsTrue(searchPage.getText().ToLower().Contains(expectedResult));
            }
            catch
            {
                // expected result
                var expectedResult = "không tìm thấy dữ liệu";

                Assert.AreEqual(expectedResult, searchPage.getTextError().ToLower());
            }
        }