Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectively apply Load Processor values to fixture items #179

Open
RoKuhl opened this issue Jan 12, 2022 · 0 comments
Open

Selectively apply Load Processor values to fixture items #179

RoKuhl opened this issue Jan 12, 2022 · 0 comments

Comments

@RoKuhl
Copy link

RoKuhl commented Jan 12, 2022

Hello, I am trying to apply the Load Processor feature to automatically generate values for some but not all of my fixture items. Currently, the Load Processor applies the generated values for every item in the list. Is it possible to only apply the generated value to items that I specify?

Using your provided sample, I want to do something like this:

entity: User parameters: {} processor: ../dist/processor/UserProcessor items: user1: firstName: 'John' lastName: 'Smith' email: '{{internet.email}}' profile: '@profile1' __call: setPassword: - foo user2: firstName: '{{name.firstName}}' lastName: '{{name.lastName}}' email: '{{internet.email}}' profile: '@profile2' __call: setPassword: - foo

Ideally, user1 would appear in the table as John Smith, and user 2 would have the name generated by the Load Processor. In practice however, both users have the load processor specified name. Is there something I am missing that can apply the load processor values only to the specified items?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant