A simple Chrome/Edge plugin which allows you to easily generate Unit Test data.
- Clone repo locally
- Go to
chrome://extensions - Enable Developer mode
- Click Load Unpacked
- Find the cloned folder
- Pin the extension to the toolbar
When on Dynamics Form, click on the plugin icon. The generated C# code will show, allowing you to copy it with a click of a button.
- Test and fix Partylist type
- Change format to JSON - so that it works with OData too.
- Test all field types - what fields are there? (TODO)
- Reliability - when opened on another site / not on form
- Reliability - when on form, but not connected to worker
- Generate an entity when opened
- All field types work - what fields are there? (TODO)
- Change format to JSON - so that it works with OData too.
- Add null fields if you want
- Add all fields, not just the ones on the form
- Add only fields on the current form - that's by default
- Intercept request and get the grid FetchXml
- Enter custom FetchXml and have that converted into
- Relationships data generator
-
Worker Request: GetBasicAttributes
-
Worker returns all attributes
-
popup-entitygen creates the entity and adds it to the textarea on the popup
-
Has its own state - stores the attributes and exposes one method: render()
- entityname
- attributes
- nonNull - true/false
- haveAllAttributes - true/false - if all attributes have been fetched
-
User can click "Copy" button and that copies the script to the clipboard
-
This is also run on start
- Must have called "Generate a C# Entity" before so that the attributes exist.
- Get the attributes from the popup
- Generate the JSON from the attributes - basically just JSON.stringify with indent
- Must have called "Generate a C# Entity" before
- sets the state, calls render() again
- This is a default
- If haveAllAttributes is already set, no action
- Else, ask the worker to get all the fields, return them, rerender.
- Worker does this by default. Then it depends if
