Reusing SpecFlow Scripts

I started using SpecFlow and am wondering if script reuse between specifications is possible

Basically, my idea is this (I could be fundamentally wrong :))

I have one function written to test navigation.

Function: Navigation

I should be able to navigate to all the pages i'm authorized to

Scenario: Go to Boo

Given I enter proper values in Foo
When I enter Go
Then I should be taken to Boo**

And then I have another specification that will check the operational side of Boo

Function: Check if Boo ok

So, here I first need to go to the Boo screen first. I was thinking if I can reuse the script Scenario: Going to Boo , written in Navigation

Is it possible? Otherwise, what is the best way around this?

/ BB

+5
1

:

+5

All Articles