Skip to content

Add DataFaker support #2341

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Fishbowler
Copy link
Contributor

Proposed changes

  • Replaces the backing of existing random commands with DataFaker
  • Adds some new random data commands InputRandomCityName, InputRandomCountryName, InputRandomColorName
  • Add support for freetext evaluation via DataFaker with a new InputRandom command, e.g.
- inputRandom:
    type: "animal.genus"

This is using DataFaker's evaluation, which gives an added benefit of access to methods that take parameters. Nice for advanced usage, but a little ugly. e.g.

- inputRandom:
    type: "number.randomDouble '2','10','99'"

Testing

With a text box selected, run:

appId: com.example.notused
---
- inputRandom:
    type: "animal.genus"

- inputRandom:
    type: "number.randomDouble '2','10','99'"

Have also tested that error handling works when the type isn't a supported DataFaker provider method.

Issues fixed

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

Successfully merging this pull request may close these issues.

1 participant