recent-action-test
echo <h2>Test of recent user actions</h2>
<ul>
<li>View a party profile</li>
<li>Check that the viewprofile page of this particular party (and only it) is shown </li>
<li>View an other profile</li>
<li>Check that there are two profileview page recorded for recent action</li>
<li>Continue the same thing until there are 5 actions recorder</li>
<li>Continue to view a profile and check that there are no more than the last 5 actions recorded</li>
<li>At least, check that when viewing the same profile 2 times, only one appears</li>
</ul>
</td>
</tr>
<tr>
<td>echo
begin standard procedure</td>
<td>
open https://localhost:8443/partymgr/control/logout
open https://localhost:8443/partymgr/control/setSessionLocale?newLocale=en
type USERNAME admin
type PASSWORD ofbiz
clickAndWait //input[@value='Login']
echo end of standard procedure
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=DemoEmployee
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyTextPresent Demo Employee
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=DemoSupplier
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'External User')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=system
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=Company
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=ltdadmin
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Main
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementNotPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=externaluser
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait //input[@value='Find']
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait //div[@id='content-main-section']/div[2]/div[2]/table/tbody/tr[7]/td[1]/a
assertTitle exact:OFBiz: Party Manager: View Party Profile
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
verifyElementNotPresent //a[@class='buttontext' and contains(., 'Demo Employee')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Demo Supplier')]
verifyElementPresent //a[@class='buttontext' and contains(., 'System Account')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Your Company Name Here')]
verifyElementPresent //a[@class='buttontext' and contains(., 'Limited Administrator')]
verifyElementPresent //a[@class='buttontext' and contains(., 'External User')]
clickAndWait link=Demo Supplier
assertTitle exact:OFBiz: Party Manager: View Party Profile
assertTextPresent The Profile of Demo Supplier [DemoSupplier]
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=External User
assertTitle exact:OFBiz: Party Manager: View Party Profile
assertTextPresent The Profile of Mr. External User [externaluser]
clickAndWait link=Parties
assertTitle exact:OFBiz: Party Manager: Find Party(s)
clickAndWait link=Your Company Name Here
assertTitle exact:OFBiz: Party Manager: View Party Profile
assertTextPresent The Profile of Your Company Name Here [Company]
echo test successfull