Ejemplo n.º 1
0
        /// <summary>
        /// Executes demo live tests.
        /// </summary>
        internal static void RunLiveTests6()
        {
            // set package execution parameters eg. variables, connections
            var parameters = new ExecutionParameters();

            // add variables and their values to be set when the package has been loaded
            parameters.AddConfigurationString("ConnectionStrings", Constants.PathToDtsConfig);

            // create engine for live testing
            var engine = EngineFactory.GetClassInstance <ILiveTestEngine>();

            // load packages and relate them to the logical group - repository
            engine.LoadPackages("DEMO4", Constants.PathToPackages);

            // load live tests from the current assembly
            engine.LoadRepositoryActions("DEMO4");

            // set execution parameters
            engine.SetExecutionParameters(parameters);

            // execute the package and attach live tests
            engine.ExecuteLiveTestsWithGui("DEMO4", "CopyCustomersWithConfig.dtsx");
        }