{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/3653","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/3653/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/3653/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/3653/events","html_url":"https://github.com/Codeception/Codeception/issues/3653","id":185873634,"number":3653,"title":"Generate JUnit XML Log will failed when Selenium server can’t be connected","user":{"login":"eXorus","id":1255561,"avatar_url":"https://avatars.githubusercontent.com/u/1255561?v=3","gravatar_id":"","url":"https://api.github.com/users/eXorus","html_url":"https://github.com/eXorus","followers_url":"https://api.github.com/users/eXorus/followers","following_url":"https://api.github.com/users/eXorus/following{/other_user}","gists_url":"https://api.github.com/users/eXorus/gists{/gist_id}","starred_url":"https://api.github.com/users/eXorus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXorus/subscriptions","organizations_url":"https://api.github.com/users/eXorus/orgs","repos_url":"https://api.github.com/users/eXorus/repos","events_url":"https://api.github.com/users/eXorus/events{/privacy}","received_events_url":"https://api.github.com/users/eXorus/received_events","type":"User","site_admin":false},"labels":[{"id":31385350,"url":"https://api.github.com/repos/Codeception/Codeception/labels/BUG","name":"BUG","color":"c0392b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-28T09:05:44Z","updated_at":"2016-11-03T08:30:53Z","closed_at":null,"body":"Hello,\n\nI think that with the different change about improving WebDriver in 2.2.6 we break something when we are exporting xml file.\n\n**Run test without exporting => OK it will print an error**\n\n```\n./vendor/bin/codecept run tests/acceptance/minimumRequirementsCest.php --env ie8                                                               \nCodeception PHP Testing Framework v2.2.6\nPowered by PHPUnit 5.6.2 by Sebastian Bergmann and contributors.\n\nAcceptance (ie8) Tests (1) ------------------------------------------------------------------------------------------------------------------------------------------\nE minimumRequirementsCest: Test helium on internet explorer8 \n---------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n\nTime: 594 ms, Memory: 14.25MB\n\nThere was 1 error:\n\n---------\n1) minimumRequirementsCest: Test helium on internet explorer8\n Test  tests/acceptance/minimumRequirementsCest.php:testHeliumOnInternetExplorer8\nJSON decoding of remote response failed.\nError code: 4\nThe response: 'Uh oh, you've run out of minutes!\nPlease visit https://saucelabs.com/pricing to purchase a subscription.'\n\n\nERRORS!\nTests: 1, Assertions: 0, Errors: 1.\n```\n\n**Run test with xml export => It will fail in JUnit.php**\n\n```\n./vendor/bin/codecept run tests/acceptance/minimumRequirementsCest.php --env ie8 --xml result_acceptance_minrequirement.xml          \nCodeception PHP Testing Framework v2.2.6\nPowered by PHPUnit 5.6.2 by Sebastian Bergmann and contributors.\n\nAcceptance (ie8) Tests (1) ------------------------------------------------------------------------------------------------------------------------------------------\nE minimumRequirementsCest: Test helium on internet explorer8 \nPHP Fatal error:  Call to a member function setAttribute() on null in /home/vdauce/Code/iwqa/vendor/phpunit/phpunit/src/Util/Log/JUnit.php on line 375\n\n\n\nFATAL ERROR. TESTS NOT FINISHED.\nCall to a member function setAttribute() on null \nin /vendor/phpunit/phpunit/src/Util/Log/JUnit.php:375\n\n```\n\nThe issue is about $this->currentTestCase that is null at the end of the test.\n\nIt was working well in 2.2.5.\n\n@DavertMik I'm don't know JUnit.php so I will not fix it.\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/258085956","html_url":"https://github.com/Codeception/Codeception/issues/3653#issuecomment-258085956","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/3653","id":258085956,"user":{"login":"eXorus","id":1255561,"avatar_url":"https://avatars.githubusercontent.com/u/1255561?v=3","gravatar_id":"","url":"https://api.github.com/users/eXorus","html_url":"https://github.com/eXorus","followers_url":"https://api.github.com/users/eXorus/followers","following_url":"https://api.github.com/users/eXorus/following{/other_user}","gists_url":"https://api.github.com/users/eXorus/gists{/gist_id}","starred_url":"https://api.github.com/users/eXorus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXorus/subscriptions","organizations_url":"https://api.github.com/users/eXorus/orgs","repos_url":"https://api.github.com/users/eXorus/repos","events_url":"https://api.github.com/users/eXorus/events{/privacy}","received_events_url":"https://api.github.com/users/eXorus/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T08:30:53Z","updated_at":"2016-11-03T08:30:53Z","body":"I don't think it's an old issue @Naktibalda \r\n\r\n\r\n\r\n**[Codeception 2.2.5] codecept run acceptance --xml result.xml** => result.xml generated\r\n```\r\nCodeception PHP Testing Framework v2.2.5\r\nPowered by PHPUnit 5.6.2 by Sebastian Bergmann and contributors.\r\n\r\n                                                                                                              \r\n  [Codeception\\Exception\\ConnectionException]                                                                 \r\n  Curl error thrown for http POST to /session with params: {\"desiredCapabilities\":{\"browserName\":\"firefox\"}}  \r\n  Failed to connect to 127.0.0.1 port 4444: Connection refused                                                \r\n                                                                                                              \r\n  Please make sure that Selenium Server or PhantomJS is running.                                              \r\n                                                                                                              \r\n\r\nrun [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite>] [<test>]\r\n```\r\n\r\n\r\n\r\n**[Codeception 2.2.6] codecept run acceptance --xml result.xml** => result.xml NOT generated\r\n```\r\nCodeception PHP Testing Framework v2.2.6\r\nPowered by PHPUnit 5.6.2 by Sebastian Bergmann and contributors.\r\n\r\nAcceptance Tests (1) -----------------------------------------------------------------------------------------------------------------------------------------\r\nE WelcomeCest: Try to test \r\nPHP Fatal error:  Call to a member function setAttribute() on null in /////vendor/phpunit/phpunit/src/Util/Log/JUnit.php on line 375\r\n\r\n\r\n\r\nFATAL ERROR. TESTS NOT FINISHED.\r\nCall to a member function setAttribute() on null \r\nin /////vendor/phpunit/phpunit/src/Util/Log/JUnit.php:375\r\n\r\n```\r\n"}}
{"actor":{"display_login":"eXorus"}}