Skip to content

Commit 33e87f9

Browse files
authored
Merge pull request #27 from eficode/development
0.5.3 release
2 parents 2f0c84b + 63e70f1 commit 33e87f9

22 files changed

+421
-264
lines changed

AUTHORS.txt

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Core contributors:
2-
Jukka Haavisto 2017 -
3-
Sami Pesonen 2017 -
4-
Pasi Saikkonen 2017 -
2+
Jukka Haavisto 2017 -
3+
Sami Pesonen 2017 -
4+
Pasi Saikkonen 2017 -
55

66
Other contributors:
7-
Tatu Lahtela Find All With Pseudo Class and Find Class keywords
8-
Sakari Hoisko Dockerized linux env with X
9-
Juho Lehtonen Optimized docker environment.
10-
Juho Saarinen Package improvements
7+
Tatu Lahtela Find All With Pseudo Class and Find Class keywords
8+
Sakari Hoisko Dockerized linux env with X
9+
Juho Lehtonen Optimized docker environment.
10+
Juho Saarinen Package improvements, initial monocle support, screenshot bug fix
11+

BUILD.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ JavaFXLibrary uses Apache Maven as a build tool.
1616
are being used by both JavaFXLibrary and the AUT. It's not uncommon that a specific version is needed for AUT and another
1717
version of the same dependency is required for JavaFXLibrary(e.g. TestFX dependency for Google Guava). Not always are these
1818
dependencies backwards compatible and therefore JavaFXLibrary has adopted Apache Maven Shade Plugin to cope with this issue.
19-
Currently the package com.google.common has been renamed in JavaFXLibrary as shaded.com.google.common to avoid version
20-
mismatches with Google Guava dependencies. See https://maven.apache.org/plugins/maven-shade-plugin/ for more info.
19+
Currently the package com.google.common has been renamed in JavaFXLibrary as shaded.com.google.common and org.apache.commons as shaded.org.apache.commons to avoid version
20+
mismatches with dependencies in AUT and internally. See https://maven.apache.org/plugins/maven-shade-plugin/ for more info.
2121

2222

2323
## Releasing
@@ -58,8 +58,12 @@ JavaFXLibrary uses Apache Maven as a build tool.
5858
</settings>
5959
````
6060
* Release snapshot or actual release (depending what is in version tag in pom.xml)``mvn clean deploy -P release``
61+
* In case of release log in to https://oss.sonatype.org:
62+
* from left choose `Staging repositories` and scroll down, choose `robotframework-*` repository and review
63+
* choose from top toolbar `Release`, add to reason field `x.y.z release` and submit
64+
* sync takes typically hours before visible in Maven Central
6165
* snapshots can be found from https://oss.sonatype.org/content/repositories/snapshots/org/robotframework/javafxlibrary/
62-
* actual releases can be found from https://search.maven.org/ and typing `javafxlibrary` in the search field.
66+
* actual releases can be found from https://search.maven.org/ and typing `javafxlibrary` in the search field.
6367

6468
## Announcements
6569

README.md

+30-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ JavaFXLibrary works with both Jython (local and remote use) and Python (remote o
77
JavaFXLibrary is tested to work with Robot Framework 3.0.2 or later.
88

99
## Keyword documentation
10-
See keyword [documentation](https://eficode.github.io/JavaFXLibrary/javafxlibrary.html).
10+
See keyword [documentation](https://repo1.maven.org/maven2/org/robotframework/javafxlibrary/0.5.3/javafxlibrary-0.5.3.html).
11+
12+
For editors (IDEs) keyword documentation can be obtained from [here](https://repo1.maven.org/maven2/org/robotframework/javafxlibrary/0.5.3/javafxlibrary-0.5.3.xml).
1113

1214
## Taking the library into use
1315
### As a local library
@@ -17,7 +19,7 @@ See keyword [documentation](https://eficode.github.io/JavaFXLibrary/javafxlibrar
1719
*** Settings ***
1820
Library JavaFXLibrary
1921
```
20-
3. Add library jar to Jython [module search path](http://robotframework.org/robotframework/3.0b1/RobotFrameworkUserGuide.html#configuring-where-to-search-libraries-and-other-extensions) and run your tests:
22+
3. Add library jar to Jython [module search path](http://robotframework.org/robotframework/3.1.2/RobotFrameworkUserGuide.html#configuring-where-to-search-libraries-and-other-extensions) and run your tests:
2123
```
2224
jython -J-cp javafxlibrary-<version>.jar -m robot.run tests.robot
2325
```
@@ -70,4 +72,29 @@ Library's acceptance test suite can be used as a JavaFXLibrary demo. Running the
7072

7173
Executing _test.sh_ runs the acceptance suite twice: first using JavaFXLibrary as a local Robot Framework library on Jython, and after that using the library in remote mode executing the same tests on python version of Robot Framework.
7274

73-
If you want the suite to run only once, you can define which type of library to use by including **local** or **remote** as an argument. For example command `test.sh remote` will execute the suite only in remote mode.
75+
If you want the suite to run only once, you can define which type of library to use by including **local** or **remote** as an argument. For example command `test.sh remote` will execute the suite only in remote mode.
76+
77+
## Experimental: Headless support
78+
Library supports headless operation utilizing [Monocle](https://wiki.openjdk.java.net/display/OpenJFX/Monocle). The support for this is still at experimental level.
79+
80+
### Main issues with headless function
81+
* Scrolling doesn't work same way as with screen
82+
* "Tick" (amount of scrolling) is much smaller in headless than normally
83+
* Vertical (left/right) scrolling is not working
84+
* Separate app windows' can't be closed (unless app offers that functionality itself)
85+
* Swing applications can't be tested in headless mode.
86+
87+
### Enabling headless mode
88+
Headless mode can be enabled by setting first library initialization to "True".
89+
90+
Locally:
91+
```
92+
*** Settings ***
93+
Library JavaFXLibrary ${True}
94+
```
95+
96+
Remote:
97+
```
98+
*** Settings ***
99+
Library Remote http://127.0.0.1:8270 ${True} WITH NAME JavaFXLibrary
100+
```

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ services:
1414
- testapp
1515
environment:
1616
- RESOLUTION=1920x1080
17+
- X11VNC_ARGS=-multiptr
1718

1819
javafxcompile:
1920
build:

docker/robot-javafx-demo/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ RUN apt-get -qq update && apt-get dist-upgrade -y && apt-get install -qq --no-i
1010
python-setuptools \
1111
wget \
1212
openjdk-8-jre \
13-
openjfx \
13+
# Install older version of openjfx, current version is incompatible with openjdk8
14+
# Bug ticket: https://bugs.launchpad.net/ubuntu/+source/openjfx/+bug/1799946
15+
openjfx=8u161-b12-1ubuntu2 \
16+
libopenjfx-java=8u161-b12-1ubuntu2 \
17+
libopenjfx-jni=8u161-b12-1ubuntu2 \
18+
openjfx-source=8u161-b12-1ubuntu2 \
1419
&& apt-get clean && rm -rf /var/lib/apt/lists/*
1520

1621
COPY test.sh /bin/test.sh

docs/javafxlibrary.html

+10-9
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)