Пример #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 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 verifyingEmployeeAdvanceFilterOrder()
        {
            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", "password2");

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

            //        try
            //      {

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

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

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            VisitCorp("employees");

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

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Click on advance filter.");
            corp_EmployeeHelper.ClickElement("AdvanceFilter");

            //       corp_EmployeeHelper.WaitForElementPresent("LastLog9", 10);

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            //        Assert.IsTrue(corp_EmployeeHelper.IsElementPresent("LastLog9"));

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            //      Assert.IsFalse(corp_EmployeeHelper.IsElementPresent("LastLog3"));



            //             executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Click on advance filter.");
            corp_EmployeeHelper.ClickElement("AdvanceFilter");

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            corp_EmployeeHelper.ClickElement("LastLogon");

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            corp_EmployeeHelper.ClickElement("UpButton");

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            corp_EmployeeHelper.ClickElement("UpButton");

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            Assert.IsFalse(corp_EmployeeHelper.IsElementPresent("LastLog9"));

            executionLog.Log("VerifyDefaultDisplayColumnEmployee", "Go to Employee page");
            Assert.IsTrue(corp_EmployeeHelper.IsElementPresent("LastLog3"));
        }
Пример #4
0
        public void editCorpEmployee()
        {
            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      = "";
            var    username1 = "testingcorpuser" + RandomNumber(111, 999999);

            try
            {
                executionLog.Log("EditCorpEmployee", "Login with valid username and password");
                Login(username[0], password[0]);
                Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

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

                executionLog.Log("EditCorpEmployee", "Click on employee tab.");
                corp_EmployeeHelper.ClickElement("EmployeesTab");

                executionLog.Log("EditCorpEmployee", "Search Employee");
                corp_EmployeeHelper.TypeText("SearchEmpName", "Test Tester");

                var Loc = "//table[@id='list1']/tbody/tr[2]";
                if (corp_EmployeeHelper.IsElementPresent(Loc))
                {
                    executionLog.Log("EditCorpEmployee", "Click on Edit");
                    corp_EmployeeHelper.ClickElement("ClickOnEdit");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter zip code");
                    corp_EmployeeHelper.TypeText("ZipCode", "60601");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

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

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Phone number.");
                    corp_EmployeeHelper.TypeText("PhoneNumber", "1111111111");

                    executionLog.Log("EditCorpEmployee", "Click primary radio button.");
                    corp_EmployeeHelper.ClickElement("PrimaryPhoneRadio");

                    executionLog.Log("EditCorpEmployee", "Enter eAddress");
                    corp_EmployeeHelper.TypeText("eAddress", "*****@*****.**");

                    executionLog.Log("EditCorpEmployee", "Click primary radio button.");
                    corp_EmployeeHelper.ClickElement("PrimaryEmailRadio");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("Save");

                    executionLog.Log("EditCorpEmployee", "Verify message");
                    corp_EmployeeHelper.WaitForText("Employee Details successfully updated", 10);
                }
                else
                {
                    executionLog.Log("EditCorpEmployee", "ClickOnCreate");
                    corp_EmployeeHelper.ClickElement("Create");

                    executionLog.Log("EditCorpEmployee", "Enter User Name");
                    var usernme = "EmpUser" + RandomNumber(1, 999);
                    corp_EmployeeHelper.TypeText("UserName", usernme);

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("Save");

                    executionLog.Log("EditCorpEmployee", "Verify This field is required.");
                    corp_EmployeeHelper.VerifyPageText("This field is required.");

                    executionLog.Log("EditCorpEmployee", "verify validation ");
                    corp_EmployeeHelper.VerifyPageText("This field is required.");

                    executionLog.Log("EditCorpEmployee", "verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyValidation", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyAvatar", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validatation");
                    corp_EmployeeHelper.VerifyText("VerifyEmail", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyPhoneNumber", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyLastName", "This field is required.");

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

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Primary Email");
                    var Email = "Email" + RandomNumber(1, 999) + "@yopmail.com";
                    corp_EmployeeHelper.TypeText("PrimaryEmail", Email);

                    executionLog.Log("EditCorpEmployee", "Click On Check box ");
                    corp_EmployeeHelper.ClickElement("AvtarCorporateAdmin");

                    executionLog.Log("EditCorpEmployee", "Enter Phone Number");
                    corp_EmployeeHelper.TypeText("PhoneNumber", "9898777332");

                    executionLog.Log("EditCorpEmployee", "Enter Eaddress");
                    var mail = "mail" + RandomNumber(1, 999) + "@yopmail.com";
                    corp_EmployeeHelper.TypeText("eAddress", mail);

                    executionLog.Log("EditCorpEmployee", "Enter Username");
                    corp_EmployeeHelper.TypeText("UserName", username1);

                    executionLog.Log("EditCorpEmployee", "Select Avatar");
                    corp_EmployeeHelper.ClickElement("AdminUserAvatar");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("ClickSaveBtn");

                    executionLog.Log("EditCorpEmployee", "verify success message");
                    corp_EmployeeHelper.WaitForText("Employee Created Successfully.", 10);

                    executionLog.Log("EditCorpEmployee", "Search Employee");
                    corp_EmployeeHelper.TypeText("SearchEmpName", "Test Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Email To Search");
                    corp_EmployeeHelper.TypeText("SearchEnterEmail", Email);
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Click on Edit");
                    corp_EmployeeHelper.ClickElement("ClickOnEdit");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter zip code");
                    corp_EmployeeHelper.TypeText("ZipCode", "60601");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

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

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("ClickOnSave");

                    executionLog.Log("EditCorpEmployee", "Verify success message");
                    corp_EmployeeHelper.WaitForText("Employee Details successfully updated", 10);
                }
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

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