Example #1
0
 private WorkItemDto FetchWork()
 {
     using (WcfClient wcfClient = new WcfClient(_serverAdr))
     {
         return(wcfClient.GetWork(_nodename));
     }
 }
Example #2
0
 private void Register()
 {
     Console.Out.WriteLine("Register at server...");
     using (WcfClient wcfClient = new WcfClient(_serverAdr))
     {
         wcfClient.Register(_nodename, _browsers);
     }
 }
Example #3
0
        private void SendTestResultToServer(TestResult testResult)
        {
            Console.Out.WriteLine("Result: " + testResult.TestState);
            using (WcfClient objWcfClient = new WcfClient(_serverAdr))
            {
                objWcfClient.FinishedWork(_nodename, testResult);
            }

            Console.Out.WriteLine("Finished.");
        }
Example #4
0
        private void UpdateTestcases(Testsystem testsystem)
        {
            const string testfile = @"LocalTests.dll";

            byte[] data;
            using (WcfClient wcfClient = new WcfClient(_serverAdr))
            {
                data = wcfClient.FetchDll(_nodename, testsystem.Name);
            }

            using (FileStream fileStream = new FileStream(testfile, FileMode.Create, FileAccess.Write))
            {
                fileStream.Write(data, 0, data.Length);
            }
            _testcaseProvider = new TestcaseProvider(testfile);
            _testcaseProvider.CreateAppDomain();
        }
Example #5
0
        private void UpdateTestcases(Testsystem testsystem)
        {
            const string testfile = @"LocalTests.dll";
            byte[] data;
            using (WcfClient wcfClient = new WcfClient(_serverAdr))
            {
                data = wcfClient.FetchDll(_nodename, testsystem.Name);
            }

            using (FileStream fileStream = new FileStream(testfile, FileMode.Create, FileAccess.Write))
            {
                fileStream.Write(data, 0, data.Length);
            }
            _testcaseProvider = new TestcaseProvider(testfile);
            _testcaseProvider.CreateAppDomain();
        }
Example #6
0
        private void SendTestResultToServer(TestResult testResult)
        {
            Console.Out.WriteLine("Result: " + testResult.TestState);
            using (WcfClient objWcfClient = new WcfClient(_serverAdr))
            {
                objWcfClient.FinishedWork(_nodename, testResult);
            }

            Console.Out.WriteLine("Finished.");
        }
Example #7
0
 private void Register()
 {
     Console.Out.WriteLine("Register at server...");
     using (WcfClient wcfClient = new WcfClient(_serverAdr))
     {
         wcfClient.Register(_nodename, _browsers);
     }
 }
Example #8
0
 private WorkItemDto FetchWork()
 {
     using (WcfClient wcfClient = new WcfClient(_serverAdr))
     {
         return wcfClient.GetWork(_nodename);
     }
 }