Thanks to visit codestin.com
Credit goes to github.com

Skip to content

0.5.3 release #27

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

Merged
merged 34 commits into from
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5d5b945
Add instructions for enabling accessibility features on MacOS Mojave
psaikkonen Nov 5, 2018
e047c4c
Adjust readme
psaikkonen Nov 5, 2018
c4d819d
Get FxRobotContext from the active sessionRobot in TestFxAdapter
psaikkonen Nov 9, 2018
dbb7cc9
Prevent conflicts with Commons by shading it
Hi-Fi Nov 13, 2018
e81d02b
Add keyword Launch Swing Application In Separate Thread
psaikkonen Nov 16, 2018
ffa9303
Moved test app to test code
Hi-Fi Nov 27, 2018
f86b9bb
Continuing to use awt robot with library
Hi-Fi Nov 27, 2018
f675c31
Merge pull request #8 from Hi-Fi/shadeCommons
psaikkonen Nov 27, 2018
234269f
Merge pull request #9 from Hi-Fi/packageImprovements
psaikkonen Nov 27, 2018
9052b63
Added init argument to determine if tests are run headless
Hi-Fi Nov 28, 2018
642701f
Added javaagent explicitly (windows build failed without it)
Hi-Fi Nov 28, 2018
72754fb
Including monocle also in actual package
Hi-Fi Nov 28, 2018
233a42f
development branch with 0.5.3-SNAPSHOT
sampeson Nov 29, 2018
2e26868
Merge branch 'development' of github.com:eficode/JavaFXLibrary into j…
Hi-Fi Nov 29, 2018
d92b7a1
Merge pull request #10 from Hi-Fi/jmockitFix
sampeson Nov 29, 2018
599c6df
add Nexus part to BUILD.md
sampeson Nov 29, 2018
8a48b7e
Merge branch 'development' of github.com:eficode/JavaFXLibrary into e…
Hi-Fi Nov 29, 2018
10e2931
Helper function for bringing the window that's going to be clicked on…
Hi-Fi Nov 29, 2018
a480220
Storing info about headless execution to variable
Hi-Fi Nov 30, 2018
bbb9236
- Tagging monocle failing tests with "monocle-issue" if headless mode…
Hi-Fi Nov 30, 2018
14085d3
Updated documentation
Hi-Fi Nov 30, 2018
e2c774a
Fixed list indent
Hi-Fi Nov 30, 2018
f56306a
Capturing active window if locator is not given
Hi-Fi Dec 4, 2018
a4602e7
Merge pull request #16 from Hi-Fi/experimentalHeadless
sampeson Feb 14, 2019
cef2162
Merge pull request #20 from Hi-Fi/improvedScreencapture
sampeson Feb 14, 2019
289ec3c
Merge branch 'master' into development
sampeson Jun 6, 2019
5ba5ac7
add multipointer support to demo containers
sampeson Aug 19, 2019
8681dc1
SwingApplicationWrapperTest fine tuning, variable for remote hostname
sampeson Aug 21, 2019
cd6d816
workaround failIfNotFound at this point
sampeson Sep 4, 2019
d4272a6
update dependencies, fix #26 async usage in waitUntilExists, library …
sampeson Nov 8, 2019
4593297
Fix local test set failing on Docker
psaikkonen Nov 8, 2019
292a138
Merge remote-tracking branch 'origin/development' into development
psaikkonen Nov 8, 2019
ea2f3bb
fix named arguments in acceptance testing for now (without named argu…
sampeson Nov 11, 2019
63e70f1
0.5.3 release preparation
sampeson Nov 11, 2019
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
15 changes: 8 additions & 7 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Core contributors:
Jukka Haavisto 2017 -
Sami Pesonen 2017 -
Pasi Saikkonen 2017 -
Jukka Haavisto 2017 -
Sami Pesonen 2017 -
Pasi Saikkonen 2017 -

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

10 changes: 7 additions & 3 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ JavaFXLibrary uses Apache Maven as a build tool.
are being used by both JavaFXLibrary and the AUT. It's not uncommon that a specific version is needed for AUT and another
version of the same dependency is required for JavaFXLibrary(e.g. TestFX dependency for Google Guava). Not always are these
dependencies backwards compatible and therefore JavaFXLibrary has adopted Apache Maven Shade Plugin to cope with this issue.
Currently the package com.google.common has been renamed in JavaFXLibrary as shaded.com.google.common to avoid version
mismatches with Google Guava dependencies. See https://maven.apache.org/plugins/maven-shade-plugin/ for more info.
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
mismatches with dependencies in AUT and internally. See https://maven.apache.org/plugins/maven-shade-plugin/ for more info.


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

## Announcements

Expand Down
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ JavaFXLibrary works with both Jython (local and remote use) and Python (remote o
JavaFXLibrary is tested to work with Robot Framework 3.0.2 or later.

## Keyword documentation
See keyword [documentation](https://eficode.github.io/JavaFXLibrary/javafxlibrary.html).
See keyword [documentation](https://repo1.maven.org/maven2/org/robotframework/javafxlibrary/0.5.3/javafxlibrary-0.5.3.html).

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).

## Taking the library into use
### As a local library
Expand All @@ -17,7 +19,7 @@ See keyword [documentation](https://eficode.github.io/JavaFXLibrary/javafxlibrar
*** Settings ***
Library JavaFXLibrary
```
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:
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:
```
jython -J-cp javafxlibrary-<version>.jar -m robot.run tests.robot
```
Expand Down Expand Up @@ -70,4 +72,29 @@ Library's acceptance test suite can be used as a JavaFXLibrary demo. Running the

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.

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.
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.

## Experimental: Headless support
Library supports headless operation utilizing [Monocle](https://wiki.openjdk.java.net/display/OpenJFX/Monocle). The support for this is still at experimental level.

### Main issues with headless function
* Scrolling doesn't work same way as with screen
* "Tick" (amount of scrolling) is much smaller in headless than normally
* Vertical (left/right) scrolling is not working
* Separate app windows' can't be closed (unless app offers that functionality itself)
* Swing applications can't be tested in headless mode.

### Enabling headless mode
Headless mode can be enabled by setting first library initialization to "True".

Locally:
```
*** Settings ***
Library JavaFXLibrary ${True}
```

Remote:
```
*** Settings ***
Library Remote http://127.0.0.1:8270 ${True} WITH NAME JavaFXLibrary
```
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
- testapp
environment:
- RESOLUTION=1920x1080
- X11VNC_ARGS=-multiptr

javafxcompile:
build:
Expand Down
7 changes: 6 additions & 1 deletion docker/robot-javafx-demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ RUN apt-get -qq update && apt-get dist-upgrade -y && apt-get install -qq --no-i
python-setuptools \
wget \
openjdk-8-jre \
openjfx \
# Install older version of openjfx, current version is incompatible with openjdk8
# Bug ticket: https://bugs.launchpad.net/ubuntu/+source/openjfx/+bug/1799946
openjfx=8u161-b12-1ubuntu2 \
libopenjfx-java=8u161-b12-1ubuntu2 \
libopenjfx-jni=8u161-b12-1ubuntu2 \
openjfx-source=8u161-b12-1ubuntu2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

COPY test.sh /bin/test.sh
Expand Down
19 changes: 10 additions & 9 deletions docs/javafxlibrary.html

Large diffs are not rendered by default.

Loading