Closed m-saikiran closed 1 year ago
Hi,
Could you send us the app file again? Not sure why I cannot download the attached app.
Thanks, Claire
Hi @clairewu0218,
Here is the app file: SampleAppforTestEngine_20221026141239.zip
Let me know if you still can't download it.
Hi @m-saikiran,
I modified the syntax to be SetProperty('ComboBox1'.SelectedItems, Table({Value:"Record 1"}));
and it worked on my end. Feel free to let me know if it doesn't work for you.
Now test engine throws error if a Table input is not in the format of Table({Value:"some value"})
, which is a bug. I'm working on fixing it and thanks for your help in identifying this.
Hi @m-saikiran,
The bug was fixed. Feel free to let us know if you have further questions. Thanks!
App: SampleAppforTestEngine_20221026141239.zip
Test Suite:
Describe the bug
Test Engine throws
System.NullReferenceException: Object reference not set to an instance of an object.
error when setting a value toCombo box
control in Power Apps Canvas App. Here,SetProperty()
function is used to set the value.To Reproduce
Steps to reproduce the behavior:
Value
.Expected Behavior:
Test Engine should set the value of Combo Box as defined in the
SetProperty()
function.Actual Behavior:
The test has failed with the below errors:
Additional context
I believe that the source code is expecting the column name of table to be
Value
. The tests ran successfully when we made the below changes:Value
SetProperty
as followsSetProperty('ComboBox1'.SelectedItems, Table({'Value':"Record 1"}));
Additionally, if the column name is set to
Value
inSetProperty()
function, without changing it in the Datasource (Dataverse), below error is thrown:Note: These test cases work fine without any issues in Test Studio.
Due to this issue, I couldn't proceed further on testing.