Exemple #1
0
        public void verifyCreatedIframeInPartnerAgent()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();

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

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

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

            // Variable
            var tab = "tab" + RandomNumber(111, 999);

            String JIRA   = "";
            String Status = "Pass";

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

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

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Redirect at admin page");
                VisitOffice("admin");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Redirect at iframe apps page.");
                VisitOffice("iframes");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify page title.");
                VerifyTitle("Iframe Apps");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", " Click On Create button.");
                integration_IframeAppsHelper.ClickElement("Create");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify page title.");
                VerifyTitle("Create Iframe");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on Save button.");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for mandatoryness.");
                integration_IframeAppsHelper.VerifyText("TabNameErr", "This field is required.");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for mandatoryness.");
                integration_IframeAppsHelper.VerifyText("UserNameErr", "This field is required.");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for mandatoryness.");
                integration_IframeAppsHelper.VerifyText("PasswrdErr", "This field is required.");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for mandatoryness.");
                integration_IframeAppsHelper.VerifyText("URLErr", "This field is required.");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on cancel button.");
                integration_IframeAppsHelper.ClickElement("Cancel");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify Page title.");
                VerifyTitle("Iframe Apps");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", " Click On Create button.");
                integration_IframeAppsHelper.ClickElement("Create");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify page title.");
                VerifyTitle("Create Iframe");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter Tab Name");
                integration_IframeAppsHelper.TypeText("TabName", tab);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter user Name");
                integration_IframeAppsHelper.TypeText("UserNameInputFieldName", "User");
                integration_IframeAppsHelper.WaitForWorkAround(4000);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter Password");
                integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter an invalid alphabetical url.");
                integration_IframeAppsHelper.TypeText("LoginURL", "sadada");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for invalid url.");
                integration_IframeAppsHelper.VerifyText("URLErr2", "Invalid URL");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter an invalid numerical url.");
                integration_IframeAppsHelper.TypeText("LoginURL", "12222");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for invalid url.");
                integration_IframeAppsHelper.VerifyText("URLErr2", "Invalid URL");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter an invalid web address.");
                integration_IframeAppsHelper.TypeText("LoginURL", "www.google.com");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify validation for invalid url.");
                integration_IframeAppsHelper.VerifyText("URLErr2", "Invalid URL");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter a valid Login Url");
                integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on partner portal check box.");
                integration_IframeAppsHelper.ClickElement("PartnerPortal");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on Save button");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Wait for creation success text.");
                integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Logout from the application.");
                VisitOffice("logout");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Login with valid username and password");
                Login("MyPartnerAgent", "1qaz!QAZ");
                Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify Page title.");
                VerifyTitle("QApartner - Details");

                var loc = "//span[text()='" + tab + "']";
                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Wait for locator to be present.");
                integration_IframeAppsHelper.WaitForElementPresent(loc, 10);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify created iframe present in partner agent portal.");
                integration_IframeAppsHelper.IsElementPresent(loc);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Logout fron the partner portal.");
                VisitOffice("logout");

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

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

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Redirect at office admin.");
                VisitOffice("admin");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Redirect at iframe apps page.");
                VisitOffice("iframes");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter iframe name to be searched.");
                integration_IframeAppsHelper.TypeText("SearchTabName", tab);
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on edit icon.");
                integration_IframeAppsHelper.ClickElement("Edit");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify Page title.");
                VerifyTitle("Edit Iframe");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Uncheck the partner portal check box.");
                integration_IframeAppsHelper.ClickElement("PartnerPortal");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on Save button.");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Wait for iframe updation success text.");
                integration_IframeAppsHelper.WaitForText("Iframe updated Successfully.", 10);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Logout from the application.");
                VisitOffice("logout");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Login with valid username and password");
                Login("MyPartnerAgent", "1qaz!QAZ");
                Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify Page title.");
                VerifyTitle("QApartner - Details");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Wait for locator to be present.");
                integration_IframeAppsHelper.WaitForElementPresent(loc, 10);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify created iframe not present in partner agent portal.");
                integration_IframeAppsHelper.ElementNotAvailable(loc);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Logout from partner portal..");
                VisitOffice("logout");

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

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

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Redirect at iframe apps page.");
                VisitOffice("iframes");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Verify page title.");
                VerifyTitle("Iframe Apps");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Enter iframe name to  be searched.");
                integration_IframeAppsHelper.TypeText("SearchTabName", tab);
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click on delete button.");
                integration_IframeAppsHelper.ClickElement("ClickOnDelete");

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Click ok to accept alert message.");
                integration_IframeAppsHelper.AcceptAlert();

                executionLog.Log("VerifyCreatedIframeInPartnerAgent", "Wait for deletion success message.");
                integration_IframeAppsHelper.WaitForText("Iframe deleted successfully.", 10);
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("VerifyCreatedIframeInPartnerAgent");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Verify Created Iframe In Partner Agent");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Verify Created Iframe In Partner Agent", "Bug", "Medium", "Iframe Intergration page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Verify Created Iframe In Partner Agent");
                        TakeScreenshot("VerifyCreatedIframeInPartnerAgent");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyCreatedIframeInPartnerAgent.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("VerifyCreatedIframeInPartnerAgent");
                        string id            = loginHelper.getIssueID("Verify Created Iframe In Partner Agent");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyCreatedIframeInPartnerAgent.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Verify Created Iframe In Partner Agent"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Verify Created Iframe In Partner Agent");
                //    executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("VerifyCreatedIframeInPartnerAgent");
                executionLog.WriteInExcel("Verify Created Iframe In Partner Agent", Status, JIRA, "IFrame");
            }
        }
