public async Task BeforeEach() { app = await TestAppInstance.Create(); await app.SynchronizationContext.InvokeAndAwait(async() => { tempLogFileName = Path.Combine(app.AppDataDirectory, "XmlWriterTraceListener1.xml"); File.Copy(await samples.GetSampleAsLocalFile("XmlWriterTraceListener1.xml"), tempLogFileName, overwrite: true); await app.EmulateFileDragAndDrop(tempLogFileName); await app.WaitFor(() => app.ViewModel.SourcesList.RootItem.Children.Count == 1); app.ViewModel.SourcesList.OnSelectionChange(new[] { (SrcListItem)app.ViewModel.SourcesList.RootItem.Children[0] }); await OpenDialog(); }); }
public async Task BeforeEach() { app = await TestAppInstance.Create(); await app.SynchronizationContext.InvokeAndAwait(async() => { var preprocTask = app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("XmlWriterTraceListenerAndTextWriterTraceListener.zip")); await app.WaitFor(() => app.ViewModel.PreprocessingUserInteractions.DialogData != null); app.ViewModel.PreprocessingUserInteractions.OnCloseDialog(accept: true); await preprocTask; await app.WaitFor(() => app.ViewModel.SourcesList.RootItem.Children.Count == 1); }); }
public async Task BeforeEach() { app = await TestAppInstance.Create(); await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("XmlWriterTraceListener1.xml")); await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty); // todo: emulate UI clicks for search var filters = app.Model.FiltersFactory.CreateFiltersList(FilterAction.Exclude, FiltersListPurpose.Search); filters.Insert(0, app.Model.FiltersFactory.CreateFilter(FilterAction.Include, "", true, new Search.Options { Template = "file" })); app.Model.SearchManager.SubmitSearch(new SearchAllOptions { Filters = filters }); await app.WaitFor(() => !app.ViewModel.SearchResultLogViewer.ViewLines.IsEmpty && app.Model.SearchManager.Results[0].Status == SearchResultStatus.Finished); }
public async Task BeforeEach() { app = await TestAppInstance.Create(); }