Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
installdoc [2020/12/06 23:52] admin [Installing TestOptimal Server/IDE] |
installdoc [2024/01/02 19:31] admin [Eclipse and Other Java IDE Setup] |
===== TestOptimal Installation ===== | ===== TestOptimal Installation ===== |
| |
This document provides the instructions to install //TestOptimal Server//. | This document provides the instructions to install & start //TestOptimal Server//. |
| |
====Prerequisite==== | ====Prerequisite==== |
* //JDK 8// or later | * //JDK 17// or later |
* OS: //Windows (7 or later)// or //Mac//. | * OS: //Windows, Mac, Linux//. |
* Memory: at least 4GB | * Memory: at least 4GB |
* Disk Space (free): at least 2GB. | * Disk Space (free): at least 2GB. |
| * Modern browser (Firefox, Chrome, Edge, Safari) |
| |
---- | ---- |
Choose one of the installation options below. After completing the installation, open [[../ide_overview|TestOptimal IDE]] with a browser at: [[http://localhost:8888/ | http://localhost:8888]]. The community license is pre-instaplled. You just need to accept License Agreement and set up the login account to access your server. | Choose one of the installation options below. After completing the installation, open [[../ide_overview|TestOptimal IDE]] with a browser at: [[http://localhost:8888/ | http://localhost:8888]]. The community license is pre-instaplled. You just need to accept License Agreement and set up the login account to access your server. |
| |
Check out this [[https://www.youtube.com/watch?v=XVtxmMyL3g4 | Download & Install]]. | Check out this [[https://www.youtube.com/watch?v=XVtxmMyL3g4 | video: Download & Install]]. |
| |
===Windows Installation=== | ===Windows Installation=== |
* unzip //TestOptimal_'ver#'_win.zip// to a folder on the local disk (e.g. //c:/app/TestOptimal//). | * run (double-click) downloaded file //TestOptimal_Setup.exe// and follow the instruction |
| * alternatively if you've downloaded the zip file instead, just unzip the zip file and run (double-click) startTestOptimalServer.bat |
| |
===Mac / Linux Installation=== | ===Mac / Linux Installation=== |
* Install [[https://graphviz.gitlab.io/download/ | GraphViz]] (you may perform this step later): | * Install [[https://graphviz.gitlab.io/download/ | GraphViz]] (you may perform this step later): |
| |
ruby -e "$(curl -fsSL https://raw.githubusercontent .com/Homebrew/install/master/install)" < /dev/null 2> /dev/null | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null |
brew install graphviz | brew install graphviz |
| |
===Start TestOptimal Servver=== | * start server by running //startTestOptimalServer.sh// |
| |
On Windows: | ===Docker=== |
double click or run //startTestOptimalServer.bat// located in the root folder (//c:/app/TestOptimal//) | * run following docker command to start TestOptimal server: |
| |
On Mac: | |
sh [file_path/]startTestOptimalServer.sh | |
| |
| docker run -p 8888:8888 testoptimal/mbt:7.0.3 |
---- | ---- |
| |
| |
==== Browser Setup ==== | ==== Browser Setup ==== |
//TestOptimal// utilizes //Selenium/WebDriver// to perform browser automation. The appropriate browser driver must be present/installed, if not already installed, the system will automatically download it and thus internet is required during the download. | //TestOptimal// utilizes //Selenium/WebDriver// to perform browser automation. The system will automatically download the appropriate driver when it's needed and thus internet is required. |
| |
Alternative, you may manually copy the required browser driver package into the expected location. Check {{http://localhost:8888/api/v1/file/log/tosvr| SvrLog file}} for the location: e.g. | Alternatively, you may copy the required browser driver into the expected location ahead of time to remove this dependency. |
| Check {{http://localhost:8888/api/v1/file/log/tosvr| SvrLog file}} for the location of the driver files: e.g. |
2020-05-18 13:44:40 [INFO] loading chrome driver from C:\Users\myAccount\.m2\repository\webdriver\chromedriver\win32\80.0.3987.106\chromedriver.exe | 2020-05-18 13:44:40 [INFO] loading chrome driver from C:\Users\myAccount\.m2\repository\webdriver\chromedriver\win32\80.0.3987.106\chromedriver.exe |
| |
If using Safari browser for testing AUT, on Terminal window, run once to enable Safari automation: | If you are performing AUT testing on Safari browser, you will need to enable automation on Safari browser by running the following command once: |
| |
safaridriver --enable | safaridriver --enable |
| |
---- | ---- |
| |
==== Eclipse and Other Java IDE Setup ==== | |
You may interact with //TestOptimal// server to perform testing in Eclipse and other Java IDEs. Using [[https://testoptimal.com/v6/wiki/doku.php?id=integration#java_ide_connector | JavaConnector]], you can dynamically build a model and execute it on //TestOptimal// server to generate test cases. | |
| |
First download [[https://testoptimal.com/v6/wiki/doku.php?id=integration#java_ide_connector| JavaConnector]] by clicking [[https://testoptimal.com/downloads/Rel-6.0/TestOptimal-JavaConnector.zip | HERE]] and unzip it to your local directory: | |
* LICENSE | |
* README.md | |
* TestOptimal-JavaConnector-1.0.1.jar | |
* TestOptimal-JavaConnector-1.0.1-jar-with-dependencies.jar | |
| |
Add one of the jar files to your java project class path, in Eclipse: | |
- right mouse click on project name and select "Properties" | |
- on "Properties for [your project]" dialog, select "Java Build Path" on the left pane | |
- select "Libraries" tab on the right pane | |
- click "Add External JARs ..." | |
- locate to downloaded jar file and select it | |
- click "Apply and Close" button | |
| |
| |
| |
| |