Exemple #2
0
        public void editIframeIntegration()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();

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

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

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

            // Variable
            var    usrname = "Test.Tester" + GetRandomNumber();
            var    tabname = "Iframe" + RandomNumber(1, 9999);
            String JIRA    = "";
            String Status  = "Pass";

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

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

                executionLog.Log("EditIframeIntegration", "Click On  Admin");
                VisitOffice("admin");

                executionLog.Log("EditIframeIntegration", "Redirect To URL");
                VisitOffice("iframes");

                executionLog.Log("EditIframeIntegration", "Verify title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("EditIframeIntegration", "Enter Tab name search ");
                integration_IframeAppsHelper.TypeText("SearchTabName", "Edit Iframe");
                integration_IframeAppsHelper.WaitForWorkAround(5000);

                var LOC = "//table[@id='list1']/tbody/tr[2]/td[3]";
                if (integration_IframeAppsHelper.IsElementPresent(LOC))
                {
                    executionLog.Log("EditIframeIntegration", "Click On Edit Btn");
                    integration_IframeAppsHelper.ClickElement("Edit");

                    executionLog.Log("EditIframeIntegration", "Verify title");
                    VerifyTitle("Edit Iframe");

                    executionLog.Log("EditIframeIntegration", "Enter Tab Name");
                    integration_IframeAppsHelper.TypeText("TabName", tabname);

                    executionLog.Log("EditIframeIntegration", "Enter user name input field");
                    integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);

                    executionLog.Log("EditIframeIntegration", "Enter password input field name.");
                    integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                    executionLog.Log("EditIframeIntegration", "Enter login url.");
                    integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                    executionLog.Log("EditIframeIntegration", "Click on mainportal");
                    integration_IframeAppsHelper.ClickElement("mainportalCheckbox");

                    executionLog.Log("EditIframeIntegration", "Click on Save  ");
                    integration_IframeAppsHelper.ClickElement("Save");

                    executionLog.Log("EditIframeIntegration", "Wait for text");
                    integration_IframeAppsHelper.WaitForText("Iframe Created Successfully.", 10);
                }
                else
                {
                    executionLog.Log("EditIframeIntegration", " Click On Create");
                    integration_IframeAppsHelper.ClickElement("Create");

                    executionLog.Log("EditIframeIntegration", "Verify title");
                    VerifyTitle("Create Iframe");

                    executionLog.Log("EditIframeIntegration", "Enter Tab Name");
                    integration_IframeAppsHelper.TypeText("TabName", tabname);

                    executionLog.Log("EditIframeIntegration", "Enter user name input field");
                    integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);

                    executionLog.Log("EditIframeIntegration", "Enter password input field name.");
                    integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                    executionLog.Log("EditIframeIntegration", "Enter login URL");
                    integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                    executionLog.Log("EditIframeIntegration", "Click on mainportal");
                    integration_IframeAppsHelper.ClickElement("mainportalCheckbox");

                    executionLog.Log("EditIframeIntegration", "cLICK on Save  ");
                    integration_IframeAppsHelper.ClickElement("Save");

                    executionLog.Log("EditIframeIntegration", "Wait for successful create message");
                    integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                    executionLog.Log("EditIframeIntegration", "Verify title");
                    VerifyTitle("Iframe Apps");

                    executionLog.Log("EditIframeIntegration", "Enter Tab name search ");
                    integration_IframeAppsHelper.TypeText("SearchTabName", tabname);

                    executionLog.Log("EditIframeIntegration", "Click On Edit Btn");
                    integration_IframeAppsHelper.ClickElement("Edit");

                    executionLog.Log("EditIframeIntegration", "Enter Tab Name");
                    integration_IframeAppsHelper.TypeText("TabName", tabname);

                    executionLog.Log("EditIframeIntegration", "Enter user name input field");
                    integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);

                    executionLog.Log("EditIframeIntegration", "Enter password input field name.");
                    integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                    executionLog.Log("EditIframeIntegration", "Enter login URL");
                    integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                    executionLog.Log("EditIframeIntegration", "Click on mainportal");
                    integration_IframeAppsHelper.ClickElement("mainportalCheckbox");

                    executionLog.Log("EditIframeIntegration", "cLICK on Save ");
                    integration_IframeAppsHelper.ClickElement("Save");

                    executionLog.Log("EditIframeIntegration", "Wait for text");
                    integration_IframeAppsHelper.WaitForText("Iframe updated Successfully.", 10);

                    executionLog.Log("EditIframeIntegration", "Enter user name to search");
                    integration_IframeAppsHelper.TypeText("SearchTabName", tabname);
                    integration_IframeAppsHelper.WaitForWorkAround(2000);

                    executionLog.Log("EditIframeIntegration", "Click on delete icon");
                    integration_IframeAppsHelper.ClickElement("ClickOnDelete");

                    executionLog.Log("EditIframeIntegration", "Accept alert message. ");
                    integration_IframeAppsHelper.AcceptAlert();

                    executionLog.Log("EditIframeIntegration", "Wait for text");
                    integration_IframeAppsHelper.WaitForText("Iframe deleted successfully.", 10);
                }
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("EditIframeIntegration");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Edit Iframe Integration");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Edit Iframe Integration", "Bug", "Medium", "Iframe Integration page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Edit Iframe Integration");
                        TakeScreenshot("EditIframeIntegration");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EditIframeIntegration.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("EditIframeIntegration");
                        string id            = loginHelper.getIssueID("Edit Iframe Integration");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EditIframeIntegration.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Edit Iframe Integration"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Edit Iframe Integration");
                //  executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("EditIframeIntegration");
                executionLog.WriteInExcel("Edit Iframe Integration", Status, JIRA, "IFrame");
            }
        }
