QESTNET Internal:Fugro DBB TestMapping Guide
Initial Set-Up
- If not already present, add the following code to the file QESTNET.Service\QESTNET\app.config
- Within the tag <qestnetServices> add:
<add name="FDBBService" assemblyName="QESTNET.Custom.Fugro.DataBackbone" pluginType="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.DataBackboneSessionService" />
- Within the tag <qestnetSessions> add:
<add name="FDBBSession" assemblyName="QESTNET.Custom.Fugro.DataBackbone" pluginType="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.DataBackboneSession" sessionLifetime="1.00:00:00" />
- Within the tag <services> add:
<!-- FDBB Service -->
- Within the tag <qestnetServices> add:
<service behaviorConfiguration="Spectra.QESTNET.Sessions.DefaultBehavior" name="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.DataBackboneSessionService">
<endpoint address="" binding="netTcpBinding" bindingConfiguration="UnsecuredBindingTcp" name="FDBB_Session" contract="Spectra.QESTNET.Sessions.ISessionService" />
<endpoint address="" binding="netTcpBinding" bindingConfiguration="UnsecuredBindingTcp" name="FDBB_Service_http" contract="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.IDataBackboneService" />
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="FDBB_MEX" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8122/" />
<add baseAddress="net.tcp://localhost:8123/" />
</baseAddresses>
</host>
</service>
- The folder specified in the following line of QESTNET.Custom.Fugro.DataBackbone.Tests\app.config needs to exist.
<add key="fileStorePath" value="C:\QESTNET\File Store" />
Either create this folder or change the filepath to point to an existing folder.
Test Mapping Guide
- Find out QestUUID, ProjectCode, BoreholeCode and SampleID for an existing test in the database.
Every test type should have available tests in either the “DBB Test” or “DBB Test 2” projects. - Open the test in QESTNET and enter data for the entire test. Check the “Approved” checkbox on the final page and click “Done”.
- Add a new Test routine in the StandardTests class of the QESTNET.Custom.Fugro.DataBackbone.Tests project for the test type.
Call the new Test Routine from Program Main. - Add a new object builder for the test type under the folder ~/Client/Lab/Entity to FdbbObject/Tests/ of the QESTNET.Custom>Fugro.DataBackbone project.
- Write the test type mapping of entities to fddb objects in the new object builder. Use the FDBB documentation and the code in QESTNET.Sessions.Lab to help determine what this mapping should be.
- Run the QESTNET.Custom.Fugro.DataBackbone.Tests program and visually inspect the outputted xml file to determine if the mapping is correct.