4 TESTAR State Model with OrientDB - TESTARtool/TESTAR_dev GitHub Wiki

State Model / Graph database support

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.

Use of the State Mode and the 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:

  • Abstract layer (top): Identify and create an abstract model for a specific SUT by using the subset of widget properties from the selected abstraction mechanism.

  • Concrete layer (middle): Identify and create a concrete model for a specific SUT by using the complete subset of widget properties.

  • Sequence layer (bottom): Describes step-by-step the test sequences executed by TESTAR.

State Model

Download OrientDB 3.2.39 GA Community Edition

https://www.orientdb.org/download
https://repo1.maven.org/maven2/com/orientechnologies/orientdb-community/3.2.39/orientdb-community-3.2.39.zip

Install and configure OrientDB Server

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

Using OrientDB graphdb on the local filesystem

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
⚠️ **GitHub.com Fallback** ⚠️