Forum Discussion
Just verifying... what's the reasoning for changing scripting languages?
The reason I ask is that there is a myth that your scripting langauge needs to match your application under test language. You don't need to... they are unrelated.
The problems/Limitations... there is no "conversion" process. You will, literally, need to create a whole new project in C# Script. Now, you MAY be able to copy in your JavaScript code and adapt for the new syntax, but it's not a "simple" process.
Which brings me back to my first statement... if you don't HAVE to, then I wouldn't bother. There's no technological need to have your automation in one particular script language over another.
Thank you for the updates. It is totally the team decision. Here everything in development is finally moving to .net and so C sharp is a .net language.
You are right it is not a simple process.
But I am concerned if there is any limitations in C sharp which java script do not have in TestComplete ?
- tristaanogre5 years agoEsteemed Contributor
C# may be a .NET language... but that makes no impact on the automation. These are "scripting" languages, not full application level languages so there is no technological reason to move to C# except personal preference.
As noted at https://support.smartbear.com/testcomplete/docs/reference/language/csscript.html, C#Script is basically just JScript with C# syntax. There's nothing really different in it.
My personal opinion: A lot of trouble to convert to C# script with no actual benefit.
- AlexKaras5 years agoChampion Level 3
Hi,
I am absolutely with Robert.
C#Script is actually, JScript language decorized so it can be processed by C# compiler. This was done many years ago in order to be able to create self-tested applications. Self-tested applications are now deprecated in TestComplete in favor of TestLeft. So absolutely no real benefit and unusual syntax. In fact, source code written in JScript, C#Script and C++Script can be used inerchangeably in TestComplete.
You may read comparison between JScript and JavaScript in TestComplete documentation to get an idea of their differences.
One more time - C#Script has absolutely nothing in common with C#.
P.S.
"Totally team decision" - popular reason of nowadays that sounds absolutely strange to me... Why the team should make a decision that is irrelevant for Development and matters to test automation only? Is the whole team ready to take the whole responsibility for the wrong decision? Shouldn't it be the decision of the relevant person who is then responsible for its implementation and takes the whole responsibility for this his/her decision?
- nisgupta5 years agoValued Contributor
Thank you for the updates
Can we use this thread to see what limitations TestComplete will have in Csharp as compared to Javascript? I am already seeing it .
Related Content
Recent Discussions
- 3 days agoMW_Didata