public void TC14466_WorkQ_CreateWorkQ()
        {
            try
            {

                storeResults = true;
                PO_Dashboard.GoTo();
                PO_ManageWorkQueues workQueue = PO_Dashboard.GoToManageWorkQueuesTrades();
                workQueue.CreateLastWeekTradesQueue();
                PO_Dashboard.GoTo();
                PO_EMIRQueue readyQueue = PO_Dashboard.GoToEMIRConfiguredQueue(Test.extRef);
                readyQueue.CheckResultTableAppears();
                PO_Dashboard.GoTo();
                PO_Dashboard.GoToManageWorkQueuesTrades();

                PO_Dashboard.LogOff();
                PO_LoginPage login = new PO_LoginPage();
                login.LoginWithTenantB_EMIRUser01();
                workQueue = PO_Dashboard.GoToManageWorkQueuesTrades();
                workQueue.CheckWorkQueueNotVisible(Test.extRef);

                PO_Dashboard.LogOff();
                login.LoginWithRegularUser();
                workQueue = PO_Dashboard.GoToManageWorkQueuesTrades();
                workQueue.DeleteWorkQueue(Test.extRef);
            }
            catch (Exception)
            {
                PO_Dashboard.GoTo();
                PO_ManageWorkQueues workQueue = PO_Dashboard.GoToManageWorkQueuesTrades();
                workQueue.DeleteWorkQueue(Test.extRef);
            }

            Test.result = "Passed";
        }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.InitiateBrowser();
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantA_EMIRUser();
     searchTerm = MTUtils.ImportTrade("No");
     PO_UserAccountButton.LogOff();
     login.LoginWithTenantB_EMIRUser01();
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithTenantB_EMIRUser01();
     PO_ExtRefIn_PopUp createRefIns = PO_Dashboard.GoToExternalRefIns();
     PO_ExtRefIn_CreateRefIn createExtRefIn = createRefIns.ClickCreate();
     createExtRefIn.CreateExtRef("Valuation Source", "TREMIR");
     createRefIns.VerifyExtRefInIsCreated();
     createRefIns.ClosePopUp();
 }
        public void MTImportPosition_TREMIR_R001_NonDelegated_DTCC()
        {
            storeResults = true;
            ImportPosition.TREMIR_R001_NonDelegated_DTCC();

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

            Test.result = "Passed";
        }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantA_EMIRUser();
     PO_ReferenceDatasPopUp referenceDatas = PO_Dashboard.GoToClearedPopUp();
     referenceDatas.CreateNewReferenceData()
         .Create();
     referenceDatas.VerifyReferenceDataCreated();
     referenceDatas.Close();
     PO_UserAccountButton.LogOff();
     login.LoginWithTenantB_EMIRUser01();
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantA_EMIRUser();
     PO_CommodityDetail_PopUp referenceDatas = PO_Dashboard.GoToCommodityDetailsPopUp();
     referenceDatas.CreateNewComDetails()
         .Create();
     referenceDatas.VerifyComDetailCreated();
     referenceDatas.Close();
     PO_UserAccountButton.LogOff();
     login.LoginWithTenantB_EMIRUser01();
 }
        public void MTImportColl_TREMIR_R003()
        {
            storeResults = true;
            ImportCollateral.TREMIR_R003();

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

            Test.result = "Passed";
        }
        public void MTImportVal_TREMIR_R002()
        {
            storeResults = true;
            ImportValuation.ImportValuation_TREMIR_R002();

            Thread.Sleep(4000);
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            ImportValuation.TestSecondTenant();

            Test.result = "Passed";
        }
        public void MTImportColl_GenXML_ByUTITest()
        {
            storeResults = true;
            ImportCollateral.ImportNewCollateralGenXMLByUTI();

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

            Test.result = "Passed";
        }
        public void MTImportColl_GenXML_Delegated_REGIS()
        {
            storeResults = true;
            ImportCollateral.GenXML_Delegated();

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

            Test.result = "Passed";
        }
        public void MTImportTrade_GenXML()
        {
            storeResults = true;
            ImportTrade.Trade("No");

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

            Test.result = "Passed";
        }
 public void Sources_ViewOutbound()
 {
     storeResults = true;
     PO_OutboundSourcesPopUp sources = PO_OutboundSourcesPopUp.GoToOutboundSources();
     string searchTerm = PO_OutboundSourcesPopUp.GetFirstSource();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantB_EMIRUser01();
     PO_OutboundSourcesPopUp.GoToOutboundSources();
     PO_OutboundSourcesPopUp.SearchForSource(searchTerm);
     PO_OutboundSourcesPopUp.CheckNoEntries();
     Test.result = "Passed";
 }
        public void TC14499_SendValuation_REGIS()
        {
            storeResults = true;
            Send.SendValuation(TargetSettings_SendValuation.REGIS);

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendCollaterals sendTradesPage = PO_Dashboard.GoToSendCollateralsByTargetSetting();
            sendTradesPage.SelectTargetSEtting(TargetSettings_SendValuation.REGIS);
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }
        public void TC14505_SendCollateral_DTCC()
        {
            storeResults = true;
            Send.SendCollateral(TargetSettings_SendCollateral.dtcc);

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendCollaterals sendTradesPage = PO_Dashboard.GoToSendCollateralsByTargetSetting();
            sendTradesPage.SelectTargetSEtting(TargetSettings_SendTrades.SendRegisTRNewTrades);
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }
        public void SetUp()
        {
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();
            Test.SetTestName(TestContext);

            operationsPopUp = PO_Dashboard.GoToAuditOutbound();
            countMsg = operationsPopUp.GetAuditsCountMsg();

            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
            operationsPopUp = PO_Dashboard.GoToAuditOutbound();
        }
        public void TC14489_SendTrade_DTCC()
        {
            storeResults = true;
            Send.SendTrade(TargetSettings_SendTrades.SendDTCCETDTradeNewRecords);
            EmirUtils.VerifyEmirConfirmed();

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendTradesByTargetSetting sendTradesPage = PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTradesPage.SelectTargetSEtting(TargetSettings_SendTrades.SendDTCCETDTradeNewRecords);
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }
        public void TC14501_SendCollateral_REGIS()
        {
            storeResults = true;
            ImportCollateral.GenXML_Delegated();
            Send.SendCollateral(TargetSettings_SendCollateral.regis);

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendCollaterals sendTradesPage = PO_Dashboard.GoToSendCollateralsByTargetSetting();
            sendTradesPage.SelectTargetSEtting(TargetSettings_SendCollateral.regis);
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            refIns = PO_Dashboard.GoToExternalRefIns();
            PO_ExtRefIn_CreateRefIn createExtRefIn = refIns.ClickCreate();
            createExtRefIn.CreateExtRef("Valuation Source", "TREMIR");
            refIns.VerifyExtRefInIsCreated();
            refIns.ClosePopUp();
            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
        }
        public void MTImportColl_GenXML_ByPortfolioCode()
        {
            storeResults = true;
            ImportCollateral.GenXML_ByPortfolioCode();

            Thread.Sleep(3000);
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            ImportCollateral.TestSecondTenant();
            Thread.Sleep(3000);
            PO_Dashboard.LogOff();

            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 SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            markets = PO_Dashboard.GoToMarkets();
            markets.CreateMarket()
                .Save();
            markets.VerifyMarketCreated();
            markets.Close();
            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
        }
        public void MTImportTrade_TREMIR_R010_Delegated_REGIS()
        {
            storeResults = true;
            ImportTrade.TREMIR_R010_Delegated_REGIS();

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

            Test.result = "Passed";
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            PO_BICPopUp bic = PO_Dashboard.GoToBICPopUp();
            bic.CreateNewBicCode()
                .Create();
            bic.VerifyBicCodeCreated();
            bic.Close();

            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            bicCode = EmirUtils.CreateBicCode();
            legEnt = PO_Dashboard.GoToLegalEntities();
            legEnt.CreateLegalEntity(bicCode)
                .Save();
            legEnt.VerifyLegalEntityCreated();
            legEnt.Close();

            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            Test.SetTestName(TestContext);
            Test.LoginAsRegularUser();
            refOut = PO_Dashboard.GoToExternalRefOuts();
            PO_ExtRefOut_CreateRefOut createExtRefOut = refOut.ClickCreate();
            createExtRefOut.CreateExtRef("Country", "DTCC");
            refOut.VerifyExtRefOutIsCreated();
            refOut.ClosePopUp();
            PO_UserAccountButton.LogOff();
            login.LoginWithTenantB_EMIRUser01();
        }
        public void SendTradeByTradeRepoAccount_DTCC()
        {
            storeResults = true;
            PO_SendTradesByTradeRepo sendTrades = PO_Dashboard.GoToSendTradesByTradeRepo();
            sendTrades.SelectTradeRepo(TargetSettings_SendByTradeRepo.TradeRepo_DTCC);
            sendTrades.CheckIfTradeAvailableForSending(tradeID1 + "STI", 10, TargetSettings_SendByTradeRepo.TradeRepo_DTCC);
            sendTrades.CheckIfTradeAvailableForSending(tradeID2 + "STI", 10, TargetSettings_SendByTradeRepo.TradeRepo_DTCC);
            sendTrades.Send();
            sendTrades.VerifySendingByTargetSetting(TargetSettings_SendByTradeRepo.TradeRepo_DTCC);

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendTradesByTargetSetting sendTradesPage = PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTradesPage.SelectTargetSEtting(TargetSettings_SendByTradeRepo.TradeRepo_DTCC);
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.InitiateBrowser();
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantA_EMIRUser();
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.CreateNewCounterParty()
         .Create();
     cp.VerifyCounterPartyIsCreated();
     cp.ClosePopUp();
     PO_Dashboard.LogOff();
     login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithTenantB_EMIRUser01();
 }
        public void ResponsesNotVisible_CrossTenant_DTCC()
        {
            storeResults = true;

            Send.SendTrade(TargetSettings_SendTrades.SendDTCCETDPositionNewRecords);

            EmirUtils.VerifyEmirConfirmed();

            PO_AuditResponsesPopUp responses = PO_Dashboard.GoToAuditResponses();
            string reference = responses.GetLatestResponse();

            PO_UserAccountButton.LogOff();

            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();

            PO_Dashboard.GoToAuditResponses();

            responses.CheckIfRefernceIsNotVisible(reference);

            Test.result = "Passed";
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            product = PO_Dashboard.GoToProducts();
            product.CreateNewProduct()
                .Create();
            product.VerifyProductIsCreated();
            product.CloseWindow();
            PO_Dashboard.LogOff();

            login = new PO_LoginPage();
            PO_Dashboard dash = login.LoginWithIEMIRUser2();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();

            login.LoginWithTenantB_EMIRUser01();
        }
        public void TC14497_SendCompression()
        {
            storeResults = true;
            CreateImportFile.TREMIR_R010_CompressionFile();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importCompression = new PO_ImportManualTradeSource();
            importCompression.ImportTREMIRFileR010()
                .Import();
            importCompression.VerifyFileIsUploaded();

            PO_UTISearch.GoTo(Test.UTI, 50);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyReadyToSend();

            PO_SendTradesByTargetSetting sendTrades = PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTrades.SelectTargetSEtting("Send RegisTR New Trades (EMIR, REGIS-TR)");
            sendTrades.Send();
            sendTrades.VerifySendingByTargetSetting("Send RegisTR New Trades (EMIR, REGIS-TR)");

            PO_UTISearch.GoTo(Test.UTI, 50);
            emirTransactionPage.VerifyReadyToSend(180);

            PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTrades.SelectTargetSEtting("Send RegisTR Cancel Trades (EMIR, REGIS-TR)");
            sendTrades.Send();
            sendTrades.VerifySendingByTargetSetting("Send RegisTR Cancel Trades (EMIR, REGIS-TR)");

            PO_UTISearch.GoTo(Test.UTI, 50);
            emirTransactionPage.VerifySendSuccessfully(30);

            PO_UserAccountButton.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantB_EMIRUser01();
            PO_SendTradesByTargetSetting sendTradesPage = PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTradesPage.SelectTargetSEtting("Send RegisTR New Trades (EMIR, REGIS-TR)");
            Util.CheckIfTextNotPresented(Test.UTI);
            Test.result = "Passed";
        }