Skip to content

Commit fbd1a3f

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # azure-pipelines.yml
2 parents d3933bb + edb8ed2 commit fbd1a3f

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
variables:
5555
ANDROID_EMU_NAME: test
56-
ANDROID_SDK_ID: system-images;android-30;google_apis_playstore;x86
56+
ANDROID_SDK_ID: system-images;android-30;google_apis_playstore;x86_64
5757

5858
steps:
5959
- task: CmdLine@2
@@ -78,12 +78,19 @@ jobs:
7878
echo "Starting emulator"
7979
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -gpu swiftshader_indirect -noaudio -no-boot-anim -no-snapshot -verbose > /dev/null 2>&1 &
8080
$ANDROID_HOME/platform-tools/adb wait-for-device
81-
while [[ $? -ne 0 ]]; do sleep 1; $ANDROID_HOME/platform-tools/adb shell pm list packages; done;
81+
for i in {1..300}; do
82+
$ANDROID_HOME/platform-tools/adb shell pm list packages >/dev/null 2>&1 && break
83+
sleep 2
84+
done
85+
if [[ $i -eq 300 ]]; then
86+
echo "Emulator failed to boot in time" >&2
87+
exit 1
88+
fi
8289
$ANDROID_HOME/platform-tools/adb devices
8390
echo "Emulator started"
8491
8592
echo "Installing Appium"
86-
npm install -g appium@latest
93+
npm install -g appium@2
8794
ln -fs /usr/local/lib/node_modules/appium/build/lib/main.js /usr/local/bin/appium
8895
chmod +x /usr/local/bin/appium
8996
export PATH=$PATH:/usr/local/bin/appium

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<plugin>
8181
<groupId>org.jacoco</groupId>
8282
<artifactId>jacoco-maven-plugin</artifactId>
83-
<version>0.8.11</version>
83+
<version>0.8.12</version>
8484
<executions>
8585
<execution>
8686
<id>pre-unit-test</id>
@@ -111,7 +111,7 @@
111111
<executions>
112112
<execution>
113113
<goals>
114-
<goal>attached</goal>
114+
<goal>single</goal>
115115
</goals>
116116
<phase>package</phase>
117117
<configuration>
@@ -125,7 +125,7 @@
125125
<plugin>
126126
<groupId>org.apache.maven.plugins</groupId>
127127
<artifactId>maven-source-plugin</artifactId>
128-
<version>3.3.0</version>
128+
<version>3.3.1</version>
129129
<executions>
130130
<execution>
131131
<id>attach-sources</id>
@@ -154,7 +154,7 @@
154154
<plugin>
155155
<groupId>org.apache.maven.plugins</groupId>
156156
<artifactId>maven-gpg-plugin</artifactId>
157-
<version>3.1.0</version>
157+
<version>3.2.7</version>
158158
<executions>
159159
<execution>
160160
<id>sign-artifacts</id>
@@ -174,7 +174,7 @@
174174
<plugin>
175175
<groupId>org.sonatype.plugins</groupId>
176176
<artifactId>nexus-staging-maven-plugin</artifactId>
177-
<version>1.6.13</version>
177+
<version>1.7.0</version>
178178
<extensions>true</extensions>
179179
<configuration>
180180
<serverId>ossrh</serverId>

src/test/java/samples/android/ITestRadioButton.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public interface ITestRadioButton {
1111

1212
default void testRadioButton() {
1313
openRadioButtonsScreen();
14-
IRadioButton button1 = getRadioButton(1);
15-
Assert.assertFalse(button1.isChecked(), "RadioButton should not be checked initially");
16-
button1.click();
17-
Assert.assertTrue(button1.isChecked(), "RadioButton should be checked after click on it");
18-
getRadioButton(2).click();
19-
Assert.assertFalse(button1.isChecked(),
20-
String.format("RadioButton %s should not be checked after click on another option", button1.getName()));
14+
IRadioButton button2 = getRadioButton(2);
15+
Assert.assertFalse(button2.isChecked(), "RadioButton should not be checked initially");
16+
button2.click();
17+
Assert.assertTrue(button2.isChecked(), "RadioButton should be checked after click on it");
18+
getRadioButton(1).click();
19+
Assert.assertFalse(button2.isChecked(),
20+
String.format("RadioButton %s should not be checked after click on another option", button2.getName()));
2121
}
2222
}

src/test/java/samples/android/web/WebRadioButtonTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class WebRadioButtonTest extends AndroidWebTest implements ITestRadioButt
1010

1111
@Override
1212
public void openRadioButtonsScreen() {
13-
AqualityServices.getApplication().getDriver().get("http://www.echoecho.com/htmlforms10.htm");
13+
AqualityServices.getApplication().getDriver().get("https://formy-project.herokuapp.com/radiobutton");
1414
}
1515

1616
@Override

0 commit comments

Comments
 (0)