- Start a chromedriver process in a separate terminal
$ chromedriver --port=9515
- Begin an import session using the mabl CLI in a separate terminal:
$ mabl tests import --name "Java Import Example"
- Run the unit tests in this directory:
$ ./gradlew test --rerun-tasks
- View/run/save the imported test in the terminal where you started the import:
In order to import your Selenium tests it is necessary to:
- Use a remote web driver process (e.g. start
chromedriver
or use Selenium Grid). - Modify your test to use a Selenium proxy at
localhost:8889
(see SeleniumTestWithProxySupport). - Start an import session in the mabl CLI (
mabl tests import...
). - Run your test (e.g.
./gradlew test
,mvn test
, etc.). - Save your imported test using the mabl CLI.