Esempio n. 1
0
        public void Run(bool updateExtraFile)
        {
            if (updateExtraFile)
            {
                SourceAdapter.EditFile(m_extraFile.LocalPath);
            }

            if (Configuration == null)
            {
                // Generate a configuration file
                Configuration = ConfigurationCreator.CreateConfiguration(TestConstants.ConfigurationTemplate.SingleVCSession, TestEnvironment);
                ConfigurationCreator.CreateConfigurationFile(Configuration, ConfigurationFileName);

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

            string directoryBeforeMigration = Environment.CurrentDirectory;

            StartMigration();

            Environment.CurrentDirectory = directoryBeforeMigration;
        }
Esempio n. 2
0
        protected override 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);
            }

            // add validation step
            Configuration.LoadFromFile(ConfigurationFileName, true);
        }
Esempio n. 3
0
        protected override void RunAndValidate(bool useExistingConfiguration, bool AddOnBranchSourceNotFound)
        {
            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);

                Configuration.LoadFromFile(ConfigurationFileName);
            }
        }