When running a script created on TC 9.20 within TC 14.10, an error message will say:
Solved! Go to Solution.
I have finally succeed to isolate the function where the error came from. The problem is in using a CASE with the result as numerical interval (e.g. 12..25 in DelphiScript). TC 9.20 does recognize this syntax, but last TC release doesn't.
In other words, the below function using DelphiScript syntax, won't work within last TC release, but will do within TC 9.20 and perhaps within other releases in between.
function CaseExemple: OleVariant;
for i:=0 to 200 do begin
case i of
if i=50 then Log.Message('This figure, '+IntToStr(i)+ ', is within 0-100 interval');
if i=150 then Log.Message('This figure, '+IntToStr(i)+ ', is within 101-200 interval');
end; //of case
end; //of for
@TanyaGorbunova I think this is something for the larger support team? I've confirmed the problem.
Thanks for reaching out to me.
Could you please check if you see the same issue with TestComplete 14.20? We've recently released it.
Do you mean 14.20?
I did un update of 14.10, but didn't update to 14.20 as I was expected. My mistake was to assume that.
So, no, I didn't test on 14.20.
It's great to hear this.