|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.jira.functest.framework.FuncTestCase com.atlassian.jira.webtests.ztests.admin.TestAdminMenuWebFragment
public class TestAdminMenuWebFragment
This test asserts that the links in the admin menu is available/unavailable under various conditions. To test just the admin menu, this test case only uses users with permission to goto the administration section To keep it simple, the test xml file only changed the group settings (and not any roles)
Field Summary |
---|
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, log, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
TestAdminMenuWebFragment()
|
Method Summary | |
---|---|
void |
_testOtherUsersCannotSeeAdminSections()
Test that all other users (including not logged in) can only see project section with restriction message |
void |
_testProjectAdminCanSeeProjectSectionOnly()
Test that the system administrator can only see the project section |
void |
_testSystemAdminCanSeeAllAdminSections()
Test that all administrative sections are AVAILABLE when the user IS a system administrator |
void |
assertAdminLinksAreNotVisible()
|
void |
assertAdminLinksAreVisible()
|
void |
setUpTest()
Setup for an actual test |
void |
tearDownTest()
individual test tear down |
void |
testAdminMenuWebFragment()
|
void |
testBackToProjectConfigLink()
|
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, isDumpHTML, log, log, runBare, runTest, setEnvironmentData, setUp, setUpHttpUnitOptions, shouldSkipSetup, tearDown, xpath |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestAdminMenuWebFragment()
Method Detail |
---|
public void setUpTest()
FuncTestCase
setUpTest
in class FuncTestCase
public void tearDownTest()
FuncTestCase
tearDownTest
in class FuncTestCase
public void testBackToProjectConfigLink()
public void testAdminMenuWebFragment()
public void _testSystemAdminCanSeeAllAdminSections()
public void _testProjectAdminCanSeeProjectSectionOnly()
public void _testOtherUsersCannotSeeAdminSections()
public void assertAdminLinksAreVisible()
public void assertAdminLinksAreNotVisible()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |