Git Product home page Git Product logo

codeception-browsermob's People

Contributors

dependabot-preview[bot] avatar edno avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

codeception-browsermob's Issues

Empty HAR on subsequent requests

Hi,

Using this project along with the docker container edno/browsermob-proxy as the proxy server, doing a startHar() and getHar() seems to only return information in the HAR the first time.

The second time that I call startHar(), navigate to a page, and getHar() again the result is basically empty:

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "BrowserMob Proxy",
      "version": "2.1.1-legacy",
      "comment": ""
    },
    "pages": [
      {
        "id": "",
        "startedDateTime": "2017-03-06T23:07:06.493Z",
        "title": "",
        "pageTimings": {
          "comment": ""
        },
        "comment": ""
      }
    ],
    "entries": [
      
    ],
    "comment": ""
  }
}

If I restart the docker container between test runs, then getHar() returns the information that I'd expect. Any ideas?

Obviously that sounds like the problem might be in the proxy server rather than in this project, unless it's something about this project not closing a connection properly or something. But since the one I'm using for that is also yours, hoping you might have an idea... thanks!

Cant use browsermob with codeception

Hi,

I want to use browsermob to get the HAR file from a website
I am using accepting testing

I tried to install using composer

When I tried to run the test I am getting erro

  [Codeception\Exception\ModuleException]                                                                       
  Codeception\Extension\BrowserMob: cURL error 7: Failed to connect to localhost port 8080: Connection refused  

I am not sure if I installed currently.

Could you please provide information with correct of installiation with codeception with example ?

Consider Switching to the BrowserUp Proxy

Hi Edno,

I found your project while doing a github search for new development against the browsermob proxy. Development on the main browsermob proxy seems to have died in 2016. It is missing support for brotli, HTTP/2 and modern java versions. We have an active fork here we are building on that has those things. We don't support the deprecated legacy API, though. Anyhow, just thought I'd mention it. I also maintain the most popular Ruby browsermob client and we will be switching that over to this fork. Cheers,

Eric

https://github.com/browserup/browserup-proxy

Cannot install for codeception 4.1

Can't install for codeception 4.1. When installing, it gives the following error. http://joxi.ru/krDQOpCKkG1jmp

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for edno/codeception-browsermob ^0.1.1 -> satisfiable by edno/codeception-browsermob[0.1.1].
- edno/codeception-browsermob 0.1.1 requires codeception/codeception ^2.2 -> satisfiable by codeception/codeception[2.2.0, 2.2.0-RC, 2.2.0-RC2, 2.2.0-beta, 2.2.1, 2.2.10, 2.2.11, 2.2.12, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.x-dev, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 2.5.x-dev] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.

Please tell me how to solve this problem?

Add param proxy

Param proxy as default proxy port. That will support environment where bmp is setup outside codeception.

If proxy is not a valid bmp proxy instance then it should failed. Same behaviour for the new method setProxyPort().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.