edno / codeception-browsermob Goto Github PK
View Code? Open in Web Editor NEWCodeception module for using BrowserMob Proxy into your tests
License: MIT License
Codeception module for using BrowserMob Proxy into your tests
License: MIT License
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!
Add a PAC feature for complex proxy rules.
Updated outdated Composer dependencies:
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 ?
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
Replace chartjes/php-browsermob-proxy by a new library that implements all BrowserMob Proxy API using Guzzle
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?
BrowserMob.php#L142 should verify that response is "\Requests" instead of "Request"
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()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.