Jump to content

QESTNET Internal:Fugro DBB Export Test

From QESTonline
Revision as of 08:24, 27 July 2015 by Nathan.bennett (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

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>