Skip to content

Commit 374d4ec

Browse files
committed
[master] - release version 1.4.0 with Responsive UI Validator
1 parent b09ef0c commit 374d4ec

File tree

2 files changed

+97
-70
lines changed

2 files changed

+97
-70
lines changed

pom.xml

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>net.itarray</groupId>
88
<artifactId>automotion</artifactId>
9-
<version>1.3.2</version>
9+
<version>1.4.0</version>
1010
<name>Automotion</name>
1111
<description>Library for automation testing</description>
1212
<url>https://www.itarray.net</url>
@@ -39,79 +39,79 @@
3939
<maven.compiler.target>1.8</maven.compiler.target>
4040
</properties>
4141

42-
<!--<build>-->
43-
<!--<plugins>-->
44-
<!--<plugin>-->
45-
<!--<groupId>org.apache.maven.plugins</groupId>-->
46-
<!--<artifactId>maven-gpg-plugin</artifactId>-->
47-
<!--<executions>-->
48-
<!--<execution>-->
49-
<!--<id>sign-artifacts</id>-->
50-
<!--<phase>verify</phase>-->
51-
<!--<goals>-->
52-
<!--<goal>sign</goal>-->
53-
<!--</goals>-->
54-
<!--</execution>-->
55-
<!--</executions>-->
56-
<!--</plugin>-->
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-gpg-plugin</artifactId>
47+
<executions>
48+
<execution>
49+
<id>sign-artifacts</id>
50+
<phase>verify</phase>
51+
<goals>
52+
<goal>sign</goal>
53+
</goals>
54+
</execution>
55+
</executions>
56+
</plugin>
5757

58-
<!--<plugin>-->
59-
<!--<groupId>org.sonatype.plugins</groupId>-->
60-
<!--<artifactId>nexus-staging-maven-plugin</artifactId>-->
61-
<!--<version>1.6.3</version>-->
62-
<!--<extensions>true</extensions>-->
63-
<!--<configuration>-->
64-
<!--<serverId>ossrh</serverId>-->
65-
<!--<nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
66-
<!--<stagingProfileId>22f8da536d8418</stagingProfileId> &lt;!&ndash;Staging&ndash;&gt;-->
67-
<!--&lt;!&ndash;<stagingProfileId>7edbe315063867</stagingProfileId> &lt;!&ndash;Central staging&ndash;&gt;&ndash;&gt;-->
68-
<!--<skipStagingRepositoryClose>true</skipStagingRepositoryClose>-->
69-
<!--<autoReleaseAfterClose>true</autoReleaseAfterClose>-->
70-
<!--</configuration>-->
71-
<!--</plugin>-->
58+
<plugin>
59+
<groupId>org.sonatype.plugins</groupId>
60+
<artifactId>nexus-staging-maven-plugin</artifactId>
61+
<version>1.6.3</version>
62+
<extensions>true</extensions>
63+
<configuration>
64+
<serverId>ossrh</serverId>
65+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
66+
<stagingProfileId>22f8da536d8418</stagingProfileId> <!--Staging-->
67+
<!--<stagingProfileId>7edbe315063867</stagingProfileId> &lt;!&ndash;Central staging&ndash;&gt;-->
68+
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
69+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
70+
</configuration>
71+
</plugin>
7272

73-
<!--<plugin>-->
74-
<!--<groupId>org.apache.maven.plugins</groupId>-->
75-
<!--<artifactId>maven-source-plugin</artifactId>-->
76-
<!--<executions>-->
77-
<!--<execution>-->
78-
<!--<id>attach-sources</id>-->
79-
<!--<goals>-->
80-
<!--<goal>jar</goal>-->
81-
<!--</goals>-->
82-
<!--</execution>-->
83-
<!--</executions>-->
84-
<!--</plugin>-->
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-source-plugin</artifactId>
76+
<executions>
77+
<execution>
78+
<id>attach-sources</id>
79+
<goals>
80+
<goal>jar</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
8585

86-
<!--<plugin>-->
87-
<!--<groupId>org.apache.maven.plugins</groupId>-->
88-
<!--<artifactId>maven-javadoc-plugin</artifactId>-->
89-
<!--<executions>-->
90-
<!--<execution>-->
91-
<!--<id>attach-javadocs</id>-->
92-
<!--<goals>-->
93-
<!--<goal>jar</goal>-->
94-
<!--</goals>-->
95-
<!--</execution>-->
96-
<!--</executions>-->
97-
<!--<configuration>-->
98-
<!--<additionalparam>-Xdoclint:none</additionalparam>-->
99-
<!--</configuration>-->
100-
<!--</plugin>-->
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-javadoc-plugin</artifactId>
89+
<executions>
90+
<execution>
91+
<id>attach-javadocs</id>
92+
<goals>
93+
<goal>jar</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
<configuration>
98+
<additionalparam>-Xdoclint:none</additionalparam>
99+
</configuration>
100+
</plugin>
101101

102-
<!--</plugins>-->
103-
<!--</build>-->
102+
</plugins>
103+
</build>
104104

105-
<!--<distributionManagement>-->
106-
<!--<snapshotRepository>-->
107-
<!--<id>ossrh</id>-->
108-
<!--<url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
109-
<!--</snapshotRepository>-->
110-
<!--<repository>-->
111-
<!--<id>ossrh</id>-->
112-
<!--<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>-->
113-
<!--</repository>-->
114-
<!--</distributionManagement>-->
105+
<distributionManagement>
106+
<snapshotRepository>
107+
<id>ossrh</id>
108+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
109+
</snapshotRepository>
110+
<repository>
111+
<id>ossrh</id>
112+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
113+
</repository>
114+
</distributionManagement>
115115

116116
<dependencies>
117117
<dependency>

readme.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is JAVA library for the running of mobile, web or API automated tests.
88
<dependency>
99
<groupId>net.itarray</groupId>
1010
<artifactId>automotion</artifactId>
11-
<version>1.3.1</version>
11+
<version>1.4.0</version>
1212
</dependency>
1313

1414
### Steps of adding to the project ###
@@ -77,6 +77,33 @@ This is JAVA library for the running of mobile, web or API automated tests.
7777
DEVICE=Device name or ID
7878

7979
### Possibilities ###
80+
- Responsive UI Validator allows to validate UI on web or mobile page using lots of criterias. Also it allows tu build thr HTMl report after validation.
81+
82+
ResponsiveUIValidator uiValidator = new ResponsiveUIValidator(driver);
83+
84+
85+
boolean result = uiValidator.init()
86+
.findElement({rootEelement}, "Name of element")
87+
.sameOffsetLeftAs({element} "Panel 1")
88+
.sameOffsetLeftAs({element} "Button 1")
89+
.sameOffsetRightAs({element} "Button 2")
90+
.sameOffsetRightAs({element}, "Button 3)
91+
.withCssValue("border", "2px", "solid", "#FBDCDC")
92+
.withCssValue("border-radius", "4px")
93+
.withoutCssValue("color", "#FFFFFF")
94+
.sameSizeAs({list_elements},)
95+
.insideOf({element}, "Container")
96+
.notOverlapWith({element}, "Other element")
97+
.withTopElement({element}, 10, 15)
98+
.changeMetricsUnitsTo(ResponsiveUIValidator.Units.PERCENT)
99+
.widthBetween(50, 55)
100+
.heightBetween(90, 95)
101+
.drawMap()
102+
.validate();
103+
104+
105+
uiValidator.generateReport();
106+
80107
- Verification that elements are aligned correctly on the web or mobile page
81108
* Elements horizontally are aligned correctly:
82109

0 commit comments

Comments
 (0)