microsoft / PowerApps-TestEngine

MIT License
109 stars 33 forks source link

[Feature]: Extend Record to include Variable and Collection Changes based on Clicks #483

Open Grant-Archibald-MS opened 1 week ago

Grant-Archibald-MS commented 1 week ago

Is your feature request related to a problem? Please describe.

The current record process only records the following:

It converts these to record.te.yaml and recorded-*.wav

This analysis does not include internal variable and collection changes that occur between user clicks.

Describe the solution you'd like

Enhance the record process for Model Driven canvas applications so that on each clock

  1. Compare to the previous variable and collection
  2. Generate PowerFx Set statements to update the test state

Describe alternatives you've considered

No response

Additional context?

No response

Grant-Archibald-MS commented 1 week ago

An example in the /samples/coe-kit-setup-wizard the variables of the custom page are key elements that control the state of the controls and galleries. The ability to include variable changes will be useful for manual test case creation and AI assisted test case creation

Grant-Archibald-MS commented 1 week ago

This is an extension of [Feature]: Record Actions and Generate Test Engine Script with Simulated Data #386

Specifically would look at the following:

  1. Using [Feature]: Canvas Application / Custom Pages - Global Variables and Collections as Power FX #377 to allow detection of state change between clicks
  2. The ability to inject comments for // Assert() or Set() to allow test case creation
  3. Screenshot to include context on when audio started or stops