Forum Discussion
> what limitations TestComplete will have in Csharp as compared to Javascript?
Primarily I meant this help topic: https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript-for-jscript-users.html
Also https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html and https://support.smartbear.com/testcomplete/docs/scripting/specifics/jscript.html ones. (Note, that the latter has JScript, C#Script and C++Script in the title.)
here is one major drawback
- No code completion is there in TestCome IDE.
For e.g. in JavaScript when we type Log. after we get the drop down showing lot of properties or methods but in case of C sharp When we type Log[" Nothing appears
- tristaanogre5 years agoEsteemed Contributor
nisgupta wrote:
here is one major drawback
- No code completion is there in TestCome IDE.
For e.g. in JavaScript when we type Log. after we get the drop down showing lot of properties or methods but in case of C sharp When we type Log[" Nothing appears
As noted in the articles, C#Script is just JScript wearing different clothes. So, you technically can still type Log. and get the methods from there.
- AlexKaras5 years agoChampion Level 3
Well, quite possible. :)
"This is personal preference" - (c) Robert in his post in this thread.
Personally I use code completion in a rare cases to check if I properly ported direct .Net calls to dotNET object's syntax. But this may be of high importance for someone else. Likewise something that matters to me may be irrelevant to others.
- tristaanogre5 years agoEsteemed Contributor
Just an FYI... I typed in Log. and selected from the completion window... when it returned, it had it formatted for C#
- Marsha_R5 years agoChampion Level 3
https://support.smartbear.com/testcomplete/docs/scripting/selecting-the-scripting-language.html
Will my project be limited in functionality if I select this or that language?
No, it will not. The vast majority of TestComplete features is equally oriented on each of the supported languages. So, you can choose the language that is closer to your developer skills.
Note however that the syntax of C#Script and C++Script differs from that of C# and C++. So, selecting these scripting languages makes sense only if you plan to create a Connected or Self-Testing C++ or C# application. If you want to select C#Script or C++Script only due to that the C# or C++ syntax is closer to your skills, we recommend that you rather use JavaScript as its syntax is more similar to C# and C++ than the C#Script and C++Script syntax is.
- nisgupta5 years agoValued Contributor
Seem like I have to first type Log. and select the method from completion window. After that Remove the . after Log and put square brackets around the messgae .. This is how we have to do .
I am not sure how it had got it formatted in C sharp
- tristaanogre5 years agoEsteemed Contributor
I didn't have to do anything other than Log., select method... all the formatting happens automagically... the dot is removed and it's all pretty now.
- nisgupta5 years agoValued Contributor
Oh great... That happens on my side as well.
- tristaanogre5 years agoEsteemed Contributor
Is your project actually a C#Script project? It sounds like you're still running a JavaScript project.
- nisgupta5 years agoValued Contributor
yes it is . While creating new project I select the Language C#Script .
- nisgupta5 years agoValued Contributor
While coding in C# Script I realized that the syntax of C# Script is not similar to C# programming language . Which scripting language syntax is very much similar to C# programming lanaguage ?
Thanks
Nishchal