Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nguyennguyen6bk opened this issue Jul 27, 2020 · 1 comment

Comments

@nguyennguyen6bk
Copy link

nguyennguyen6bk commented Jul 27, 2020

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!

@shawnlobo96
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants