mVermaat / Crm.Specflow

D365 Extension for SpecFlow allows you to automatically test your Dynamics 365 CE implementation. It provides a broad set of SpecFlow steps to help you create your scripts very rapidly. It leverages the EasyRepro library from Microsoft for the User Interface related tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Inject the AliasedRecords which were created by async plugins/workflows

thathi opened this issue · comments

For example in this scenario assume that one of the async process or a workflow create another new contact. Is there any way can assert the newly created contact in a generic way?

image

One way I can thinking of introducing an event handler invoke in AliasedRecordCache.Get(). In the cusomAddToCache based on the alias naming convention I can query the api and records to cache.
image

Any other way?

I would use the step a {entityName} named {alias} exists with the following values

Then a contact named MyContact exists with the following values
| Property  | Value       |
| Account   | TestAccount |
| Last Name | Smith       |