TestComplete framework and definition files written in TypeScript
- Creating a TestComplete JScript Framework with TypeScript
- Using TestComplete Objects in TypeScript Classes
- TestComplete Currently supports the JScript engine version 5.8, ECMA 3
- Comparison table of JavaScript, JScript and ECMA versions at this JavaScript Wikipedia article
- Ctrl-shift-B: run build task
- Format: shift-alt-F
- JSDOC: /**
{
"compilerOptions": {
"noLib": true,
"target": "es3",
"rootDir": ".\\ts\\",
"outDir": ".",
"diagnostics": true,
"noImplicitAny": false,
"noEmitHelpers": false,
"removeComments": false,
"declaration": false
},
"exclude": [
"typings"
]
}
class Desktop {
public Name: string;
constructor(message: string) {
this.Name = message;
}
}
{
"files.exclude": {
"**/*.tcScript": true,
"**/*.js": true,
"**/*.sj": true,
"**/*.bak": true
}
}
declare var Log: any;
declare var Sys: any;
class Desktop {
public Name: string;
constructor(message: string) {
this.Name = message;
}
public screenshot() {
Log.Picture(Sys.Desktop.Picture(), "Screenshot of " + this.Name);
}
}
function test() {
var desktop = new Desktop("Desktop");
desktop.screenshot();
}