예제 #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();
        }
예제 #2
0
 private void SetXmlProcessor(STEXmlProcessor proc)
 {
     xmlProcessor = proc;
 }
예제 #3
0
 public STEStorage(STEWpfProcessor wpfProc, STEXmlProcessor xmlProc)
 {
     SetWpfProcessor(wpfProc);
     SetXmlProcessor(xmlProc);
 }