コード例 #1
0
 public BaseOwnershipProfileTab verifyTickerInCurrentHoldingsTableEntries() {
   defaultTickerHoldings.verifyKeyPresent(
       "Current Position in " + defaultTicker + " - Value / Change");
   defaultTickerHoldings.verifyKeyPresent(
       "Current Position in " + defaultTicker + " - Shares / Change");
   return this;
 }
コード例 #2
0
 public BaseOwnershipProfileTab verifyCurrencyInOwnershipSummaryTable() {
   ownershipSummary.verifyKeyPresent("Portfolio Value(" + currency + ")");
   ownershipSummary.verifyKeyPresent("New Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Increased Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Decreased Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Unchanged Positions(" + currency + ")");
   return this;
 }
コード例 #3
0
 private void setupTopBuySellTable() {
   SenchaWebElement topBuySellTableContainer = topBuySellCarousel.getActiveCarouselItem();
   Assert.assertNotNull(
       topBuySellTableContainer,
       getScreenName() + ": Top Buy / Sell table container is not found.");
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
 }
コード例 #4
0
 public String getFirstSecurityNameInTopBuysAndSellsTable() {
   if (getSelectedTab().equals(EQ)) {
     throw new Error(
         "Security names are listed in Top Buy/Sell table "
             + "on Fixed Income sub-tab only. Equity sub-tab contains Company names.");
   }
   return topBuySellTable.getKey(1);
 }
コード例 #5
0
 private void setupDefaultTickerTable() {
   SenchaWebElement defaultTickerCurrentHoldingsContainer =
       Driver.findIfExists(CURRENT_HOLDINGS_PUBLIC_SELECTOR);
   Assert.assertNotNull(
       defaultTickerCurrentHoldingsContainer,
       getScreenName()
           + ": "
           + System.getProperty("test.defaultTicker")
           + " current holdings table is missing.");
   defaultTickerHoldings.setContainer(defaultTickerCurrentHoldingsContainer);
 }
コード例 #6
0
  public BaseOwnershipProfileTab verifyCurrencyInTopHoldingsHeader() {
    String header = "Top Holdings (" + currency + ")";
    String currentlyActiveTab = getSelectedTab();

    selectEquityTab();
    topHoldings.verifyHeader(header);

    selectFixedIncomeTab();
    topHoldings.verifyHeader(header);

    switch (currentlyActiveTab) {
      case EQ:
        selectEquityTab();
        break;
      case FI:
        selectFixedIncomeTab();
        break;
      default:
        throw new Error("Unknown Ownership tab: '" + currentlyActiveTab + "'.");
    }
    return this;
  }
コード例 #7
0
 public BaseOwnershipProfileTab selectTopBuySellTable(String expectedHeader) {
   expectedHeader = expectedHeader + " (" + currency + ")";
   String currentHeader = getActiveTopBuySellTableHeader();
   if (!currentHeader.equalsIgnoreCase(expectedHeader)) {
     topBuySellCarousel.goToPage(0);
     while (!getActiveTopBuySellTableHeader().equalsIgnoreCase(expectedHeader)) {
       if (topBuySellCarousel.hasNext()) {
         topBuySellCarousel.goForward();
       } else {
         throw new Error(
             "Could not reach '"
                 + expectedHeader
                 + "' table using Carousel: no such table found.");
       }
     }
   }
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
   return this;
 }
コード例 #8
0
 private void setupOwnershipSummaryTable() {
   SenchaWebElement ownershipSummaryContainer = Driver.findIfExists(OWNERSHIP_SUMMARY_LOCATOR);
   Assert.assertNotNull(
       ownershipSummaryContainer, getScreenName() + ": ownership summary table is missing.");
   defaultTickerHoldings.setContainer(ownershipSummaryContainer);
 }
コード例 #9
0
 protected String getActiveTopBuySellTableHeader() {
   SenchaWebElement container = topBuySellCarousel.getActiveCarouselItem();
   topBuySellTable.setContainer(container);
   return topBuySellTable.getHeader().toUpperCase();
 }
コード例 #10
0
 public BaseOwnershipProfileTab clickFirstSecurityInTopBuysAndSellsTable() {
   topBuySellTable.clickKeyCell(1);
   return this;
 }
コード例 #11
0
 public BaseOwnershipProfileTab verifyTickerInCurrentHoldingsTableHeader() {
   String tableHeader = defaultTicker + " Holdings";
   defaultTickerHoldings.verifyHeader(tableHeader);
   return this;
 }
コード例 #12
0
 public FiSecurityFullProfile openFixedIncomeProfileFromTopHoldingsTable(String fixedIncomeName) {
   selectFixedIncomeTab();
   topHoldings.clickKeyCell(fixedIncomeName);
   return new FiSecurityFullProfile();
 }
コード例 #13
0
 public String getFirstFiInTopHoldingsTable() {
   selectFixedIncomeTab();
   return topHoldings.getKey(1);
 }
コード例 #14
0
 public BaseOwnershipProfileTab clickFirstSecurityInTopHoldingsTable() {
   topHoldings.clickKeyCell(1);
   return this;
 }
コード例 #15
0
 public EqSecurityFullProfile openEquityProfileFromTopHoldingsTable(String equityName) {
   selectEquityTab();
   topHoldings.clickKeyCell(equityName);
   return new EqSecurityFullProfile();
 }
コード例 #16
0
 private void setupTopHoldingsTable() {
   SenchaWebElement topHoldingsContainer = Driver.findIfExists(TOP_HOLDINGS_LOCATOR);
   Assert.assertNotNull(
       topHoldingsContainer, getScreenName() + ": top holdings table is missing.");
   defaultTickerHoldings.setContainer(topHoldingsContainer);
 }
コード例 #17
0
 public BaseOwnershipProfileTab verifyCurrencyInTopBuySellTableHeader(String header) {
   selectTopBuySellTable(header);
   topBuySellTable.verifyHeader(header + " (" + currency + ")");
   return this;
 }
コード例 #18
0
 public String getFirstEquityInTopHoldingsTable() {
   selectEquityTab();
   return topHoldings.getKey(1);
 }