Beispiel #1
0
        /// <summary>
        /// Constructor. Performs initialization.
        /// </summary>
        /// <param name="param"></param>
        protected BaseTest(TestLaunchParam param)
        {
            _cameraAddress        = param.ServiceAddress;
            _cameraIp             = param.CameraIp;
            _cameraId             = param.CameraUUID;
            _nic                  = param.NIC;
            _username             = param.UserName;
            _password             = param.Password;
            _useUTCTimestamp      = param.UseUTCTimestamp;
            _operator             = param.Operator;
            _videoForm            = param.VideoForm;
            _environmentSettings  = param.EnvironmentSettings;
            _ptzNodeToken         = param.PTZNodeToken;
            _useEmbeddedPassword  = param.UseEmbeddedPassword;
            _password1            = param.Password1;
            _password2            = param.Password2;
            _operationDelay       = param.OperationDelay;
            _recoveryDelay        = param.RecoveryDelay;
            _relayOutputDelayTime = param.RelayOutputDelayTime;

            _rebootTimeout = param.RebootTimeout;

            _semaphore = new TestSemaphore();

            _trafficListener                   = new TrafficListener();
            _trafficListener.RequestSent      += LogRequest;
            _trafficListener.ResponseReceived += LogResponse;

            _endpointController = new EndpointController(new EndpointAddress(_cameraAddress));

            _credentialsProvider          = new CredentialsProvider();
            _credentialsProvider.Username = param.UserName;
            _credentialsProvider.Password = param.Password;
        }
Beispiel #2
0
        /// <summary>
        /// Constructor. Performs initialization.
        /// </summary>
        /// <param name="param"></param>
        protected BaseTest(BaseTestParam param)
        {
            _semaphore = new TestSemaphore();

            _trafficListener                   = new TrafficListener();
            _trafficListener.RequestSent      += LogRequest;
            _trafficListener.ResponseReceived += LogResponse;
        }
Beispiel #3
0
    static int Main()
    {
	TestSemaphore myTest = new TestSemaphore();
	myTest.NegativeTest();

	myTest.FuncTest1();
	myTest.FuncTest2();
	
	myTest.FuncTest3();

	return (myTest.CheckSuccess());
    }
Beispiel #4
0
    static int Main()
    {
        TestSemaphore myTest = new TestSemaphore();

        myTest.NegativeTest();

        myTest.FuncTest1();
        myTest.FuncTest2();

        myTest.FuncTest3();

        return(myTest.CheckSuccess());
    }
Beispiel #5
0
 /// <summary>
 /// Constructor. Performs initialization.
 /// </summary>
 /// <param name="param"></param>
 protected BaseTest(BaseTestParam param)
 {
     _semaphore = new TestSemaphore();
 }