Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
installdoc [2021/01/04 18:45] admin |
installdoc [2021/03/01 20:18] admin [Prerequisite] |
| |
====Prerequisite==== | ====Prerequisite==== |
* //JDK 8// or later | * //JDK 8// or later ([[https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jdk.msi | Install OpenJDK]]) |
* OS: //Windows (7 or later)// or //Mac//. | * OS: //Windows (7 or later)// or //Mac//. |
* Memory: at least 4GB | * Memory: at least 4GB |
* Disk Space (free): at least 2GB. | * Disk Space (free): at least 2GB. |
| * Latest version of modern browser (Firefox, Chrome, Safari) |
| |
---- | ---- |
| |
===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: | |
double click or run //startTestOptimalServer.bat// located in the root folder (//c:/app/TestOptimal//) | |
| |
On Mac: | |
sh [file_path/]startTestOptimalServer.sh | |
| |
---- | ---- |
| |
==== 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 |
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. | 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: | In your java IDE, add the following Maven dependency to the pom.xml file: |
* LICENSE | <dependency> |
* README.md | <groupId>com.github.testoptimal</groupId> |
* TestOptimal-JavaConnector-1.0.1.jar | <artifactId>JavaConnector</artifactId> |
* TestOptimal-JavaConnector-1.0.1-jar-with-dependencies.jar | <version>1.0.2</version> |
| </dependency> |
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 | |
| |
| |
| |
==== License Setup ==== | ==== License Setup ==== |
If you were given a license key, you can enter the license key information at: [[ide_overview#manage_license | Manage License]]. | If you were given a license key, you can enter the license key information at: [[ide_overview#manage_license | Manage License]]. |