public EUEConfiguration(
     string apiKey,
     string userPathName,
     string dataExchangeAPIUrl,
     bool isDebugEnabled,
     string location,
     string regexToCleanURLs,
     string software,
     string os,
     string hardware,
     string instanceId,
     string scriptName,
     PathNamingPolicy pathNamingPolicy,
     bool navigationTimingEnabled
     ) : base(apiKey, userPathName)
 {
     this.DataExchangeAPIUrl = dataExchangeAPIUrl;
     this.IsDebugEnabled     = isDebugEnabled;
     this.Location           = location;
     this.RegexToCleanURLs   = regexToCleanURLs;
     this.Software           = software;
     this.Os                      = os;
     this.Hardware                = hardware;
     this.InstanceId              = instanceId;
     this.ScriptName              = scriptName;
     this.PathNamingPolicy        = pathNamingPolicy;
     this.NavigationTimingEnabled = navigationTimingEnabled;
     this.CurrentTransactionName  = null;
     this.CurrentCustomName       = null;
     this.CurrentLastAction       = "(none)";
 }
Esempio n. 2
0
        public static EUEConfiguration newEUEConfiguration(string driverType, string userPathName, ICapabilities capabilities)
        {
            string           dataExchangeApiUrl = getPropertyValue(OPT_DATA_EXCHANGE_URL, DEFAULT_DATA_EXCHANGE_URL);
            string           apiKey             = getPropertyValue(OPT_API_KEY, "");
            bool             isDebug            = Boolean.Parse(getPropertyValue(OPT_DEBUG, "false"));
            string           location           = getPropertyValue(OPT_LOCATION, getLocation(capabilities));
            string           regexToCleanURLs   = getPropertyValue(OPT_REGEX_TO_CLEAN_URLS, "(.*?)[#?;%].*");
            string           software           = getPropertyValue(OPT_SOFTWARE, getSoftware(capabilities, driverType));
            string           os                      = getPropertyValue(OPT_OS, getOs(capabilities, Environment.OSVersion.VersionString));
            string           hardware                = getPropertyValue(OPT_HARDWARE, getHardware(capabilities));
            string           instanceID              = getPropertyValue(OPT_INSTANCE_ID, getDefaultInstanceID());
            string           scriptName              = getPropertyValue(OPT_SCRIPT_NAME, null);
            PathNamingPolicy pathNamingPolicy        = getPathNamingPolicy();
            bool             navigationTimingEnabled = Boolean.Parse(getPropertyValue(OPT_NAVIGATION_TIMING, "true"));

            return(new EUEConfiguration(apiKey, userPathName, dataExchangeApiUrl, isDebug, location, regexToCleanURLs, software, os,
                                        hardware, instanceID, scriptName, pathNamingPolicy, navigationTimingEnabled));
        }