Running all scenarios in a feature file, multiple times with different parameters?

Andrio

Let's say I have a feature file that tests sending messages. This functionality is the same for admins, supervisors, and employees, so the same scenarios will work on the three different types of accounts. But I want to test all three kinds of accounts.

Can I set all the Scenarios in my feature to run three times, on each kind of account, only using Background?

I know I can do something like this:

Scenario Outline: Test sending messages
Given a <user>
    And some stuff here
When I click Send
Then The messages should be sent

Examples: 
| user       |
| Admin      |
| Supervisor |
| Employee   |

That example works, however by doing that, I have to reuse that same Examples column for every Scenario, rather than just once in the Background.

Sam Holder

No, this isn't supported I don't think. This sort of functionality has been requested a few times, but I think its the gherkin syntax that doesn't support this, so it would need to be extended first I think, before specflow could be extended to support it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Running FuncAnimation multiple times with different parameters in a for loop

From Dev

Multiple scenarios within a specification feature file?

From Dev

Multiple scenarios within a specification feature file?

From Dev

Running python script several times with different parameters

From Dev

Save Record Multiple Times Different Parameters Rails

From Dev

Call ant target multiple times with different parameters

From Dev

MSBuild - Calling target multiple times with different parameters

From Dev

How to run a command multiple times with different parameters?

From Dev

Launch a .jar multiple times with different parameters

From Dev

Save Record Multiple Times Different Parameters Rails

From Dev

Running tests multiple times with different fixtures

From Dev

Running python script multiple times with different arguments read from a text file

From Dev

Pass queried parameters to ColdFusion file multiple times?

From Dev

Pass queried parameters to ColdFusion file multiple times?

From Dev

Python File iterator running multiple times

From Dev

Running .exe file with multiple parameters in c#

From Dev

Specflow: Specifying multiple scenarios per feature

From Dev

Checking whether function has been called multiple times with different parameters

From Dev

How to run a rspec class multiple times with different parameters

From Dev

Why is it impossible to implement a generic interface multiple times with different type parameters?

From Dev

Make jUnit runner run test class multiple times with different parameters

From Dev

How to run spring batch job multiple times with different job parameters?

From Dev

Ansible, running role multiple times with different parameter sets

From Dev

SQL Server : same query running multiple times with different execution time

From Dev

Automatically running the same test plan multiple times with different variables

From Dev

Running Some Code Multiple Times Asynchronously With Different Variables

From Dev

duplicate a file multiple times and add write different lines in each file

From Dev

Services running multiple times?

From Dev

jquery is running multiple times

Related Related

  1. 1

    Running FuncAnimation multiple times with different parameters in a for loop

  2. 2

    Multiple scenarios within a specification feature file?

  3. 3

    Multiple scenarios within a specification feature file?

  4. 4

    Running python script several times with different parameters

  5. 5

    Save Record Multiple Times Different Parameters Rails

  6. 6

    Call ant target multiple times with different parameters

  7. 7

    MSBuild - Calling target multiple times with different parameters

  8. 8

    How to run a command multiple times with different parameters?

  9. 9

    Launch a .jar multiple times with different parameters

  10. 10

    Save Record Multiple Times Different Parameters Rails

  11. 11

    Running tests multiple times with different fixtures

  12. 12

    Running python script multiple times with different arguments read from a text file

  13. 13

    Pass queried parameters to ColdFusion file multiple times?

  14. 14

    Pass queried parameters to ColdFusion file multiple times?

  15. 15

    Python File iterator running multiple times

  16. 16

    Running .exe file with multiple parameters in c#

  17. 17

    Specflow: Specifying multiple scenarios per feature

  18. 18

    Checking whether function has been called multiple times with different parameters

  19. 19

    How to run a rspec class multiple times with different parameters

  20. 20

    Why is it impossible to implement a generic interface multiple times with different type parameters?

  21. 21

    Make jUnit runner run test class multiple times with different parameters

  22. 22

    How to run spring batch job multiple times with different job parameters?

  23. 23

    Ansible, running role multiple times with different parameter sets

  24. 24

    SQL Server : same query running multiple times with different execution time

  25. 25

    Automatically running the same test plan multiple times with different variables

  26. 26

    Running Some Code Multiple Times Asynchronously With Different Variables

  27. 27

    duplicate a file multiple times and add write different lines in each file

  28. 28

    Services running multiple times?

  29. 29

    jquery is running multiple times

HotTag

Archive