Пример #1
0
        public void employeeStateIssue()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username_corp");
            password = oXMLData.getData("settings/Credentials", "password");

            // Initializing the objects
            var    executionLog        = new ExecutionLog();
            var    loginHelper         = new LoginHelper(GetWebDriver());
            var    corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());
            String Status = "Pass";
            String JIRA   = "";

            try
            {
                executionLog.Log("EmployeeStateIssue", "Login with valid username and password");
                Login(username[0], password[0]);

                executionLog.Log("EmployeeStateIssue", "Verify Page title");
                VerifyTitle("Dashboard");

                executionLog.Log("EmployeeStateIssue", "Go to Create Employee page");
                VisitCorp("employees/create");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("EmployeeStateIssue", "Verify title");
                VerifyTitle("Employees");

                executionLog.Log("EmployeeStateIssue", "Select country");
                corp_EmployeeHelper.SelectByText("Country", "Canada");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("EmployeeStateIssue", "Verify State available");
                Assert.IsTrue(corp_EmployeeHelper.IsElementPresent("//*[@id='CorporateUserAddress0State']/option[2]"));

                executionLog.Log("EmployeeStateIssue", "Select country");
                corp_EmployeeHelper.SelectByText("Country", "United States");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("EmployeeStateIssue", "Verify State available");
                Assert.IsTrue(corp_EmployeeHelper.IsElementPresent("//*[@id='CorporateUserAddress0State']/option[2]"));
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";
                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("EmployeeStateIssue");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Employee State Issue");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Employee State Issue", "Bug", "Medium", "Corp Employee page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Employee State Issue");
                        TakeScreenshot("EmployeeStateIssue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EmployeeStateIssue.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("EmployeeStateIssue");
                        string id            = loginHelper.getIssueID("Employee State Issue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EmployeeStateIssue.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Employee State Issue"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Employee State Issue");
                //  executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("EmployeeStateIssue");
                executionLog.WriteInExcel("Employee State Issue", Status, JIRA, "Corp Employee");
            }
        }
Пример #2
0
        public void corpEmployeeAdvanceFilter2()
        {
            string[] username1 = null;
            string[] password1 = null;
            var      oXMLData  = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            // Initializing the objects
            var executionLog        = new ExecutionLog();
            var loginHelper         = new LoginHelper(GetWebDriver());
            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

            username1 = oXMLData.getData("settings/Credentials", "username_corp");
            password1 = oXMLData.getData("settings/Credentials", "password");

            // Variable random
            String JIRA   = "";
            String Status = "Pass";


            try
            {
                executionLog.Log("CorpEmployeeAdvanceFilter2", "Login with valid username and password");
                Login(username1[0], password1[0]);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify Page title");
                VerifyTitle("Dashboard");
                Console.WriteLine("Redirected at Dashboard screen.");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Redirect at employees page.");
                VisitCorp("employees");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify Page title");
                VerifyTitle("Employees");
                //corp_EmployeeHelper.WaitForWorkAround(5000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 10.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "10");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(10);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 20.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "20");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(20);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 50.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "50");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(50);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 100.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "100");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(100);
                //corp_EmployeeHelper.WaitForWorkAround(4000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select city in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "City");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click arrow to move column.");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select zipcode in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "Zipcode");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click arrow to move column");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter first name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsFN", "Sel");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter last name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsLN", "Enium");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter email in user details.");
                corp_EmployeeHelper.TypeText("UserDetailEmail", "*****@*****.**");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter city name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsCity", "Chicago");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter zipcode in user details.");
                corp_EmployeeHelper.TypeText("UserDetailZipCode", "60601");
                //corp_EmployeeHelper.WaitForWorkAround(5000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify employee name on the page.");
                corp_EmployeeHelper.VerifyText("VerifyName", "Sel Enium");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify employee email on the page.");
                corp_EmployeeHelper.VerifyText("VerifyEmail2", "*****@*****.**");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Logout from the application.");
                VisitCorp("logout");
            }

            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("CorpEmployeeAdvanceFilter2");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Corp Employee Advance Filter2");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Corp Employee Advance Filter2", "Bug", "Medium", "Employee page", "QA", "Log in as: " + username1[0] + " / " + password1[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Corp Employee Advance Filter2");
                        TakeScreenshot("CorpEmployeeAdvanceFilter2");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter2.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("CorpEmployeeAdvanceFilter2");
                        string id            = loginHelper.getIssueID("Corp Employee Advance Filter2");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter2.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Corp Employee Advance Filter2"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Corp Employee Advance Filter2");
                //  executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("CorpEmployeeAdvanceFilter2");
                executionLog.WriteInExcel("Corp Employee Advance Filter2", Status, JIRA, "Corp Emplaoyee");
            }
        }
