My test keeps failing because the actual value is true and the expected value is "true"
Hi.
I am using keyword tests with data driven from a data table variable at Project Suite level. I am trying to test that certain menu options are visible / not visible dependent upon the logged in user.
When I run my tests, those property checkpoints are failing because Test Complete is expecting "True" and the actual value is True.
I understand that I have a data type mismatch, but I don't understand how to fix this from the information provided on the test complete documentation.
Can anyone point me in the right direction, please?
Refer to https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/table.html
Here's an example in JavaScript code, where I use the method toString() to convert the value into a string value, which can then be used in the Compare method to compare two strings.
This approach can solve your issue, but ideally, you need to ensure your data is correctly defined.