Example #1
0
 protected EyesBase(IServerConnectorFactory serverConnectorFactory, ClassicRunner runner, Logger logger)
 {
     Init_(runner, logger);
     ServerConnectorFactory = serverConnectorFactory;
     if (runner_.ServerConnector != null)
     {
         ServerConnector = runner_.ServerConnector;
     }
     else
     {
         ServerConnector         = ServerConnectorFactory.CreateNewServerConnector(Logger);
         runner_.ServerConnector = ServerConnector;
     }
 }
Example #2
0
        private void Init_(ClassicRunner runner, Logger logger)
        {
            runner_ = runner ?? new ClassicRunner();
            Logger  = logger ?? new Logger();

            runner_.SetEyes(this);

            //EnsureConfiguration_();

            UpdateActualAssembly_();
            runningSession_ = null;
            UserInputs      = new List <Trigger>();
            properties_     = new PropertiesCollection();

            setScaleProvider_ = provider => { scaleProvider_ = provider; };
            scaleProvider_    = NullScaleProvider.Instance;
            cutProvider_      = NullCutProvider.Instance;
        }
Example #3
0
 public EyesBase(ClassicRunner runner) : this(runner.ServerConnectorFactory, runner, runner.Logger)
 {
 }
Example #4
0
 protected RunningTest(ClassicRunner runner, IServerConnectorFactory serverConnectorFactory, Logger logger = null)
     : base(serverConnectorFactory, runner, logger)
 {
 }
Example #5
0
 protected RunningTest(ClassicRunner runner) : base(runner)
 {
     BrowserInfo = null;
 }