Skip to content

Some requests not sent via proxy on SUSE Linux #492

@anandbagmar

Description

@anandbagmar

Hi,
I have integrated browsermob-proxy with my protractor tests. This works wonderfully when I run my tests from Mac (against local environment, or any other test environment).

However, when I run my tests from CI (agent is SUSE Enterprise 11.4) - my tests fail. I narrowed down the problem to the following scenario:

On some specific user action in the UI, there are a lot (>100) of requests fired from the browser in parallel (batches). There are a couple of scenarios like this in my application - and the test fails in all these cases.

Here is a screenshot of what the captured HAR file shows (in this case -

screen shot 2016-07-06 at 9 01 04 am

The same test works when I run this locally from Mac

Any idea how to fix this? Thank you in advance!

Some more information

I am starting the proxy server using a separate shell script
./browsermob-proxy-2.1.1/bin/browsermob-proxy --port $port --address $hostname &>$bmpLogDir/bmpProxy.log &

From my protractor tests - I start capture of the HAR file using this command:
{quote}
....
var captureHeaders = true;
var captureContent = true;
var captureBinaryContent = false;
browser.params.proxy.startHAR(browser.params.proxyData.port, name, captureHeaders, captureContent, captureBinaryContent, done);
{quote}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions