Lee_M
4 years agoCommunity Hero
test for empty var
Keyword tests - how can I check for an empty/null string var (doesn't exist)
some functions fail at a later point in my test because the string is empty
I would like to test for this conditions and if found set the varialbe to a single space
I have tried create an if statement to test for "" or null but is does appear to work correct and is always skipping over this test
try comparing b to aqConvert.VarToStr(aa)
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqconvert/vartostr.html
If the value is a null value,
VarToStr
returns an empty string.