Yep. We use a Before hook to cache all scenario tags in an instance 
variable for, among other things, use in After hooks. This is the Ruby 
flavor of Cucumber, btw.

Before do |scenario|
  @scenario_tags = scenario.source_tag_names
  ...


But you can also "natively" have tag-specific After hooks. Here's an 
example that uses both.

After('@foo') do
  case @scenario_tags.join(" ")
    when /@some_regex/ ...


On Tuesday, February 10, 2015 at 6:44:33 AM UTC-8, Oscar.Rieken wrote:
>
> I would guess that is more of a cucumber thing
>
> On Thu, Feb 5, 2015 at 10:54 AM, Michael Kirkpatrick <[email protected] 
> <javascript:>> wrote:
>
>> I was wondering if the tags are stored in an array somewhere and can be 
>> access so that you can do different after hooks say for Jira or other 
>> plugins?
>>
>> Thanks, 
>>
>>
>>  -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to