CleanUpDiscoveryProcess() public static method

A method is used to clean the WOPI discovery process for the WOPI server.
public static CleanUpDiscoveryProcess ( string currentTestClient, IMS_WOPISUTControlAdapter sutControllerAdapterInstance ) : void
currentTestClient string A parameter represents the test client name which is running the test suite. This test client act as WOPI client and response discovery request from the WOPI server successfully.
sutControllerAdapterInstance IMS_WOPISUTControlAdapter A parameter represents the IMS_WOPISUTControlAdapter instance which is used to make the WOPI server perform sending discovery request to the discovery listener.
return void
Exemplo n.º 1
0
        /// <summary>
        /// A method used to initialize the test suite. It is used in test class level initialization.
        /// </summary>
        /// <param name="testSite">A parameter represents the ITestSite instance which contain the test context information.</param>
        public static void InitializeTestSuite(ITestSite testSite)
        {
            if (null == testSite)
            {
                throw new ArgumentNullException("testSite");
            }

            try
            {
                if (!TestSuiteHelper.HasInitialized)
                {
                    TestSuiteHelper.InitializeHelper(testSite);
                }

                TestSuiteHelper.PerformDiscoveryProcess(
                    currentTestClientName,
                    wopiSutControlAdapter,
                    testSite);
            }
            catch (Exception)
            {
                TestSuiteHelper.CleanUpDiscoveryProcess(currentTestClientName, wopiSutControlAdapter);
                throw;
            }
        }
Exemplo n.º 2
0
        public static void MSWOPISharedTestClassCleanup()
        {
            // Execute the MS-WOPI clean up.
            TestSuiteHelper.CleanUpDiscoveryProcess(CurrentTestClientName, SutController);

            // Execute the SharedTest class level's clean up
            SharedTestSuiteBase.Cleanup();
        }
Exemplo n.º 3
0
        public static void ClassCleanup()
        {
            TestSuiteHelper.CleanUpDiscoveryProcess(CurrentTestClientName, SutController);
            string discoveryListenerLog = DiscoveryRequestListener.GetLogs(typeof(DiscoveryRequestListener));

            BaseTestSite.Log.Add(LogEntryKind.Debug, discoveryListenerLog);

            // Clean up all the added files.
            DeleteCollectedFiles(AddedFilesRecorder);
            TestClassBase.Cleanup();
        }