示例#1
0
        public string AddAdvanceProperties(TestContext testContext)
        {
            string organizationName           = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email                      = Convert.ToString(testContext.DataRow["Email"]);
            string newDisplayName             = Convert.ToString(testContext.DataRow["NewDisplayName"]);
            bool   hideFromAddessList         = Convert.ToBoolean(testContext.DataRow["HideFromAddessList"]);
            bool   sendOofMessageToOriginator = Convert.ToBoolean(testContext.DataRow["SendOOFMessagetoOriginator"]);
            bool   SendersInsideandOutsideOrg = Convert.ToBoolean(testContext.DataRow["SendersInsideandOutsideOrg"]);
            string deliveryReport             = Convert.ToString(testContext.DataRow["DeliveryReport"]);
            string notes                      = Convert.ToString(testContext.DataRow["Notes"]);
            string groupType                  = Convert.ToString(testContext.DataRow["GroupType"]);
            bool   IsCR = Convert.ToBoolean(testContext.DataRow["IsCR"]);
            string incomingMessageSize = Convert.ToString(testContext.DataRow["IncomingMessage"]);



            string standing = pageDlDashboard.SetAdvanceProperties(newDisplayName, hideFromAddessList,
                                                                   sendOofMessageToOriginator, SendersInsideandOutsideOrg, deliveryReport, notes, incomingMessageSize, IsCR);

            //Verify
            string status = VerifyResult(ExchangeMessages.UpdateDlAdvanceProperties, standing);

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Update Advance Properties of Exchange Group", "Test to check if Advance Properties of Exchange Group are updating properly or not", organizationName, groupType, email, "Hide from Address List: " + hideFromAddessList + " Send Out Of Message: " + sendOofMessageToOriginator + " Senders Inside and Out of Organization: " + SendersInsideandOutsideOrg + " Delivery Report: " + deliveryReport + " Notes: " + notes + " IsCR:" + IsCR + " Incoming Message Size: " + incomingMessageSize, status, standing);

            return(status);
        }
