Hi All,

I am trying to connect Firebug and NetExport with Selenium to get the 
output exported for each test run but I'm facing the problem to load the 
existing setup Firefox profile. We are currently using selenium server and 
not the webDriver. Is there any way by which I can connect existing firefox 
profile with Firebug & NetExport.

*Current Firefox profile selenium configuration:*

public void init() throws Exception {
 System.out.println("Opening a new browser ...");
framework = new BaseAutomationFramework(new HttpCommandProcessor(LOCALHOST, 
4444, FIREFOX, BASE_URL));
seleniumServer = new SeleniumServer(); 
RemoteControlConfiguration rcc = seleniumServer.getConfiguration();
File profileFile = new File(FFPROFILE_LOC);
rcc.setProfilesLocation(profileFile);
rcc.setFirefoxProfileTemplate(profileFile);
seleniumServer.start();
framework.start(rcc); 
framework.setSpeed("200");
framework.windowMaximize(); 
framework.open(LOGINURL); 

} 



*Here is what I updated by adding Firebug and NetExport:*

public void init() throws Exception {
 
System.out.println("Opening a new browser ...");
 framework = new BaseAutomationFramework(new 
HttpCommandProcessor(LOCALHOST, 4444, FIREFOX, BASE_URL));
seleniumServer = new SeleniumServer(); 
RemoteControlConfiguration rcc = seleniumServer.getConfiguration();
File profileFile = new File(FFPROFILE_LOC);
FirefoxProfile profile = new FirefoxProfile(profileFile);
rcc.setProfilesLocation(profileFile);
rcc.setFirefoxProfileTemplate(profileFile);
        File firebug = new File("firebug-1.7.3.xpi");
        File netExport = new File("netExport-0.8.xpi");
        try
        {
            profile.addExtension(firebug);
            profile.addExtension(netExport);
        }
        catch (IOException err)
        {
            System.out.println(err);
        }

        // Set default Firefox preferences
        profile.setPreference("app.update.enabled", false);

        String domain = "extensions.firebug.";

        // Set default Firebug preferences
        profile.setPreference(domain + "currentVersion", "1.7.3");
        profile.setPreference(domain + "allPagesActivation", "on");
        profile.setPreference(domain + "defaultPanelName", "net");
        profile.setPreference(domain + "net.enableSites", true);

        // Set default NetExport preferences
        profile.setPreference(domain + "netexport.alwaysEnableAutoExport", 
true);
        profile.setPreference(domain + "netexport.showPreview", false);
        profile.setPreference(domain + "netexport.defaultLogDir", 
"C:\\har\\");
        
seleniumServer.start();
framework.start(rcc); 
framework.setSpeed("200");
framework.windowMaximize(); 
        
        try
        {
            // Wait till Firebug is loaded
            Thread.sleep(5000);
        }
        catch (InterruptedException err)
        {
            System.out.println(err);
        }

framework.open(LOGINURL);        
}
 


*Problem:*
Now the firefox profile is working same as previous but both - Firebug and 
NetExport are not connected with it. Will anyone of you please let me know 
what changes needs to done here to work ?

Thanks for your help in advance.


Best Regards,
Saurabh Gupta


On Wednesday, February 6, 2013 5:49:37 PM UTC-8, Guo Li wrote:
>
> Hi Guys,
>     I also found that netexport auto-dump seems diff than manually click 
> the export button, I have a test html which has iframe and javascript tag 
> that will finally dispaly a flash,  manually-exported har does contain a 
> response with content-type as 
> application/x-shockwave-flash and the corresponding request is actually 
> the url for a flash,  this is working as expecetd,
>
> BUT,
>
> if using auto-export, then the generated har does not have that, the har 
> instead  contains a response with content.mimeType as text/html, and the 
> text is a html page source which contains string like
> '<embed allowScriptAccess=\"always\" quality=\"high\" salign=\"LT\" 
> loop=\"true\" type=\"application/x-shockwave-flash\" 
>
> I would hope the auto-exported har will look exactly the same as the 
> manually-exported one. I tried to increase this:
>
> profile.setPreference("extensions.firebug.netexport.pageLoadedTimeout",
>                 5000);
> and let the program wait for a while after driver.get(...)
> Thread.sleep(6000)
> No luck.
>
> Anybody know how to fix this?
>
> Thanks,
> guo
>
>
>
>
> On Wed, Feb 6, 2013 at 5:32 PM, Guo Li <[email protected] <javascript:>>wrote:
>
>> issue created 
>> http://code.google.com/p/fbug/issues/detail?id=6250
>>
>> Thanks,
>> Guo
>>
>>
>>
>> On Tue, Feb 5, 2013 at 9:34 AM, Jan Honza Odvarko 
>> <[email protected]<javascript:>
>> > wrote:
>>
>>> Hi Guo,
>>> yep, I can reproduce the problem on my machine.
>>>
>>> Could you please file a new issue report here:
>>> http://code.google.com/p/fbug/issues/list
>>> (please attach the same files)
>>>
>>> and I’ll take a look at it.
>>>
>>> Thanks!
>>> Honza
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Firebug" group.
>>> To post to this group, send email to [email protected]<javascript:>
>>> To unsubscribe from this group, send email to
>>> [email protected] <javascript:>
>>> For more options, visit this group at
>>> https://groups.google.com/forum/#!forum/firebug
>>>
>>> ---
>>> You received this message because you are subscribed to the Google 
>>> Groups "Firebug" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

--- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to