Exemple #1
0
        protected virtual void RunAndValidate(bool useExistingConfiguration, bool AddOnBranchSourceNotFound)
        {
            SourceAdapter.EditFile(m_extraFile.LocalPath);

            if (!useExistingConfiguration || Configuration == null)
            {
                // Generate a new configuration file
                Configuration = ConfigurationCreator.CreateConfiguration(TestConstants.ConfigurationTemplate.SingleVCSession, TestEnvironment);

                // Try moving foreach here ...
                foreach (var session in Configuration.SessionGroup.Sessions.Session)
                {
                    VCSession = session;
                    break;
                }

                ConfigurationCreator.CreateConfigurationFile(Configuration, ConfigurationFileName);
            }

            StartMigration();

            // Reset the current directory as VCServerdiff depends on binaries probe in the plugins folder
            Directory.SetCurrentDirectory(m_currentDirectory);
            VerifyMigration(AddOnBranchSourceNotFound);
        }
Exemple #2
0
        protected virtual void RunAndNoValidate(bool useExistingConfiguration)
        {
            if (!useExistingConfiguration || Configuration == null)
            {
                BuildFilterStringPair();

                // Generate a new configuration file
                Configuration = ConfigurationCreator.CreateConfiguration(TestConstants.ConfigurationTemplate.SingleWITSession, TestEnvironment);
                ConfigurationCreator.CreateConfigurationFile(Configuration, ConfigurationFileName);
            }

            MigrationApp.Start(ConfigurationFileName);
        }
Exemple #3
0
        protected virtual void RunAndNoValidate(bool useExistingConfiguration)
        {
            if (!useExistingConfiguration || Configuration == null)
            {
                BuildFilterStringPair();

                // Generate a new configuration file
                Configuration = ConfigurationCreator.CreateConfiguration(TestConstants.ConfigurationTemplate.SingleWITSession, TestEnvironment);
                ConfigurationCreator.CreateConfigurationFile(Configuration, ConfigurationFileName);
            }

            Trace.TraceInformation("Sleeping 5 seconds before starting migration");
            System.Threading.Thread.Sleep(5 * 1000);

            MigrationApp.Start(ConfigurationFileName);
        }