Forum Discussion

Hal1988's avatar
Hal1988
Occasional Contributor
23 days ago
Solved

TestComplete Test Adapter

We are using this task 'InstallTestCompleteAdapter@1' in my pipeline. Version: 1.15078.28

Till 12/11, there was no issue. Nothing changed on our side, and starting from yesterday (13/11), the task execution failed with this error:

 

 

 

 

 

Any suggestions on how to fix this?
Thank you!

  • Thank you for the reply.

    That is indeed true, the support of the '??' operator is only available in Node.js 14 and above. And this operator is used in the sources of this task version, as I can see it in main.js

    ..\InstallTestCompleteAdapter_1089cd2b-159b-4050-93fb-125ca13743c6\1.15078.28\main.js:649

    const major = Number(raw.major ?? raw.CurrentMajorVersionNumber ?? rel[0] ?? 10);

    Yes, I've checked that our build agent has changed with some DevOps update (I think). Unfortunately, we actually have no control over these build agent changes.  And in my environment, I have 3 versions of Node installed now, and this task always runs with Node 10 for some unknown reason. The other Node versions are also added to the system environments. Maybe pipeline uses it as a default (that's something I need to check), and if there is a possibility to change it to a specific Node version (in my case Node14 or above). 

    For now, as it's blocking my test runs, therefore, I have replaced the task with the older version i.e., InstallTestCompleteAdapter@1.15069.139. 

    Not the best solution, but it works for now!

7 Replies

  • Hal1988's avatar
    Hal1988
    Occasional Contributor

    Additionally, we are using TE 15.72 to run tests in our pipeline. And it is pre-installed on our build agent before this task is triggered.

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    If the adapter has been recently updated, then most likely it's broken. I suggest you open a support ticket.

  • Hal1988's avatar
    Hal1988
    Occasional Contributor

    No, the adapter version is the same as before.

  • Hal1988's avatar
    Hal1988
    Occasional Contributor

    How to create a support ticket. Sorry, I am a new contributor. My issue is not resolved. 

    I've found out the reason though, the task mailto: InstallTestCompleteAdapter@1 is using a new version of Node.js, which supports the ?? operator. But the task is bundled with Node.js 10 by default, it seems. 

    Do we have any newer version of this task to use? I couldn't find it in the documents of TC 15.

    Thank you!

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    I checked into this a bit more and it seems the issue isn't with TestComplete or the adapter but with the Node.js support of the ?? in your environment.  Check support for this operator in the Node.JS version you have installed.  It's odd that it stopped working a few days ago however unless something changed in your environment.  It seems the ?? operator is only supported in Node.js 14 and up. 

    Let us know what support says!  ✌️

  • Hal1988's avatar
    Hal1988
    Occasional Contributor

    Thank you for the reply.

    That is indeed true, the support of the '??' operator is only available in Node.js 14 and above. And this operator is used in the sources of this task version, as I can see it in main.js

    ..\InstallTestCompleteAdapter_1089cd2b-159b-4050-93fb-125ca13743c6\1.15078.28\main.js:649

    const major = Number(raw.major ?? raw.CurrentMajorVersionNumber ?? rel[0] ?? 10);

    Yes, I've checked that our build agent has changed with some DevOps update (I think). Unfortunately, we actually have no control over these build agent changes.  And in my environment, I have 3 versions of Node installed now, and this task always runs with Node 10 for some unknown reason. The other Node versions are also added to the system environments. Maybe pipeline uses it as a default (that's something I need to check), and if there is a possibility to change it to a specific Node version (in my case Node14 or above). 

    For now, as it's blocking my test runs, therefore, I have replaced the task with the older version i.e., InstallTestCompleteAdapter@1.15069.139. 

    Not the best solution, but it works for now!