public void Dashboard_ConfiguredQueues_ValuationQs_ClickAdd()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     dash.ConfiguredQueue().ValuationQueues().GoToAddWorkQ();
     Test.result = "Passed";
 }
 public void Dashboard_CollapseValuationMenuItem()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     dash.DailyValuations().CollapseSection();
     Test.result = "Passed";
 }
 public void Dashboard_ClickHomeRegulationButton()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     dash.ClickHomeRegulationButton();
     Test.result = "Passed";
 }
 public void Dashboard_WorkQ_VerifyReadyQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue readyQueue = dash.DailyTrades().Valid().ReadyQueue();
     readyQueue.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_VerifyOtherQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue other = dash.DailyTrades().Invalid().OtherQueue();
     other.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_VerifyEmirConfirmedQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue confirmed = dash.DailyTrades().Valid().ConfirmedQueue();
     confirmed.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_VerifyConfirmationRequiredQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue confirmation = dash.DailyTrades().InProgress().ConfirmationRequiredQueue();
     confirmation.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_VerifyAwaitingAutoReValidationQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue awaiting = dash.DailyTrades().InProgress().AwaitingAutoRevalidationQueue();
     awaiting.CheckResultTableAppears();
     result = "Passed";
 }
 public void WorkQ_SortColumnDesc()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue allTrades = dash.DailyTrades().Invalid().RepairRequiredQueue();
     allTrades.SortColumnsDesc("Created Date");
     Test.result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_InValid_OtherQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue other = dash.DailyCollateral().Invalid().OtherQueue();
     other.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_Valid_AwaitingParentConfirmationQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue awaiting = dash.DailyCollateral().Valid().AwaitingParentConfirmationQueue();
     awaiting.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_InValid_RepairQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue repair = dash.DailyCollateral().Invalid().RepairRequiredQueue();
     repair.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_Valuations_InValid_RejectedQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue rejected = dash.DailyValuations().Invalid().RejectedQueue();
     rejected.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_ExpandTradesMenuItem()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     dash.DailyTrades().CollapseSection();
     dash.DailyTrades().ExpandSection();
     Test.result = "Passed";
 }
 public void WorkQ_SearchResultNavigation_ClickNext()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue allTrades = dash.DailyTrades().Invalid().RepairRequiredQueue();
     allTrades.ClickNext();
     Test.result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_InProgress_UnmatchedQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue unmached = dash.DailyCollateral().InProgress().UnmachedQueue();
     unmached.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_InProgress_AwaitingQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue awaiting = dash.DailyCollateral().InProgress().AwaitingQueue();
     awaiting.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_CheckApplicationHistory()
 {
     storeResults = true;
     ImportTrade.Trade("no");
     PO_Dashboard.GoTo();
     PO_Dashboard dash = new PO_Dashboard();
     dash.CheckHistory();
     Test.result = "Passed";
 }
        public void CollateralNotVisisible_CollateralNotVisisible()
        {
            storeResults = true;

            PO_Dashboard dash = new PO_Dashboard();
            PO_Dashboard.GoTo();

            PO_EMIRQueue allTrades = PO_Dashboard.GoToEMIRConfiguredQueue("Awaiting Collateral");
            allTrades.SearchBySourceTradeIDRecordNotFound(Test.tradeID + "STI");

            Test.result = "Passed";
        }
        public void Dashboard_VerifyCollateralInprogressCountsSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int awaiting = dash.DailyCollateral().InProgress().GetAwaitingCount();
            int unmatched = dash.DailyCollateral().InProgress().GetUnmatchedCount();

            Assert.IsTrue(awaiting + unmatched == dash.DailyCollateral().InProgress().GetTotal());

            Test.result = "Passed";
        }
        public void Dashboard_VerifyCollateralInvalidCountsSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int repair = dash.DailyCollateral().Invalid().GetRepairRequiredCount();
            int rejected = dash.DailyCollateral().Invalid().GetRejectedCount();
            int other = dash.DailyCollateral().Invalid().GetOtherCount();

            Assert.IsTrue(repair + rejected + other == dash.DailyCollateral().Invalid().GetTotal());

            Test.result = "Passed";
        }
        public void Dashboard_VerifyCollateralValidCountsSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int ready = dash.DailyCollateral().Valid().GetReadyCount();
            int reported = dash.DailyCollateral().Valid().GetReported();
            int confirmed = dash.DailyCollateral().Valid().GetConfirmed();
            int awaiting = dash.DailyCollateral().Valid().GetAwaitingParentConfirmationCount();

            Assert.IsTrue(ready + awaiting + reported + confirmed == dash.DailyCollateral().Valid().GetTotal());

            Test.result = "Passed";
        }
        public void Dashboard_VerifyCollateralSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int valid = dash.DailyCollateral().Valid().GetTotal();

            int inProgress = dash.DailyCollateral().InProgress().GetTotal();

            int invalid = dash.DailyCollateral().Invalid().GetTotal();

            Assert.IsTrue(valid + inProgress + invalid == dash.DailyCollateral().GetTotal());

            Test.result = "Passed";
        }
        public void Dashboard_CheckApplicationHistory()
        {
            storeResults = true;
            ImportTrade.Trade("no");
            PO_Dashboard.GoTo();
            PO_Dashboard dash = new PO_Dashboard();
            dash.CheckHistory();

            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            ImportTrade.TestSecondTenant();

            Test.result = "Passed";
        }
        public void EditCollateral_EditCollateral()
        {
            storeResults = true;

            ImportCollateral.TREMIR_R003();
            Thread.Sleep(5000);
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithRegularUser();

            PO_Dashboard dash = new PO_Dashboard();
            PO_Dashboard.GoTo();

            PO_EMIRQueue allTrades = PO_Dashboard.GoToEMIRConfiguredQueue("Awaiting Collateral");
            allTrades.SearchBySourceTradeID(Test.tradeID + "STI");

            // Click on result and edit the record
            allTrades.OpenFirstRecord();
            PO_EditEmirCollateralPage poCollaterals = new PO_EditEmirCollateralPage();
            poCollaterals.EditCollateral("200");

            Test.result = "Passed";
        }
        public void TC14623_Dashboard_VerifyInProgressCountsSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int revalidation = dash.DailyTrades()
                .InProgress()
                .GetAwaitingAutoRevalidationCount();
            int cleaningRequired = dash.DailyTrades()
                .InProgress().GetClearingRequiredCount();
            int confirmationRequired = dash.DailyTrades().InProgress().GetConfirmationRequiredCount();

            Assert.IsTrue(revalidation + cleaningRequired + confirmationRequired == dash.DailyTrades().InProgress().GetTotal());

            Test.result = "Passed";
        }
        public void Dashboard_VerifyValidCountsSum()
        {
            storeResults = true;
            PO_Dashboard dash = new PO_Dashboard();

            int ready = dash.DailyTrades()
                .Valid()
                .GetReadyCount();
            int reported = dash.DailyTrades()
                .Valid().GetReported();
            int confirmed = dash.DailyTrades().Valid().GetConfirmed();

            Assert.IsTrue(ready + reported + confirmed == dash.DailyTrades().Valid().GetTotal());

            Test.result = "Passed";
        }
 public void Dashboard_WorkQ_VerifyRepairRequiredQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue repair = dash.DailyTrades().Invalid().RepairRequiredQueue();
     repair.CheckResultTableAppears();
     result = "Passed";
 }
 public void Dashboard_WorkQ_Collateral_Valid_ReportedQ()
 {
     storeResults = true;
     PO_Dashboard dash = new PO_Dashboard();
     PO_EMIRQueue reported = dash.DailyCollateral().Valid().ReportedQueue();
     reported.CheckResultTableAppears();
     result = "Passed";
 }