microsoft / PowerApps-TestEngine

MIT License
100 stars 30 forks source link

Set function not supported #198

Closed miguelverweij closed 1 year ago

miguelverweij commented 1 year ago

Describe the bug

I am testing out migrating Test Studio test to Test Engine. I use variables to assert the functionality. I a get a message that the Set function is not supported.

To Reproduce

Create a test in Test Studio in which you set a global variable, download the file, and use it in Test Engine.

Additional context

I used some test on a sample app called Help Desk.

miguelverweij commented 1 year ago

Challenge_011_Help_Desk_20230123062720.zip

miguelverweij commented 1 year ago

The test file I used is the downloaded Test Studio file

landonmsft commented 1 year ago

Hey, Miguel!

We're looking into possibly supporting the Set() function in the future, but for now we don't support it. However, we do support the SetProperty() function; here's some documentation on how we use it in Test Engine:

https://github.com/microsoft/PowerApps-TestEngine/blob/main/docs/PowerFX/SetProperty.md

Thank you!