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

Add feature fake data provider #777

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

abhinavs1920
Copy link
Contributor

@abhinavs1920 abhinavs1920 commented Apr 6, 2025

PR Description

Implemented Fake Data Providers for API Dash to streamline testing.
Users can now use dynamic placeholders like {{$randomEmail}}, {{$randomUsername}}, {{$randomId}} in their API requests, which will automatically be replaced by randomized data at runtime.

This feature reduces manual effort during testing and enhances the developer experience.
It builds on the existing environment variable system without changing or breaking existing functionality.
A new section titled Fake Data Providers has been added to the environment management interface to guide users.

Some parts of code are generated with the help of AI tools.

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: Will add the tests once the approach is finalized.

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

@abhinavs1920
Copy link
Contributor Author

@animator
Please look into this PR.
Thanks!

@abhinavs1920
Copy link
Contributor Author

@animator @ashitaprasad @DenserMeerkat
please check it, whenever you are available.
Thanks!

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.

Implement Mock Data provider for API Testing
1 participant