Exemplo n.º 1
0
        public void SaveDefinition()
        {
            TestSequenceConfigFile defFile = new TestSequenceConfigFile(mDefinitionFile);

            defFile.OpenFileForWriting();
            foreach (GlobalValue anObject in mGlobalValues)
            {
                defFile.AddObject(anObject);
            }
            foreach (IObjectDefinition anObject in ObjectRegistry.ObjectList())
            {
                if (anObject.IncludeObjectInConfigFile())
                {
                    defFile.AddObject(anObject);
                }
            }
            foreach (TestExecutionCollection collection in mTestCollections)
            {
                defFile.AddObject(collection);
            }
            defFile.SaveFavoriteSettings(this);
            defFile.SaveFavoriteValues(this);
            defFile.SaveImageFormSettings(this);
            defFile.CloseFileFromWriting();
            mHasUnsavedChanges = false;
        }
Exemplo n.º 2
0
        public void LoadDefinition()
        {
            SplashScreen.SetStatus("Loading test sequence file " + mDefinitionFile);
            TestSequenceConfigFile defFile = new TestSequenceConfigFile(mDefinitionFile);

            //mObjectSpace.Clear(); // TODO: what do I really need to do to flush out the current sequence? clear execution array too?  stop thread?  maybe dispose sequence and create a new one!
            ObjectRegistry.Purge();
            defFile.LoadObject(this);
            RebuildToolGrid();
            mThread.Start();
        }