private bool OnTick(object obj, EventArgs e) { TRunner t = new TRunner(); t.LoadTestsuite(); t.Execute(); App.MainTitleChangeText("Finished!"); return(false); }
protected override void OnCreate() { base.OnCreate(); Console.WriteLine("TCT : OnCreate()"); _app = new App(); LoadApplication(_app); TRunner t = new TRunner(); t.LoadTestsuite(); t.Execute(); }
protected override void OnResume() { base.OnResume(); tlog.Debug(tag, $"### OnResume() START!"); TRunner t = new TRunner(); t.LoadTestsuite(); t.Execute(); tlog.Debug(tag, $"OnResume() END!"); }
public MainPage() { _tunitrunner = new TRunner(); _tunitrunner.LoadTestsuite(); _listNotPass = new List <string>(); _tcIDList = new List <string>(); _listItem = new List <ItemData>(); _listNotPass = TSettings.GetInstance().GetNotPassListManual(); int count = 0; if (_listNotPass.Count == 0) { foreach (KeyValuePair <string, ITest> pair in _tunitrunner.GetTestList()) { count++; _listItem.Add(new ItemData { No = count, TCName = pair.Key, Result = StrResult.NOTRUN }); _tcIDList.Add(pair.Key); } } else { foreach (var tc in _listNotPass) { count++; _listItem.Add(new ItemData { No = count, TCName = tc, Result = StrResult.NOTRUN }); _tcIDList.Add(tc); } } ResultNumber.Total = ResultNumber.NotRun = _tcIDList.Count; if (_listItem.Count != 0) { _testPage = TestPage.GetInstance(); _testPage.Initialize(_tunitrunner, _tcIDList, _listItem); _testPage.TestcaseDone += OnTestcaseDone; } MakeWindowPage(); _navigationPage = new NavigationPage(_mainContentPage); NavigationPage.SetHasNavigationBar(_mainContentPage, false); MainPage = _navigationPage; }