Exemple #3
0
        public void multipleIframeDeleteError()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();

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

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

            // Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var integration_IframeAppsHelper     = new Integration_IframeAppsHelper(GetWebDriver());
            var corpIntegration_IframeAppsHelper = new CorpIntegration_IframeAppsHelper(GetWebDriver());

            // Variable
            var name     = "Test" + GetRandomNumber();
            var name2    = "Iframe" + GetRandomNumber();
            var usrname  = "Test.Tester" + GetRandomNumber();
            var Tab      = "Tab" + RandomNumber(99, 999);
            var Tab2     = "Iframe" + RandomNumber(99, 999);
            var UserName = "******" + RandomNumber(99, 999);



            String JIRA   = "";
            String Status = "Pass";

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

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

                executionLog.Log("MultipleIframeDeleteError", "Click On  Admin");
                VisitOffice("admin");

                executionLog.Log("MultipleIframeDeleteError", "Redirect To URL");
                VisitOffice("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", " Click On Create");
                integration_IframeAppsHelper.ClickElement("Create");

                executionLog.Log("MultipleIframeDeleteError", "Verify title");
                VerifyTitle("Create Iframe");

                executionLog.Log("MultipleIframeDeleteError", "Enter Tab Name");
                integration_IframeAppsHelper.TypeText("TabName", name);

                executionLog.Log("MultipleIframeDeleteError", "Enter user Name");
                integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);
                integration_IframeAppsHelper.WaitForWorkAround(4000);

                executionLog.Log("MultipleIframeDeleteError", "Enter Password");
                integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                executionLog.Log("MultipleIframeDeleteError", "Enter Login Url");
                integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                executionLog.Log("MultipleIframeDeleteError", "Click on mainportal");
                integration_IframeAppsHelper.ClickElement("mainportalCheckbox");

                executionLog.Log("MultipleIframeDeleteError", "Click on Save");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("MultipleIframeDeleteError", "Wait for text");
                integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("MultipleIframeDeleteError", "Redirect To URL");
                VisitOffice("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", " Click On Create");
                integration_IframeAppsHelper.ClickElement("Create");

                executionLog.Log("MultipleIframeDeleteError", "Verify title");
                VerifyTitle("Create Iframe");

                executionLog.Log("MultipleIframeDeleteError", "Enter Tab Name");
                integration_IframeAppsHelper.TypeText("TabName", name2);

                executionLog.Log("MultipleIframeDeleteError", "Enter user Name");
                integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);
                integration_IframeAppsHelper.WaitForWorkAround(4000);

                executionLog.Log("MultipleIframeDeleteError", "Enter Password");
                integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                executionLog.Log("MultipleIframeDeleteError", "Enter Login Url");
                integration_IframeAppsHelper.TypeText("LoginURL", _office + "login");

                executionLog.Log("MultipleIframeDeleteError", "Click on mainportal");
                integration_IframeAppsHelper.ClickElement("mainportalCheckbox");

                executionLog.Log("MultipleIframeDeleteError", "Click on Save");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("MultipleIframeDeleteError", "Wait for text");
                integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("MultipleIframeDeleteError", "Redirect To URL");
                VisitOffice("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", "Click on first chk box.");
                integration_IframeAppsHelper.ClickElement("Chkbox1");

                executionLog.Log("MultipleIframeDeleteError", " Click on second chk box.  ");
                integration_IframeAppsHelper.ClickElement("ChkBox2");

                executionLog.Log("MultipleIframeDeleteError", "Clcik on delete button ");
                integration_IframeAppsHelper.ClickElement("DeleteMultiple");

                executionLog.Log("MultipleIframeDeleteError", "Accept alert message. ");
                integration_IframeAppsHelper.AcceptAlert();

                executionLog.Log("MultipleIframeDeleteError", "Wait for deletion success message. ");
                integration_IframeAppsHelper.WaitForText("2 Iframe(s) deleted successfully.", 10);

                executionLog.Log("MultipleIframeDeleteError", "Logout from the application.");
                VisitOffice("logout");

                executionLog.Log("MultipleIframeDeleteError", "Login with valid username and password");
                Login("newthemecorp", "mynewpegasus");

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

                executionLog.Log("MultipleIframeDeleteError", "Redirect at Iframe apps page.");
                VisitCorp("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title.");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", "Click on create button.");
                corpIntegration_IframeAppsHelper.ClickJava("Create");

                executionLog.Log("MultipleIframeDeleteError", "Verify page title.");
                VerifyTitle("Create Iframe");

                executionLog.Log("MultipleIframeDeleteError", "Click on save button.");
                corpIntegration_IframeAppsHelper.ClickJava("Save");
                corpIntegration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("MultipleIframeDeleteError", "Verify required text for tab name");
                corpIntegration_IframeAppsHelper.VerifyText("TabNameError", "This field is required.");

                executionLog.Log("MultipleIframeDeleteError", "Verify required text for user name.");
                corpIntegration_IframeAppsHelper.VerifyText("UserNameerror", "This field is required.");

                executionLog.Log("MultipleIframeDeleteError", "Verify required text for password.");
                corpIntegration_IframeAppsHelper.VerifyText("PassWordError", "This field is required.");

                executionLog.Log("MultipleIframeDeleteError", "Verify required text for URL.");
                corpIntegration_IframeAppsHelper.VerifyText("URLError", "This field is required.");

                executionLog.Log("MultipleIframeDeleteError", "Click on Cancel button.");
                corpIntegration_IframeAppsHelper.ClickJava("Cancel");
                corpIntegration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title");
                VerifyTitle("Users");

                executionLog.Log("MultipleIframeDeleteError", "Redirect at Iframe apps page.");
                VisitCorp("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", "Click on create button.");
                corpIntegration_IframeAppsHelper.ClickJava("Create");

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title.");
                VerifyTitle("Create Iframe");

                executionLog.Log("MultipleIframeDeleteError", "Enter tab name.");
                corpIntegration_IframeAppsHelper.TypeText("TabName", Tab);

                executionLog.Log("MultipleIframeDeleteError", "Enter user name field name.");
                corpIntegration_IframeAppsHelper.TypeText("UserName", "User");

                executionLog.Log("MultipleIframeDeleteError", "Enter Password field name");
                corpIntegration_IframeAppsHelper.TypeText("Paasword", "PIN");

                executionLog.Log("MultipleIframeDeleteError", "Enter invalid URL.");
                corpIntegration_IframeAppsHelper.TypeText("LoginUrl", "Abcd@gmail");

                executionLog.Log("MultipleIframeDeleteError", "Verify validation for invalid url.");
                corpIntegration_IframeAppsHelper.VerifyText("URLError2", "Invalid URL");

                executionLog.Log("MultipleIframeDeleteError", "Enter a valid URL");
                corpIntegration_IframeAppsHelper.TypeText("LoginUrl", "https://www.google.co.in");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearOnOffice");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearClient");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearPartner");

                executionLog.Log("MultipleIframeDeleteError", "Enter User Name for Iframe.");
                corpIntegration_IframeAppsHelper.TypeText("UsrNAme", UserName);

                executionLog.Log("MultipleIframeDeleteError", "Enter Password for Iframe.");
                corpIntegration_IframeAppsHelper.TypeText("Passwrd", "Pegasus");

                executionLog.Log("MultipleIframeDeleteError", "Select which office to iframe displayed.");
                corpIntegration_IframeAppsHelper.ClickJava("AllOffices");

                executionLog.Log("MultipleIframeDeleteError", "Click on save button.");
                corpIntegration_IframeAppsHelper.ClickJava("Save");

                executionLog.Log("MultipleIframeDeleteError", "Wait for iframe creation success text.");
                corpIntegration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("MultipleIframeDeleteError", "Redirect at Iframe apps page.");
                VisitCorp("iframes");

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("MultipleIframeDeleteError", "Click on create button.");
                corpIntegration_IframeAppsHelper.ClickJava("Create");

                executionLog.Log("MultipleIframeDeleteError", "Verify Page title.");
                VerifyTitle("Create Iframe");

                executionLog.Log("MultipleIframeDeleteError", "Enter tab name.");
                corpIntegration_IframeAppsHelper.TypeText("TabName", Tab2);

                executionLog.Log("MultipleIframeDeleteError", "Enter user name field name.");
                corpIntegration_IframeAppsHelper.TypeText("UserName", "User");

                executionLog.Log("MultipleIframeDeleteError", "Enter Password field name");
                corpIntegration_IframeAppsHelper.TypeText("Paasword", "PIN");

                executionLog.Log("MultipleIframeDeleteError", "Enter invalid URL.");
                corpIntegration_IframeAppsHelper.TypeText("LoginUrl", "Abcd@gmail");

                executionLog.Log("MultipleIframeDeleteError", "Verify validation for invalid url.");
                corpIntegration_IframeAppsHelper.VerifyText("URLError2", "Invalid URL");

                executionLog.Log("MultipleIframeDeleteError", "Enter a valid URL");
                corpIntegration_IframeAppsHelper.TypeText("LoginUrl", "https://www.google.co.in");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearOnOffice");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearClient");

                executionLog.Log("MultipleIframeDeleteError", "Click on tab appear on chk box.");
                corpIntegration_IframeAppsHelper.ClickJava("TabAppearPartner");

                executionLog.Log("MultipleIframeDeleteError", "Enter User Name for Iframe.");
                corpIntegration_IframeAppsHelper.TypeText("UsrNAme", UserName);

                executionLog.Log("MultipleIframeDeleteError", "Enter Password for Iframe.");
                corpIntegration_IframeAppsHelper.TypeText("Passwrd", "Pegasus");

                executionLog.Log("MultipleIframeDeleteError", "Select which office to iframe displayed.");
                corpIntegration_IframeAppsHelper.ClickJava("AllOffices");

                executionLog.Log("MultipleIframeDeleteError", "Click on save button.");
                corpIntegration_IframeAppsHelper.ClickJava("Save");

                executionLog.Log("MultipleIframeDeleteError", "Wait for iframe creation success text.");
                corpIntegration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("MultipleIframeDeleteError", "Click on first check box.");
                corpIntegration_IframeAppsHelper.ClickElement("Chkbox1");

                executionLog.Log("MultipleIframeDeleteError", "Click on second check box.");
                corpIntegration_IframeAppsHelper.ClickElement("ChkBox2");

                executionLog.Log("MultipleIframeDeleteError", "Click on delete icon.");
                corpIntegration_IframeAppsHelper.ClickJava("DeleteMultiple");
                corpIntegration_IframeAppsHelper.AcceptAlert();

                executionLog.Log("MultipleIframeDeleteError", "Wait for deletion sucess.");
                corpIntegration_IframeAppsHelper.WaitForText("2 Iframe(s) deleted successfully.", 10);
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("MultipleIframeDeleteError");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Multiple Iframe Delete Error");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Multiple Iframe Delete Error", "Bug", "Medium", "Iframe Intergration page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Multiple Iframe Delete Error");
                        TakeScreenshot("MultipleIframeDeleteError");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\MultipleIframeDeleteError.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("MultipleIframeDeleteError");
                        string id            = loginHelper.getIssueID("Multiple Iframe Delete Error");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\MultipleIframeDeleteError.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Multiple Iframe Delete Error"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Multiple Iframe Delete Error");
                //   executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("MultipleIframeDeleteError");
                executionLog.WriteInExcel("Multiple Iframe Delete Error", Status, JIRA, "IFrame");
            }
        }
