ERP 2.50:Automated Testing/OpenbravoERPTest.properties
Contents |
Introduction
OpenbravoERPTest.properties is the file where Openbravo ERP test configuration is centrally maintained.
Edition
OpenbravoERPTest.properties is a plain text file that you can edit manually by duplicating the OpenbravoERPTest.properties.template file.
Contents
The content of this file include:
Selenium properties
Here is defined the information used to connect to selenium.
selenium.port=4444 selenium.browser=firefox selenium.browserPath=/usr/lib/firefox/firefox-2-bin
- selenium.port is the port used by selenium server to listen for client connections and commands. Default is 4444.
- selenium.browser is the browser that will be used to execute the tests. It can be *firefox, *iexplore, *custom, *chrome or *ietha.
- selenium.browserPath is the path to the binary that launches the browser.
Openbravo server properties
Here is defined the information of the openbravo server that will be tested.
openbravo.url=http://localhost:8180/ openbravo.context=openbravo240p
- openbravo.url is the server where Openbravo ERP is installed.
- openbravo.contextis the name of the context defined on Openbravo ERP installation.
Test properties
Here is defined the information used to run tests.
test.systemAdministratorUser=Openbravo test.systemAdministratorPassword=openbravo test.clientAdministratorUser=SampleClientAdmin test.clientAdministratorPassword=SampleClientAdmin test.user=userA test.password=userA test.format.number.output=#,##0.00 test.format.number.decimal=. test.format.number.grouping=,
- test.systemAdministratorUser is the user name of the system administrator
- test.systemAdministratorPassword is the password of the system administrator
- test.clientAdministratorUser is the user name of the administrator of the client where tests are performed. This user is created on test com.openbravo.test.integration.erp.testsuites.smoke.masterdata.ADM0070_InitialClientSetup.
- test.clientAdministratorPassword is the password of the administrator of the client where tests are performed
- test.user is the name of the user that will be used to run most of the tests. This user is created on test com.openbravo.test.integration.erp.testsuites.smoke.masterdata.ADM0110_CreateUser.
- test.password is the password for the test user.
- test.format.number.output is the expected output format for numerical amounts.
- test.format.number.decimal is the expected decimal separator for numerical amounts.
- test.format.number.grouping is the expected grouping symbol for numerical amounts.
DB properties
This part of the file defines the database the application will connect to. It's required just in the case that some tests need to query the database.
This lines define an Oracle connection:
bbdd.sid=xe bbdd.systemUser=SYSTEM bbdd.systemPassword=SYSTEM bbdd.user=TAD bbdd.password=TAD bbdd.driver=oracle.jdbc.driver.OracleDriver bbdd.url=jdbc:oracle:thin:TAD/TAD@localhost:1521:xe bbdd.rdbms=ORACLE
And these others for PostgreSQL:
bbdd.sid=openbravo240p bbdd.user=openbravo240p bbdd.password=hola123* bbdd.driver=org.postgresql.Driver bbdd.url=jdbc:postgresql://localhost:5432 bbdd.rdbms=POSTGRE
Notice that here bbdd.sid is, in fact, the PostgreSQL database name.