public void rateAndFeesPushToOfficeBtn() { string[] username = null; string[] password = null; String JIRA = ""; String Status = "Pass"; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username_corp"); password = oXMLData.getData("settings/Credentials", "password"); // Initializing the objects var executionLog = new ExecutionLog(); var loginHelper = new LoginHelper(GetWebDriver()); var corpMasterdata_RatesAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver()); // Variable var name = "PushToOffice" + RandomNumber(33, 999); var Code = "1" + RandomNumber(1, 99); try { executionLog.Log("RateAndFeesPushToOfficeBtn", "Login with valid credential Username"); Login(username[0], password[0]); executionLog.Log("RateAndFeesPushToOfficeBtn", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("RateAndFeesPushToOfficeBtn", "Navigate to rates and fees page"); VisitCorp("masterdata/rates_fees"); executionLog.Log("RateAndFeesPushToOfficeBtn", "Click on Push To Office Button"); corpMasterdata_RatesAndFeesHelper.VerifyText("ClickOnPushOffice", "Push to Offices"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("RateAndFeesPushToOfficeBtn"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Rate And Fees Push To Office Btn"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Rate And Fees Push To Office Btn", "Bug", "Medium", "Rates and fee page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Rate And Fees Push To Office Btn"); TakeScreenshot("RateAndFeesPushToOfficeBtn"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\RateAndFeesPushToOfficeBtn.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("RateAndFeesPushToOfficeBtn"); string id = loginHelper.getIssueID("Rate And Fees Push To Office Btn"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\RateAndFeesPushToOfficeBtn.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Rate And Fees Push To Office Btn"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Rate And Fees Push To Office Btn"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("RateAndFeesPushToOfficeBtn"); executionLog.WriteInExcel("Rate And Fees Push To Office Btn", Status, JIRA, "Corp Master Data"); } }
public void corporatePortal2() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username_corp"); password = oXMLData.getData("settings/Credentials", "password"); // Initializing the objects var executionLog = new ExecutionLog(); var loginHelper = new LoginHelper(GetWebDriver()); var corpFieldDictionary_SectionsHelper = new CorpFieldDictionary_SectionsHelper(GetWebDriver()); var corpFieldDictionary_TabsHelper = new CorpFieldDictionary_TabsHelper(GetWebDriver()); var corpSystem_SettingsHelper = new CorpSystem_SettingsHelper(GetWebDriver()); var corp_ProfileHelper = new Corp_ProfileHelper(GetWebDriver()); var corpSystem_AuditTrialsHelper = new CorpSystem_AuditTrialsHelper(GetWebDriver()); var corpSystem_EmailTemplatesHelper = new CorpSystem_EmailTemplatesHelper(GetWebDriver()); var corpMasterdata_RatesAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver()); // Variable random var usernme = "Sysprins" + RandomNumber(44, 799999977); var name = "Test" + GetRandomNumber(); var FDNAME = "TEST" + GetRandomNumber(); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("CorporatePortal2", "Login with valid username and password"); Login(username[0], password[0]); executionLog.Log("CorporatePortal2", "Verify Page title"); VerifyTitle("Dashboard"); executionLog.Log("CorporatePortal2", "Visit rates and fee page."); VisitCorp("masterdata/manage_rates_fees"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Enter template name."); corpMasterdata_RatesAndFeesHelper.TypeText("PricingTemplateName", name); executionLog.Log("CorporatePortal2", "Select Processor Type"); corpMasterdata_RatesAndFeesHelper.SelectByText("ProcessorType", "First Data Omaha"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Select Merchant Type"); corpMasterdata_RatesAndFeesHelper.SelectByText("SelectMerchanType", "Ecommerce"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Methos Of Accepting"); corpMasterdata_RatesAndFeesHelper.SelectByText("MethodOfAcceptingCards", "Manually Swiped"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Click on Save button."); corpMasterdata_RatesAndFeesHelper.ClickElement("ClickRateAndFeesSave"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Wait for confirmation."); corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully created!!", 10); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("CorporatePortal2", "Goto masterdata/rates_fees"); VisitCorp("masterdata/rates_fees"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Edit Icon"); corpMasterdata_RatesAndFeesHelper.ClickElement("EditRateAndFeesIcon"); //corpMasterdata_RatesAndFeesHelper.WaitForElementPresent("ClickRateAndFeesSave", 10); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Click on Save"); corpMasterdata_RatesAndFeesHelper.ClickElement("ClickRateAndFeesSave"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Goto masterdata/rates_fees"); VisitCorp("masterdata/rates_fees"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Enter Rate and Fess TEMPLATE NAME"); corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", name); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("CorporatePortal2", "Delete icon"); corpMasterdata_RatesAndFeesHelper.ClickElement("ClickOnDelete"); corpMasterdata_RatesAndFeesHelper.AcceptAlert(); executionLog.Log("CorporatePortal2", "Wait for Confirmation"); corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully deleted!!", 10); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "email_templates"); VisitCorp("email_templates"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Click on Edit"); corpSystem_EmailTemplatesHelper.ClickElement("EditEmailTemplateIcon"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Save"); corpSystem_EmailTemplatesHelper.ClickElement("ClickOnSaveEmailTemp"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Wait for Confirmation"); corpSystem_EmailTemplatesHelper.WaitForText("The email management has been saved", 10); executionLog.Log("CorporatePortal2", "Goto Audit trial"); VisitCorp("audit-trails"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Click on Audit Trail name"); corpSystem_AuditTrialsHelper.ClickElement("ClickOnAuditTrialMame"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Audit trial Save button"); corpSystem_AuditTrialsHelper.ClickElement("AduiltTrialSaveBtn"); executionLog.Log("CorporatePortal2", "Wait for Confirmation"); corpSystem_AuditTrialsHelper.WaitForText("Options Saved.", 10); executionLog.Log("CorporatePortal2", "got to my profile"); VisitCorp("myprofile"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Click Edit"); corp_ProfileHelper.ClickElement("EditProfile"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Click on Save"); corp_ProfileHelper.ClickElement("Save"); corpMasterdata_RatesAndFeesHelper.AcceptAlert(); executionLog.Log("CorporatePortal2", "Wait for Confirmation"); corp_ProfileHelper.WaitForText("Your profile has been successfully updated", 10); executionLog.Log("CorporatePortal2", "Redirect at settings"); VisitCorp("settings"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Click Save Edit Profile"); corpSystem_SettingsHelper.ClickElement("ClickSaveEditProfile"); executionLog.Log("CorporatePortal2", "Wait for confirmation"); corpSystem_SettingsHelper.WaitForText("Settings updated successfully", 20); executionLog.Log("CorporatePortal2", "go to tabs"); VisitCorp("tabs"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Create"); corpFieldDictionary_TabsHelper.ClickElement("AddNewTabs"); corpFieldDictionary_TabsHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Tab Name"); corpFieldDictionary_TabsHelper.TypeText("TabName", name); executionLog.Log("CorporatePortal2", "Click on Save"); corpFieldDictionary_TabsHelper.ClickOnDisplayed("FDSaveButton"); corpFieldDictionary_TabsHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Wait for Confirmation"); corpFieldDictionary_TabsHelper.WaitForText("Tab Created Successfully", 10); executionLog.Log("CorporatePortal2", "Go to Sections"); VisitCorp("sections"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("CorporatePortal2", "Create Button"); corpFieldDictionary_SectionsHelper.ClickElement("ClickCreateButton"); corpFieldDictionary_SectionsHelper.WaitForWorkAround(3000); executionLog.Log("CorporatePortal2", "Select tab"); corpFieldDictionary_SectionsHelper.SelectByText("TabNameFieldDicSevtion", name); executionLog.Log("CorporatePortal2", "Section Name"); corpFieldDictionary_SectionsHelper.TypeText("FDSectionName", FDNAME); executionLog.Log("CorporatePortal2", "Save"); corpFieldDictionary_SectionsHelper.ClickOnDisplayed("FDSaveButton"); executionLog.Log("CorporatePortal2", "Confirmation"); corpFieldDictionary_SectionsHelper.VerifyAlertText("Section Created Successfully"); corpFieldDictionary_SectionsHelper.AcceptAlert(); corpFieldDictionary_SectionsHelper.WaitForWorkAround(3000); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("CorporatePortal2"); String Error = executionLog.GetAllTextFile("Error"); Console.WriteLine(Error); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Corporate Portal 2"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Corporate Portal 2", "Bug", "Medium", "Corp page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Corporate Portal 2"); TakeScreenshot("CorporatePortal2"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\CorporatePortal2.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("CorporatePortal2"); string id = loginHelper.getIssueID("Corporate Portal 2"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\CorporatePortal2.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Corporate Portal 2"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Corporate Portal 2"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("CorporatePortal2"); executionLog.WriteInExcel("Corporate Portal 2", Status, JIRA, "Corp Modules"); } }
public void ratesAndFeesCloneIssue() { string[] username = null; string[] password = null; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); // Initializing the objects var executionLog = new ExecutionLog(); var loginHelper = new LoginHelper(GetWebDriver()); var corpMasterdata_RatesAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver()); username = oXMLData.getData("settings/Credentials", "username_corp"); password = oXMLData.getData("settings/Credentials", "password"); // Variable var TemplateName = "Test" + GetRandomNumber(); var Clone = "Clone of " + TemplateName; String JIRA = ""; String Status = "Pass"; try { executionLog.Log("RatesAndFeesCloneIssue", "Login with valid credentials"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("RatesAndFeesCloneIssue", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("RatesAndFeesCloneIssue", "Redirect To URL"); VisitCorp("masterdata/manage_rates_fees"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("RatesAndFeesCloneIssue", "Verify Page title"); VerifyTitle("Manage Master Rates & Fees"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("RatesAndFeesCloneIssue", "Enter template name"); corpMasterdata_RatesAndFeesHelper.TypeText("PricingTemplateName", TemplateName); executionLog.Log("RatesAndFeesCloneIssue", "Select Processor Type"); corpMasterdata_RatesAndFeesHelper.SelectByText("ProcessorType", "First Data Omaha"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("RatesAndFeesCloneIssue", "Select Merchant Type"); corpMasterdata_RatesAndFeesHelper.SelectByText("SelectMerchanType", "Ecommerce"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Method of accepting card"); corpMasterdata_RatesAndFeesHelper.SelectByText("MethodOfAcceptingCards", "Ecommerce"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Select Discount Frequency"); corpMasterdata_RatesAndFeesHelper.SelectByText("DiscountFrequency", "Monthly"); //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("RatesAndFeesCloneIssue", "Select Debit Network InterFace Pass Through"); corpMasterdata_RatesAndFeesHelper.SelectByText("DebitNetworkInterFacePassThrough", "Yes"); executionLog.Log("RatesAndFeesCloneIssue", "Click on Save Rates And fees"); corpMasterdata_RatesAndFeesHelper.ForceClick("SaveEdit"); executionLog.Log("RatesAndFeesCloneIssue", "Verify Text The Rates is successfully created!!"); corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully created!!", 10); executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee by template name"); corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", TemplateName); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Click On Copy Master Rates and fee."); corpMasterdata_RatesAndFeesHelper.ClickElement("CloneRatesAndFee"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("RatesAndFeesCloneIssue", "Click On Save button"); corpMasterdata_RatesAndFeesHelper.ForceClick("SaveEdit"); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000); executionLog.Log("RatesAndFeesCloneIssue", "Search Cloned Rates and fee."); corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", Clone); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Verify clone rates and fee."); corpMasterdata_RatesAndFeesHelper.VerifyText("Clone1", Clone); executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee"); corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", TemplateName); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Click On Delete"); corpMasterdata_RatesAndFeesHelper.ClickElement("ClickOnDelete"); executionLog.Log("RatesAndFeesCloneIssue", "Accept Alert"); corpMasterdata_RatesAndFeesHelper.AcceptAlert(); executionLog.Log("RatesAndFeesCloneIssue", "Verify Text"); corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully deleted!!", 40); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000); executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee"); corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", Clone); corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("RatesAndFeesCloneIssue", "Click On Delete"); corpMasterdata_RatesAndFeesHelper.ClickElement("ClickOnDelete"); executionLog.Log("RatesAndFeesCloneIssue", "Accept Alert"); corpMasterdata_RatesAndFeesHelper.AcceptAlert(); executionLog.Log("RatesAndFeesCloneIssue", "Verify Text"); corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully deleted!!", 40); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("RatesAndFeesCloneIssue"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Rates And Fees Clone Issue"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Rates And Fees Clone Issue", "Bug", "Medium", "rates And Fees page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Rates And Fees Clone Issue"); TakeScreenshot("RatesAndFeesCloneIssue"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\RatesAndFeesCloneIssue.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("RatesAndFeesCloneIssue"); string id = loginHelper.getIssueID("Rates And Fees Clone Issue"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\RatesAndFeesCloneIssue.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Rates And Fees Clone Issue"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Rates And Fees Clone Issue"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("RatesAndFeesCloneIssue"); executionLog.WriteInExcel("Rates And Fees Clone Issue", Status, JIRA, "Office Master Data"); } }
public void corpMasterDataRateAndFeesUrlChange() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSettings.xml"); username = oXMLData.getData("settings/Credentials", "username_corp"); password = oXMLData.getData("settings/Credentials", "password"); // Initializing the objects var executionLog = new ExecutionLog(); var loginHelper = new LoginHelper(GetWebDriver()); var corp_MasterData_RateAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver()); // Variable var FirstName = "Test" + GetRandomNumber(); var LastName = "Tester" + GetRandomNumber(); var Number = "12345678" + GetRandomNumber(); String JIRA = ""; String Status = "Pass"; try { executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Login with valid username and password"); Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Verify Page title"); VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Go To Employee"); VisitCorp("masterdata/rates_fees"); executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Click On any Rate and Fees"); corp_MasterData_RateAndFeesHelper.ClickElement("CorpRateFessClickAny"); corp_MasterData_RateAndFeesHelper.WaitForWorkAround(2000); executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Change the url with the url number of another Corp"); VisitCorp("masterdata/manage_rates_fees/33"); corp_MasterData_RateAndFeesHelper.WaitForWorkAround(1000); executionLog.Log("CorpMasterDataRateAndFeesUrlChange", "Verify Validation"); corp_MasterData_RateAndFeesHelper.WaitForText("The Master rate is does not exists.", 10); } catch (Exception e) { executionLog.Log("Error", e.StackTrace); Status = "Fail"; String counter = executionLog.readLastLine("counter"); String Description = executionLog.GetAllTextFile("CorpMasterDataRateAndFeesUrlChange"); String Error = executionLog.GetAllTextFile("Error"); if (counter == "") { counter = "0"; } bool result = loginHelper.CheckExstingIssue("Corp Master Data Rate And Fees Url Change"); if (!result) { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); loginHelper.CreateIssue("Corp Master Data Rate And Fees Url Change", "Bug", "Medium", "Corp rates and fee page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error); string id = loginHelper.getIssueID("Corp Master Data Rate And Fees Url Change"); TakeScreenshot("CorpMasterDataRateAndFeesUrlChange"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\CorpMasterDataRateAndFeesUrlChange.png"; loginHelper.AddAttachment(location, id); } } else { if (Int16.Parse(counter) < 9) { executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString()); TakeScreenshot("CorpMasterDataRateAndFeesUrlChange"); string id = loginHelper.getIssueID("Corp Master Data Rate And Fees Url Change"); string directoryName = loginHelper.GetnewDirectoryName(GetPath()); var location = directoryName + "\\CorpMasterDataRateAndFeesUrlChange.png"; loginHelper.AddAttachment(location, id); loginHelper.AddComment(loginHelper.getIssueID("Corp Master Data Rate And Fees Url Change"), "This issue is still occurring"); } } JIRA = loginHelper.getIssueID("Corp Master Data Rate And Fees Url Change"); // executionLog.DeleteFile("Error"); throw; } finally { executionLog.DeleteFile("CorpMasterDataRateAndFeesUrlChange"); executionLog.WriteInExcel("Corp Master Data Rate And Fees Url Change", Status, JIRA, "Corp Master Data Rates And Fees"); } }