specflow

Can you tag individual examples in a scenario outline in SpecFlow?

半腔热情 提交于 2020-12-26 13:50:36
问题 Scenario outlines are very handy for creating data driven tests, but the number of scenarios increases with the number of examples. I've gotten in the habit of tagging scenarios to make it easier to filter on major features of our application. I would like to set up a "smoke test" that hits all the major use cases. Some of these use cases are captured in scenario outlines that perform boundary testing on dates or numbers, but I just want to hit that one prototypical case within the examples.

Can you tag individual examples in a scenario outline in SpecFlow?

匆匆过客 提交于 2020-12-26 13:50:24
问题 Scenario outlines are very handy for creating data driven tests, but the number of scenarios increases with the number of examples. I've gotten in the habit of tagging scenarios to make it easier to filter on major features of our application. I would like to set up a "smoke test" that hits all the major use cases. Some of these use cases are captured in scenario outlines that perform boundary testing on dates or numbers, but I just want to hit that one prototypical case within the examples.

ThreadSafe scenario/feature context

给你一囗甜甜゛ 提交于 2020-07-22 03:51:28
问题 I am having trouble adding the ability to call the feature and scenario contexts when running the framework in parallel. I have looked over http://specflow.org/documentation/Parallel-Execution/ but I am still having trouble understanding how to actually add this to the framework. Does anyone have an example of this working in practice? I am trying to create a report using ParentNode = Extent.CreateTest(FeatureContext.Current.FeatureInfo.Title); but I cant call this when running in parallel,

ThreadSafe scenario/feature context

蹲街弑〆低调 提交于 2020-07-22 03:48:04
问题 I am having trouble adding the ability to call the feature and scenario contexts when running the framework in parallel. I have looked over http://specflow.org/documentation/Parallel-Execution/ but I am still having trouble understanding how to actually add this to the framework. Does anyone have an example of this working in practice? I am trying to create a report using ParentNode = Extent.CreateTest(FeatureContext.Current.FeatureInfo.Title); but I cant call this when running in parallel,

Can I escape the pipe in specflow (or gherkin)

北战南征 提交于 2020-06-24 18:18:05
问题 I've got a specflow step table that I want to have the | (pipe) character as a part of the content. Example: Then the data should be | Field | Value | | SomeField | a|b|c | But this doesn't work. How can I escape the pipe character? 回答1: Bah. I can't believe I didn't find this earlier. You CAN escape a pipe with the backslash, but the specflow syntax highlighter gets confused by it. Then the data should be | Field | Value | | SomeField | a\|b\|c | 来源: https://stackoverflow.com/questions

Can I escape the pipe in specflow (or gherkin)

不羁的心 提交于 2020-06-24 18:16:35
问题 I've got a specflow step table that I want to have the | (pipe) character as a part of the content. Example: Then the data should be | Field | Value | | SomeField | a|b|c | But this doesn't work. How can I escape the pipe character? 回答1: Bah. I can't believe I didn't find this earlier. You CAN escape a pipe with the backslash, but the specflow syntax highlighter gets confused by it. Then the data should be | Field | Value | | SomeField | a\|b\|c | 来源: https://stackoverflow.com/questions

Can I escape the pipe in specflow (or gherkin)

亡梦爱人 提交于 2020-06-24 18:16:13
问题 I've got a specflow step table that I want to have the | (pipe) character as a part of the content. Example: Then the data should be | Field | Value | | SomeField | a|b|c | But this doesn't work. How can I escape the pipe character? 回答1: Bah. I can't believe I didn't find this earlier. You CAN escape a pipe with the backslash, but the specflow syntax highlighter gets confused by it. Then the data should be | Field | Value | | SomeField | a\|b\|c | 来源: https://stackoverflow.com/questions

Specflow: maintain one Examples table for many Scenario Outlines

左心房为你撑大大i 提交于 2020-06-12 04:46:25
问题 Is there a way of keeping the "Examples" data table in a separate file from the Scenario Outline? What I am trying to achieve is to run the entire scenario once per browser, one after the other. I have this working with the following feature: Feature: OpenGoogleInChrome Scenario Outline: Open Google in Chrome Given a browser '<browser>' When the browser points to 'https://www.google.co.uk/' Then the title should be 'Google' Examples: | browser | | Chrome | | Edge | | Firefox | But this would