Test_PRL_02_02_002_SearchWhenSearchingKeyWordDoesNotMatchExitingUsers
open /portal/public/classic/
echo -- Search when searching keyword does not match existing users--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to User and Group management--
waitForElementPresent link=Users and groups management
clickAndWait link=Users and groups management
echo -- Search when searching keyword does not match existing users--
waitForElementPresent searchTerm
type searchTerm test
waitForElementPresent searchOption
select searchOption label=User Name
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
waitForTextPresent No result found.
verifyTextPresent No result found.
waitForElementPresent //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
echo -- Return to user list--
type searchTerm
type searchTerm
waitForElementPresent searchTerm
type searchTerm
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
echo -- Do search when search keyword matches un-selected search type--
waitForElementPresent searchTerm
type searchTerm Demo
waitForElementPresent searchOption
select searchOption label=Last Name
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
waitForTextPresent No result found.
verifyTextPresent No result found.
waitForElementPresent //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent searchTerm
type searchTerm
waitForElementPresent searchOption
select searchOption label=User Name
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
clickAndWait link=Sign out