Ability to communicate and store data from the slave nodes to the master node #1247
Labels
🙏 help wanted
Help wanted - not prioritized by core team
⚡ enhancement
Request for new functionality
Description:
The ability to store data and communicate in the master node from the slave node when running tests in parallel.
Use case:
`
Scenario Outline: I add an activity for a user
Given I login as user ""
And I create a user new user with the following details:
| name | email | userType |
| test | [email protected] | athlete |
When I create a new activity with the details
| time | typeOfActivity | status |
| 12 | run | todo |
Then A new activity should be created
`
Imagine I have 50 or 60 tests that create these tests. I am going to be creating a lot of duplicate users in my given steps. Instead of reusing the users if they have already been created. Basically what I want is to build a cache of data in my Master node that can be shared across all slaves. At the moment I can build the cache that can check if the user already exists but that cache will only exist in my slave and cannot be shared across all slaves.
Solution:
Implement a way to communicate and store the data from my cache in the master node
I see there are commands currently to communicate between the slave and master but they are limited and could possibly be extended?
https://github.com/cucumber/cucumber-js/blob/master/src/runtime/parallel/command_types.js
The text was updated successfully, but these errors were encountered: