Skip to content

[Question]: Test execution failed: Error: Failed to generate and execute tests: TypeError: Invalid URL #11

Description

@Annie-dynamsoft

Hello TestSprite Support,

I experienced TestSprite and I think everything is going well. But when I run the command
node C:\Users\Annie\AppData\Local\npm-cache_npx\8ddf6bea01b2519d\node_modules@testsprite\testsprite-mcp\dist\index.js generateCodeAndExecute I am encountering the following error :

Test execution failed: Error: Failed to generate and execute tests: TypeError: Invalid URL

My APPLICATION_URL is set to "http://127.0.0.1:3000" in my configuration. I have tried:

  • Using both localhost and 127.0.0.1
  • Setting the environment variable directly
  • Validating my JSON config
  • Ensuring my app is running and accessible
  • Using the latest version of TestSprite MCP

But the error persists. Could you please advise on how to resolve this?

Image

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions