We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Wait a minute...
I did some digging, and it would seem this project is in fact JScript and not JavaScript (which also explains another issue I nearly put on here).
I have just run the Javascript conversion (a great feature) and I can now write as I expect. at least I've only wasted 2 hours ๐
This works wery well for me:
function testInterpolation() {
var i = "i_value";
var arr = ["value1", "value2"];
Log.Message(`This string contains that two variables: first one -> ${i} and second one -> ${arr[1]}`);
}
I'm using the latest version of TestComplete.
Thanks, Wamboo, so I just pasted this straight into my test script, and straight away it has the red x with a syntax error:
Wait a minute...
I did some digging, and it would seem this project is in fact JScript and not JavaScript (which also explains another issue I nearly put on here).
I have just run the Javascript conversion (a great feature) and I can now write as I expect. at least I've only wasted 2 hours ๐
I was just wondering if you have a project in Jscript ๐ It's great that you managed to fix it.