4 TESTAR State Model with OrientDB - TESTARtool/TESTAR_dev GitHub Wiki
TESTAR uses the OrientDB graph database, to create TESTAR GUI State Models.
Detected Widgets, Actions, States, and their respective relations are recorded to this graph database.
The State Model consists of Widgets and States obtained from the getState()
method, together with Actions of the deriveActions()
method. This model is stored in three different layers:
|
![]() |
https://www.orientdb.org/download
https://repo1.maven.org/maven2/com/orientechnologies/orientdb-community/3.2.39/orientdb-community-3.2.39.zip
In order to use the graphdb feature it's advised to install a graph database on your machine or in a remote server.
Follow the installation instructions about how to configure TESTAR State Model on slide 28:
https://testar.org/images/development/TESTAR_webdriver_state_model.pdf
When orientdb is started the first time. The root password needs to be configured. Make sure you remember this password.
In order to use the graphdb feature. A database must be created in OrientDB. To do this follow the following procedure:
- Start the database server (ORIENTDB_HOME/bin/server.bat)
- Start orientdb studio in a webbrowser http://localhost:2480
- Choose "New DB" and provide the name, root user and password. (The database will also get a default admin/admin user/password).
- Go to Security tab and create a new user (testar/testar) with an active status and the admin role
OrientDB graph database can be used remotely or locally. Default TESTAR settings are predefined to connect with remote mode to a local OrientDB server:
StateModelEnabled = true
DataStore = OrientDB
DataStoreType = remote
DataStoreServer = localhost
DataStoreDB = testar
DataStoreUser = testar
DataStorePassword = testar
Also is possible to connect at file level without deploy the OrientDB locally:
StateModelEnabled = true
DataStore = OrientDB
DataStoreType = plocal
DataStoreDirectory = C:\\Users\\testar\\Desktop\\orientdb-community-3.2.39\\databases
DataStoreDB = testar
DataStoreUser = testar
DataStorePassword = testar