public void verifyIconAndLabelForOpportunities() { string[] username = null; string[] password = null; var 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); // Variable String JIRA = ""; String Status = "Pass"; try { executionLog.Log("VerifyIconAndLabelForOpportunities", "Login with valid username and password"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify Page title"); VerifyTitle("Dashboard"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Visit opportunities page."); VisitOffice("opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title."); VerifyTitle("Opportunities"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify delete icon available."); office_OpportunitiesHelper.IsElementPresent("DeleteIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify delete label available."); office_OpportunitiesHelper.IsElementPresent("DeleteLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on delete button."); office_OpportunitiesHelper.ClickElement("DeleteLabel"); office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Decline alert message."); office_OpportunitiesHelper.DeclineAlert(); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify bulk update icon."); office_OpportunitiesHelper.IsElementPresent("BUlkUpdateIcon"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify bulk update label."); office_OpportunitiesHelper.IsElementPresent("BulkUpdateLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on bulk update button."); office_OpportunitiesHelper.clickJS("BUlkUpdateIcon"); office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on sales manager."); office_OpportunitiesHelper.ClickElement("ChangeSaleManager"); office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify alert text on the page."); office_OpportunitiesHelper.VerifyAlertText("Please select atleast one record to proceed."); executionLog.Log("VerifyIconAndLabelForOpportunities", "Accept alert message."); office_OpportunitiesHelper.AcceptAlert(); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify advance filter icon."); office_OpportunitiesHelper.IsElementPresent("AdvanceFilIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify advanced filter label."); office_OpportunitiesHelper.IsElementPresent("AdvancefiltLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page text."); office_OpportunitiesHelper.VerifyPageText("Tracking Fields"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify create opportunity icon."); office_OpportunitiesHelper.IsElementPresent("CreateIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify create opportunity label."); office_OpportunitiesHelper.IsElementPresent("CreateLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on create button."); office_OpportunitiesHelper.ClickElement("CreateLabel"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title as create opportunity."); VerifyTitle("Create an Opportunity"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Visit opportunitities page."); VisitOffice("opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title"); VerifyTitle("Opportunities"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify import icon present."); office_OpportunitiesHelper.IsElementPresent("ImportIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify import label present."); office_OpportunitiesHelper.IsElementPresent("ImportLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on import button."); office_OpportunitiesHelper.ClickElement("ImportLabel"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify browse button present on page."); office_OpportunitiesHelper.IsElementPresent("BrowseFile"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Visit opportunities page."); VisitOffice("opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title.."); VerifyTitle("Opportunities"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify merge icon present on page."); office_OpportunitiesHelper.IsElementPresent("MergeIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify merge label present on page."); office_OpportunitiesHelper.IsElementPresent("MergeLabel"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on merge button."); office_OpportunitiesHelper.ClickElement("MergeLabel"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify alert text on the page.."); office_OpportunitiesHelper.VerifyAlertText("Please select 2 or more opportunities you wish to merge"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Accept alert message."); office_OpportunitiesHelper.AcceptAlert(); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify export icon present on page."); office_OpportunitiesHelper.IsElementPresent("ExportIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on export button."); office_OpportunitiesHelper.clickJS("ExportIcon"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify export as csv present on page."); office_OpportunitiesHelper.IsElementPresent("ExportCsv"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify recycle bin icon on the page."); office_OpportunitiesHelper.IsElementPresent("RecycleIcon"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Click on recycle bin button."); office_OpportunitiesHelper.clickJS("RecycleIcon"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title as recycled opportunities."); VerifyTitle("Opportunities"); //office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Visit opportunities page."); VisitOffice("opportunities"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify page title.."); VerifyTitle("Opportunities"); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify all opportunities button present on page."); office_OpportunitiesHelper.IsElementPresent("AllOpportunities"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify my opportunities button present on page."); office_OpportunitiesHelper.IsElementPresent("MyOpportunities"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify my team's opportunities button present on page."); office_OpportunitiesHelper.IsElementPresent("MyTeamOppor"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Verify my saved filters button present on page."); office_OpportunitiesHelper.IsElementPresent("MySavedFilters"); //office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyIconAndLabelForOpportunities", "Logout from the application."); VisitOffice("logout"); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("VerifyIconAndLabelForOpportunities"); String Error = executionLog.GetAllTextFile("Error"); Console.WriteLine(Error); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Verify Icon And Label For Opportunities"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Verify Icon And Label For Opportunities", "Bug", "Medium", "Opportunities page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Verify Icon And Label For Opportunities"); TakeScreenshot("VerifyIconAndLabelForOpportunities"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\VerifyIconAndLabelForOpportunities.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("VerifyIconAndLabelForOpportunities"); string id = loginHelper.getIssueID("Verify Icon And Label For Opportunities"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\VerifyIconAndLabelForOpportunities.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Verify Icon And Label For Opportunities"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Verify Icon And Label For Opportunities"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("VerifyIconAndLabelForOpportunities"); executionLog.WriteInExcel("Verify Icon And Label For Opportunities", Status, JIRA, "Opportunities Management"); } }
public void verifyQuickLookLabelsForOpportunity() { 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); username = oXMLData.getData("settings/Credentials", "username_office"); password = oXMLData.getData("settings/Credentials", "password"); // Variable var Oppname = "Test" + RandomNumber(99, 99999); var CDBA = "New" + RandomNumber(99, 99999); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Login with valid credential Username"); Login(username[0], password[0]); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Create Opportunities"); VisitOffice("opportunities/create"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on Save"); office_OpportunitiesHelper.ClickElement("SaveOpp"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify text on page."); office_OpportunitiesHelper.VerifyText("RequiredFieldsOpp", "This field is required."); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Enter Opportunity Name"); office_OpportunitiesHelper.TypeText("Name", Oppname); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Enter Company DBA Name"); office_OpportunitiesHelper.TypeText("CompanyName", CDBA); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select Opp Status"); office_OpportunitiesHelper.SelectByText("State", "New"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select Opp Responsibility"); office_OpportunitiesHelper.SelectByText("Responsibility", "Howard Tang"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on Save button."); office_OpportunitiesHelper.ClickElement("SaveOpp"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for client type."); office_OpportunitiesHelper.VerifyText("ClientType", "Select"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for status."); office_OpportunitiesHelper.VerifyText("Status", "New"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for source."); office_OpportunitiesHelper.VerifyText("Source", "Select Source"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for category."); office_OpportunitiesHelper.VerifyText("Category", "Select Category"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for responsibility."); office_OpportunitiesHelper.VerifyText("Responsibilityl", "Howard Tang"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for account manager."); office_OpportunitiesHelper.VerifyText("AccountManager", "Select Account Manager"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for partner agent."); office_OpportunitiesHelper.VerifyText("PartnerAgentl", "Select Partner Agent"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for partner association."); office_OpportunitiesHelper.VerifyText("PartnerAssociationl", "Select Partner Association"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify label for sales manager."); office_OpportunitiesHelper.VerifyText("SalesManager", "Select Sales Manager"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on edit opportunity."); office_OpportunitiesHelper.ClickElement("EditLink"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select client type."); office_OpportunitiesHelper.Select("Clientt", "Processing"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select refferal source."); office_OpportunitiesHelper.Select("RSource", "Campaign"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select category."); office_OpportunitiesHelper.SelectByText("Categ", "Single"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select account manager."); office_OpportunitiesHelper.SelectByText("AccntManager", "Howard Tang"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select user group."); office_OpportunitiesHelper.SelectByText("UGroup", "Primary Group"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select sales manager."); office_OpportunitiesHelper.SelectByText("SaleMgr", "Howard Tang"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select responsibility."); office_OpportunitiesHelper.SelectByText("Responsibility", "Howard Tang"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select partner agent."); office_OpportunitiesHelper.SelectByText("PartnerAgent", "Mark Menu"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Select partner association."); office_OpportunitiesHelper.SelectByText("PartAssociation", "Aslam Associate"); //office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on Save button."); office_OpportunitiesHelper.ClickElement("ClickSaveClient"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify client type as processing."); office_OpportunitiesHelper.VerifyText("ClientType", "Processing"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify status as New"); office_OpportunitiesHelper.VerifyText("Status", "New"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify source as campaign"); office_OpportunitiesHelper.VerifyText("Source", "Campaign"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify category as Test1"); office_OpportunitiesHelper.VerifyText("Category", "Single"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify responsibility as Howard."); office_OpportunitiesHelper.VerifyText("Responsibilityl", "Howard Tang"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify account manager as Howard."); office_OpportunitiesHelper.VerifyText("AccountManager", "Howard Tang"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify partner agent as mark matthews."); office_OpportunitiesHelper.VerifyText("PartnerAgentl", "Mark Menu"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify partner association. "); office_OpportunitiesHelper.VerifyText("PartnerAssociationl", "Aslam Associate"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify sales manager as howard."); office_OpportunitiesHelper.VerifyText("SalesManager", "Howard Tang"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on delete."); office_OpportunitiesHelper.ClickElement("DeleteLink"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on Save"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Wait for success text."); office_OpportunitiesHelper.WaitForText("Opportunity deleted successfully.", 10); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Redirect at recyclebin page."); VisitOffice("opportunities/recyclebin"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Verify page title as recycled opportunities."); VerifyTitle("Recycled Opportunities"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Click on delete icon."); office_OpportunitiesHelper.ClickElement("DeletePermanaently"); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Accept alert message."); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyQuickLookLabelsForOpportunity", "Wait for success text."); office_OpportunitiesHelper.WaitForText("Opportunity permanently deleted.", 10); VisitOffice("logout"); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("VerifyQuickLookLabelsForOpportunity"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("VerifyQuickLookLabelsForOpportunity"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Opportunities", "Bug", "Medium", "Opportunity page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("VerifyQuickLookLabelsForOpportunity"); TakeScreenshot("VerifyQuickLookLabelsForOpportunity"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\VerifyQuickLookLabelsForOpportunity.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("VerifyQuickLookLabelsForOpportunity"); string id = loginHelper.getIssueID("VerifyQuickLookLabelsForOpportunity"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\VerifyQuickLookLabelsForOpportunity.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("VerifyQuickLookLabelsForOpportunity"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("VerifyQuickLookLabelsForOpportunity"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("VerifyQuickLookLabelsForOpportunity"); executionLog.WriteInExcel("VerifyQuickLookLabelsForOpportunity", Status, JIRA, "Opportunity management"); } }
public void verifyOpportunitiesCreatedModifiedByCredits() { 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); username = oXMLData.getData("settings/Credentials", "username_office"); password = oXMLData.getData("settings/Credentials", "password"); // Variable var Oppname = "Test" + RandomNumber(99, 99999); var CDBA = "New" + RandomNumber(99, 99999); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Login with valid credential Username"); Login(username[0], password[0]); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Create Opportunities"); VisitOffice("opportunities/create"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on Save"); office_OpportunitiesHelper.ClickElement("SaveOpp"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify text on page."); office_OpportunitiesHelper.VerifyText("RequiredFieldsOpp", "This field is required."); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Enter Opportunity Name"); office_OpportunitiesHelper.TypeText("Name", Oppname); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Enter Company DBA Name"); office_OpportunitiesHelper.TypeText("CompanyName", CDBA); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Select Opp Status"); office_OpportunitiesHelper.SelectByText("State", "New"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Select Opp Responsibility"); office_OpportunitiesHelper.SelectByText("Responsibility", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on Save"); office_OpportunitiesHelper.ClickElement("SaveOpp"); office_OpportunitiesHelper.WaitForWorkAround(3000); var loc = "//h3[text()='Existing Opportunities']"; if (office_OpportunitiesHelper.IsElementPresent(loc)) { executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click Dublicate Button"); office_OpportunitiesHelper.ClickOnDisplayed("ClickOnDubBtn"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait for success message"); office_OpportunitiesHelper.WaitForText("Opportunity saved successfully.", 10); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity created by"); office_OpportunitiesHelper.VerifyText("CreatedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity modified by"); office_OpportunitiesHelper.VerifyText("ModifiedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on edit button."); office_OpportunitiesHelper.ClickElement("EditLink"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on save button."); office_OpportunitiesHelper.ClickElement("SaveOpp"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity created by"); office_OpportunitiesHelper.VerifyText("CreatedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity modified by"); office_OpportunitiesHelper.VerifyText("ModifiedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Redirect at Opportunities"); VisitOffice("VerifyOpportunitiesCreatedModifiedByCredits"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on 1st Opportunities"); office_OpportunitiesHelper.ClickElement("ClickOn1stOpp"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click On Merge Records"); office_OpportunitiesHelper.ClickElement("DeleteLink"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait for confirmation"); office_OpportunitiesHelper.WaitForText("1 records deleted successfully", 10); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Redirect at recyclebin Page."); VisitOffice("opportunities/recyclebin"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify page title."); VerifyTitle("Recycled Opportunities"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on delete icon."); office_OpportunitiesHelper.ClickElement("DeletePermanaently"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait For Confirmation"); office_OpportunitiesHelper.WaitForText("Opportunity permanently deleted.", 10); } else { executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait for success message"); office_OpportunitiesHelper.WaitForText("Opportunity saved successfully.", 10); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity created by"); office_OpportunitiesHelper.VerifyText("CreatedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity modified by"); office_OpportunitiesHelper.VerifyText("ModifiedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on edit button."); office_OpportunitiesHelper.ClickElement("EditLink"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on save button."); office_OpportunitiesHelper.ClickElement("SaveOpp"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity created by"); office_OpportunitiesHelper.VerifyText("CreatedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify opportunity modified by"); office_OpportunitiesHelper.VerifyText("ModifiedBy", "Howard Tang"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Redirect at Opportunities"); VisitOffice("opportunities"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on 1st Opportunities"); office_OpportunitiesHelper.ClickElement("ClickOn1stOpp"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click On Merge Records"); office_OpportunitiesHelper.ClickElement("DeleteLink"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait for confirmation"); office_OpportunitiesHelper.WaitForText("1 records deleted successfully", 10); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Redirect at recyclebin Page."); VisitOffice("opportunities/recyclebin"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Verify page title."); VerifyTitle("Recycled Opportunities"); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Click on delete icon."); office_OpportunitiesHelper.ClickElement("DeletePermanaently"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("VerifyOpportunitiesCreatedModifiedByCredits", "Wait For Confirmation"); office_OpportunitiesHelper.WaitForText("Opportunity permanently deleted.", 10); } } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("VerifyOpportunitiesCreatedModifiedByCredits"); String Error = executionLog.GetAllTextFile("Error"); Console.WriteLine(Error); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("VerifyOpportunitiesCreatedModifiedByCredits"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("VerifyOpportunitiesCreatedModifiedByCredits", "Bug", "Medium", "Opportunity page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("VerifyOpportunitiesCreatedModifiedByCredits"); TakeScreenshot("VerifyOpportunitiesCreatedModifiedByCredits"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\Opportunities.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("VerifyOpportunitiesCreatedModifiedByCredits"); string id = loginHelper.getIssueID("VerifyOpportunitiesCreatedModifiedByCredits"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\Opportunities.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("VerifyOpportunitiesCreatedModifiedByCredits"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("VerifyOpportunitiesCreatedModifiedByCredits"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("VerifyOpportunitiesCreatedModifiedByCredits"); executionLog.WriteInExcel("VerifyOpportunitiesCreatedModifiedByCredits", Status, JIRA, "Opportunity management"); } }
public void editOppStateIssue() { string[] username = null; string[] password = null; var 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); // VARIABLE var Name = "Test" + RandomNumber(1, 999); var Company = "Company" + RandomNumber(1, 9999); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("EditOppStateIssue", "Login with valid username and password"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("EditOppStateIssue", "Verify Page title"); VerifyTitle("Dashboard"); executionLog.Log("EditOppStateIssue", "Redirect at create opportunities page."); VisitOffice("opportunities/create"); executionLog.Log("EditOppStateIssue", "Verify Page title"); VerifyTitle("Create an Opportunity"); executionLog.Log("EditOppStateIssue", "Enter Name"); office_OpportunitiesHelper.TypeText("Name", Name); executionLog.Log("EditOppStateIssue", "Enter Company Name"); office_OpportunitiesHelper.TypeText("CompanyName", Company); executionLog.Log("EditOppStateIssue", "Select Status"); office_OpportunitiesHelper.SelectByText("State", "Closed Dead"); executionLog.Log("EditOppStateIssue", "Select Responsibility"); office_OpportunitiesHelper.SelectByText("Responsibility", "Howard Tang"); executionLog.Log("EditOppStateIssue", "Select Country"); office_OpportunitiesHelper.SelectByText("Country", "United States"); executionLog.Log("EditOppStateIssue", "Enter zipcode"); office_OpportunitiesHelper.TypeText("ZipCode", "60601"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("EditOppStateIssue", "Click on 'Copy address' button"); office_OpportunitiesHelper.ClickForce("SameAsLocation"); executionLog.Log("EditOppStateIssue", "Click on 'Save' button"); office_OpportunitiesHelper.ClickElement("SaveOpp"); executionLog.Log("EditOppStateIssue", "Verify opp saved successfully"); office_OpportunitiesHelper.WaitForText("Opportunity saved successfully.", 10); executionLog.Log("EditOppStateIssue", "Verify Page title"); VerifyTitle("Details"); executionLog.Log("EditOppStateIssue", "Click on 'Edit' button"); office_OpportunitiesHelper.ClickElement("OppEdit"); executionLog.Log("EditOppStateIssue", "Verify Page title"); VerifyTitle("Edit an Opportunity"); executionLog.Log("EditOppStateIssue", "Redirect at create opportunities page."); VisitOffice("opportunities"); executionLog.Log("EditOppStateIssue", "Verify Page title"); VerifyTitle("Opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("EditOppStateIssue", "Search company name"); office_OpportunitiesHelper.TypeText("SearchCompanyopp", Company); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("EditOppStateIssue", "Select All in responsibity tab"); office_OpportunitiesHelper.SelectByText("Responsibiltytab", "All"); office_OpportunitiesHelper.WaitForWorkAround(3000); executionLog.Log("EditOppStateIssue", "Select first opportunity"); office_OpportunitiesHelper.ClickElement("ClickOn1stOpp"); executionLog.Log("EditOppStateIssue", "Click on delete button."); office_OpportunitiesHelper.ClickElement("DeleteOpp"); executionLog.Log("EditOppStateIssue", "Accept alert message"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("EditOppStateIssue", "Wait for deleted success message."); office_OpportunitiesHelper.WaitForText("1 records deleted successfully", 10); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("EditOppStateIssue"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Edit Opp State Issue"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Edit Opp State Issue", "Bug", "Medium", "Opportunity page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Edit Opp State Issue"); TakeScreenshot("EditOppStateIssue"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\EditOppStateIssue.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("EditOppStateIssue"); string id = loginHelper.getIssueID("Edit Opp State Issue"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\EditOppStateIssue.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Edit Opp State Issue"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Edit Opp State Issue"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("EditOppStateIssue"); executionLog.WriteInExcel("Edit Opp State Issue", Status, JIRA, "Opportunities Management"); } }
public void mergeOpportunitiesConfirmation() { 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); // Random Variables var File = GetPathToFile() + "opportunitysamples.csv"; String JIRA = ""; String Status = "Pass"; try { executionLog.Log("MergeOpportunitiesConfirmation", "Login with valid username and password"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("MergeOpportunitiesConfirmation", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("MergeOpportunitiesConfirmation", "Redirect at import opportunities page."); VisitOffice("opportunities/import"); executionLog.Log("MergeOpportunitiesConfirmation", "Upload a csv file"); office_OpportunitiesHelper.Upload("BrowseFile", File); executionLog.Log("MergeOpportunitiesConfirmation", "Click on Import Opportunities"); office_OpportunitiesHelper.ClickElement("ImportOpp."); office_OpportunitiesHelper.WaitForWorkAround(1000); executionLog.Log("MergeOpportunitiesConfirmation", "Scroll to merge button."); office_OpportunitiesHelper.ScrollDown("//div[@class='row']/div/a[@title='Merge']"); executionLog.Log("MergeOpportunitiesConfirmation", "Click on merge button."); office_OpportunitiesHelper.ClickElement("MergeOpp."); executionLog.Log("MergeOpportunitiesConfirmation", "Click ok to accept alert message"); office_OpportunitiesHelper.AcceptAlert(); executionLog.Log("MergeOpportunitiesConfirmation", "Click on Import Opportunities"); office_OpportunitiesHelper.WaitForText("No records are merged", 10); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("MergeOpportunitiesConfirmation"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Merge Opportunities Confirmation"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Merge Opportunities Confirmation", "Bug", "Medium", "Opportunities page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Merge Opportunities Confirmation"); TakeScreenshot("MergeOpportunitiesConfirmation"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\MergeOpportunitiesConfirmation.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("MergeOpportunitiesConfirmation"); string id = loginHelper.getIssueID("Merge Opportunities Confirmation"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\MergeOpportunitiesConfirmation.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Merge Opportunities Confirmation"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Merge Opportunities Confirmation"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("MergeOpportunitiesConfirmation"); executionLog.WriteInExcel("Merge Opportunities Confirmation", Status, JIRA, "Opportunities Management"); } }
public void bulkUpdateSalesManagerForOpportunities() { string[] username = null; string[] password = null; var 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 office_OpportunitiesHelper = new Office_OpportunitiesHelper(GetWebDriver()); // Variable var FirstName = "Test" + GetRandomNumber(); var LastName = "Tester" + GetRandomNumber(); var Number = "12345678" + GetRandomNumber(); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Login with valid username and password"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Verify Page title"); VerifyTitle("Dashboard"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Visit opportunities page."); VisitOffice("opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Verify page title.."); VerifyTitle("Opportunities"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Click On first Check Box"); office_OpportunitiesHelper.ClickElement("CheckboxOpportunity"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Click On Bulk Update"); office_OpportunitiesHelper.ClickElement("ClickOnBulkUpdate"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Change Sale Manager"); office_OpportunitiesHelper.ClickElement("ChangeSaleManager"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Select Sales Manager"); office_OpportunitiesHelper.SelectDropDownByText("//*[@id='OpportunitySalesManagerUpdateSalesManagerId']", "Howard Tang"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Click on Update button"); office_OpportunitiesHelper.ClickDisplayed("//button[text()='Update']"); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Accept alert message."); office_OpportunitiesHelper.AcceptAlert(); office_OpportunitiesHelper.WaitForWorkAround(2000); executionLog.Log("BulkUpdateSalesManagerForOpportunities", "Wait for success message."); office_OpportunitiesHelper.WaitForText("records updated successfully", 30); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("BulkUpdateSalesManagerForOpportunities"); String Error = executionLog.GetAllTextFile("Error"); Console.WriteLine(Error); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Bulk Update Sales Manager For Opportunities"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Bulk Update Sales Manager For Opportunities", "Bug", "Medium", "Opportunities page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Bulk Update Sales Manager For Opportunities"); TakeScreenshot("BulkUpdateSalesManagerForOpportunities"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\BulkUpdateSalesManagerForOpportunities.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("BulkUpdateSalesManagerForOpportunities"); string id = loginHelper.getIssueID("Bulk Update Sales Manager For Opportunities"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\BulkUpdateSalesManagerForOpportunities.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Bulk Update Sales Manager For Opportunities"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Bulk Update Sales Manager For Opportunities"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("BulkUpdateSalesManagerForOpportunities"); executionLog.WriteInExcel("Bulk Update Sales Manager For Opportunities", Status, JIRA, "Opportunities Management"); } }