From 3c657030b4d27786f9c124a1518524d9bd8a0b5f Mon Sep 17 00:00:00 2001 From: mparvu Date: Tue, 11 Sep 2018 10:39:11 +0300 Subject: [PATCH] Preparation for the 1.1.0 release --- README.rst | 22 +++++++++++++++ docs/ScreenCapLibrary-1.1.0.rst | 36 ++++++++++++++++++++++++ docs/ScreenCapLibrary.html | 4 +-- src/ScreenCapLibrary/ScreenCapLibrary.py | 11 ++++---- src/ScreenCapLibrary/version.py | 2 +- 5 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 docs/ScreenCapLibrary-1.1.0.rst diff --git a/README.rst b/README.rst index faed9de..3c41228 100644 --- a/README.rst +++ b/README.rst @@ -84,6 +84,28 @@ easy-to-understand tests as possible. Take Screenshot name=screenshot format=jpg quality=0 File Should Exist screenshot_1.jpg + +Using with VNC +-------------- + +At the time of this release ``mss``, does not work on GNU/Linux with VNC virtual desktop. +As a workaround you can change the ``screenshot_module`` value at library import to ``PyGTK``. + +.. code:: robotframework + + *** Settings *** + Library ScreenCapLibrary screenshot_module=PyGTK + +For this to work you need to have the following dependencies installed. + +- With Python 2:: + + sudo apt install python-gtk2 + +- With Python 3:: + + sudo apt install python-gi python-gi-cairo python3-gi python3-gi-cairo gir1.2-gtk-3.0 + Support ------- diff --git a/docs/ScreenCapLibrary-1.1.0.rst b/docs/ScreenCapLibrary-1.1.0.rst new file mode 100644 index 0000000..8ed9998 --- /dev/null +++ b/docs/ScreenCapLibrary-1.1.0.rst @@ -0,0 +1,36 @@ +====================== +ScreenCapLibrary 1.1.0 +====================== + + +.. default-role:: code + + +ScreenCapLibrary_ is a `Robot Framework`_ test library for taking screenshots. +ScreencapLibrary 1.1.0 is a new release adding PyGTK screenshot module, to be +able to take screenshots when using a virtual display like VNC (`#1`_). + +If you have pip_ installed, just run + +:: + + pip install robotframework-screencaplibrary + +to install the latest release or use + +:: + + pip install robotframework-screencaplibrary==1.1.0 + +to install exactly this version. Alternatively you can download the source +distribution from PyPI_ and install it manually. + +ScreenCapLibrary 1.1.0 was released on Tuesday September 11, 2018. + +.. _Robot Framework: http://robotframework.org +.. _screencaplibrary: https://github.com/mihaiparvu/screencaplibrary +.. _Screenshot: http://robotframework.org/robotframework/latest/libraries/Screenshot.html +.. _pip: http://pip-installer.org +.. _PyPI: https://pypi.python.org/pypi/robotframework-screencaplibrary +.. _issue tracker: https://github.com/robotframework/screencaplibrary/issues +.. _#1: https://github.com/mihaiparvu/ScreenCapLibrary/issues/1 diff --git a/docs/ScreenCapLibrary.html b/docs/ScreenCapLibrary.html index d94b645..706814a 100644 --- a/docs/ScreenCapLibrary.html +++ b/docs/ScreenCapLibrary.html @@ -5,7 +5,7 @@ - +