-
Notifications
You must be signed in to change notification settings - Fork 227
Added automationname to android property file and added 2 new device property files #550
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
Open
DimpleBhat22
wants to merge
7
commits into
bitbar:master
Choose a base branch
from
DimpleBhat22:dimple_localbranch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9494857
Added automationname to property fileand added 2 new device propertiy…
DimpleBhat22 a28cc58
READ.md file for selenium/java
DimpleBhat22 d7801c9
README.md file for selenium-Csharp
DimpleBhat22 ff5d438
README.md file for selenium Python
DimpleBhat22 787377e
Added dependencies for desktop browser-python
DimpleBhat22 d115879
Added README.md file for selenium-NodeJS
DimpleBhat22 a54adaf
Added requirement.txt file, README.md file for ruby and modified read…
DimpleBhat22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
samples/testing-frameworks/desktop-browsers/client-side/python/Requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| selenium==3.141.0 | ||
| urllib3<2 |
35 changes: 35 additions & 0 deletions
35
samples/testing-frameworks/desktop-browsers/client-side/ruby/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Ruby Selenium Sample | ||
|
|
||
| This folder contains a Ruby Selenium example script: | ||
|
|
||
| - `bitbar_selenium.rb` | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - Ruby installed | ||
| - Gems installed (from this folder): | ||
|
|
||
| ```bash | ||
| bundle install | ||
| ``` | ||
|
|
||
| ## Run | ||
|
|
||
| From the repository root: | ||
|
|
||
| ```bash | ||
| ruby samples/testing-frameworks/desktop-browsers/client-side/ruby/bitbar_selenium.rb | ||
| ``` | ||
|
|
||
| Or from this folder: | ||
|
|
||
| ```bash | ||
| ruby bitbar_selenium.rb | ||
| ``` | ||
|
|
||
| ## Expected Output | ||
|
|
||
| When successful, the script prints page title text similar to: | ||
|
|
||
| - Bitbar - Test Page for Samples | ||
| - Bitbar |
59 changes: 59 additions & 0 deletions
59
...selenium/client-side/CSharp/SeleniumCSharpSample/SeleniumCsharpSample/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # BitBar Selenium C# Sample | ||
|
|
||
| This folder contains a C# NUnit Selenium sample | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - .NET SDK installed (current project targets `net10.0`/`net7.0`) | ||
| - A valid BitBar API key | ||
|
|
||
|
|
||
| ## Files | ||
|
|
||
| - `UnitTest1.cs`: Main sample test | ||
| - `BitbarSeleniumSampleCSharp.csproj`: Project file and dependencies | ||
|
|
||
| ## Run the test | ||
|
|
||
| From this folder: | ||
|
|
||
| ```bash | ||
| dotnet test BitbarSeleniumSampleCSharp.csproj | ||
| ``` | ||
|
|
||
| ## Configure BitBar | ||
|
|
||
| Update capabilities in `UnitTest1.cs` as needed: | ||
|
|
||
| - platformName | ||
| - browserVersion | ||
| - bitbar:options (project, testrun, apiKey, osVersion, resolution) | ||
|
|
||
|
|
||
| ## Corner Cases / Troubleshooting | ||
|
|
||
| - SDK version mismatch (`NETSDK1045`): | ||
| If your local SDK does not support the target framework, install a compatible SDK or change the target framework in `BitbarSeleniumSampleCSharp.csproj`. | ||
|
|
||
| Example to install/check SDK: | ||
|
|
||
| ```bash | ||
| dotnet --list-sdks | ||
| ``` | ||
|
|
||
| - Need to update Selenium WebDriver version: | ||
| If tests fail after browser or API-side changes, update `Selenium.WebDriver` to a newer compatible version. | ||
|
|
||
| ```bash | ||
| dotnet add BitbarSeleniumSampleCSharp.csproj package Selenium.WebDriver --version 4.33.0 | ||
| dotnet restore | ||
| ``` | ||
|
|
||
| - Package restore/build issues after version change: | ||
| Clean and restore dependencies before running tests again. | ||
|
|
||
| ```bash | ||
| dotnet clean BitbarSeleniumSampleCSharp.csproj | ||
| dotnet restore BitbarSeleniumSampleCSharp.csproj | ||
| dotnet test BitbarSeleniumSampleCSharp.csproj | ||
| ``` |
53 changes: 53 additions & 0 deletions
53
samples/testing-frameworks/selenium/client-side/NodeJS/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Selenium NodeJS Sample | ||
|
|
||
| This folder contains a sample client-side Selenium test for desktop browsers in BitBar Cloud. | ||
|
|
||
| ## Files | ||
|
|
||
| - `bitbar_selenium.js` runs a Selenium WebDriver session against the BitBar desktop hub, opens the sample page, clicks the button, and validates the page title, result text, and button style. | ||
| - `package.json` defines the Node.js dependencies for the sample. | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Node.js | ||
| - npm | ||
| - A valid BitBar API key | ||
|
|
||
| ## Dependencies | ||
|
|
||
| This sample uses the dependencies declared in `package.json`: | ||
|
|
||
| - `selenium-webdriver` `^4.28.1` | ||
| - `chai` `^5.1.2` | ||
|
|
||
| ## Before Running | ||
|
|
||
| Open `bitbar_selenium.js` and replace the `apiKey` value with your own BitBar API key. | ||
|
|
||
| Install the project dependencies from this folder: | ||
|
|
||
| ```bash | ||
| npm install | ||
| ``` | ||
|
|
||
| ## Run Locally | ||
|
|
||
| From this folder, run: | ||
|
|
||
| ```bash | ||
| node bitbar_selenium.js | ||
| ``` | ||
|
|
||
| ## Expected Output | ||
|
|
||
| A successful run prints output similar to: | ||
|
|
||
| Bitbar - Test Page for Samples | ||
| Bitbar | ||
|
|
||
|
|
||
| ## Troubleshooting | ||
|
|
||
| If `npm install` fails, verify that `node` and `npm` are installed and available in your shell. | ||
|
|
||
| If the test starts but fails to create a remote session, check that the BitBar `apiKey` in `bitbar_selenium.js` is valid. |
48 changes: 48 additions & 0 deletions
48
samples/testing-frameworks/selenium/client-side/java/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| Intro | ||
| ===== | ||
|
|
||
| This folder contains a sample client side Selenium test for desktop browsers in BitBar Cloud. | ||
| To run the sample, go to `https://cloud.bitbar.com/` and use a valid Bitbar API key. | ||
|
|
||
| Folder Content | ||
| -------------- | ||
|
|
||
| This folder contains the following files: | ||
|
|
||
| * `src/test/java/com/bitbar/selenium/BitbarSelenium.java` is the Java sample test. | ||
|
|
||
| * `pom.xml` defines the Maven project and pulls the Selenium Java dependency used by the sample. | ||
|
|
||
| Requirements | ||
| ------------ | ||
|
|
||
| * Java 8 or newer | ||
| * Maven 3.6 or newer | ||
| * A valid Bitbar API key | ||
|
|
||
| Before Running | ||
| -------------- | ||
|
|
||
| Add your BitBar Key here in BitbarSelenium.java:- | ||
| * `bitbarOptions.put("apiKey", "<insert your Bitbar API key here>");` | ||
|
|
||
| Run Locally | ||
| ----------- | ||
|
|
||
| From this folder, run: | ||
|
|
||
| ```bash | ||
| mvn -q -DskipTests test-compile org.codehaus.mojo:exec-maven-plugin:3.6.0:java \ | ||
| -Dexec.mainClass=com.bitbar.selenium.BitbarSelenium \ | ||
| -Dexec.classpathScope=test | ||
| ``` | ||
|
|
||
| Expected Output | ||
| --------------- | ||
|
|
||
| A successful run prints output similar to: | ||
|
|
||
| ```text | ||
| Bitbar - Test Page for Samples | ||
| Bitbar | ||
| ``` |
27 changes: 27 additions & 0 deletions
27
samples/testing-frameworks/selenium/client-side/python/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Selenium Python Sample | ||
|
|
||
| 1. Open `bitbar_selenium.py` and update `apiKey` in `capabilities`. | ||
| 2. Install compatible Selenium: | ||
| 3. Run: | ||
|
|
||
| ```bash | ||
| python3 bitbar_selenium.py | ||
| ``` | ||
|
|
||
| ## Common Error | ||
|
|
||
| Error: | ||
|
|
||
| ```text | ||
| TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities' | ||
| ``` | ||
|
|
||
| Cause: | ||
| - Installed Selenium version is too new for this sample code. | ||
|
|
||
| Fix: | ||
|
|
||
| ```bash | ||
| python -m pip install "selenium==4.9.1" | ||
| (any selenium version that is compatible) | ||
| ``` |
5 changes: 5 additions & 0 deletions
5
...parallel-mobile-tests/src/test/resources/properties/Apple iPhone 16 A3287 26.2.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| bitbar_device = Apple iPhone 16 A3287 26.2 | ||
| browser_name = safari | ||
| platform_name = iOS | ||
| device_name = iPhone device | ||
| automation_name = XCUITest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...l-mobile-tests/src/test/resources/properties/Samsung Galaxy S24 Ultra SM-S928B.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| bitbar_device = Samsung Galaxy S24 Ultra SM-S928B | ||
| browser_name = chrome | ||
| platform_name = Android | ||
| device_name = Android Phone | ||
| automation_name = UiAutomator2 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not perfectly sure but IMO we do not have
Google Pixel XLdevice model on the production