{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/1218","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/1218/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/1218/events","html_url":"https://github.com/robotframework/robotframework/issues/1218","id":36760763,"number":1218,"title":"Allow modifying test tags with `Fail` keyword","user":{"login":"spooning","id":1658993,"avatar_url":"https://avatars.githubusercontent.com/u/1658993?v=3","gravatar_id":"","url":"https://api.github.com/users/spooning","html_url":"https://github.com/spooning","followers_url":"https://api.github.com/users/spooning/followers","following_url":"https://api.github.com/users/spooning/following{/other_user}","gists_url":"https://api.github.com/users/spooning/gists{/gist_id}","starred_url":"https://api.github.com/users/spooning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spooning/subscriptions","organizations_url":"https://api.github.com/users/spooning/orgs","repos_url":"https://api.github.com/users/spooning/repos","events_url":"https://api.github.com/users/spooning/events{/privacy}","received_events_url":"https://api.github.com/users/spooning/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/robotframework/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/robotframework/robotframework/labels/prio-low","name":"prio-low","color":"ededed"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/robotframework/robotframework/milestones/31","html_url":"https://github.com/robotframework/robotframework/milestones/2.7.4","labels_url":"https://api.github.com/repos/robotframework/robotframework/milestones/31/labels","id":705050,"number":31,"title":"2.7.4","description":null,"creator":{"login":"spooning","id":1658993,"avatar_url":"https://avatars.githubusercontent.com/u/1658993?v=3","gravatar_id":"","url":"https://api.github.com/users/spooning","html_url":"https://github.com/spooning","followers_url":"https://api.github.com/users/spooning/followers","following_url":"https://api.github.com/users/spooning/following{/other_user}","gists_url":"https://api.github.com/users/spooning/gists{/gist_id}","starred_url":"https://api.github.com/users/spooning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spooning/subscriptions","organizations_url":"https://api.github.com/users/spooning/orgs","repos_url":"https://api.github.com/users/spooning/repos","events_url":"https://api.github.com/users/spooning/events{/privacy}","received_events_url":"https://api.github.com/users/spooning/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":29,"state":"closed","created_at":"2014-06-29T23:23:43Z","updated_at":"2014-07-03T11:12:05Z","due_on":null,"closed_at":"2014-07-03T11:12:05Z"},"comments":4,"created_at":"2014-06-29T23:32:34Z","updated_at":"2015-06-29T07:03:12Z","closed_at":"2014-06-29T23:32:38Z","body":"> *Originally submitted to [Google Code](http://code.google.com/p/robotframework/issues/detail?id=1218) by @spooning on 3 Sep 2012*\n\n\nWhen using `Fail` keyword to fail a test case, it would sometimes be useful to be able to modify tests tags. You can already now do that using `Set Tags` or `Remove Tags` before `Fail`, but being able to do that in a one go would be even easier, especially if you are failing the test based on a certain condition.\r\n\r\nPrefixing tags with hyphen (e.g. '-regression') ought to be suitable syntax for removing tags. Tags without a hyphen would be added.\r\n\r\nExamples:\r\n\r\n    # Fail test case unconditionally and add 'not-ready' tag.\r\n    Fail    Keyword not ready    not-ready\r\n\r\n    # Fail test case based on a condition and remove 'regression' tag.\r\n    ${env ok} =    Verify test environment\r\n    Run Keyword If    not ${env ok}    Fail    Environment not OK    -regression\n\n"},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/116485749","html_url":"https://github.com/robotframework/robotframework/issues/1218#issuecomment-116485749","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/1218","id":116485749,"user":{"login":"nguyenthiphuong2","id":4371387,"avatar_url":"https://avatars.githubusercontent.com/u/4371387?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthiphuong2","html_url":"https://github.com/nguyenthiphuong2","followers_url":"https://api.github.com/users/nguyenthiphuong2/followers","following_url":"https://api.github.com/users/nguyenthiphuong2/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthiphuong2/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthiphuong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthiphuong2/subscriptions","organizations_url":"https://api.github.com/users/nguyenthiphuong2/orgs","repos_url":"https://api.github.com/users/nguyenthiphuong2/repos","events_url":"https://api.github.com/users/nguyenthiphuong2/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthiphuong2/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T07:03:12Z","updated_at":"2015-06-29T07:03:12Z","body":"I tried to add tag \"regression\" to the test-case after it's fail but it did not work. From RIDE i did not see the tag \"regression\" is added to tags area. Please help me to figure out the issue.\r\nHere is my script\r\n*** Test Cases ***\r\ntest\r\n    [Tags]    test\r\n    ${test}    Evaluate    1==2\r\n    Run Keyword If    '${test}'=='False'    Fail    test fail    regression\r\n"}}