Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();
            DataLoader getData = new DataLoader();

            STEWindow window = WindowFabric.CreateWindow();
            STEXmlProcessor myXmlProcessor = new STEXmlProcessor();
            STEWpfProcessor myWpfProcessor = new STEWpfProcessor();
            STEStorage storage = new STEStorage(myWpfProcessor, myXmlProcessor);
            STEController controller = new STEController(window,storage);
            controller.StartLinearTestLoading();
            myWpfProcessor.steController = controller;

            List<string> xamlPages = new List<string>();

            //Мы говорим, что давай загрузи нам линейный тест с id T_001_001 из файла TestSet.xml, который расположен по стандартному адресу
            List<string> xmlPages = getData.GetTasks(Environment.CurrentDirectory + "\\Tests\\TestSet.xml", "T_001_001");
            foreach(string xmlPage in xmlPages)
            {
                controller.UploadTask(xmlPage);
            }
            controller.EndLinearTestLoading();
            controller.StartLinearTestExecuting();
            List<XmlNode> xmlResultPages = new  List<XmlNode>();

            window.Show();
            //window.CreateMainElements();
        }
Exemple #2
0
        public STEController(STEWindow window, STEStorage storage)
        {
            window.Controller = this;

            this.window = window;
            this.storage = storage;
        }