Jump to content

QESTNET Internal:Fugro DBB Export Test: Difference between revisions

From QESTonline
Nathan.bennett (talk | contribs)
No edit summary
 
Nathan.bennett (talk | contribs)
Added error message section
Line 24: Line 24:
   </messages>
   </messages>
</importResponse></nowiki></pre>
</importResponse></nowiki></pre>
== Error Messages ==
{| class="wikitable"
!Error Message
!Solution
|-
|Domain model exception: The class 'XXXX' does not contain a field 'YYYY'.
|The name of the property YYYY in the class XXXX (found under '''QESTNET.Custom.Fugro.DataBackbone\Objects''') does not match the name of the field in the data backbone. Check the API for the correct property name. Remember to also change all references to this property.
|}

Revision as of 07:56, 29 July 2015

Initial Set-Up

  1. Follow the initial set-up in the Fugro Data Backbone Test Mapping Step-by-step Guide
  2. If not already present, add the following code to the config files QESTNET.Service\QESTNET\app.config and QESTNET.Custom.Fugro.DataBackbone.Tests\app.config within the tag <appSettings>:

    <!-- Fdbb config -->

<add key="fdbb.serviceUrl" value="http://ADLV0025:7080/com.fugro.gwf.server.server-1.0.0-SNAPSHOT" /> <add key="fdbb.qestnet.username" value="super.user" /> <add key="fdbb.qestnet.password" value="super" /> <add key="fdbb.client" value="Films 1.0.0" /> <add key="fdbb.username" value="admin" /> <add key="fdbb.password" value="admin" /> <!-- End Fdbb config -->
The fddb.qestnet.username and fddb.qestnet.password can be set to any valid QESTLab login credentials for the database.


How to Test Project Export

  1. Add a call to the method TestExportProjectToDBB() in the Main method of Spectra.QESTNET.Custom.Fugro.DataBackbone.Tests\StandardTests.cs.
  2. Change the projectCode in TestExportProjectToDBB to the project your test is in (eg. "DBBTest").
  3. Set Spectra.QESTNET.Custom.Fugro.DataBackbone.Tests as the startup project and run.
    • The job Spectra.QESTNET.Custom.Fugro.DataBackbone.Client.Jobs.ExportProjectToDBB will be run. This creates an xml package of the entire project and sends it to the data backbone. The xml package will be saved to C:\QESTNET\DBB Response\exportedProject.xml and the response will be saved to C:\QESTNET\DBB Response\exportedProjectResponse.xml.
    • The response should contain messages which identify any required fields or references that are missing.
    • The following response will be shown if the xml package is processed successfully by the data backbone:

<importResponse> <messages> <message>Import succeeded.</message> </messages> </importResponse>


Error Messages

Error Message Solution
Domain model exception: The class 'XXXX' does not contain a field 'YYYY'. The name of the property YYYY in the class XXXX (found under QESTNET.Custom.Fugro.DataBackbone\Objects) does not match the name of the field in the data backbone. Check the API for the correct property name. Remember to also change all references to this property.