Package com.snapfix.tests
Class UserPermissionTest
java.lang.Object
com.snapfix.tests.UserPermissionTest
public class UserPermissionTest
extends java.lang.Object
******************************************************************************************************************************************************************************************************
This class contains 13 test for user permission.
UserpermissionTest Class Docs
This class contains 13 test for user permission.
Permission is located in group setting icon and change role type as user so different permission is display.
- CreateNewTaskPermission - In this test admin give permission of 'Create new Task',after logout from admin login and login as user and verify that create new Task button display.
- ViewAllTaskPermission - In this test admin give permission of 'View all task',after logout from admin login and login as user and verify that task is display.
- DeleteJobPermission - In this test admin give permission of 'Delete job',after logout from admin login and login as user and verify that delete option is display in task.
- PlannedJobPermission - In this test admin give permission of 'Planned job',after logout from admin login and login as user and verify that planned option is display in task.
- CreateNewChecklistItem - In this test admin give permission of 'Create new checklist',after logout from admin login and login as user and verify that new checklist button is display in task.
- EditToDoItemPermission - In this test admin give permission of 'Edit todo item',after logout from admin login and login as user and verify that edit option is display in task for checklist.
- DeleteDoToItemPermission - In this test admin give permission of 'Delet todo item',after logout from admin login and login as user and verify that delete option is display in task for checklist.
- GenerateReportPermission - In this test admin give permission of 'Generate report',after logout from admin login and login as user and verify that in task list screen Report is display in context menu.
- CreateNewGroupPermission - In this test admin give permission of 'Create new group',after logout from admin login and login as user and verify that new group icon display in group list.
- GroupSettingAccessPermission - In this test admin give permission of 'Group setting access',after logout from admin login and login as user and verify that new gear icon is display in group.
- AddorRemoveusersPermission - In this test admin give permission of 'Add or remove user',after logout from admin login and login as user and verify that edit user icon button is display or not in task.
- AddEditDeleteTagPermission - In this test admin give permission of 'Add edit delete tag',after logout from admin login and login as user and verify that edit tag icon is display or not in task.
- EditTagHeadingPermission - In this test admin give permission of 'Edit heading',after logout from admin login and login as user and verify that edit icon of tag header is display in task after that go to burger menu and logout.
******************************************************************************************************************************************************************************************************
- CreateNewTaskPermission - In this test admin give permission of 'Create new Task',after logout from admin login and login as user and verify that create new Task button display.
- ViewAllTaskPermission - In this test admin give permission of 'View all task',after logout from admin login and login as user and verify that task is display.
- DeleteJobPermission - In this test admin give permission of 'Delete job',after logout from admin login and login as user and verify that delete option is display in task.
- PlannedJobPermission - In this test admin give permission of 'Planned job',after logout from admin login and login as user and verify that planned option is display in task.
- CreateNewChecklistItem - In this test admin give permission of 'Create new checklist',after logout from admin login and login as user and verify that new checklist button is display in task.
- EditToDoItemPermission - In this test admin give permission of 'Edit todo item',after logout from admin login and login as user and verify that edit option is display in task for checklist.
- DeleteDoToItemPermission - In this test admin give permission of 'Delet todo item',after logout from admin login and login as user and verify that delete option is display in task for checklist.
- GenerateReportPermission - In this test admin give permission of 'Generate report',after logout from admin login and login as user and verify that in task list screen Report is display in context menu.
- CreateNewGroupPermission - In this test admin give permission of 'Create new group',after logout from admin login and login as user and verify that new group icon display in group list.
- GroupSettingAccessPermission - In this test admin give permission of 'Group setting access',after logout from admin login and login as user and verify that new gear icon is display in group.
- AddorRemoveusersPermission - In this test admin give permission of 'Add or remove user',after logout from admin login and login as user and verify that edit user icon button is display or not in task.
- AddEditDeleteTagPermission - In this test admin give permission of 'Add edit delete tag',after logout from admin login and login as user and verify that edit tag icon is display or not in task.
- EditTagHeadingPermission - In this test admin give permission of 'Edit heading',after logout from admin login and login as user and verify that edit icon of tag header is display in task after that go to burger menu and logout.
-
Constructor Summary
Constructors Constructor Description UserPermissionTest()
-
Method Summary
Modifier and Type Method Description void
AddEditDeleteTagPermission()
void
AddorRemoveusersPermission()
void
commonUses()
void
CreateNewChecklistItem()
void
CreateNewGroupPermission()
void
CreateNewTaskPermission()
void
DeleteDoToItemPermission()
void
DeleteJobPermission()
void
EditTagHeadingPermission()
void
EditToDoItemPermission()
void
GenerateReportPermission()
void
getResponseBody()
void
GroupSettingAccessPermission()
void
jsonCommonData()
void
LoginTest()
void
PlannedJobPermission()
void
setObjectValues()
void
tearDown()
void
ViewAllTaskPermission()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UserPermissionTest
public UserPermissionTest() throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
jsonCommonData
public void jsonCommonData() -
commonUses
public void commonUses() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
setObjectValues
public void setObjectValues() -
LoginTest
public void LoginTest() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
CreateNewTaskPermission
public void CreateNewTaskPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
ViewAllTaskPermission
public void ViewAllTaskPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
DeleteJobPermission
public void DeleteJobPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
PlannedJobPermission
public void PlannedJobPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
CreateNewChecklistItem
public void CreateNewChecklistItem() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
EditToDoItemPermission
public void EditToDoItemPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
DeleteDoToItemPermission
public void DeleteDoToItemPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
GenerateReportPermission
public void GenerateReportPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
CreateNewGroupPermission
public void CreateNewGroupPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
GroupSettingAccessPermission
public void GroupSettingAccessPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
AddorRemoveusersPermission
public void AddorRemoveusersPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
AddEditDeleteTagPermission
public void AddEditDeleteTagPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
EditTagHeadingPermission
public void EditTagHeadingPermission() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
getResponseBody
public void getResponseBody() -
tearDown
@AfterSuite public void tearDown()
-