{"action":"created","issue":{"url":"https://api.github.com/repos/Behat/Behat/issues/524","labels_url":"https://api.github.com/repos/Behat/Behat/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/Behat/Behat/issues/524/comments","events_url":"https://api.github.com/repos/Behat/Behat/issues/524/events","html_url":"https://github.com/Behat/Behat/issues/524","id":32612513,"number":524,"title":"Behat 3.0.4 parameter definition under Contexts","user":{"login":"KashifSaadat","id":6972966,"avatar_url":"https://avatars.githubusercontent.com/u/6972966?v=3","gravatar_id":"","url":"https://api.github.com/users/KashifSaadat","html_url":"https://github.com/KashifSaadat","followers_url":"https://api.github.com/users/KashifSaadat/followers","following_url":"https://api.github.com/users/KashifSaadat/following{/other_user}","gists_url":"https://api.github.com/users/KashifSaadat/gists{/gist_id}","starred_url":"https://api.github.com/users/KashifSaadat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KashifSaadat/subscriptions","organizations_url":"https://api.github.com/users/KashifSaadat/orgs","repos_url":"https://api.github.com/users/KashifSaadat/repos","events_url":"https://api.github.com/users/KashifSaadat/events{/privacy}","received_events_url":"https://api.github.com/users/KashifSaadat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-05-01T12:41:15Z","updated_at":"2015-06-09T09:26:31Z","closed_at":"2014-05-06T14:14:04Z","body":"Hi,\r\n\r\nSince updating from a beta version of Behat v3 to v3.0.4, I've been having issues with specifying parameters under my Contexts within the behat.yml file.\r\n\r\nThe context.feature example shows the following format:\r\n```\r\n    Given a file named \"behat.yml\" with:\r\n      \"\"\"\r\n      default:\r\n        suites:\r\n          default:\r\n            contexts:\r\n              - FeatureContext:\r\n                  parameter1: val_one\r\n      \"\"\"\r\n```\r\n\r\nMy behat.yml is as follows:\r\n```\r\ndefault:\r\n  autoload:\r\n    '': %paths.base%/library\r\n  suites:\r\n    default:\r\n      contexts:\r\n        - FeatureContext:\r\n            url:\r\n              google:    'https://www.google.co.uk'\r\n              bbc:         'https://www.bbc.co.uk'\r\n            key2:         'val2'\r\n```\r\n\r\nThis fails as my FeatureContext is passed NULL for the parameters. If I wrap all my parameters within FeatureContext under a 'parameters' key, then the above is loaded in successfully.\r\n\r\nPlease could you let me know the correct syntax to use for passing parameters through via the config file?"},"comment":{"url":"https://api.github.com/repos/Behat/Behat/issues/comments/110290920","html_url":"https://github.com/Behat/Behat/issues/524#issuecomment-110290920","issue_url":"https://api.github.com/repos/Behat/Behat/issues/524","id":110290920,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T09:26:31Z","updated_at":"2015-06-09T09:26:31Z","body":"Well, see the comment above giving the answer, where ``FeatureContext`` is the fully qualified class name of the context class. It works the same when the class is namespaced (except quoting the class name with single quotes may be needed to have a valid Yaml syntax because of the backslash, but I'm not even sure it is needed)"}}