Skip to main content

Error: Multiple files are matching the pattern

Answered

Comments

5 comments

  • Jordan Western

    I think the issue here is your relative path and the matching pattern -

    tests/Axis.Tests/**/Axis.Tests.dll

    It is looking for this .dll in any file after Axis.Tests.

    If you extend the path to be more specific you should be ok :)

    Let me know.

    0
  • Samuel Janek

    I tried to specify bindingAssembly in this ways:

    • $(testsFolder)/bin/**/Axis.Tests.dll
    • $(testsFolder)/bin/Debug/netcoreapp3.1/Axis.Tests.dll
      Both of them cause me following error:
     Error Message:
       System.AggregateException : One or more errors occurred. (The HTTP request to the remote WebDriver server for URL http://localhost:57379/session timed out after 60 seconds.) (The given key 'driver' was not present in the dictionary.)
    ---- OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:57379/session timed out after 60 seconds.
    -------- System.Threading.Tasks.TaskCanceledException : The operation was canceled.
    ------------ System.IO.IOException : Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
    ---------------- System.Net.Sockets.SocketException : The I/O operation has been aborted because of either a thread exit or an application request.
    ---- System.Collections.Generic.KeyNotFoundException : The given key 'driver' was not present in the dictionary.
    

    Stack trace omitted for brevity

    I also rised a question on StackOverflow: https://stackoverflow.com/questions/69102229/specflow-living-docs-generator-error-multiple-files-are-matching-the-pattern

    0
  • Jordan Western

    Hi Samuel Janek,

    The recent error you provided regarding the webdriver is not related to SpecFlow or the LivingDoc plugin.

    This issue must be happening in your test execution?

    0
  • Samuel Janek

    Hello, the issue is not probably in my code. Right now I tried to execute the tests and generate living docs using LivingDocs CLI and everything works. I followed this tutorial: https://docs.specflow.org/projects/getting-started/en/latest/GettingStarted/Step9.html. So the issue can not be in code.

    0
  • Jordan Western

    Samuel Janek

    The webdriver timeout is unrelated to LivingDoc.

    The issue in your original error is with your relative path matching multiple files with the same name.

     

    0

Please sign in to leave a comment.

Powered by Zendesk