{"id":21944707,"url":"https://github.com/browserstack/selenide-browserstack","last_synced_at":"2025-04-22T21:06:11.347Z","repository":{"id":15575380,"uuid":"78411834","full_name":"browserstack/selenide-browserstack","owner":"browserstack","description":"Selenium examples for TestNG and BrowserStack Automate","archived":false,"fork":false,"pushed_at":"2025-01-28T14:24:44.000Z","size":70,"stargazers_count":3,"open_issues_count":6,"forks_count":18,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-22T21:06:06.104Z","etag":null,"topics":["browserstack","selenide","testng"],"latest_commit_sha":null,"homepage":"https://www.browserstack.com/automate","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-09T09:03:49.000Z","updated_at":"2025-01-28T14:24:06.000Z","dependencies_parsed_at":"2024-04-30T07:46:21.829Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/selenide-browserstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fselenide-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fselenide-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fselenide-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fselenide-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/selenide-browserstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324691,"owners_count":21411946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browserstack","selenide","testng"],"created_at":"2024-11-29T04:16:56.736Z","updated_at":"2025-04-22T21:06:11.339Z","avatar_url":"https://github.com/browserstack.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# selenide-browserstack\n\n[Selenide](http://selenide.org/) Integration with BrowserStack.\n\n\u003ca href=\"https://www.browserstack.com/automate\"\u003e![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\u003c/a\u003e\n\n\u003ca href=\"http://selenide.org/\"\u003e\u003cimg src =\"http://selenide.org/images/selenide-logo-big.png\" height = \"110\"\u003e\u003c/a\u003e\n\n## Using Maven\n\n### Setup\n\n* Clone the repo\n* Install dependencies `mvn compile`\n* Update `browserstack.yml` files at the root directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)\n\n### Running your tests\n\n- To run a parallel tests, run `mvn test -P sample-test`\n- To run local tests, run `mvn test -P sample-local-test`\n- To run a full suite of tests with Cross-browser Testing, run `mvn test -P suite`\n\n Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)\n\n## Using Gradle\n\n### Prerequisites\n- If using Gradle, Java v9+ is required.\n\n### Setup\n\n- Clone the repository\n- Install dependencies `gradle build`\n- Update `browserstack.yml` files at the root directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)\n\n### Run sample build\n\n- To run the test suite having cross-platform with parallelization, run `gradle sampleTest`\n- To run local tests, run `gradle sampleLocalTest`\n\nUnderstand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)\n\n### Integrate your test suite\n\nThis repository uses the BrowserStack SDK to run tests on BrowserStack. Follow the steps below to install the SDK in your test suite and run tests on BrowserStack:\n\n* Following are the changes required in `build.gradle` -\n  * Add `implementation 'com.browserstack:browserstack-java-sdk:latest.release'` in dependencies\n  * Fetch Artifact Information and add `jvmArgs` property in tasks *SampleTest* and *SampleLocalTest* :\n  ```\n  def browserstackSDKArtifact = configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts.find { it.name == 'browserstack-java-sdk' }\n  \n  task sampleTest(type: Test) {\n    useTestNG() {\n      dependsOn cleanTest\n      useDefaultListeners = true\n      suites \"config/sample.testng.xml\"\n      jvmArgs \"-javaagent:${browserstackSDKArtifact.file}\"\n    }\n  }\n  ```\n\n* Install dependencies `gradle build`\n\n## Notes\n* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)\n* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/java#setting-os-and-browser)\n* You can export the environment variables for the Username and Access Key of your BrowserStack account\n\n  ```\n  export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e \u0026\u0026\n  export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fselenide-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fselenide-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fselenide-browserstack/lists"}