public void TestCaseInitialize() { this.TestInitialize(); this.adapter = BaseTestSite.GetAdapter <IMS_WSSRESTAdapter>(); this.sutAdapter = BaseTestSite.GetAdapter <IMS_WSSRESTSUTControlAdapter>(); this.documentLibraryName = Common.GetConfigurationPropertyValue("DoucmentLibraryListName", this.Site); this.generalListName = Common.GetConfigurationPropertyValue("GeneralListName", this.Site); // Check if MS-WSSREST service is supported in current SUT. if (!Common.GetConfigurationPropertyValue <bool>("MS-WSSREST_Supported", this.Site)) { SutVersion currentSutVersion = Common.GetConfigurationPropertyValue <SutVersion>("SutVersion", this.Site); this.Site.Assert.Inconclusive("This test suite does not supported under current SUT, because MS-WSSREST_Supported value set to false in MS-WSSREST_{0}_SHOULDMAY.deployment.ptfconfig file.", currentSutVersion); } }
/// <summary> /// Overrides IAdapter's Initialize() and sets default protocol short name of the testSite. /// </summary> /// <param name="testSite">Transfer ITestSite into adapter, make adapter can use ITestSite's function.</param> public override void Initialize(ITestSite testSite) { base.Initialize(testSite); testSite.DefaultProtocolDocShortName = "MS-WSSREST"; // Load Common configuration Common.MergeGlobalConfig(Common.GetConfigurationPropertyValue("CommonConfigurationFileName", this.Site), this.Site); // Load SHOULDMAY configuration Common.MergeSHOULDMAYConfig(this.Site); this.service.Initialize(this.Site); this.sutAdapter = this.Site.GetAdapter <IMS_WSSRESTSUTControlAdapter>(); this.sutAdapter.Initialize(testSite); AdapterHelper.Initialize(testSite); }
/// <summary> /// Overrides IAdapter's Initialize() and sets default protocol short name of the testSite. /// </summary> /// <param name="testSite">Transfer ITestSite into adapter, make adapter can use ITestSite's function.</param> public override void Initialize(ITestSite testSite) { base.Initialize(testSite); testSite.DefaultProtocolDocShortName = "MS-WSSREST"; // Load Common configuration Common.MergeGlobalConfig(Common.GetConfigurationPropertyValue("CommonConfigurationFileName", this.Site), this.Site); // Load SHOULDMAY configuration Common.MergeSHOULDMAYConfig(this.Site); this.service.Initialize(this.Site); this.sutAdapter = this.Site.GetAdapter<IMS_WSSRESTSUTControlAdapter>(); this.sutAdapter.Initialize(testSite); AdapterHelper.Initialize(testSite); }
public void TestCaseInitialize() { this.TestInitialize(); this.adapter = BaseTestSite.GetAdapter<IMS_WSSRESTAdapter>(); this.sutAdapter = BaseTestSite.GetAdapter<IMS_WSSRESTSUTControlAdapter>(); this.documentLibraryName = Common.GetConfigurationPropertyValue("DoucmentLibraryListName", this.Site); this.generalListName = Common.GetConfigurationPropertyValue("GeneralListName", this.Site); // Check if MS-WSSREST service is supported in current SUT. if (!Common.GetConfigurationPropertyValue<bool>("MS-WSSREST_Supported", this.Site)) { SutVersion currentSutVersion = Common.GetConfigurationPropertyValue<SutVersion>("SutVersion", this.Site); this.Site.Assert.Inconclusive("This test suite does not supported under current SUT, because MS-WSSREST_Supported value set to false in MS-WSSREST_{0}_SHOULDMAY.deployment.ptfconfig file.", currentSutVersion); } }