Test cases are getting skipped · Issue #66 · browserstack/browserstack-local-java · GitHub
Skip to content

Test cases are getting skipped #66

Open

Description

@s-kum-1

Some time test cases are getting skipped when it runs on jenkins. As per log,
SkippingCasesLogs
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");

                  String browserStackUrl = System.getProperty("browserStackserverhost", seleniumconfig.get("browserStackserverhost"));
		bsLocal = new Local();
		HashMap<String, String> bsLocalArgs = new HashMap<String, String>();
		bsLocalArgs.put("key", accessKey);
		bsLocalArgs.put("localIdentifier", localIdentifier);

Platform details

  1. browserstack-local-java version:
com.browserstack browserstack-local-java 1.0.3 2. java version: 1.8.0 3. courgette-jvm: io.github.prashant-ramcharan courgette-jvm 6.3.0

Find the attach screenshot of the logs that generates when test cases skip.
LogsOfSkippedCase

Activity

  1. Jaimin180296 commented on May 6, 2022

    @Jaimin180296

    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

  2. s-kum-1 commented on May 6, 2022

    @s-kum-1
    Author

    @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

  3. bhumikababbar commented on May 6, 2022

    @bhumikababbar

    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

  4. s-kum-1 commented on May 9, 2022

    @s-kum-1
    Author

    @bhumikababbar In config.local file browser stack credentials are mentioned. When code runs in Jenkins ,browser stack credentials are passed through config.local .

  5. browserstack-support commented on May 9, 2022

    @browserstack-support
  6. browserstack-support commented on Oct 11, 2022

    @browserstack-support
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