Exemple #4
0
        public void iframe()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

            // Initializing the objects5
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var integration_IframeAppsHelper = new Integration_IframeAppsHelper(GetWebDriver());

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

            // Variable
            var    IframeTab = "Test" + RandomNumber(99, 99999);
            var    email     = "Test" + RandomNumber(99, 99999) + "tester";
            var    idsc      = "1" + RandomNumber(1, 99999);
            var    CDBA      = "New" + RandomNumber(99, 99999);
            String JIRA      = "";
            String Status    = "Pass";

            try
            {
                executionLog.Log("Iframe", "Login with valid credential  Username");
                Login(username[0], password[0]);

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

                executionLog.Log("Iframe", "Create Iframe");
                VisitOffice("iframes/create");

                executionLog.Log("Iframe", "Click Save");
                integration_IframeAppsHelper.ClickElement("Save");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("Iframe", "Click Cancel");
                integration_IframeAppsHelper.ClickElement("ClickCancelIframe");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("Iframe", "Verify text on page.");
                integration_IframeAppsHelper.VerifyText("IframeAPPvERIFY", "Iframe Apps");

                executionLog.Log("Iframe", "Redirect at create Iframe page.");
                VisitOffice("iframes/create");

                executionLog.Log("Iframe", "Iframe Tab Name");
                integration_IframeAppsHelper.TypeText("TabName", IframeTab);

                executionLog.Log("Iframe", "Enter Usre Name");
                integration_IframeAppsHelper.TypeText("UserNameInputFieldName", email);

                executionLog.Log("Iframe", "Enter Password");
                integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1234567");

                executionLog.Log("Iframe", "Login Iframe");
                integration_IframeAppsHelper.TypeText("LoginURL", "https://www.facebook.com/?_rdr=p");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("Iframe", "Click Save");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("Iframe", "Wait for Confirmation");
                integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 10);

                executionLog.Log("Iframe", "Search Iframe By Name");
                integration_IframeAppsHelper.TypeText("SearchTabName", IframeTab);
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("Iframe", "Click On Edit");
                integration_IframeAppsHelper.ClickElement("Edit");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("Iframe", "Click Save");
                integration_IframeAppsHelper.ClickElement("Save");

                executionLog.Log("Iframe", "Wait for Confirmation");
                integration_IframeAppsHelper.WaitForText("Iframe updated Successfully.", 10);

                executionLog.Log("Iframe", "Redirect To URL");
                VisitOffice("iframes");

                executionLog.Log("Iframe", "Verify title");
                VerifyTitle("Iframe Apps");

                executionLog.Log("Iframe", "Enter Name to search");
                integration_IframeAppsHelper.TypeText("SearchTabName", IframeTab);
                integration_IframeAppsHelper.WaitForWorkAround(2000);

                executionLog.Log("Iframe", "cLICK Delete btn  ");
                integration_IframeAppsHelper.ClickElement("ClickOnDelete");

                executionLog.Log("Iframe", "Accept alert message. ");
                integration_IframeAppsHelper.AcceptAlert();

                executionLog.Log("Iframe", "Wait for delete message. ");
                integration_IframeAppsHelper.WaitForText("Iframe deleted successfully.", 10);
            }

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

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

            XMLParse oXMLData = new XMLParse();

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

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

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

            // Variable
            var    name    = "Delete" + GetRandomNumber();
            var    usrname = "Test.Tester" + GetRandomNumber();
            String JIRA    = "";
            String Status  = "Pass";

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

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

                executionLog.Log("DeleteIframeIntegration", "Redirect To Create ");
                VisitOffice("iframes/create");

                executionLog.Log("DeleteIframeIntegration", "Verify page title ");
                VerifyTitle("Create Iframe");
                integration_IframeAppsHelper.WaitForWorkAround(2000);

                executionLog.Log("DeleteIframeIntegration", "Enter Tab Name");
                integration_IframeAppsHelper.TypeText("TabName", name);

                executionLog.Log("DeleteIframeIntegration", "Enter user name");
                integration_IframeAppsHelper.TypeText("UserNameInputFieldName", usrname);

                executionLog.Log("DeleteIframeIntegration", "Enter password input field name");
                integration_IframeAppsHelper.TypeText("PasswordInputFieldNmae", "1qaz!QAZ");

                executionLog.Log("DeleteIframeIntegration", "Enter URL");
                integration_IframeAppsHelper.TypeText("LoginURL", "https://www.mypegasuscrm.com/newthemecorp/newthemeoffice");

                executionLog.Log("DeleteIframeIntegration", "Click on Save");
                integration_IframeAppsHelper.ClickElement("Save");
                integration_IframeAppsHelper.WaitForWorkAround(3000);

                executionLog.Log("DeleteIframeIntegration", "Wait for success message.");
                integration_IframeAppsHelper.WaitForText("Iframe created successfully.", 30);

                executionLog.Log("DeleteIframeIntegration", "Search Iframe by name");
                integration_IframeAppsHelper.TypeText("SearchTabName", name);
                integration_IframeAppsHelper.WaitForWorkAround(1000);

                executionLog.Log("DeleteIframeIntegration", "Clcik on delete");
                integration_IframeAppsHelper.ClickElement("ClickOnDelete");

                executionLog.Log("DeleteIframeIntegration", "Accept alert name.");
                integration_IframeAppsHelper.AcceptAlert();

                executionLog.Log("DeleteIframeIntegration", "Wait for sucess message.");
                integration_IframeAppsHelper.WaitForText("Iframe deleted successfully.", 20);
            }

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

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