Beispiel #1
0
        public void TestStartRemoteSendPort()
        {
            // Create the test case
            var testCase = new TestCase();

            testCase.Name            = "Start a send port in a remote group";
            testCase.ExpectedResults = "Test succeeds";

            var remote = new RemoteServerHostStep
            {
                RemoteServer = "99-001-097-v058"
            };

            testCase.ExecutionSteps.Add(remote);

            var sendPort = new TestSteps.BizTalk.Remote.Port.SendPortConductorStep
            {
                Action             = SendPortAction.Start,
                SendPortName       = "HS_FileVerif_FILE",
                DelayForCompletion = 5
            };

            testCase.ExecutionSteps.Add(sendPort);

            TestCase.SaveToFile(testCase, "TestStartRemoteSendPort.xml");

            // Execute the test
            var bizUnit = new BizUnit(testCase);

            bizUnit.RunTest();
        }
Beispiel #2
0
        public void TestStopRemoteHost()
        {
            // Create the test case
            var testCase = new TestCase();

            testCase.Name            = "Stop a host instance in a remote group";
            testCase.ExpectedResults = "Test succeeds";

            var remote = new RemoteServerHostStep
            {
                RemoteServer = "99-001-097-v058"
            };

            testCase.ExecutionSteps.Add(remote);

            var sendPort = new TestSteps.BizTalk.Remote.Host.HostConductorStep
            {
                Action           = "stop",
                HostInstanceName = "OnlineHost_YYY",
                Servers          = "99-001-097-V058"
            };

            testCase.ExecutionSteps.Add(sendPort);

            TestCase.SaveToFile(testCase, "TestStartRemoteHost.xml");

            // Execute the test
            var bizUnit = new BizUnit(testCase);

            bizUnit.RunTest();
        }