示例#2
0
        public string VerifyAdministratorDL(TestContext testContext, bool isNew)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string groupType        = Convert.ToString(testContext.DataRow["GroupType"]);
            string userList         = Convert.ToString(testContext.DataRow["AdminUsers"]);

            //Act
            if (isNew == true)
            {
                pageDlDashboard.OpenAdministrators();
            }

            string standing = pageDlDashboard.VerifyDlAdministrators(userList);

            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }

            if (isNew == true)
            {
                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Administrators in new Exchange Group", "Test to check if the Administrators of new Exchange Group are added or not", organizationName, groupType, email, "", status, standing);
            }

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Administrators in Exchange Group via Dashboard", "Test to check if the Exchange Group Administrators are added or not via Dashboard", organizationName, groupType, email, "", status, standing);

            return(status);
        }
        public string VerifyArchive(TestContext testContext)
        {
            string status           = TestStatus.Success;
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string displayName      = Convert.ToString(testContext.DataRow["NewDisplayName"]);


            string searchString;

            if (displayName == "")
            {
                MailAddress addr = new MailAddress(email);
                searchString = addr.User;
            }
            else
            {
                searchString = displayName;
            }

            string standing = pageMailboxDashboard.VerifyArchive(searchString);

            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify enabling of Archiving", "Test to check if archiving has been enabled or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
示例#4
0
        public string VerifyMembersDL(TestContext testContext, bool isNew)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string groupType        = Convert.ToString(testContext.DataRow["GroupType"]);
            string userList         = Convert.ToString(testContext.DataRow["MemberUsers"]);

            //Act
            if (isNew == true)
            {
                pageDlDashboard.OpenMembers();
            }

            string standing = pageDlDashboard.VerifyDlMembers(userList);

            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }

            if (isNew == true)
            {
                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Members in new Exchange Group", "Test to check if the newly created Exchange Group has been assigned Members correctly at the time of creation", organizationName, groupType, email, "", status, standing);
            }

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Members in Exchange Group via dashboard", "Test to check if the Exchange Group have been assigned Members via dashboard correctly or not", organizationName, groupType, email, "", status, standing);

            return(status);
        }
        public string AddAdvanceProperties(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email = Convert.ToString(testContext.DataRow["InternalEmailAddress"]);
            string displayName = Convert.ToString(testContext.DataRow["NewContactName"]);
            string externalEmailAddress = Convert.ToString(testContext.DataRow["ExternalEmailAddress"]);
            bool isHiddenFromAddressList  = Convert.ToBoolean(testContext.DataRow["IsHiddenFromAddressList"]);
            string maximumRecipients = Convert.ToString(testContext.DataRow["MaximumRecipients"]);
            string maximumReceiveSize = Convert.ToString(testContext.DataRow["MaximumReceiveSize"]);
            

            //Act
            pageMailContactDashboard.OpenAdvancedProperties();
            string standing = pageMailContactDashboard.SetAdvanceProperties(displayName, externalEmailAddress, isHiddenFromAddressList, maximumRecipients, maximumReceiveSize);



            //Verify
            string status = VerifyResult(ExchangeMessages.UpdateMailContactAdvanceProperties, standing);
            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Email Address", "Test to check if email addresses are added as additional aliases or not", organizationName, "Mail Contact", externalEmailAddress, "Display Name: "+displayName + " External Email: "+externalEmailAddress+" IsHiddenFromAddressList: "+isHiddenFromAddressList+" Maximum Receive Size: "+maximumReceiveSize+" Maximum Recipients: "+maximumRecipients, status, standing);

            return status;

        }
        public string VerifyMailBoxGeneralProfile(TestContext testContext, bool isNewMailbox)
        {
            //Stage

            string status           = TestStatus.Success;
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string firstname        = Convert.ToString(testContext.DataRow["FirstName"]);
            string lastName         = Convert.ToString(testContext.DataRow["LastName"]);
            string displayName;

            if (isNewMailbox)
            {
                displayName = Convert.ToString(testContext.DataRow["DisplayName"]);
            }
            else
            {
                displayName = Convert.ToString(testContext.DataRow["NewDisplayName"]);
            }

            string country        = Convert.ToString(testContext.DataRow["Country"]);
            string state          = Convert.ToString(testContext.DataRow["State"]);
            string officeLocation = Convert.ToString(testContext.DataRow["OfficeLocation"]);
            string address        = Convert.ToString(testContext.DataRow["Address"]);
            string city           = Convert.ToString(testContext.DataRow["City"]);
            string zipCode        = Convert.ToString(testContext.DataRow["ZipCode"]);
            string jobTitle       = Convert.ToString(testContext.DataRow["JobTitle"]);
            string company        = Convert.ToString(testContext.DataRow["Company"]);
            string department     = Convert.ToString(testContext.DataRow["Department"]);
            string managedBy      = Convert.ToString(testContext.DataRow["ManagedBy"]);
            string businessPhone  = Convert.ToString(testContext.DataRow["BusinessPhone"]);
            string fax            = Convert.ToString(testContext.DataRow["Fax"]);
            string homePhone      = Convert.ToString(testContext.DataRow["HomePhone"]);
            string mobilePhone    = Convert.ToString(testContext.DataRow["MobilePhone"]);
            string pager          = Convert.ToString(testContext.DataRow["Pager"]);
            string notes          = Convert.ToString(testContext.DataRow["Notes"]);



            //Act
            string standing = pageMailboxDashboard.VerifyGeneralProperties(firstname, lastName, displayName, country, state,
                                                                           officeLocation, address, city, zipCode, jobTitle, company, department, managedBy, businessPhone,
                                                                           fax, homePhone, mobilePhone, pager, notes);

            //Verify
            if (!string.IsNullOrEmpty(standing))
            {
                status = TestStatus.Failed;
            }

            if (isNewMailbox)
            {
                ReporterClass.Reporter("Exchange", "Host", "Verify New mailbox General Properties", "Test to verify that the General Properties set at the time of mailbox creation are set successfully", organizationName, "Mailbox", email, "", status, standing);
            }
            else
            {
                ReporterClass.Reporter("Exchange", "Host", "Verify New mailbox General Properties", "Test to verify that the General Properties set at the time of mailbox update are set successfully", organizationName, "Mailbox", email, "", status, standing);
            }
            return(status);
        }
        public string UpdateMailboxAdvanceProperties(TestContext testContext)
        {
            //Stage
            string organizationName        = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email                   = Convert.ToString(testContext.DataRow["Email"]);
            bool   isCR                    = Convert.ToBoolean(testContext.DataRow["IsCR"]);
            string mailboxSize             = Convert.ToString(testContext.DataRow["MailboxSize"]);
            bool   isHiddenFromAddressBook = Convert.ToBoolean(testContext.DataRow["IsHiddenFromAddressBook"]);
            bool   isImapEnabled           = Convert.ToBoolean(testContext.DataRow["IMAP"]);
            bool   isPopEnabled            = Convert.ToBoolean(testContext.DataRow["POP"]);
            bool   isOwaEnabled            = Convert.ToBoolean(testContext.DataRow["OWA"]);
            bool   isMapiEnabled           = Convert.ToBoolean(testContext.DataRow["MAPI"]);

            pageMailboxDashboard.OpenAdvancedProperties();

            //Act
            string standing = pageMailboxDashboard.SetAdvanceProperties(isCR, mailboxSize, isHiddenFromAddressBook, isImapEnabled, isPopEnabled, isOwaEnabled, isMapiEnabled);



            //Verify
            string status = VerifyResult(ExchangeMessages.UpdateUserMailboxAdvanceProperties, standing);

            ReporterClass.Reporter("Exchange", "Host", "Update Mailbox General Properties", "Test to verify if General Properties are being updated properly or not", organizationName, "Mailbox", email, "Refer to CSV File", status, standing);
            return(status);
        }
