2012-04-05 12 views

答えて

4
After("@sometag") do |scenario| 
    screen_shot_and_save_page if scenario.failed? 
end 

はすることもできますorandnotタグ。例えば

After("@alpha,[email protected]","@charlie") do |scenario| 
    screen_shot_and_save_page if scenario.failed? 
end 

は上記のみ@charlieタグのいずれか@alphaタグを持っているか@bravoタグを持っていないシナリオに適用される

関連する問題