Forum Discussion

william_roe's avatar
william_roe
Super Contributor
10 years ago

[IGNORE] TC Freezes When Pausing Execution When Loop Is Used Which References Keyword Variables

I have a keyword tests which passes a comma delineated value from a spreadsheet variable to a script routine which return an array. This array is stored in a Keyword variable of type object using the LastResult and then the test loops through the array. Whenever pausing test execution using a break point or stepping into the loop TestComplete locks and the TC process must be killed.

 

Chrome 50

TC11.20

 

 

 

function toArray(val, delin){
    var rtn;
    
    try{
        if(aqString.Find(val, delin) != -1)
            rtn = val.split(delin);
        else
            rtn = [val];
    } 
    catch (e) {
		Log.Error(e.description);
	}        
    return rtn;    
}

 

3 Replies

  • william_roe's avatar
    william_roe
    Super Contributor

    I had the wrong variable name. I sure wish SmartBear would rename code references in code.

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      That would be a useful feature.  Perhaps suggest it?

      • william_roe's avatar
        william_roe
        Super Contributor

        tristaanogre wrote:

        That would be a useful feature.  Perhaps suggest it?


        Long ago requested and it is under consideration.