public void TC016_VerifyChartValueShouldGetUpdatedAccordingToFilterFromPivotOptions(String Bname) { TestFixtureSetUp(Bname, "TC016-Verify Chart value should get updated according to filter from Pivot Options"); try { loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.newVerifyHomePage(); homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand Monthly"); homePage.selectOptionFromSideNavigationBar("4. Ad Ex Trend - Yearly"); summaryTags.clickOnSingleSummaryTag("Last Year"); searchPage.VerifyNewDateRangeSectionOnScreen("Last Year"); searchPage.selectNewDateRangeOptionFromSection("Custom Range"); searchPage.setCustomDateRange("01/01/2018", "", true); searchPage.clickButtonOnSearchOptions("Apply"); homePage.newVerifyHomePage(); charts.VerifyCharts(false); string[,] dataGrid1 = charts.captureDataFromChart(""); pivotGrid.VerifyPivotOptionsPopup(); pivotGrid.select_deselectOptionFromPivotOptionsPopup("Total Media Spend Last Year (LY)"); pivotGrid.clickButtonOnPivotOptionsPopup("Apply"); charts.VerifyCharts(false); string[,] dataGrid2 = charts.captureDataFromChart(""); charts.VerifyDataFromTwoCharts(dataGrid1, dataGrid2, false); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite12_Reskin_Charts_TC016"); throw; } driver.Quit(); }
public void TC001_VerifyPivotOptionsFunctionality(String Bname) { TestFixtureSetUp(Bname, "TC001-Verify Pivot options functionality."); try { loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.newVerifyHomePage(); homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand Canada"); homePage.selectOptionFromSideNavigationBar("Print Report by Market"); homePage.newVerifyHomePage(); charts.VerifyPivotTable(); pivotGrid.VerifyPivotOptionsPopup(); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite09_Reskin_PivotGrid_TC001"); throw; } driver.Quit(); }