Hello
I often get the below error when I try to save the runtime settings of a TruClient script. I believe this is why I often loose my runtime settings configuration as well.
An error has occured in the script on this page.
Line: 53
Char: 17
Error: Object doesn’t support this property or method : ‘indexOf’
Code: 0
URL: file:///C:/Program%20Files%20(x86)/HP/LoadRunner/bin/RTS/js/directives/rts-number-element.js
What change is required on line 53 in order to fix this problem?
It looks like the isNan check is not good. Instead of "is not a number", the code should check for a string then call the indexOf method. For example, an isNan check on an array would trigger a call to indexOf, but obviously you can't call this on an array.
Not having a number does not mean that you have 100% of the time a string object; it should be coded the other way around I believe. Someone from HP can fix this?
LR 12.02 / Windows 7 / Internet Explorer 11
Thanks in advance.