Installing additional Frameworks/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 35: Zeile 35:


[[Bild:PythonSettings.png|500px|PythonSettings]]
[[Bild:PythonSettings.png|500px|PythonSettings]]

=== pip2 vs. pip3 vs. pip ===
To install python packages, use the "<Code>pip</Code>" command. However, this command is usually a symbolic link to either "<Code>pip2</Code>" or "<Code>pip3</Code>".

You should use "<Code>pip3</Code>" to install packages for python3, and "<Code>pip2</Code>" for python2. Thus, it is safer to use one of those instead of "pip" to ensure that the module is installed for the current version.

On some systems, no pip2 command is present by default (and installing python3 will define the "<Code>pip</Code>" command as an alias to "<Code>pip3</Code>".

You get "pip2" on those systems, execute (on the command line):
wget https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py


== Jython Installation ==
== Jython Installation ==

Version vom 30. Juli 2020, 23:31 Uhr

Additional frameworks need to be installed on your machine, if you intent to execute actions written for Node, Python, C etc.
If they are already installed, but expecco fails to execute one of them, take a look at the PATH setting and/or the expecco "External Script Interpreters" settings.

Java Installation (for Groovy Actions, Web- and Mobile Testing)[Bearbeiten]

You can either install a plain Runtime Environment (jre) or a full developper kit (jdk). If only a jre is installed, some functions will not work, and we therefore recommend a jdk to be installed (typically at its standard location, "C:\Program Files\Java\jdk-xxx", so it will run out of the box). Expecco will try to figure out if and where Java was installed, but it it also possible to specify the pathes via the settings dialog.

Notice, that due to changed regulations by Oracle, we may no longer provide a Java installation bundled with expecco; you should navigate to the Oracle (or OpenJDK) website and install it from there.

Also notice, that on most systems, a Java is already installed, but it may be a runtime environment only. Please verify, that a jdk is installed for the full set of features.

Node Installation (for Node.js Actions)[Bearbeiten]

Goto [ https://nodejs.org/de/download/ ] and select the appropriate package for your machine. When asked if additional packages are to be downloaded, answer "yes". Then VisualStudio build tools will also be installed, in case any node module will need to be compiled from C/C++ code.

Open the expecco node interpreter Settings ("Extras" → "Settings" → "Execution" → "External Script Interpreters" → "Node") and verify that the "node" command is found along your PATH variable settings (click on the "?"-button).

If not found, either restart expecco (if you installed node while expecco was active), or enter the path to your node interpreter into the path field.

Python Installation (for Python Actions)[Bearbeiten]

Goto [ https://www.python.org/downloads/ ] and select the appropriate package for your machine. Notice, that there are both packages for python3 and python2.7 available, and you may have to install both, depending on the Python code to be executed later.

Open the expecco python interpreter settings ("Extras" → "Settings" → "Execution" → "External Script Interpreters" → "Python") and verify that the "python" command is found along your PATH variable settings (click on "?").

If not found, either restart expecco (if you installed python while expecco was active), or enter the full path to your Python interpreter into the path field.

Make sure that the correct python version is displayed (2.x vs. 3.x).

PythonSettings

pip2 vs. pip3 vs. pip[Bearbeiten]

To install python packages, use the "pip" command. However, this command is usually a symbolic link to either "pip2" or "pip3".

You should use "pip3" to install packages for python3, and "pip2" for python2. Thus, it is safer to use one of those instead of "pip" to ensure that the module is installed for the current version.

On some systems, no pip2 command is present by default (and installing python3 will define the "pip" command as an alias to "pip3".

You get "pip2" on those systems, execute (on the command line):

wget https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py

Jython Installation[Bearbeiten]

As a prerequisite, Java needs to be installed on your machine. Then goto [ https://www.jython.org/download.html ], download the Jython installer and run it. If the "jython" command is not in your PATH, enter its full path in the settings dialog.
Notice that jython is a 2.x Python (at the time of writing).

Iron Python Installation[Bearbeiten]

As a prerequisite, you'll need a .NET CLR (common language runtime) or mono (on Unix systems). On Windows systems, a reasonable CLR Version is usually already installed. Then go to [ https://ironpython.net/download/ ] and follow the instructions. After download, IronPython is typically installed in "C:\Program Files\IronPython 2.x", and you should enter the path "C:\Program Files\IronPython 2.x\ipy.exe" into the IronPython command path field in the python settings dialog (or simply "ipy", if it is in your PATH).
Notice that IronPython as found in the above link is a 2.x Python (at the time of writing), whereas the IronPython provided with Mono might be a 3.x Python.

C Compiler Toolchain Installation (for C-Actions)[Bearbeiten]

You need a C-compiler toolchain to be installed for C-coded actions. With Unix/Linux systems, these are usually already present on the machine (try "cc --Version" in a shell window). With OSX, you have to install "XCode" or the "Command Line Tools" subset. With Windows, install one of "Borland", "VisualC", "VisualC Redistributable" or "MingGW".
We recommend MingGW.

Entered C-code will be compiled using that toolchain, in that the cBridge executes a batch or shell script. For the above toolchains, corresponding scripts are provided, but you can add your own scripts, in case you need special compile options or compiler versions, or if you want to compile with a compiler not initially supported by the standard installation.

If you get compilation errors, take a look at the "compile_xxx" scripts in the "exept/expecco/bridgeFramework/cBridge/cLibrary" folder under the expecco installation folder. If required, add your own script to call whatever compiler you need, and select it in the cBridge settings dialog ("Extras" → "Settings" → "Execution" → "Bridges" → "CBridge").

Notice, that we currently do not provide compilation scripts for C++; however, by declaring entry-functions (extern "C") in your C++ code, these can be called from C.



Copyright © 2014-2024 eXept Software AG