{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/2249","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/2249/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/2249/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/2249/events","html_url":"https://github.com/robotframework/robotframework/issues/2249","id":120740631,"number":2249,"title":"User keywords setup","user":{"login":"manycoding","id":10396557,"avatar_url":"https://avatars.githubusercontent.com/u/10396557?v=3","gravatar_id":"","url":"https://api.github.com/users/manycoding","html_url":"https://github.com/manycoding","followers_url":"https://api.github.com/users/manycoding/followers","following_url":"https://api.github.com/users/manycoding/following{/other_user}","gists_url":"https://api.github.com/users/manycoding/gists{/gist_id}","starred_url":"https://api.github.com/users/manycoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manycoding/subscriptions","organizations_url":"https://api.github.com/users/manycoding/orgs","repos_url":"https://api.github.com/users/manycoding/repos","events_url":"https://api.github.com/users/manycoding/events{/privacy}","received_events_url":"https://api.github.com/users/manycoding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T10:18:06Z","updated_at":"2015-12-07T12:14:09Z","closed_at":null,"body":"I'm not sure why there's no [Setup] in user defined keywords.\r\n\r\nConsider this:\r\nI have a test suite which combines both data driven and regular test cases (just for the readability sake), and I use few templates for all test cases.\r\nTo keep it consistent I have to either add the keywords which I normally put in setup to template keywords and delete global Test Setup or split grouped test cases.\r\n\r\nFor example (note, this is just to show what I mean by combined test suite), here's what I have:\r\n```\r\nSuite Setup         Setup Suite\r\nSuite Teardown      Teardown Suite\r\nTest Setup          Open Tab\r\nTest Teardown       Close Tab\r\n\r\n*** Test Cases ***\r\nNormal\r\n    [Template]    Open File\r\n    file.xml\r\n\r\nNormal With Variable Input\r\n    [Template]    Open File With Encoding\r\n    file.xml    normal.txt\r\nNormal With cp500 Variable Input\r\n    [Template]    Open File With Encoding\r\n    file.xml    normal.ebc    cp500\r\nNormal With cp500 Variable Input\r\n    [Template]    Open File With Encoding\r\n    file.xml    normal.ebc_ibm    cp500\r\n\r\n*** Keywords ***\r\nOpen File\r\n    *keywords*\r\n\r\nOpen File With Encoding\r\n    *keywords*\r\n```\r\nAnd here is what I want:\r\n```\r\nSuite Setup         Setup Suite\r\nSuite Teardown      Teardown Suite\r\n\r\n*** Test Cases ***\r\nNormal\r\n    [Template]    Open File\r\n    file.xml\r\n\r\nNormal With Variable Input\r\n    [Template]    Open File With Encoding\r\n    file.xml    normal.txt\r\n    file.xml    normal.ebc    cp500\r\n    file.xml    normal.ebc_ibm    cp500\r\n\r\n*** Keywords ***\r\nOpen File\r\n    [Setup]    Open Tab\r\n    *keywords*\r\n    [Teardown]    Close Tab\r\n\r\nOpen File With Encoding\r\n    [Setup]    Open Tab\r\n    *keywords*\r\n    [Teardown]    Close Tab\r\n ```"},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/162508240","html_url":"https://github.com/robotframework/robotframework/issues/2249#issuecomment-162508240","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/2249","id":162508240,"user":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T12:14:09Z","updated_at":"2015-12-07T12:14:09Z","body":"Wouldn't your last example work as you want if you would just remove `[Setup]` from keywords? "}}