Forum Discussion

funmay's avatar
funmay
Contributor
7 years ago

Passing variable is declared as undefined/null while looping

Passing variable is declared as undefined/null while looping,this is seen 4 out of 10 times.If the number of rows is ten at any row number Testcomplete will throw error that one of the variable is un...
  • Marsha_R's avatar
    Marsha_R
    7 years ago

    Put a breakpoint in before the loops, add your variables to the watch list, and then run this code in debug mode and step through it a line at a time.  You should be able to see the conditions that cause it to see the null value.  

     

    If you do this several times and do not see the error state, then consider that you have a timing issue and may need to slow this bit of code down for all the values to be registered properly.