Forum Discussion

Likurg's avatar
Likurg
New Contributor
15 years ago

Script - C# code

Hello!

 I know that TestComplete supports scripts in JScript(or something like that) and it's possible to execute them in test.

But I want to write these scripts in C# and call C# methods in different places. For example, like "click on 'next button', then call C# method, then click on 'finish' button, then execute another C# method".

Is it possible??



Maksim

1 Reply

  • Hi,



    You can execute methods created in C# in two ways:

    1. Call methods belonging to objects of your .NET application - just obtain the needed object and call its methods as usual.

    2. Call methods from a .NET assembly - see the "Calling Functions From .NET Assemblies" help topic.