folder structure:
auto-test
│ auto-server.bat
│ libs\auto-test.jar
│ driver
│ conf
- Java 17 or newer is required.
- set AUTO_TEST_HOME to environment, default is the folder of auto-test.
- download webdriver, and put it in
driver
directory.- chrome for chrome115 or newer chrome-for-testing
- edge
-
start auto-server.bat to start the server, and then run the test cases xlsm. there is an example file [[case_template.xlsm]] in testcases_example directory.
local server url:http://localhost:9191
-
use auto-test.bat to run the test.
Usage: auto-test [options]
Options:
-b, --baseDir
base directory of the program.
-c, --cases
the test cases to be executed, split by comma. eg. 1-2,13
-f, --file
the test case file to be executed, specific absolute path, if relative
path, it will look for the file in the work directory.
-h, --help
help message
-m, --mode
test mode, default is xlsx, optional: xlsx, csv, json.
-d, --workDir
work directory to store test case file and test result file.
- design test cases in web ui
- execute test cases in web ui
refer to commands for the commands supported by auto-test.