コード例 #1
0
        public void removeResidualAdjustmentOffice()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username_office");
            password = oXMLData.getData("settings/Credentials", "password");

            // Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var ResidualIncome_MasterDataHelper = new ResidualIncome_MasterDataHelper(GetWebDriver());

            // Random Variables
            String JIRA   = "";
            String Status = "Pass";

            //      try
            //    {

            executionLog.Log("RemoveResidualAdjustmentOffice", "Login with valid username and password");
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            executionLog.Log("RemoveResidualAdjustmentOffice", "Verify Page title");
            VerifyTitle("Dashboard");

            executionLog.Log("RemoveResidualAdjustmentOffice", "Go to residual adjustments tools page.");
            VisitOffice("rir/adjustments_tool");

            executionLog.Log("RemoveResidualAdjustmentOffice", "Delete residual tools.");
            ResidualIncome_MasterDataHelper.WaitForWorkAround(6000);
            ResidualIncome_MasterDataHelper.CleanAdjustment();
        }