Forum Discussion
- HKosovaSmartBear Alumni (Retired)
CLowe wrote:3) I didn’t see c# script when we select scripting language.Why is it?
C#Script is not recommended for new projects. Use JavaScript instead - the syntax (functions, loops, etc.) is compatible and the engine is a modern ECMAScript 6 engine.
Long answer:
We hid C#Script and C++Script from the Project Wizard because their names were causing confusion. C#Script is not C# and C++Script is not C++. They are special-purposes versions of the (now legacy) Microsoft JScript engine that use the square bracket syntax instead of dot notation, that is:
Aliases["browser"]["myPage"]["linkProducts"]["Click"]();
// instead of simply // Aliases.browser.myPage.linkProducts.Click();The purpose of C#Script and C++Script was to write code that could be imported into so-called Connected and Self-Tested Applications. Users who do not use Connected and Self-Tested Applications should not use C#Script and C++Script.
If you really need to create a C#Script project, you can do this as follows:
- Create a project suite.
- Right-click the project suite and select Add | New Item.
- Select C#Script as the project language, and proceed from there.
- Marsha_RModerator
Just curious, are you looking for Support to answer these questions?
- CLoweStaff
Yes - support or our technical team. thanks!
- Marsha_RModerator
FYI, support isn't usually here. The technical team is but users often beat them to the questions/answers.
For the TeamCity question:
For the unit testing question:
https://support.smartbear.com/viewarticle/82675/
For the C# question:
https://support.smartbear.com/viewarticle/84811/
Here's some more details from a new post:
https://community.smartbear.com/t5/General-Discussions/TestComplete-Q-amp-A-Topics-8-23/m-p/125600
For ease of discussion, it's usually better if you put one question in one post. It's hard to track what's going on if there are multiple questions and answers going on in the thread. ;)
Related Content
- 3 months ago
- 3 years ago
Recent Discussions
- 9 hours ago
- 10 hours ago
- 16 hours ago