Ejemplo n.º 1
0
        public static string GetDashboardURL(F1Environments f1Environment)
        {
            string returnValue = string.Empty;

            switch (f1Environment)
            {
            case F1Environments.LOCAL:
                break;

            case F1Environments.INT:
            case F1Environments.INT2:
            case F1Environments.INT3:
            case F1Environments.LV_QA:
            case F1Environments.LV_UAT:
            case F1Environments.STAGING:
                returnValue = string.Format("https://dashboard.{0}.fellowshipone.com", GetLVEnvironment(f1Environment));
                break;

            case F1Environments.LV_PROD:
                returnValue = "https://dashboard.fellowshipone.com";
                break;

            default:
                throw new Exception("Not a valid environment!!");
            }

            TestLog.WriteLine("URL: " + returnValue);
            return(returnValue);
            //return "http://wsf1qaweb10a.dev.activenetwork.com:8042";
        }
Ejemplo n.º 2
0
 public WeblinkBase(RemoteWebDriver driver, string portalUser, GeneralMethods generalMethods, F1Environments f1Environment)
 {
     this._driver         = driver;
     this._portalUser     = portalUser;
     this._generalMethods = generalMethods;
     this._f1Environment  = f1Environment;
 }
Ejemplo n.º 3
0
        public DashboardBase(RemoteWebDriver driver, GeneralMethods generalMethods, F1Environments f1Environment, SQL sql)
        {
            log.Debug("Enter DashboardBase RemoteWebDriver");
            this._driver         = driver;
            this._generalMethods = generalMethods;
            this._f1Environment  = f1Environment;
            this._sql            = sql;

            log.Debug("Exit DashboardBase RemoteWebDriver");
        }
Ejemplo n.º 4
0
        public APIBase(RemoteWebDriver driver)
        {
            // Configure and open the config file
            _appConfigFileMap.ExeConfigFilename = @"..\..\..\Common\bin\Debug\Common.dll.config";
            _configuration = ConfigurationManager.OpenMappedExeConfiguration(_appConfigFileMap, ConfigurationUserLevel.None);

            // Set Environment variables
            this._f1Environment = (F1Environments)Enum.Parse(typeof(F1Environments), _configuration.AppSettings.Settings["FTTests.Environment"].Value);
            this._churchcode    = _configuration.AppSettings.Settings["FTTests.ChurchCode"].Value;

            this._driver = driver;
        }
Ejemplo n.º 5
0
        //public RemoteWebDriver Driver
        //{
        //    get { return _driver; }
        //}

        public APIBase()
        {
            // Configure and open the config file
            _appConfigFileMap.ExeConfigFilename = @"..\..\..\Common\bin\Debug\Common.dll.config";
            _configuration = ConfigurationManager.OpenMappedExeConfiguration(_appConfigFileMap, ConfigurationUserLevel.None);

            // Set Environment variables
            this._f1Environment = (F1Environments)Enum.Parse(typeof(F1Environments), _configuration.AppSettings.Settings["FTTests.Environment"].Value);
            this._churchcode    = _configuration.AppSettings.Settings["FTTests.ChurchCode"].Value;

            this._consumerKey    = _configuration.AppSettings.Settings["FTTests.APIConsumerKey"].Value;
            this._consumerSecret = _configuration.AppSettings.Settings["FTTests.APIConsumerSecret"].Value;
            this._username       = _configuration.AppSettings.Settings["FTTests.APIUsername"].Value;
            this._password       = _configuration.AppSettings.Settings["FTTests.APIPassword"].Value;
        }
Ejemplo n.º 6
0
        public static string GetLVEnvironment(F1Environments f1Environment)
        {
            string returnValue = string.Empty;

            switch (f1Environment)
            {
            case F1Environments.LV_QA:
                returnValue = "QA";
                break;

            case F1Environments.LV_UAT:
            case F1Environments.STAGING:
                returnValue = "STAGING";
                break;

            case F1Environments.INT:
                returnValue = "INT";
                break;

            case F1Environments.INT2:
                returnValue = "INT2";
                break;

            case F1Environments.INT3:
                returnValue = "INT3";
                break;

            case F1Environments.LV_PROD:
                returnValue = "PROD";
                break;

            default:
                throw new Exception(string.Format("[{0}] is Not a valid LV environment option!", f1Environment));
            }

            return(returnValue.ToLower());
        }