Jump to content

QESTNET Internal:Fugro DBB TestMapping Guide: Difference between revisions

From QESTonline
Benny.thomas (talk | contribs)
No edit summary
 
Nathan.bennett (talk | contribs)
Added Initial Setup section
 
Line 1: Line 1:
*Find out QestUUID, ProjectCode, BoreholeCode and SampleID for an existing test in the database. <BR>Every test type should have available tests in either the “DBB Test” or “DBB Test 2” projects.
== Initial Set-Up ==
*Open the test in QESTNET and enter data for the entire test. Check the “Approved” checkbox on the final page and click “Done”.
#If not already present, add the following code to the file '''QESTNET.Service\QESTNET\app.config'''
*Add a new Test routine in the '''StandardTests''' class of the '''QESTNET.Custom.Fugro.DataBackbone.Tests''' project for the test type. <BR>Call the new Test Routine from Program Main.
#*Within the tag <qestnetServices> add:<br /><pre><add name="FDBBService" assemblyName="QESTNET.Custom.Fugro.DataBackbone" pluginType="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.DataBackboneSessionService" /></pre><br />
*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.
#*Within the tag <qestnetSessions> add:<br /><pre><add name="FDBBSession" assemblyName="QESTNET.Custom.Fugro.DataBackbone" pluginType="Spectra.QESTNET.Custom.Fugro.DataBackbone.Service.DataBackboneSession" sessionLifetime="1.00:00:00" /></pre><br />
*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.
#*Within the tag <services> add:<br /><pre><nowiki><!-- FDBB Service -->
*Run the '''QESTNET.Custom.Fugro.DataBackbone.Tests''' program and visually inspect the outputted xml file to determine if the mapping is correct.
<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></nowiki></pre><br />
#The folder specified in the following line of '''QESTNET.Custom.Fugro.DataBackbone.Tests\app.config''' needs to exist.<pre><add key="fileStorePath" value="C:\QESTNET\File Store" /></pre><br />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. <BR>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. <BR>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.

Latest revision as of 00:50, 24 July 2015

Initial Set-Up

  1. 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 -->

<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>

  1. 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

  1. 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.
  2. Open the test in QESTNET and enter data for the entire test. Check the “Approved” checkbox on the final page and click “Done”.
  3. 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.
  4. 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.
  5. 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.
  6. Run the QESTNET.Custom.Fugro.DataBackbone.Tests program and visually inspect the outputted xml file to determine if the mapping is correct.