Source:
<code>public void allTests() { AppUrl url = createUrl(Const.WebPageURIs.ADMIN_SEARCH_PAGE); loginAdminToPage(url, AdminHomePage.class); searchPage = AppPage.getNewPageInstance(browser, url, AdminSearchPage.class); browser.waitForPageLoad(); StudentAttributes student = testData.students.get("student1InCourse1"); AccountAttributes studentAccount = testData.accounts.get("student1InCourse1"); InstructorAttributes instructor = testData.instructors.get("instructor1OfCourse1"); AccountAttributes instructorAccount = testData.accounts.get("instructor1OfCourse1"); ______TS("Typical case: Search student keyword"); <START> String searchContent = "Student1"; <END> searchPage.inputSearchContent(searchContent); searchPage.clickSearchButton(); verifyStudentRowContent(student, studentAccount); verifyStudentExpandedLinks(student); ______TS("Typical case: Search for instructor email"); searchPage.clearSearchBox(); searchContent = "searchUI.instructor1@course1.tmt"; searchPage.inputSearchContent(searchContent); searchPage.clickSearchButton(); verifyInstructorRowContent(instructor, instructorAccount); verifyInstructorExpandedLinks(instructor); ______TS("Typical case: Reset instructor google id"); searchPage.resetInstructorGoogleId(instructor); instructor.googleId = null; verifyInstructorRowContent(instructor, instructorAccount); }</code><technical_language>Student1 is a generic term. This result in unexpected results other data in system</technical_language>

Target:
public void allTests() { AppUrl url = createUrl(Const.WebPageURIs.ADMIN_SEARCH_PAGE); loginAdminToPage(url, AdminHomePage.class); searchPage = AppPage.getNewPageInstance(browser, url, AdminSearchPage.class); browser.waitForPageLoad(); StudentAttributes student = testData.students.get("student1InCourse1"); AccountAttributes studentAccount = testData.accounts.get("student1InCourse1"); InstructorAttributes instructor = testData.instructors.get("instructor1OfCourse1"); AccountAttributes instructorAccount = testData.accounts.get("instructor1OfCourse1"); ______TS("Typical case: Search student google id"); String searchContent = student.getGoogleId(); searchPage.inputSearchContent(searchContent); searchPage.clickSearchButton(); verifyStudentRowContent(student, studentAccount); verifyStudentExpandedLinks(student); ______TS("Typical case: Reset student google id"); searchPage.resetStudentGoogleId(student); student.googleId = null; verifyStudentRowContent(student, studentAccount); ______TS("Typical case: Search for instructor email"); searchPage.clearSearchBox(); searchContent = instructor.getEmail(); searchPage.inputSearchContent(searchContent); searchPage.clickSearchButton(); verifyInstructorRowContent(instructor, instructorAccount); verifyInstructorExpandedLinks(instructor); ______TS("Typical case: Reset instructor google id"); searchPage.resetInstructorGoogleId(instructor); instructor.googleId = null; verifyInstructorRowContent(instructor, instructorAccount); ______TS("Typical case: Search common course id"); searchPage.clearSearchBox(); searchContent = student.getCourse(); searchPage.inputSearchContent(searchContent); searchPage.clickSearchButton(); verifyStudentRowContent(student, studentAccount); verifyInstructorRowContent(instructor, instructorAccount); ______TS("Typical case: Expand and collapse links"); verifyLinkExpansionButtons(student, instructor); }