cancel
Showing results for 
Search instead for 
Did you mean: 

Run TC 9.20 scripts on TC 14.10

SOLVED
OAn
Occasional 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?
1 ACCEPTED SOLUTION

Accepted Solutions
OAn
Occasional Contributor

Re: Run TC 9.20 scripts on TC 14.10

Hi Tanya,

 

I did upgrade to 14.20.2175.7 x64 and it is working now, but I had also some dll files provided by SmartBear. Without the dll's, it was the same.

Probably within the next release the issue will be fixed.

View solution in original post

9 REPLIES 9
OAn
Occasional 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;

 

Highlighted
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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
OAn
Occasional 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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
OAn
Occasional 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.

Community Manager

Re: Run TC 9.20 scripts on TC 14.10

Hi @OAn,

 

It's worth updating to the latest version - 14.20.

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
OAn
Occasional Contributor

Re: Run TC 9.20 scripts on TC 14.10

Hi Tanya,

 

I did upgrade to 14.20.2175.7 x64 and it is working now, but I had also some dll files provided by SmartBear. Without the dll's, it was the same.

Probably within the next release the issue will be fixed.

View solution in original post

Community Manager

Re: Run TC 9.20 scripts on TC 14.10

It's great to hear this.

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors