Forum Discussion
HKosova
10 years agoSmartBear Alumni (Retired)
Hi Kam,
It's not C#; it's C#Script, which is JScript with square bracket notation foo["bar"]["baz"] instead of dot notation foo.bar.baz. C#Script has a very specific purpose of writing C#-compatible code for C# Connected Apps - apps that talk to TestComplete via COM. So, unless you plan to do Connected Apps, don't use C#Script (it's hard to read); use JScript instead.
If you want to write your tests using .NET features, you can use .NET classes via the dotNET object, and reference .NET assemblies by adding them to Tools | Current Project Properties | CLR Bridge. But almost always there're built-in TestComplete features and objects to do the job. For example, you can use TestedApps to run apps or aqFileSystem to work with files and folders.
It's not C#; it's C#Script, which is JScript with square bracket notation foo["bar"]["baz"] instead of dot notation foo.bar.baz. C#Script has a very specific purpose of writing C#-compatible code for C# Connected Apps - apps that talk to TestComplete via COM. So, unless you plan to do Connected Apps, don't use C#Script (it's hard to read); use JScript instead.
If you want to write your tests using .NET features, you can use .NET classes via the dotNET object, and reference .NET assemblies by adding them to Tools | Current Project Properties | CLR Bridge. But almost always there're built-in TestComplete features and objects to do the job. For example, you can use TestedApps to run apps or aqFileSystem to work with files and folders.
Related Content
- 2 years agogalfven
- 4 years agocameron_shiell
- 2 years agoaneurysm
Recent Discussions
- 2 hours agoSvetaG