InitializeTestSuite() public static method

A method used to initialize the test suite. It is used in test class level initialization.
public static InitializeTestSuite ( ITestSite testSite ) : void
testSite ITestSite A parameter represents the ITestSite instance which contain the test context information.
return void
Exemplo n.º 1
0
        public static void ClassInitialize(TestContext testContext)
        {
            TestClassBase.Initialize(testContext);

            // Execute the MS-WOPI initialization
            if (!TestSuiteHelper.VerifyRunInSupportProducts(TestSuiteBase.BaseTestSite))
            {
                return;
            }

            TestSuiteHelper.InitializeTestSuite(TestSuiteBase.BaseTestSite);
            WopiAdapter   = TestSuiteHelper.WOPIProtocolAdapter;
            SutController = TestSuiteHelper.WOPISutControladapter;
            WopiSutManageCodeControlAdapter = TestSuiteHelper.WOPIManagedCodeSUTControlAdapter;
            CurrentTestClientName           = TestSuiteHelper.CurrentTestClientName;

            if (string.IsNullOrEmpty(UploadedFileUrl))
            {
                UploadedFileUrl = Common.GetConfigurationPropertyValue("UploadedFileUrl", TestSuiteBase.BaseTestSite);
            }

            if (string.IsNullOrEmpty(TargetDocLibraryListName))
            {
                TargetDocLibraryListName = Common.GetConfigurationPropertyValue("MSWOPIDocLibraryName", TestSuiteBase.BaseTestSite);
            }

            if (null == AddedFilesRecorder)
            {
                AddedFilesRecorder = new List <string>();
            }
        }
Exemplo n.º 2
0
        public static void MSWOPISharedTestClassInitialize(TestContext testContext)
        {
            // Execute the MS-FSSHTTP test cases' initialization
            SharedTestSuiteBase.Initialize(testContext);

            // Execute the MS-WOPI initialization
            if (!TestSuiteHelper.VerifyRunInSupportProducts(MS_WOPI_S14_AllocateExtendedGuidRange.BaseTestSite))
            {
                return;
            }

            TestSuiteHelper.InitializeTestSuite(MS_WOPI_S14_AllocateExtendedGuidRange.BaseTestSite);
            SutController = TestSuiteHelper.WOPISutControladapter;
            WopiSutManageCodeControlAdapter = TestSuiteHelper.WOPIManagedCodeSUTControlAdapter;
            CurrentTestClientName           = TestSuiteHelper.CurrentTestClientName;
        }