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 TC14460_EMIRExtRefIn_LinkRef()
 {
     storeResults = true;
     PO_ManageExtRefIn manageRefIn = PO_Dashboard.GoToManageRefIns();
     manageRefIn.LinkRefIn("Valuation Source", "In House");
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticMappingsAwaitingApproval approvalQueue = dash.GoToStaticMappingsAwaitingApproval();
     approvalQueue.ApproveStaticMapping(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_ExtRefIn_PopUp createRefIns = PO_Dashboard.GoToExternalRefIns();
     createRefIns.SetTypeSelectField("Search_EMIRExtRefTypeSearch", "Valuation Source");
     createRefIns.SearchForExtRefIn(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_RejectCP4Eyes()
 {
     storeResults = true;
     PO_CounterParties_PopUp counterParties = PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.CreateNewCounterParty().Create();
     counterParties.VerifyCounterPartyIsCreated();
     counterParties.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.DeclineStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.VerifyCounterPartyIsNotFound();
     Test.result = "Passed";
 }
 public void TC14461_Product_Reject4Eyes()
 {
     storeResults = true;
     PO_ProductsPopUp products = PO_Dashboard.GoToProducts();
     products.CreateNewProduct()
         .Create();
     products.VerifyProductIsCreated();
     products.CloseWindow();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.DeclineStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToProducts();
     products.VerifyCounterPartyIsNotFound();
     Test.result = "Passed";
 }
 public void Product_ViewDetails()
 {
     storeResults = true;
     PO_ProductsPopUp products = PO_Dashboard.GoToProducts();
     products.CreateNewProduct()
         .Create();
     products.VerifyProductIsCreated();
     products.CloseWindow();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToProducts();
     products.ViewDetails();
     Test.result = "Passed";
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.LoginAsRegularUser();
     bic = EmirUtils.CreateBicCode();
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.CreateNewCounterParty()
         .SetBicCode(bic)
         .Create();
     cp.VerifyCounterPartyIsCreated();
     cp.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
 }
        public void Counterparty_IntragroupNotPresent()
        {
            Test.SetTestName(TestContext);
            Test.LoginAsSystemUser();
            cp = PO_Dashboard.GoToCounterPartiesPopUp();
            cp.CreateNewCounterParty()
                .Create();
            cp.VerifyCounterPartyIsCreated();
            cp.ClosePopUp();
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            PO_Dashboard dash = login.LoginWithIEMIRUser2();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();
            login.LoginWithRegularUser();
            PO_Dashboard.GoToCounterPartiesPopUp();

            PO_CounterParty_EditCP edit = cp.EditCounterParty();
            edit.VerifyIntragroupNotPresent();
        }
 public void TC14457_Counterparty_EditCP_SetExternalID()
 {
     storeResults = true;
     Test.SetTestName(TestContext);
     Test.LoginAsRegularUser();
     PO_CounterParties_PopUp counterParties = PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.CreateNewCounterParty().Create();
     counterParties.VerifyCounterPartyIsCreated();
     counterParties.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.EditCounterParty()
         .SetCounterPartyInputField(CounterPartyInputFields.Counterparty_ExternalId, Util.GetRandomID())
         .Save();
     counterParties.VerifyCounterPartyIsCreated();
     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 static void LoginAsRegularUser()
 {
     //try
     {
         InitiateBrowser();
         PO_LoginPage loginPage = new PO_LoginPage();
         PO_Dashboard dash = loginPage.LoginWithRegularUser();
         if (Util.CheckIfPassedAndAbort())
         {
             AbortTest();
         }
     }
     //catch (Exception e)
     {
      //   Test.verificationErrors.Append(e);
     //    Assert.Fail("There was an exception in LoginMethod\nException: " + Test.verificationErrors);
     }
 }