Пример #3
0
        public void corpEmployeeAdvanceFilter()
        {
            string[] username1 = null;
            string[] password1 = null;
            var      oXMLData  = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            // Initializing the objects
            var executionLog        = new ExecutionLog();
            var loginHelper         = new LoginHelper(GetWebDriver());
            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

            username1 = oXMLData.getData("settings/Credentials", "username_corp");
            password1 = oXMLData.getData("settings/Credentials", "password");

            // Variable random
            String JIRA   = "";
            String Status = "Pass";

            try
            {
                executionLog.Log("CorpEmployeeAdvanceFilter", "Login with valid username and password");
                Login(username1[0], password1[0]);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify Page title");
                VerifyTitle("Dashboard");
                Console.WriteLine("Redirected at Dashboard screen.");

                executionLog.Log("CorpEmployeeAdvanceFilter", "Redirect at employees page.");
                VisitCorp("employees");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify Page title");
                VerifyTitle("Employees");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Select city in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "City");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click arrow to move column.");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Select state in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "State");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click arrow to move column");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Select zipcode in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "Zipcode");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click arrow to move column");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify columns in displayed list present on page.");
                corp_EmployeeHelper.IsElementPresent("HeadCity");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify columns in displayed list present on page.");
                corp_EmployeeHelper.IsElementPresent("HeadState");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify columns in displayed list present on page.");
                corp_EmployeeHelper.IsElementPresent("HeadZipCode");
                //corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Redirect at merchants page.");
                VisitCorp("merchants");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify page title as merchants");
                VerifyTitle("Clients");
                //corp_EmployeeHelper.WaitForWorkAround(4000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Redirect at employees page.");
                VisitCorp("employees");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify Page title");
                VerifyTitle("Employees");
                //corp_EmployeeHelper.WaitForWorkAround(4000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify default position of phone column.");
                corp_EmployeeHelper.IsElementPresent("Phone3");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify default position of email column.");
                corp_EmployeeHelper.IsElementPresent("Email2");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Select email in displayed column.");
                corp_EmployeeHelper.SelectByText("DisplayCols", "E-Mail");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Move email 1 step up.");
                corp_EmployeeHelper.ClickElement("MoveUp");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Select phone in displayed column.");
                corp_EmployeeHelper.SelectByText("DisplayCols", "Phone");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Move email 1 step down.");
                corp_EmployeeHelper.ClickElement("MoveDown");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify changed position of email column.");
                corp_EmployeeHelper.IsElementPresent("Email1");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Verify changed position of phone column.");
                corp_EmployeeHelper.IsElementPresent("Phone4");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter", "Logout from the application.");
                VisitCorp("logout");
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter = executionLog.readLastLine("counter");
                Console.WriteLine("Counter value is    " + counter);
                String Description = executionLog.GetAllTextFile("CorpEmployeeAdvanceFilter");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Corp Employee Advance Filter");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Corp Employee Advance Filter", "Bug", "Medium", "Employee page", "QA", "Log in as: " + username1[0] + " / " + password1[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Corp Employee Advance Filter");
                        TakeScreenshot("CorpEmployeeAdvanceFilter");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("CorpEmployeeAdvanceFilter");
                        string id            = loginHelper.getIssueID("Corp Employee Advance Filter");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Corp Employee Advance Filter"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Corp Employee Advance Filter");
                //   executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("CorpEmployeeAdvanceFilter");
                executionLog.WriteInExcel("Corp Employee Advance Filter", Status, JIRA, "Corp Emplaoyee");
            }
        }
        public void verifyCorpEmployeeAddressType()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            // Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());

            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

            username = oXMLData.getData("settings/Credentials", "username_corp");
            password = oXMLData.getData("settings/Credentials", "password");

            // Variable random
            var    username1 = "TESTUSER" + GetRandomNumber();
            var    email     = "Test" + GetRandomNumber() + "@gmail.com";
            String JIRA      = "";
            String Status    = "Pass";

            try
            {
                executionLog.Log("VerifyCorpEmployeeAddressType", "Login with valid username and password");
                Login(username[0], password[0]);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Verify Page title");
                VerifyTitle("Dashboard");
                Console.WriteLine("Redirected at Dashboard screen.");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Go to Create employee page");
                VisitCorp("employees/create");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Verify Page title");
                VerifyTitle("Employees");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter Name");
                corp_EmployeeHelper.TypeText("UserName", username1);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter PrimaryEmail");
                corp_EmployeeHelper.TypeText("PrimaryEmail", email);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter Salutation");
                corp_EmployeeHelper.Select("Salutation", "Mr");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter First name");
                corp_EmployeeHelper.TypeText("FirstName", "Test Name");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter Last Name");
                corp_EmployeeHelper.TypeText("LastName", "Test LastName");

                executionLog.Log("VerifyCorpEmployeeAddressType", "  Click Corporate Admin Avatar");
                corp_EmployeeHelper.ClickElement("AvtarCorporateAdmin");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Select Phone Country");
                corp_EmployeeHelper.Select("PhoneSelectCountry", "1");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter PhoneNumber");
                corp_EmployeeHelper.TypeText("PhoneNumber", "9898398438");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Select Primary Phone Number");
                corp_EmployeeHelper.ClickElement("PrimaryPhoneRadio");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter eAddress");
                corp_EmployeeHelper.TypeText("eAddress", email);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Select Primary Email");
                corp_EmployeeHelper.ClickElement("PrimaryEmailRadio");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Select Address Type >> Mailing");
                corp_EmployeeHelper.SelectByText("AddressType1", "Mailing");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter AddressLine1");
                corp_EmployeeHelper.TypeText("AddressLine1", "F-TEST");

                executionLog.Log("VerifyCorpEmployeeAddressType", "Enter ZipCode");
                corp_EmployeeHelper.TypeText("ZipCode", "60601");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Click On Save button");
                corp_EmployeeHelper.ClickElement("Save");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Wait for confirmation.");
                corp_EmployeeHelper.WaitForText("Employee Created Successfully.", 10);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Search created employee by email.");
                corp_EmployeeHelper.TypeText("searchEmail", email);
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Open employee");
                corp_EmployeeHelper.ClickElement("ClickOnEmployee");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCorpEmployeeAddressType", "Verify eAddress Type is appearing");
                corp_EmployeeHelper.VerifyText("Address1", "Mailing");
                corp_EmployeeHelper.WaitForWorkAround(1000);
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("VerifyCorpEmployeeAddressType");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Verify Corp Employee Address Type");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Verify Corp Employee Address Type", "Bug", "Medium", "Corp Employee page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Verify Corp Employee Address Type");
                        TakeScreenshot("VerifyCorpEmployeeAddressType");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyCorpEmployeeAddressType.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("VerifyCorpEmployeeAddressType");
                        string id            = loginHelper.getIssueID("Verify Corp Employee Address Type");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyCorpEmployeeAddressType.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Verify Corp Employee Address Type"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Verify Corp Employee Address Type");
                //   executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("VerifyCorpEmployeeAddressType");
                executionLog.WriteInExcel("Verify Corp Employee Address Type", Status, JIRA, "Corp Employee");
            }
        }