示例#8
0
        public string CreateDl(TestContext testContext)
        {
            try
            {
                string organizationName    = Convert.ToString(testContext.DataRow["OrganizationName"]);
                bool   isSubOU             = Convert.ToBoolean(testContext.DataRow["IsSubOU"]);
                string email               = Convert.ToString(testContext.DataRow["Email"]);
                string groupType           = Convert.ToString(testContext.DataRow["GroupType"]);
                bool   isNewGroup          = Convert.ToBoolean(testContext.DataRow["IsNewGroup"]);
                string adGroupName         = Convert.ToString(testContext.DataRow["ADGroupName"]);
                string IncomingMessageSize = Convert.ToString(testContext.DataRow["IncomingMessageSize"]);
                bool   isCR           = Convert.ToBoolean(testContext.DataRow["IsCR"]);
                string displayName    = Convert.ToString(testContext.DataRow["DisplayName"]);
                string adminUsers     = Convert.ToString(testContext.DataRow["AdminUsers"]);
                string memberUsers    = Convert.ToString(testContext.DataRow["MemberUsers"]);
                bool   allSendersAuth = Convert.ToBoolean(testContext.DataRow["AllSendersAuth"]);



                //Act
                ExgOrgDL pageOrgDL = new ExgOrgDL();
                ExgCreateDistributionList pageCreateDL = pageOrgDL.OpenCreateDLPage();
                string standing = pageCreateDL.CreateDl(groupType, isSubOU, isNewGroup, adGroupName, email,
                                                        IncomingMessageSize, isCR, displayName, adminUsers,
                                                        memberUsers, allSendersAuth);


                //Verify
                var status = VerifyResult(ExchangeMessages.CreateDL, standing);
                if (status == TestStatus.Failed)
                {
                    pageOrgDL.CloseDialogueBox();
                }
                else
                {
                    Thread.Sleep(5000);
                }

                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Create Exchange Group", "Exchange Group Creation Test",
                                       organizationName, groupType, email,
                                       "SubOU: " + isSubOU + "; IsNewGroup: " + isNewGroup + "; IsCr: " + isCR +
                                       "; Incoming Message Size/CR Size :" + IncomingMessageSize, status, standing);
                TestTracker.distributionListStatus.Add(email, status);
                return(status);
            }
            catch (Exception e)
            {
                LogClass.AppendLogs(e.Message);
                return(TestStatus.Failed);
            }
        }
        public string VerifyRejectedSenders(TestContext testContext)
        {
            string status           = TestStatus.Success;
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["RejectedSenders"]);

            string standing = pagePublicFolderDashboard.VerifyRejectedSenders(userList);

            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Rejected Users", "Test to check if Rejected Users have been assigned correctly or not", organizationName, "Public Folder", email, "", status, standing);
            return(status);
        }
 public void InitializeSettings()
 {
     if (DriverContext.Driver == null)
     {
         GetDirectory.SetDataDirectory();
         ConfigReader.SetFrameworkSettings();
         ReporterClass report = new ReporterClass();
         report.CreateReporterFile();
         OpenBrowser(Settings.BrowserType);
         DriverContext.Browser.GoToUrl(Settings.AUT);
         DriverContext.Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
         DriverContext.Driver.Manage().Window.Maximize();
         LoginPage login = new LoginPage();
         login.Login();
     }
 }
        public string VerifyForwarding(TestContext testContext)
        {
            string status           = TestStatus.Success;
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string user             = Convert.ToString(testContext.DataRow["ForwardingEmail"]);

            string standing = pageMailboxDashboard.VerifyForwarding(user);

            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify Addition of Forwarding User", "Test to check if forwarding Users have been assigned correctly or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
        public string AddAutomaticReply(TestContext testContext)
        {
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string internalMessage  = Convert.ToString(testContext.DataRow["InternalMessage"]);
            string externalmessage  = Convert.ToString(testContext.DataRow["ExternalMessage"]);

            pageMailboxDashboard.OpenAutomaticReply();
            string standing = pageMailboxDashboard.SetAutomaticReply(internalMessage, externalmessage);


            string status = VerifyResult(ExchangeMessages.AddAutomaticReply, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Automatic Reply", "Test to check if Automatic Reply is being added successfully", organizationName, "Mailbox", email, "Interanal Message: " + internalMessage + "; External Message: " + externalmessage, status, standing);
            return(status);
        }
        public string AddForwarding(TestContext testContext)
        {
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string ou             = Convert.ToString(testContext.DataRow["ForwardingOU"]);
            string exchangeObject = Convert.ToString(testContext.DataRow["ForwardingObject"]);
            string user           = Convert.ToString(testContext.DataRow["ForwardingEmail"]);

            pageMailboxDashboard.OpenForwarding();
            string standing = pageMailboxDashboard.SetForwarding(user, ou, exchangeObject);

            string status = VerifyResult(ExchangeMessages.AddForwarding, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Forwarding", "Test to check if Forwarding User is being added successfully", organizationName, "Mailbox", email, "Organization: " + ou + "; Exchange Object: " + exchangeObject + "; Email: " + user, status, standing);
            return(status);
        }
示例#14
0
        public string AddAdministratorDL(TestContext testContext)
        {
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string groupType        = Convert.ToString(testContext.DataRow["GroupType"]);
            string userList         = Convert.ToString(testContext.DataRow["AdminUsers"]);

            pageDlDashboard.OpenAdministrators();
            string standing = pageDlDashboard.SetDlAdmministrators(userList);

            //Verify
            string status = VerifyResult(ExchangeMessages.AddDlAdmins, standing);

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Exchange Group Administrators", "Test to check if Exchange Group Administrators are added successfully", organizationName, groupType, email, "Administrators " + userList, status, standing);

            return(status);
        }
        public string CreatePublicFolder(TestContext testContext)
        {
            try
            {
                //revisit - VerifyOUMethod
                //Stage
                string organizationName    = Convert.ToString(testContext.DataRow["OrganizationName"]);
                string publicFolderType    = Convert.ToString(testContext.DataRow["PublicFolderType"]);
                string email               = Convert.ToString(testContext.DataRow["Email"]);
                bool   isMailEnable        = Convert.ToBoolean(testContext.DataRow["IsMailEnabled"]);
                string publicFolderName    = Convert.ToString(testContext.DataRow["PublicFolderName"]);
                string publicFolderMailbox = Convert.ToString(testContext.DataRow["PublicFolderMailbox"]);
                string publicFolderSize    = Convert.ToString(testContext.DataRow["PublicFolderSize"]);
                bool   isCr = Convert.ToBoolean(testContext.DataRow["IsCR"]);



                //Act
                ExgOrgPublicFolders   pageOrgPublicFolders   = new ExgOrgPublicFolders();
                ExgCreatePublicFolder pageCreatePublicFolder = pageOrgPublicFolders.OpenCreatePublicFolderPage();
                string standing = pageCreatePublicFolder.CreatePublicFolder(publicFolderName, publicFolderType,
                                                                            isMailEnable, email, publicFolderMailbox, publicFolderSize, isCr);


                //Verify
                var status = VerifyResult(ExchangeMessages.CreatePublicFolder, standing);
                if (status == TestStatus.Failed)
                {
                    CloseDialogueBox();
                }
                else
                {
                    Thread.Sleep(5000);
                }
                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Create Public Folder", "Mailbox Creation Test", organizationName, "Public Folder", email, "Public Folder Type: " + publicFolderType + "; IsCr: " + isCr + "; Mailbox/CR Size :" + publicFolderSize + " IsMailEnabled: " + isMailEnable, status, standing);
                TestTracker.publicFolderStatus.Add(email, status);

                return(status);
            }
            catch (Exception e)
            {
                LogClass.AppendLogs(e.Message);
                return(e.Message);
            }
        }
        public string VerifyAutomaticReply(TestContext testContext)
        {
            string status           = TestStatus.Success;
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string internalMessage  = Convert.ToString(testContext.DataRow["InternalMessage"]);
            string externalmessage  = Convert.ToString(testContext.DataRow["ExternalMessage"]);


            string standing = pageMailboxDashboard.VerifyAutomaticReply(internalMessage, externalmessage);

            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify Addition of Automatic Reply", "Test to check if Automatic Reply been assigned correctly or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
        public string AddRejectedSenders(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["RejectedSenders"]);

            pageMailboxDashboard.OpenRejectedSenders();

            //Act
            string standing = pageMailboxDashboard.SetRejectedSenders(userList);

            //Verify
            string status = VerifyResult(ExchangeMessages.AddRejectedSenders, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Rejected Users", "Test to check if Rejected Users are being added successfully", organizationName, "Mailbox", email, "Email List: " + userList, status, standing);
            return(status);
        }
示例#18
0
        public string AddSendAsPermissions(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["SendAsPermissionsUsers"]);

            pageResourceMailboxDashboard.OpenSendAsPermissions();

            //Act
            string standing = pageResourceMailboxDashboard.SetSendAsPermissions(userList);

            //Verify
            string status = VerifyResult(ExchangeMessages.AddSendAsPermissions, standing);

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Send As Permissions", "Test to check if Send As Permissions are being added successfully", organizationName, "Resource Mailbox", email, "Email List: " + userList, status, standing);
            return(status);
        }
示例#19
0
        public string AddSendOnBehalfUsers(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["SendOnBehalfUsers"]);
            string groupType        = Convert.ToString(testContext.DataRow["GroupType"]);

            //Act
            pageDlDashboard.OpenSendOnBehalf();
            string standing = pageDlDashboard.SetSendOnBehalf(userList);

            //Verify
            string status = VerifyResult(ExchangeMessages.AddSendOnBehalfUsers, standing);

            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Send On Behalf Users", "Test to check if Send On Behalf users are added successfully", organizationName, groupType, email, "Email List: " + userList, status, standing);

            return(status);
        }
        public string UpdateRetentionPolicy(TestContext testContext)
        {
            //Stage
            string organizationName    = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email               = Convert.ToString(testContext.DataRow["Email"]);
            string retentionPolicyDays = Convert.ToString(testContext.DataRow["RetentionPolicyDays"]);

            //Act
            pageMailboxDashboard.OpenRetentionPolicy();
            string standing = pageMailboxDashboard.SetRetentionPolicy(retentionPolicyDays);



            //Verify
            string status = VerifyResult(ExchangeMessages.UpdateRetentionPolicy, standing);

            ReporterClass.Reporter("Exchange", "Host", "Update Mailbox Retention Policy", "Test to check if Retention Policy is being set properly or not", organizationName, "Mailbox", email, "Retain Deleted Items For: " + retentionPolicyDays, status, standing);
            return(status);
        }
        public string AddAcceptedSenders(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email = Convert.ToString(testContext.DataRow["InternalEmailAddress"]);
            string userList = Convert.ToString(testContext.DataRow["AcceptedSenders"]);
            string externalEmail = Convert.ToString(testContext.DataRow["ExternalEmailAddress"]);

            pageMailContactDashboard.OpenAcceptedSenders();

            //Act
            string standing = pageMailContactDashboard.SetAcceptedSenders(userList);

            //Verify
            string status = VerifyResult(ExchangeMessages.AddAcceptedUsers, standing);
            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Accepted Users", "Test to check if Accepted Users are being added successfully", organizationName, "Mail Contact", externalEmail, "Email List: " + userList, status, standing);
            return status;

        }
        public string AddArchive(TestContext testContext)
        {
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);

            pageMailboxDashboard.OpenArchive();

            string standing = pageMailboxDashboard.SetArchive();


            string status = VerifyResult(ExchangeMessages.AddArchive, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Archive", "Test to check if archiving is being enabled or not", organizationName, "Mailbox", email, "", status, standing);
            if (status == TestStatus.Failed)
            {
                pageMailboxDashboard.CloseDialogueBox();
            }
            return(status);
        }
        public string VerifyAcceptedSenders(TestContext testContext)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["AcceptedSenders"]);

            //Act
            string standing = pageMailboxDashboard.VerifyAcceptedSenders(userList);

            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify Addition of Accepted Users", "Test to check if Accepted Users have been assigned correctly or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
        public string VerifyAdditionalEmailAddress(TestContext testContext)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string newEmail         = Convert.ToString(testContext.DataRow["AdditionalEmailAddress"]);

            //Act
            string standing = pageMailboxDashboard.VerifyAdditionalEmailAddress(newEmail);


            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify Addition of new email alias", "Test to check if the email address has been assigned correctly or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
        public string AddAdditionalEmailAddress(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string newEmail         = Convert.ToString(testContext.DataRow["AdditionalEmailAddress"]);

            //Act
            pageMailboxDashboard.OpenEmailAddress();
            string standing = pageMailboxDashboard.SetAdditionalEmailAddress(newEmail);



            //Verify
            string status = VerifyResult(ExchangeMessages.AddEmailAddress, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Email Address", "Test to check if email addresses are added as additional aliases or not", organizationName, "Mailbox", email, "Email: " + newEmail, status, standing);

            return(status);
        }
        public string VerifyRetentionPolicy(TestContext testContext)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName    = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email               = Convert.ToString(testContext.DataRow["Email"]);
            string RetentionPolicyDays = Convert.ToString(testContext.DataRow["RetentionPolicyDays"]);

            //Act
            string standing = pageMailboxDashboard.VerifyRetentionPolicy(RetentionPolicyDays);


            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", "Host", "Verify Update Mailbox Retention Policy", "Test to check if the Retention Policy has been set properly or not", organizationName, "Mailbox", email, "", status, standing);
            return(status);
        }
示例#27
0
        public string VerifyFullAccessPermissions(TestContext testContext)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["FullAccessPermissionsUsers"]);

            //Act
            string standing = pageResourceMailboxDashboard.VerifyFullAccessPermissions(userList);

            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of Full Access Permissions", "Test to check if Full Access Permissions have been assigned correctly or not", organizationName, "Resource Mailbox", email, "", status, standing);

            return(status);
        }
