This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
135 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# ALEX CLI | ||
|
||
A command line interface for running tests and learning experiments with [ALEX](https://github.com/LearnLib/alex) **(v1.6.0)**. | ||
A command line interface for running tests and learning experiments with [ALEX](https://github.com/LearnLib/alex) **(v1.7.0)**. | ||
|
||
## Requirements | ||
|
||
|
@@ -27,9 +27,9 @@ node alex-cli.js -h | |
|
||
## Usage | ||
|
||
1. Export the symbols from ALEX ([see here](http://learnlib.github.io/alex/book/1.4.0/contents/user-manual/symbol-modeling/#export--import)). | ||
1. Export the symbols from ALEX ([see here](http://learnlib.github.io/alex/book/1.7.0/contents/user-manual/symbol-modeling/#export--import)). | ||
* When asked, select the option **Export symbols only** | ||
2. Export the tests from ALEX ([see here](http://learnlib.github.io/alex/book/1.4.0/contents/user-manual/testing.html)). | ||
2. Export the tests from ALEX ([see here](http://learnlib.github.io/alex/book/1.7.0/contents/user-manual/testing.html)). | ||
|
||
Execute `node alex-cli.js -h` to see a complete list of parameters and their descriptions. | ||
For examples see the section below. | ||
|
@@ -46,9 +46,8 @@ For examples see the section below. | |
"implicitlyWait": 0, | ||
"pageLoadTimeout": 10, | ||
"scriptTimeout": 10, | ||
"name": "firefox", | ||
"headless": true, | ||
"xvfbPort": null | ||
"name": "chrome", | ||
"headless": true | ||
} | ||
} | ||
``` | ||
|
@@ -60,31 +59,32 @@ For examples see the section below. | |
|implicitlyWait|Selenium implicit timeout value| | ||
|pageLoadTimeout|Selenium page load timeout value| | ||
|scriptTimeout|Selenium script timeout value| | ||
|name|The name of the browser, 'firefox', 'chrome', 'htmlUnit'| | ||
|name|The name of the browser, 'firefox', 'chrome', 'htmlUnit', 'ie', 'safari', 'edge'| | ||
|headless|If the browser is run headless. Only for Firefox and Chrome| | ||
|xvfbPort|The port of the virtual display. Only for Firefox and Chrome| | ||
|
||
### CLI | ||
|
||
#### Testing | ||
|
||
```bash | ||
node alex-cli.js --uri "http://alex.some-server.de" \ | ||
--target "https://www.google.com" \ | ||
node alex-cli.js --uri "http://localhost:8080" \ | ||
--targets "https://www.google.com,https://www.google.com" \ | ||
-a "test" \ | ||
-u "[email protected]:admin" \ | ||
-s "./symbols.json" \ | ||
-t "./tests.json" \ | ||
-c "./config.testing.json" | ||
--clean-up | ||
``` | ||
|
||
#### Learning | ||
|
||
```bash | ||
node alex-cli.js --uri "http://alex.some-server.de" \ | ||
--target "https://www.google.com" \ | ||
--target "https://www.google.com,https://www.google.com" \ | ||
-a "learn" \ | ||
-u "[email protected]:admin" \ | ||
-s "./symbols.json" \ | ||
-c "./config.learning.json" | ||
--clean-up | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,51 @@ | ||
{ | ||
"symbols": [{ | ||
"symbolFromName": "search", | ||
"parameterValues": [{ | ||
"parameter": { | ||
"type": "input", | ||
"name": "term", | ||
"parameterType": "STRING", | ||
"private": false | ||
"symbols": [ | ||
{ | ||
"symbol": { | ||
"name": "search" | ||
}, | ||
"value": "potato" | ||
}] | ||
}], | ||
"parameterValues": [ | ||
{ | ||
"parameter": { | ||
"type": "input", | ||
"name": "term", | ||
"parameterType": "STRING", | ||
"private": false | ||
}, | ||
"value": "test" | ||
} | ||
] | ||
} | ||
], | ||
"urls": [], | ||
"maxAmountOfStepsToLearn": -1, | ||
"eqOracle": {"type": "random_word", "minLength": 5, "maxLength": 5, "maxNoOfTests": 5, "seed": 42}, | ||
"algorithm": {"name": "TTT"}, | ||
"resetSymbol": {"symbolFromName": "reset", "parameterValues": []}, | ||
"eqOracle": { | ||
"batchSize": 1, | ||
"minLength": 5, | ||
"maxLength": 5, | ||
"maxNoOfTests": 5, | ||
"seed": 42, | ||
"type": "random_word" | ||
}, | ||
"algorithm": { | ||
"name": "TTT" | ||
}, | ||
"resetSymbol": { | ||
"symbol": { | ||
"name": "reset" | ||
}, | ||
"parameterValues": [] | ||
}, | ||
"comment": null, | ||
"driverConfig": { | ||
"width": 1920, | ||
"height": 1080, | ||
"name": "chrome", | ||
"headless": true, | ||
"height": 1661, | ||
"implicitlyWait": 0, | ||
"pageLoadTimeout": 10, | ||
"scriptTimeout": 10, | ||
"name": "firefox", | ||
"headless": true | ||
"width": 2953 | ||
}, | ||
"useMQCache": true | ||
} | ||
"useMQCache": true, | ||
"postSymbol": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"type": "symbols", | ||
"symbols": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.