SpecFlow.VisualStudio icon indicating copy to clipboard operation
SpecFlow.VisualStudio copied to clipboard

[FeatureRequest] Intellisense can handle the table field names

Open Andras-Csanyi opened this issue 10 years ago • 2 comments

Hi All,

I have checked the open tickets and there is no request like mine.

We use background steps to manage test data. My problem with this way is that there is no intellisense support for field names. In the real world I have hundreds of background steps (one step manage one table) with tens of parameters per stepdefs. It is impossible to remember all, not to mention the fast changing database schema.

For example:

And There Is Data In The PRODUCT Table
| ProductId | ProductName | Amount |
| 1        |  Keyboard       | 230       |

The intellisense offers the step definition. But there is no help when I work with the fields. That would be awesome to have a function like this.

Thanks,

András

Andras-Csanyi avatar Aug 25 '15 14:08 Andras-Csanyi

Are you saying that there should be intellisense support for this part?

And There Is Data In The PRODUCT Table
| ProductId | ProductName | Amount |
| 1         | Keyboard    | 230    |

So... let's say that I have a product, and it has a new property called "Sku"

If I start to create a new column in the table, it should give me a dropdown of available properties, including Sku?

darrencauthon avatar Aug 25 '15 17:08 darrencauthon

Sorry for the not clear specification. What you described is correct.

I know the parameters (column names list) can be used extended as many times as I use the given step definition. Let's say the dropdown shows the already existing properties of the given step defintion. For example:

Feature1.feature file
Feature 1
And There Is Data In The PRODUCT Table
| ProductId | ProductName | Amount |
| 1         | Keyboard    | 230    |
Feature2.feature file
Feature 2
And There Is Data In The PRODUCT Table
| ProductId | ProductName | Amount | Description | Discount |
| 1         | Keyboard    | 230    |   Fancy keyboard | 10% |

And when I use the "And There Is Data In The PRODUCT Table" step in Feature3, and the step already entered and I hit enter and hit "|" to type the parameters I would like to use I'll get a dropdown which displays the already available properties for the given step, in the case above the list is:

ProductId
ProductName
Amount
Description
Discount

It works through stepAssemblies.

Andras-Csanyi avatar Aug 25 '15 18:08 Andras-Csanyi