示例#28
0
        public string VerifyAddSendOnBehalfUsers(TestContext testContext)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string userList         = Convert.ToString(testContext.DataRow["SendOnBehalfUsers"]);
            string groupType        = Convert.ToString(testContext.DataRow["GroupType"]);

            //Act
            string standing = pageDlDashboard.VerifySendOnBehalf(userList);

            //Verify
            if (standing != TestStatus.Success)
            {
                status = TestStatus.Failed;
            }
            ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify Addition of new Send On Behalf users", "Test to check if the Send On Users have been assigned correctly or not", organizationName, groupType, email, "", status, standing);

            return(status);
        }
        public string VerifyMailBoxAdvanceProperties(TestContext testContext, bool isNewMailbox)
        {
            string status = TestStatus.Success;
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string mailboxSize      = Convert.ToString(testContext.DataRow["MailboxSize"]);
            bool   isCR             = Convert.ToBoolean(testContext.DataRow["IsCR"]);

            //Act

            //if (isNewMailbox)
            //{
            //    pageMailboxDashboard.OpenAdvancedProperties();

            //}

            pageMailboxDashboard.OpenAdvancedProperties();
            btnTabRefreshButtonElem.ClickWithWait("spinner");

            string standing = pageMailboxDashboard.VerifyAdvanceProperties(mailboxSize, isCR);



            //Verify
            if (!string.IsNullOrWhiteSpace(standing))
            {
                status = TestStatus.Failed;
            }

            if (isNewMailbox)
            {
                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify New mailbox Advance Properties", "Test to verify that the Advance Properties set at the time of mailbox creation are set successfully", organizationName, "Mailbox", email, "", status, standing);
            }
            else
            {
                ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify New mailbox Advance Properties", "Test to verify that the Advance Properties set at the time of mailbox update are set successfully", organizationName, "Mailbox", email, "", status, standing);
            }
            return(status);
        }
        public string UpdateMailboxGeneralProperties(TestContext testContext)
        {
            //Stage
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string firstname        = Convert.ToString(testContext.DataRow["FirstName"]);
            string lastName         = Convert.ToString(testContext.DataRow["LastName"]);
            string displayName      = Convert.ToString(testContext.DataRow["NewDisplayName"]);
            string country          = Convert.ToString(testContext.DataRow["Country"]);
            string state            = Convert.ToString(testContext.DataRow["State"]);
            string officeLocation   = Convert.ToString(testContext.DataRow["OfficeLocation"]);
            string address          = Convert.ToString(testContext.DataRow["Address"]);
            string city             = Convert.ToString(testContext.DataRow["City"]);
            string zipCode          = Convert.ToString(testContext.DataRow["ZipCode"]);
            string jobTitle         = Convert.ToString(testContext.DataRow["JobTitle"]);
            string company          = Convert.ToString(testContext.DataRow["Company"]);
            string department       = Convert.ToString(testContext.DataRow["Department"]);
            string managedBy        = Convert.ToString(testContext.DataRow["ManagedBy"]);
            string businessPhone    = Convert.ToString(testContext.DataRow["BusinessPhone"]);
            string fax         = Convert.ToString(testContext.DataRow["Fax"]);
            string homePhone   = Convert.ToString(testContext.DataRow["HomePhone"]);
            string mobilePhone = Convert.ToString(testContext.DataRow["MobilePhone"]);
            string pager       = Convert.ToString(testContext.DataRow["Pager"]);
            string notes       = Convert.ToString(testContext.DataRow["Notes"]);


            //Act
            string standing = pageMailboxDashboard.SetGeneralProperties(firstname, lastName, displayName, country, state,
                                                                        officeLocation, address, city, zipCode, jobTitle, company, department, managedBy, businessPhone,
                                                                        fax, homePhone, mobilePhone, pager, notes);



            //Verify
            string status = VerifyResult(ExchangeMessages.UpdateMailboxGeneralProperties, standing);

            ReporterClass.Reporter("Exchange", "Host", "Update Mailbox General Properties", "Test to verify if General Properties are being updated properly or not", organizationName, "Mailbox", email, "Refer to CSV File", status, standing);
            return(status);
        }