Skip to content

Instantly share code, notes, and snippets.

@nritholtz
Created August 12, 2015 02:10
Show Gist options
  • Save nritholtz/7610862e314d2a70ddcd to your computer and use it in GitHub Desktop.
Save nritholtz/7610862e314d2a70ddcd to your computer and use it in GitHub Desktop.
Sample JSON output
[{"keyword":"Feature","name":"Line Item Type transactions","line":2,"description":"","tags":[{"name":"@line_item_type","line":1}],"id":"line-item-type-transactions","uri":"features/line_item_type/line_item_type.feature","elements":[{"comments":[{"value":"###@testdebug ","line":219}],"keyword":"Scenario","name":"Deactivate Line Item Category that has line item types assigned - line item category and line item types should become deactivated; try to activate line item type - should get alert message \"Line Item Type can not be activated until its Line Item Category disabled\"","line":222,"description":"","tags":[{"name":"@update","line":220},{"name":"@update_line_item_type","line":221}],"id":"line-item-type-transactions;deactivate-line-item-category-that-has-line-item-types-assigned---line-item-category-and-line-item-types-should-become-deactivated;-try-to-activate-line-item-type---should-get-alert-message-\"line-item-type-can-not-be-activated-until-its-line-item-category-disabled\"","type":"scenario","steps":[{"keyword":"Given ","name":"line item category and line item type","line":223,"output":[["qaautocategory1439345230ydj"],["qaautotype1439345232mei"]],"match":{"location":"features/step_definitions/entities_steps.rb:80"},"result":{"status":"passed","duration":12671805349}},{"keyword":"And ","name":"As user with noncarrier_supervisor role","line":224,"match":{"arguments":[{"offset":13,"val":"noncarrier_supervisor"}],"location":"features/step_definitions/shared_steps.rb:1"},"result":{"status":"passed","duration":1308012660}},{"keyword":"When ","name":"I open Line Item Category page","line":225,"match":{"location":"features/step_definitions/line_item_category_steps.rb:1"},"result":{"status":"passed","duration":1297210857}},{"keyword":"And ","name":"I deactivate this line item category","line":226,"match":{"arguments":[{"offset":2,"val":"deactivate"}],"location":"features/step_definitions/line_item_category_steps.rb:451"},"result":{"status":"passed","duration":460900187}},{"keyword":"Then ","name":"I should see this line item category is deactivated at Line Item Category page","line":227,"match":{"arguments":[{"offset":40,"val":"deactivated"}],"location":"features/step_definitions/line_item_category_steps.rb:477"},"result":{"status":"passed","duration":553249480}},{"keyword":"When ","name":"I open Line Item Type page","line":228,"match":{"location":"features/step_definitions/line_item_type_steps.rb:1"},"result":{"status":"passed","duration":1253088698}},{"keyword":"Then ","name":"I should see this line item type is deactivated at Line Item Type page","line":229,"match":{"arguments":[{"offset":36,"val":"deactivated"}],"location":"features/step_definitions/line_item_type_steps.rb:538"},"result":{"status":"passed","duration":150304575}},{"keyword":"Then ","name":"trying to activate this line item type I should see alert message \"Line Item Type can not be activated until its Line Item Category disabled\"","line":230,"match":{"arguments":[{"offset":67,"val":"Line Item Type can not be activated until its Line Item Category disabled"}],"location":"features/step_definitions/line_item_type_steps.rb:553"},"result":{"status":"passed","duration":123892172}}]}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment