TheBrusMeister / harviewer

Automatically exported from code.google.com/p/harviewer
0 stars 0 forks source link

Feature- Domain filture #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
How to filter out domains and results based on that.

I mean domain 1 -> result 1 on viewer (with graphs and all)
domain 2 -> result 2 on viewer (with graphs and all)

(use case example:) -> This will help in finding out which domain is
talking longer time to process http requests even if they are serving
equal size data.

Can anyone please guide me how to get the filtered results ? 

Original issue reported on code.google.com by jainwolv...@gmail.com on 16 Dec 2010 at 1:36

GoogleCodeExporter commented 8 years ago
How the UI should look like? E.g. should there be a combo box with all 
available domains in the current HAR file that allows to pick a domain and 
filter the graph?

The filtering itself could be done in preview/harModel.js e.g. 
HarModel.getPageEntries would return filtered result.

As soon as the model (contains parsed HAR data) knows what to return the UI 
should be re-rendered. This would be done similarly to how it's created, which 
can bee seen in tabs/previewTab.js (the append method), I guess we need 
something like render in addition to append.

Can we have a test HAR file attached to this report?

Honza

Original comment by odva...@gmail.com on 16 Dec 2010 at 2:18

GoogleCodeExporter commented 8 years ago
How the UI should look like? E.g. should there be a combo box with all 
available domains in the current HAR file that allows to pick a domain and 
filter the graph?

This is exactly what I was referring to !. 

The filtering itself could be done in preview/harModel.js e.g. 
HarModel.getPageEntries would return filtered result.

I just started the installation process. I have less knowledge about harviewer 
source code.

As soon as the model (contains parsed HAR data) knows what to return the UI 
should be re-rendered. This would be done similarly to how it's created, which 
can bee seen in tabs/previewTab.js (the append method), I guess we need 
something like render in addition to append.

I guess you are right !

I will send you one file soon.

Thanks.

--RJ

Original comment by jainwolv...@gmail.com on 16 Dec 2010 at 2:35

GoogleCodeExporter commented 8 years ago
I am not sure if even combo box will be needed. if you can provide a search box 
which will let one input domains. For ex: just google.com then it will list 
down 

all the components from

site1.google.com
site2.google.com

So basically *.google.com

That will be so cool and on the fly reports.

I am yet to understand your codebase to provide you more development input.

THats

Original comment by jainwolv...@gmail.com on 16 Dec 2010 at 5:31

GoogleCodeExporter commented 8 years ago
A search box sounds good. It would be nice if its behavior is generic (perhaps 
we could take some inspiration from Firebug's search box) E.g. it could search 
also within response bodies for specific text, filter according response 
status, etc.

Honza

Original comment by odva...@gmail.com on 16 Dec 2010 at 2:22

GoogleCodeExporter commented 8 years ago
That will also work. Also, if you would like a drop down box besides a search 
box will also work. A drop down box will allow you to select how you would like 
to search for ex. (based on domains,specific text,response status, etc) and 
search box for input. 

Also, I am not sure but I am collecting games data on facebook. I tried with 
lot of game files but I am failing after listing some specific number of 
requests. It throws an exception parsing error! 

Original comment by jainwolv...@gmail.com on 16 Dec 2010 at 7:37

GoogleCodeExporter commented 8 years ago
Yep, I was also thinking about the drop down menu with options (just like 
Firebug does). Note that a HTML drop down menu is already part of the HAR Viewe 
code base (scripts/domplate/popupMenu.js)

Regarding the exception, please create a new report for it (including a 
detailed description how to reproduce that), thanks!

Honza 

Original comment by odva...@gmail.com on 16 Dec 2010 at 7:43

GoogleCodeExporter commented 8 years ago
Here is the file. Its throwing parsing error.

Original comment by jainwolv...@gmail.com on 16 Dec 2010 at 7:43

GoogleCodeExporter commented 8 years ago
I am seeing:
InternalError: script stack space quota is exhausted
(better logging committed at R197)

This seems to be limitation of Firefox 3. You can also see:
https://bugzilla.mozilla.org/show_bug.cgi?id=420869

Anyway, try Firefox 4, it should work.

Honza

Original comment by odva...@gmail.com on 16 Dec 2010 at 8:39

GoogleCodeExporter commented 8 years ago
Yup it works on firefox 4

but few q's

When its showing the output why it splits it into two (388 request on one , 144 
on another)?

Why its not working on IE ? 

Original comment by jainwolv...@gmail.com on 16 Dec 2010 at 9:29