Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ jobs:
echo Cannot run Appium tests when build was triggered by dependabot
exit 1
- uses: actions/checkout@v3
- name: BrowserStack Env Setup
uses: browserstack/github-actions/setup-env@master
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- uses: actions/setup-node@v4
if: matrix.module-name == 'openmaqs-playwright'
with:
Expand Down Expand Up @@ -260,7 +265,6 @@ jobs:
with:
distribution: zulu
java-version: 11
cache: maven
- name: Restore Local Maven Cache
uses: actions/cache@v3.3.1
with:
Expand All @@ -270,7 +274,7 @@ jobs:
uses: whelk-io/maven-settings-xml-action@v21
with:
profiles: '[{"id": "gpg", "properties": { "gpg.keyname": "${{secrets.GPG_KEYNAME_ID}}", "gpg.passphrase": "${{secrets.GPG_PASSPHRASE}}" }}]'
servers: '[{"id": "ossrh", "username": "${{secrets.DEPLOY_PACKAGE_USERNAME}}", "password": "${{secrets.DEPLOY_PACKAGE_PASSWORD}}"}]'
servers: '[{"id": "ossrh", "username": "${{vars.DEPLOY_PACKAGE_USERNAME}}", "password": "${{secrets.DEPLOY_PACKAGE_PASSWORD}}"}]'
active_profiles: >
[ "ossrh", "release", "gpg" ]
- name: Import GPG key
Expand Down
12 changes: 12 additions & 0 deletions openmaqs-appium/browserstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
framework: testng
platforms:
- deviceName: Google Pixel 7 Pro
osVersion: 13.0
browserName: android
deviceOrientation: portrait
parallelsPerPlatform: 5
browserstackLocal: false
buildIdentifier: ${BUILD_NUMBER}
debug: true
networkLogs: false
consoleLogs: errors
2 changes: 1 addition & 1 deletion openmaqs-appium/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<DeviceName>Android GoogleAPI Emulator</DeviceName>

<!-- Appium or grid connection -->
<MobileHubUrl>http://ondemand.saucelabs.com:80/wd/hub</MobileHubUrl>
<MobileHubUrl>https://hub.browserstack.com/wd/hub</MobileHubUrl>

<!-- Command time-out in milliseconds -->
<MobileCommandTimeout>122000</MobileCommandTimeout>
Expand Down
52 changes: 52 additions & 0 deletions openmaqs-appium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,56 @@
<scope>compile</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>testing</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>getClasspathFilenames</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
<configuration>
<parallel>methods</parallel>
<threadCount>5</threadCount>
<argLine>
${argLine} -javaagent:@{com.browserstack:browserstack-java-sdk:jar}
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-testng</artifactId>
<version>${surefire.plugin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.browserstack</groupId>
<artifactId>browserstack-java-sdk</artifactId>
<version>1.2.1</version>
</dependency>
</dependencies>
</profile>
</profiles>

</project>
12 changes: 12 additions & 0 deletions openmaqs-selenium/browserstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
framework: testng
platforms:
- os: Windows
osVersion: 11
browserName: Chrome
browserVersion: latest
parallelsPerPlatform: 5
browserstackLocal: false
buildIdentifier: ${BUILD_NUMBER}
debug: true
networkLogs: false
consoleLogs: errors
13 changes: 4 additions & 9 deletions openmaqs-selenium/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
<Browser>Firefox</Browser>
<Browser>Edge</Browser>
<Browser>HEADLESSCHROME</Browser>-->
<Browser>HEADLESSCHROME</Browser>
<Browser>REMOTE</Browser>

<!--Remote browser settings-->
<RemoteBrowser>Chrome</RemoteBrowser>
<HubUrl>http://ondemand.saucelabs.com:80/wd/hub</HubUrl>
<HubUrl>https://hub.browserstack.com/wd/hub</HubUrl>
<WebSiteBase>https://openmaqs.github.io/TestingSite/Automation/</WebSiteBase>
<BrowserWaitTime>1000</BrowserWaitTime>
<BrowserTimeout>20000</BrowserTimeout>
<RemoteBrowserName>Chrome</RemoteBrowserName>
<RemotePlatform>OS X 10.11</RemotePlatform>
<RemoteVersion>54.0</RemoteVersion>
<!-- <RemotePlatform>OS X 10.11</RemotePlatform>-->
<!-- <RemoteVersion>54.0</RemoteVersion>-->

<!--Browser Resize settings
<BrowserSize>MAXIMIZE</BrowserSize>
Expand All @@ -62,10 +62,5 @@
</SeleniumMaqs>

<RemoteSeleniumCapsMaqs>
<username>Sauce_Labs_Username</username>
<accessKey>Sauce_Labs_Accesskey</accessKey>
<browserName>Chrome</browserName>
<platform>OS X 10.11</platform>
<version>54.0</version>
</RemoteSeleniumCapsMaqs>
</configuration>
54 changes: 53 additions & 1 deletion openmaqs-selenium/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -18,6 +20,51 @@
<commonsio.version>2.11.0</commonsio.version>
</properties>

<profiles>
<profile>
<id>testing</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>getClasspathFilenames</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
<configuration>
<parallel>methods</parallel>
<threadCount>5</threadCount>
<argLine>
${argLine} -javaagent:@{com.browserstack:browserstack-java-sdk:jar}
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-testng</artifactId>
<version>${surefire.plugin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>io.github.openmaqs.utilities</groupId>
Expand Down Expand Up @@ -95,5 +142,10 @@
<version>1.7.32</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.browserstack</groupId>
<artifactId>browserstack-java-sdk</artifactId>
<version>1.2.1</version>
</dependency>
</dependencies>
</project>