cancel
Showing results for 
Search instead for 
Did you mean: 

Run TC 9.20 scripts on TC 14.10

OAn
New Contributor

Run TC 9.20 scripts on TC 14.10

When running a script created on TC 9.20 within TC 14.10, an error message will say:

DelphiScript runtime error.
Unknown variable type during writing program
Error location:
Unit: "Ch_CORE\Ch_CORE\Script\Unit1"
Line: 5739 Column: 1.
The first problem is that it will not highlight any of the command line on script, but it will locate the prompter at the next line following to the last command line in script.
Any thoughts to approach this issue?
6 REPLIES 6
OAn
New Contributor

Re: Run TC 9.20 scripts on TC 14.10

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;
var i:integer;
begin
 for i:=0 to 200 do begin
  case i of
        0..100:
             begin
              if i=50 then Log.Message('This figure, '+IntToStr(i)+ ', is within 0-100 interval');
             end;
        101..200:
             begin
              if i=150 then Log.Message('This figure, '+IntToStr(i)+ ', is within 101-200 interval');
              end;
           else begin

             end;
  end; //of case
 end; //of for
end;

 

Community Hero

Re: Run TC 9.20 scripts on TC 14.10

@TanyaGorbunova I think this is something for the larger support team?  I've confirmed the problem.

 

 


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Community Manager

Re: Run TC 9.20 scripts on TC 14.10

Hi Guys,

 

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.

---------
Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
OAn
New Contributor

Re: Run TC 9.20 scripts on TC 14.10

Hi Tanya,

 

I've just check on 14.10.1042.7 x64. It is the same.

Community Manager

Re: Run TC 9.20 scripts on TC 14.10

Do you mean 14.20?

---------
Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
OAn
New Contributor

Re: Run TC 9.20 scripts on TC 14.10

Hi Tanya,

 

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.

New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win