public async Task LoadsLogFileAndEnablesPostprocessors()
        {
            await app.SynchronizationContext.InvokeAndAwait(async() =>
            {
                await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("www.hemnet.se.har"));

                await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty);

                Assert.AreEqual("entry#147 I header  date: Sat, 13 Jul 2019 13:36:59 GMT", app.ViewModel.LoadedMessagesLogViewer.ViewLines[3].TextLineValue);
                app.ViewModel.MainForm.OnTabChanging(app.ViewModel.PostprocessingTabPageId);
                var postprocessorsControls = app.ViewModel.PostprocessingTabPage.ControlsState;
                Assert.IsFalse(postprocessorsControls[ViewControlId.Timeline].Disabled);
                Assert.IsFalse(postprocessorsControls[ViewControlId.Sequence].Disabled);

                return(0);
            });
        }
        public async Task LoadsLogFileAndEnablesPostprocessors()
        {
            await app.SynchronizationContext.InvokeAndAwait(async() =>
            {
                await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("chromedriver_1.log"));

                await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty);

                Assert.AreEqual("[1548250986.197][INFO]: Waiting for pending navigations...", app.ViewModel.LoadedMessagesLogViewer.ViewLines[2].TextLineValue);
                app.ViewModel.MainForm.OnTabChanging(app.ViewModel.PostprocessingTabPageId);
                var postprocessorsControls = app.ViewModel.PostprocessingTabPage.ControlsState;
                Assert.IsFalse(postprocessorsControls[ViewControlId.Timeline].Disabled);

                return(0);
            });
        }
Beispiel #3
0
        public async Task LoadsLogFileAndEnablesPostprocessors()
        {
            await app.SynchronizationContext.InvokeAndAwait(async() =>
            {
                await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("webrtc_internals_dump_1.txt"));

                await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty);

                Assert.AreEqual("2017-06-30T18:02:21.000000|C|35286-1|log|addIceCandidate|sdpMid: audio, sdpMLineIndex: 0, candidate: candidate:508100464 1 udp 2122260223 192.168.10.157 57279 typ host generation 0 ufrag yKWx network-id 1 network-cost 10", app.ViewModel.LoadedMessagesLogViewer.ViewLines[0].TextLineValue);
                app.ViewModel.MainForm.OnTabChanging(app.ViewModel.PostprocessingTabPageId);
                var postprocessorsControls = app.ViewModel.PostprocessingTabPage.ControlsState;
                Assert.IsFalse(postprocessorsControls[ViewControlId.StateInspector].Disabled);
                Assert.IsFalse(postprocessorsControls[ViewControlId.TimeSeries].Disabled);

                return(0);
            });
        }
        public async Task LoadsLogFileAndEnablesPostprocessors()
        {
            await app.SynchronizationContext.InvokeAndAwait(async() =>
            {
                await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("chrome_debug_1.log"));

                await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty);

                Assert.AreEqual("[1:20:0102/101210.009354:INFO:paced_sender.cc(354)] ProcessThreadAttached 0x(nil)", app.ViewModel.LoadedMessagesLogViewer.ViewLines[0].TextLineValue);
                app.ViewModel.MainForm.OnTabChanging(app.ViewModel.PostprocessingTabPageId);
                var postprocessorsControls = app.ViewModel.PostprocessingTabPage.ControlsState;
                Assert.IsFalse(postprocessorsControls[ViewControlId.Timeline].Disabled);
                Assert.IsFalse(postprocessorsControls[ViewControlId.StateInspector].Disabled);
                Assert.IsFalse(postprocessorsControls[ViewControlId.TimeSeries].Disabled);

                return(0);
            });
        }
Beispiel #5
0
        public async Task Before()
        {
            viewsFactory = Substitute.For <PA.UI.Presenters.Factory.IViewsFactory>();
            viewsFactory.CreateMessageContentView().SetViewModel(
                Arg.Do <PA.UI.Presenters.MessagePropertiesDialog.IViewModel>(x => messagePropertiesViewModel = x));
            messagePropertiesOSView = new object();
            viewsFactory.CreateMessageContentView().OSView.Returns(messagePropertiesOSView);

            app = await TestAppInstance.Create();

            app.Model.PluginFormatsManager.RegisterPluginFormats(manifest);
            PA.UI.Presenters.Factory.Create(
                PA.Factory.Create(app.Model.ExpensibilityEntryPoint),
                app.Presentation.ExpensibilityEntryPoint,
                app.Model.ExpensibilityEntryPoint,
                viewsFactory
                );

            await app.EmulateFileDragAndDrop(await samples.GetSampleAsLocalFile("network_trace_with_keys_1.tar.gz"));

            await app.WaitFor(() => !app.ViewModel.LoadedMessagesLogViewer.ViewLines.IsEmpty);
        }