VerifyRunInSupportProducts() public static method

A method is used to verify whether test suite run in support products. If the value of "SutVersion" property in common configuration file is not included in "SupportProducts" property in "MS-WOPI_TestSuite.deployment.ptfconfig", the "MS-WOPI_Supported" SHOULDMAY property will always equal to false. And the unsupported initialization logic will not be executed in unsupported products.
public static VerifyRunInSupportProducts ( ITestSite siteInstance ) : bool
siteInstance ITestSite A parameter represents the site instance.
return bool
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;
        }