-
Notifications
You must be signed in to change notification settings - Fork 279
[SauceLabs] Empty custom-data key causes tests not to run #179
Comments
hmm, so SauceLabs fails when receiving an empty array for custom-data ? This is a pain. I will ork on a fix this evening unless someone else does it first. |
If you point me in the right direction I can make a PR. |
Bitten by the same thing just today. To me the pain point is that by default the saucelabs (selenium2) driver
|
This is default behavior for all Mink drivers to allow assertion of these 404 and 500 pages to contain correct HTML. If an exception would be thrown on sight, then you could not have step in Behat scenario to validate that after visiting a page you've got proper HTTP response code.
How each Mink driver does it's job isn't up to Mink to debug. For example if you click a link on a page, then driver internally will catch that and make an HTTP request, but this won't pass via |
Actually, the Selenium server already logs all these calls to STDERR when running it, so you could get them from this place to debug things |
@stof for BrowserStack and SauceLabs the selenium server is outside my control. |
@aik099 I think you might be misunderstanding what I meant. There are 2 classes of errors at play here: case a): case b) The bug discussed here is about case B. As long as the rest protocol in use allows to distinguish between the 404A and the 404B, then, imho, the mink driver should throw an exception on 404B. It should of course allow the 404A to reach the testing application. And it seems that this is the case. By testing a page which does not exist on my website, this is the communication between mink and selenium I got. Notice it has a 200, not a 404
|
@gggeek the calls are also out of Mink controls, and the Selenium library does not have logging in place AFAIK. but anyway, this is off-topic in this issue |
@gggeek AFAIK, the Selenium library is expected to throw an exception in the second case. Otherwise, it is a bug in this library (which is not Mink, nor MinkExtension). |
@aik099 about 'How each Mink driver does it's job isn't up to Mink to debug': I have to disagree. Since the code here (MinkExtension) supports remote Selenium servers, making it easy to troubleshoot any connection/configuration problem to those servers is a feature of great value to any developer. I can post this as a separate request to another project though. Would behat/mink-selenium2-driver be the appropriate one? |
@gggeek please open separate issues to discuss this stuff, because it is not related at all to the bug reported here (and this issue will be closed as soon as the bug reported here gets fixed) |
There is also an issue with the I think that the "options" should default to null and should be stripped from the configuration before sending. |
@dantleech for the selenium-version, see #186 |
If an empty
custom-data
key is sent to the server it prevents the tests from running.i,e,
Does not work.
The following actions made it work:
custom-data
parameter from SauceLabsFactoryrelease: 1.0
)The text was updated successfully, but these errors were encountered: