Forum Discussion
Hello,
As you are using Excel for the "data table variable"?
If so, Excel sometimes would change the cell type from string to Boolean once you add "True" value.
In order to avoid such data type issues, after you fix your variables type I would suggest you use Yes/No rather than True/False.
- Wyatt79892 months agoOccasional Contributor
it's a Table Variable.
What I was hoping to be able to achieve is essentiallyLogin as user#1
Check the user can see what they're supposed to be able to see (Exists = TRUE)
Check the user cannot see what they're not supposed to be able to see (Exists = FALSE)
Login as user#2
etc...
There doesn't seem to be a way to change the data type in the cells of the table variable itself?
- rraghvani2 months agoChampion Level 3
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.
Related Content
Recent Discussions
- 4 days ago
- 4 days ago
- 8 days ago