Title: How to Run Local Driver · Issue #127 · browserstack/testng-browserstack · GitHub
Open Graph Title: How to Run Local Driver · Issue #127 · browserstack/testng-browserstack
X Title: How to Run Local Driver · Issue #127 · browserstack/testng-browserstack
Description: I followed the instructions per the Readme to implement this into an existing project. The tests are now all running in Browserstack, but how can I set this up to specify running the tests using Browserstack or local webdirver for each r...
Open Graph Description: I followed the instructions per the Readme to implement this into an existing project. The tests are now all running in Browserstack, but how can I set this up to specify running the tests using Br...
X Description: I followed the instructions per the Readme to implement this into an existing project. The tests are now all running in Browserstack, but how can I set this up to specify running the tests using Br...
Mail addresses
support@browserstack.com
Opengraph URL: https://github.com/browserstack/testng-browserstack/issues/127
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to Run Local Driver","articleBody":"I followed the instructions per the Readme to implement this into an existing project. The tests are now all running in Browserstack, but how can I set this up to specify running the tests using Browserstack or local webdirver for each run. So for example if I'm debugging/creating a test I would like to run it against my local browser, but when I'm actually performing tests either on my local machine or on a CI/CD I would like them to run on Browserstack.\r\n\r\nI was initially trying to accomplish this by creating an if statement based on a TestNG parameter in the setup code, but I'm not sure how to get it to work. Something like this:\r\n\r\n```java\r\n String runType = System.getProperty(\"runType\") != null ? System.getProperty(\"runType\") : \"local\";\r\n\r\n if (runType.equals(\"browserStack\")) {\r\n // Setup browserstack driver\r\n System.out.println(\"Running on BrowserStack\");\r\n URL bsUrl = new URL(\"https://hub.browserstack.com/wd/hub\");\r\n MutableCapabilities capabilities = new MutableCapabilities();\r\n driver = new RemoteWebDriver(bsUrl, capabilities);\r\n } else {\r\n // Setup local driver\r\n driver = new ChromeDriver();\r\n }\r\n```","author":{"url":"https://github.com/SysSU","@type":"Person","name":"SysSU"},"datePublished":"2023-12-03T09:56:42Z","url":"https://github.com/browserstack/testng-browserstack/issues/127"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7c8111b6-ccff-263f-d91b-7759cc1e721a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8956:1FCE:51E054:72C931:6B044227 |
| html-safe-nonce | 284abc87c09ece014ca29d1ded63a075ab7ecf89f905a6271c698e1804576114 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTU2OjFGQ0U6NTFFMDU0OjcyQzkzMTo2QjA0NDIyNyIsInZpc2l0b3JfaWQiOiI4ODc2MDY2MDEwODM5NjYzMTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d0329a1e9fa808f237e148a7f459690093a0bc0614915353702c5bef191d3382 |
| hovercard-subject-tag | issue:2022447851 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/testng-browserstack/127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed06d2f13ae0e784ef9baf41f44cd9e09e26ef91d92a7310da655c73ac2aa1bd/browserstack/testng-browserstack/issues/127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed06d2f13ae0e784ef9baf41f44cd9e09e26ef91d92a7310da655c73ac2aa1bd/browserstack/testng-browserstack/issues/127 |
| og:image:alt | I followed the instructions per the Readme to implement this into an existing project. The tests are now all running in Browserstack, but how can I set this up to specify running the tests using Br... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SysSU |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/testng-browserstack git https://github.com/browserstack/testng-browserstack.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 52861075 |
| octolytics-dimension-repository_nwo | browserstack/testng-browserstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52861075 |
| octolytics-dimension-repository_network_root_nwo | browserstack/testng-browserstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width