Skip to content

BrowserStack\LocalException : Key is required to start local testing #23

Open

Description

@nguyennguyen6bk

I run phpunit test.php for my test and get the result:
PHP Fatal error: Uncaught BrowserStack\LocalException: [0]: Key is required to start local testing!
thrown in vendor/browserstack/browserstack-local/lib/Local.php on line 125

Who know the root cause. Please let me know.
Thanks!

Activity

  1. shawnlobo96 commented on Jul 27, 2020

    @shawnlobo96

    Hey @nguyennguyen6bk

    The error indicates that you have not specified the access key. Try exporting your access key under the environment variable:

    $ export BROWSERSTACK_ACCESS_KEY=<your access key>
    

    Once the key is added to the environment, try running the test.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions