Open s-kum-1 opened 2 years ago
You can use the workaround of having a pre-downloaded binary in your machine and use the same in your test scripts to handle the error 'Text file busy'.
Download the appropriate BrowserStack Local Binary file from the link: https://www.browserstack.com/local-testing/automate#establishing-a-local-testing-connection and store it in a folder explicitly. Execute the tests by specifying the BrowserStack Local Binary Path as shared below: options.put("binarypath", "/browserstack/BrowserStackLocal"); Note: Please provide the complete absolute path of the file.
Reference: https://github.com/browserstack/browserstack-local-java#binary-path
@Jaimin180296 From link https://www.browserstack.com/local-testing/automate#establishing-a-local-testing-connection I don't see BrowserStack Local Binary file to download. I have downloaded the from other source. Confirm me if this is the correct BrowserStack Local Binary file. Since the test cases will run on jenkins so in eclipse do i need to save the BrowserStack Local Binary file? BrowserStackLocal-win32.zip
In the case of Jenkins, you can just keep the BrowserStack Local Path empty, and the plugin will automatically download the binary. Refer to this document for integration with Jenkins: https://www.browserstack.com/docs/automate/selenium/jenkins#configuring-browserstack-local
@bhumikababbar In config.local file browser stack credentials are mentioned. When code runs in Jenkins ,browser stack credentials are passed through config.local .
Hello, Thank You for reaching out to us. Please allow us some time to look into your query and we will get back to you with the next course of action shortly. Regards, Abhimanyu BrowserStack Support
On
Mon, 9 May at 12:20 PM
, browserstack/browserstack-local-java ***@***.***> wrote:
@bhumikababbar In config.local file browser stack credentials are mentioned. When code runs in Jenkins ,browser stack credentials are passed through config.local .
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hello, Thank you for reaching out to us. We are working on your issue - 649847 and will get back to you soon with an update. Please let us know if you have any more questions, we will be happy to help. Regards, Bhumika B BrowserStack Support On Fri, 6 May at 5:53 PM , browserstack/browserstack-local-java @.> wrote: @Jaimin180296 From link https://email.browserstack.com/c/eJxVT8tyhDAM-xq4hYG8gAOH9tDf6OThkHRDsuCwdPv1TffWGV8kWZJtF6GFHduwSDqKQU7cgp35J2WcajoIK3lPR0OZpKIfZYfBwi3sxB2wn5AKcZbcsz0RFJaBbCokRnQ8gYxO22kSnAuyx5-LN7yHKseuWtFbwFtn8tb6hXGrh172tdkoR9VEoQcn53nWk-mZa-PiS7ljw94a-lHnuq5OH_lCOLAo88qpdMxGRVIAS0hrxeoseVMFGsoqp3QM6KtCFPm3SUxOCUwJObXHcsA9Phv6rja9JhG0T99uvQo6ivhkWe1fRjzgoZP3gNEd57P-9TJ1ayj-1H_H_AIPB3QW I don't see BrowserStack Local Binary file to download. I have downloaded the from other source. Confirm me if this is the correct BrowserStack Local Binary file. Since the test cases will run on jenkins so in eclipse do i need to save the BrowserStack Local Binary file? BrowserStackLocal-win32.zip — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>
Some time test cases are getting skipped when it runs on jenkins. As per log,
session does not creates in browserstack.
browserstack local arguments: capabilities.setCapability("browserstack.debug", "true"); capabilities.setCapability("goog:loggingPrefs", logpref); capabilities.setCapability("browserstack.use_w3c", "true"); capabilities.setCapability("browserstack.console", "info"); capabilities.setCapability(CapabilityType.LOGGING_PREFS, logpref); capabilities.setCapability("browserstack.localIdentifier", localIdentifier); capabilities.setCapability("browserstack.idleTimeout", "300"); capabilities.setCapability("browserstack.local", "true");
Platform details
Find the attach screenshot of the logs that generates when test cases skip.