예제 #1
0
        public void VerifyToggleStatus_ON()
        {
            int count           = 0;
            int permissionCount = Permissions.GetCount();

            for (int i = 0; i < permissionCount; i++)
            {
                Count = i.ToString();
                if (RolePermissionsON.VerifyToggleON())
                {
                    count++;
                }
            }
        }
예제 #2
0
        public void ChangetoOFFStatus(string role_perm, string section)
        {
            int permissionCount = Permissions.GetCount();

            if (section == "WebPortal")
            {
                for (int i = 0; i < permissionCount; i++)
                {
                    Count = i.ToString();

                    if (RolePermissionsWebPortal.Text() == role_perm)
                    {
                        if (RolePermissionsON.VerifyToggleON())
                        {
                            RolePermissionsON.Click();
                            BRLogger.AssertIsTrue(RolePermissionsOFF.VerifyToggleOFF(), "Verify Off Status");
                            break;
                        }
                    }
                }
            }

            else if (section == "DriverApp")
            {
                for (int i = 0; i < permissionCount; i++)
                {
                    Count = i.ToString();

                    if (RolePermissionsDriverApp.Text() == role_perm)
                    {
                        if (RolePermissionsON.VerifyToggleON())
                        {
                            RolePermissionsON.Click();
                            BRLogger.AssertIsTrue(RolePermissionsOFF.VerifyToggleOFF(), "Verify Off Status");
                            break;
                        }
                    }
                }
            }
        }