Properties
Section Setting and Referencing Properties explains how to use properties within Frank configurations. Can you also reference properties within Larva tests? The answer is yes, but there is a caveat.
The steps below show you how to work with properties within Larva.
Start from your work for section Services.
Introduce a property in
Frank2Manual/classes/StageSpecifics_LOC.propertiesas shown:warnings.suppress.sqlInjections.ManageDatabase=true stub4testtool.configuration=true hermesAddress=hermesAddressRequest.xmlUpdate
Frank2Manual/tests/hermesBridge/scenario01.propertiesto reference the property:scenario.description = Hermes requests address from Conscience include = common.properties step1.adapter.toConscience.write = scenario01/${hermesAddress} step2.stub.conscience.read = scenario01/conscienceAddressRequest.xml step3.stub.conscience.write = scenario01/conscienceAddressResponse.xml step4.adapter.toConscience.read = scenario01/hermesAddressResponse.xmlRun the Larva tests again. They should still succeed.
Here is the caveat. Larva does not know properties that are defined in layer “Configurations” shown in subsection Deployment Environment Characteristics. These are typically defined in a subdirectory of directory configurations, or in a subdirectory of src/main/configurations in case of a Maven project. Only environment properties and properties in layer “Frank!Framework + classes” are known.