public void Counterparty_EditCPNonGenericFields_GlobalTenant()
        {
            storeResults = true;
            Test.SetTestName(TestContext);
            Test.LoginAsSystemUser();
            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.LoginWithVladimirChernev();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();

            login.LoginWithSystemUser();
            PO_Dashboard.GoToCounterPartiesPopUp();
            counterParties.EditCounterParty()
                .SetCounterPartyInputField(CounterPartySelectFields.Counterparty_DelegatedValuation, "Yes")
                .Save();
            counterParties.VerifyCounterPartyIsCreated();

            counterParties.ClosePopUp();
            PO_Dashboard.LogOff();
            login.LoginWithVladimirChernev();
            dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();

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

            entityLocks = PO_Dashboard.GoToEntityLocksPopUp();
            countMsg = entityLocks.GetEntityLockCountMsg();
            entityLocks.Close();

            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
            entityLocks = PO_Dashboard.GoToEntityLocksPopUp();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithSystemUser();

            PO_ResponseSettingsPopUp referenceDatas = PO_Dashboard.GoToResponseSettingsPopUp();
            referenceDatas.CreateNewResponseSettings()
                .Create();
            referenceDatas.VerifyResponseSettingsCreated();

            referenceDatas.Close();
            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithSystemUser();

            PO_ChannelFileMasksPopUp referenceDatas = PO_Dashboard.GoToChannelFileMasksPopUp();
            referenceDatas.CreateNewChannelFileMasks()
                .Create();
            referenceDatas.VerifyChannelFileMasksCreated();

            referenceDatas.Close();
            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithSystemUser();

            PO_ActionTypesPopUp referenceDatas = PO_Dashboard.GoToSystemActionTypesPopUp();
            referenceDatas.CreateNewActionType()
                .Create();
            referenceDatas.VerifyActionTypeCreated();

            referenceDatas.Close();
            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
        }
 public void EMIRExtRefIn_Promote()
 {
     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.LoginWithTenantB_EMIRUser02();
     PO_StaticMappingsAwaitingApproval approvalQueue = dash.GoToStaticMappingsAwaitingApproval();
     approvalQueue.ApproveStaticMapping(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithSystemUser();
     PO_ExtRefIns_Promote promote = PO_Dashboard.GoToExternalRefInsPromote();
     promote.PromoteExtRefIn("AutomationTenant_B", "Valuation Source", Test.extRef);
     Test.result = "Passed";
 }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithSystemUser();

            PO_WorkQueueCategoriesPopUp workQCat = PO_Dashboard.GoToWorkQueueCategoriesPopUp();
            workQCat.CreateNewWorkQueueCategories()
                .Create();
            workQCat.VerifyWorkQueueCategoriesCreated();

            workQCat.Close();
            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
        }
        public void SetUp()
        {
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithSystemUser();

            Test.SetTestName(TestContext);
            Test.LoginAsSystemUser();

            operationsPopUp = PO_Dashboard.GoToOperationsPopUp();
            countMsg = operationsPopUp.GetOperationsCountMsg();
            operationsPopUp.Close();

            PO_UserAccountButton.LogOff();
            login.LoginWithSystemUserB();
            operationsPopUp = PO_Dashboard.GoToOperationsPopUp();
        }
        public void Counterparty_ViewMarkets()
        {
            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.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();
            login.LoginWithSystemUser();
            PO_Dashboard.GoToCounterPartiesPopUp();
            counterParties.ViewMarkets();

            Test.result = "Passed";
        }
 protected static void LoginAsSystemUser()
 {
     InitiateBrowser();
         PO_LoginPage loginPage = new PO_LoginPage();
         PO_Dashboard dash = loginPage.LoginWithSystemUser();
 }