Question

[Testim] Local CLI is not working

  • 22 September 2023
  • 5 replies
  • 67 views

Badge

I am trying to use the Local CLI from Testim to run tests on local environment. When I try to run the CMD, getting error as : Unexpected Token =

Screenshot -

 

CLI code generated -

Local

What could be the issue?


5 replies

Badge

Hi!

Did you paste the generated command in your terminal? seems like some other code was run in the terminal, and not the CLI command generated.

Please be sure to have Node.js installed on your machine, and run the generated command in the terminal.

You can read more about how to use testim CLI properly, as well as all available flags for you to specify what to run via the command, here: https://help.testim.io/docs/the-command-line-cli

Badge

Hello Matan,

Yes, I used LOCAL CLI command to run from CMD. Check the screenshot below - 

Command

After executing it, getting error mentioned in my previous post.

I am using node version v10.15.0 for your information.

Thanks!

Userlevel 7
Badge +2

 If you are a paying customer and you’d like to reach the Support team directly you can email them support@testim.io or chat with them from inside your active testim.io project

Userlevel 5
Badge +3

From the 1st screenshot, a *.js file is called and the error message presented is that there’s a problem running that script. 

 

To isolate the issue down to TestIM running dos, try running a basic DOS command or batch file. I.e. HOSTNAME.

Badge

Hello Alex,

I have tried hostname from CMD, and following is the result -

 

It is working fine.

But when I try to run the CLI I am getting error. 

 

And one more point, I am using Free version of the testim. Could that be the issue?

Reply