private static void InitializeContextForRunningAsUnitTest(TestContext testContext, bool classInit) { if (!testContext.Properties.Contains(SharedConstants.IsLoadTest)) { var contentPlugin = new InitContentPlugin(); var loadTestScenarioToUse = _loadTestScenariosToDeployInServer[0]; if (classInit) { contentPlugin.Initialize(_loadTestScenariosToDeployInServer, String.Empty, String.Empty); } contentPlugin.SetTestContextProperties(testContext.Properties, loadTestScenarioToUse); } }
private static void InitializeContextForRunningAsUnitTest(TestContext testContext, bool classInit) { if (!testContext.Properties.Contains(SharedConstants.IsLoadTest)) { var loadTestScenariosToDeployInServer = new List <string>() { "PowerBI_Reports", "Paginated_NoDatasource" }; var contentPlugin = new InitContentPlugin(); var loadTestScenarioToUse = loadTestScenariosToDeployInServer[0]; if (classInit) { contentPlugin.Initialize( loadTestScenariosToDeployInServer, Path.Combine(SharedConstants.RuntimeResourcesFolder, @"Paginated\BadCombinations.xml"), Path.Combine(SharedConstants.RuntimeResourcesFolder, @"Paginated\ScaleReportsWeight.xml")); } contentPlugin.SetTestContextProperties(testContext.Properties, loadTestScenarioToUse); } }
private static void InitializeContextForRunningAsUnitTest(TestContext testContext, bool classInit) { if (!testContext.Properties.Contains(SharedConstants.IsLoadTest)) { _isUnitTest = true; _loadTestScenariosToDeployInServer = new List <string>() { "Paginated_Small", "Paginated_Large", "Paginated_General", "Paginated_GeneralMassive", "Paginated_NewReports", "Paginated_NoDatasource", "Paginated_Performance", "Paginated_PGQL", "Paginated_SubReports" }; var contentPlugin = new InitContentPlugin(); var loadTestScenarioToUse = _loadTestScenariosToDeployInServer[0]; if (classInit) { contentPlugin.Initialize( _loadTestScenariosToDeployInServer, Path.Combine(SharedConstants.RuntimeResourcesFolder, @"Paginated\BadCombinations.xml"), Path.Combine(SharedConstants.RuntimeResourcesFolder, @"Paginated\ScaleReportsWeight.xml")); } contentPlugin.SetTestContextProperties(testContext.Properties, loadTestScenarioToUse); } }