BizUnit Test sample

A file containing the Xml test case reported below can be downloaded here.

<?xml version="1.0" encoding="utf-8"?>
<TestCase testName="SampleTest">
  <TestSetup>
    <TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.EventLogClearStep">
      <Machine>ASCOTTO</Machine>
      <EventLog>Application</EventLog>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseDeleteStep">
      <ConnectionString>Data Source=SOURCESYSTEM;User Id=SOURCE;Password=SOURCE;</ConnectionString>
      <Table>SRC_TABLE</Table>
      <Condition>1=1</Condition>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseDeleteStep">
      <ConnectionString>Data Source=DESTINATIONSYSTEM;User Id=DESTINATION;Password=DESTINATION;</ConnectionString>
      <Table>DST_TABLE</Table>
      <Condition>1=1</Condition>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleImportDatasetToDBStep">
      <DelayBeforeExecution>0</DelayBeforeExecution>
      <ConnectionString>Data Source=SOURCESYSTEM;User Id=SOURCE;Password=SOURCE;</ConnectionString>
      <DatasetReadXmlSchemaPath>C:\DBTableSchema.xml</DatasetReadXmlSchemaPath>
      <DatasetReadXmlPath>C:\DBTable.xml</DatasetReadXmlPath>
      <DelayBetweenRecordImports>5</DelayBetweenRecordImports>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseRowCountStep">
      <ConnectionString>Data Source=SOURCESYSTEM;User Id=SOURCE;Password=SOURCE;</ConnectionString>
      <Table>SRC_TABLE</Table>
      <Condition>1=1</Condition>
      <ExpectedRows>100</ExpectedRows>
    </TestStep>
  </TestSetup>
  <TestExecution>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendTo_DESTINATIONSYSTEM</SendPortName>
      <Action>Enlist</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendTo_DESTINATIONSYSTEM</SendPortName>
      <Action>Start</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendBackTo_SOURCESYSTEM</SendPortName>
      <Action>Enlist</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendBackTo_SOURCESYSTEM</SendPortName>
      <Action>Start</Action>
    </TestStep>
    <TestStep assemblyPath="Microsoft.Services.BizTalkApplicationFramework.BizUnit.BizTalkSteps.dll" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.OrchestrationConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <AssemblyName>Orchestrations</AssemblyName>
      <OrchestrationName>Orchestrations.Main</OrchestrationName>
      <Action>Start</Action>
    </TestStep>
    <TestStep assemblyPath="Microsoft.Services.BizTalkApplicationFramework.BizUnit.BizTalkSteps.dll" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.ReceivePortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <ReceivePortName>ReceivePort_SOURCESYSTEM</ReceivePortName>
      <ReceiveLocationName>ReceiveLocation_SOURCESYSTEM_Oracle</ReceiveLocationName>
      <Action>Enable</Action>
    </TestStep>
    <TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.DelayStep">
      <Delay>10000</Delay>
    </TestStep>
    <TestStep assemblyPath="Microsoft.Services.BizTalkApplicationFramework.BizUnit.BizTalkSteps.dll" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.ReceivePortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <ReceivePortName>ReceivePort_SOURCESYSTEM</ReceivePortName>
      <ReceiveLocationName>ReceiveLocation_SOURCESYSTEM_Oracle</ReceiveLocationName>
      <Action>Disable</Action>
    </TestStep>
    <TestStep assemblyPath="Microsoft.Services.BizTalkApplicationFramework.BizUnit.BizTalkSteps.dll" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.OrchestrationConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <AssemblyName>Orchestrations</AssemblyName>
      <OrchestrationName>Orchestrations.Main</OrchestrationName>
      <Action>Stop</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendTo_DESTINATIONSYSTEM</SendPortName>
      <Action>Stop</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendTo_DESTINATIONSYSTEM</SendPortName>
      <Action>UnEnlist</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendBackTo_SOURCESYSTEM</SendPortName>
      <Action>Stop</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.SendPortConductorStep">
      <DelayForCompletion>0</DelayForCompletion>
      <SendPortName>SendBackTo_SOURCESYSTEM</SendPortName>
      <Action>UnEnlist</Action>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseRowCountStep">
      <ConnectionString>Data Source=DESTINATIONSYSTEM;User Id=DESTINATION;Password=DESTINATION;</ConnectionString>
      <Table>DST_TABLE</Table>
      <Condition>1=1</Condition>
      <ExpectedRows>100</ExpectedRows>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseRowCountStep">
      <ConnectionString>Data Source=SOURCESYSTEM;User Id=SOURCE;Password=SOURCE;</ConnectionString>
      <Table>SRC_TABLE</Table>
      <Condition>1=1</Condition>
      <ExpectedRows>0</ExpectedRows>
    </TestStep>
  </TestExecution>
  <TestCleanup>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseDeleteStep">
      <ConnectionString>Data Source=SOURCESYSTEM;User Id=SOURCE;Password=SOURCE;</ConnectionString>
      <Table>SRC_TABLE</Table>
      <Condition>1=1</Condition>
    </TestStep>
    <TestStep assemblyPath="Reply.Cluster.BizTalkApplicationFramework.BizUnitSteps.dll" typeName="Reply.Cluster.BizTalkApplicationFramework.BizUnit.OracleDatabaseDeleteStep">
      <ConnectionString>Data Source=DESTINATIONSYSTEM;User Id=DESTINATION;Password=DESTINATION;</ConnectionString>
      <Table>DST_TABLE</Table>
      <Condition>1=1</Condition>
    </TestStep>
  </TestCleanup>
</TestCase>


Last edited Apr 25, 2008 at 11:34 PM by KidFashion, version 7

Comments

No comments yet.