Bizunit: EventLogCheckStep Issue

Home Page Forums BizTalk 2004 – BizTalk 2010 Bizunit: EventLogCheckStep Issue

Viewing 0 reply threads
  • Author
    Posts
    • #22984

      Hi,

      Bizunit EventlogCheckstep is throwing error even if the event log exist. Below are the details

      Event Log entry Code:
      System.Diagnostics.EventLog.WriteEntry(“PO_Val”,decPOTotalVal.ToString(),System.Diagnostics.EventLogEntryType.Information,1);

      Test Script (Teststep) for Event Log Check

      <TestStep assemblyPath=”” typeName=”BizUnit.EventLogCheckStep”>
            <!– Delay before checking the event log for Child orch start–>
            <DelayBeforeCheck>2</DelayBeforeCheck>
            <Machine>PCILON-D860</Machine>
            <EventLog>Application</EventLog>
            <Source>PO_Val</Source>
            <Type>Information</Type>
            <EventId>1</EventId>
            <!– Work Opposite: If event do not exist Test Step is Success–>
            <FailIfFound>False</FailIfFound>
          </TestStep>

      When I check Application event log, event log entry exist but still unit test is thowing error
      BizUnit encountered an error executing a test step
        —-> System.ApplicationException : Failed to find expected event log entry.

      When I change FailIfFound to True, test passes even without log entry.

      Please help me in sorting this out. Thanks for help in advance.

       

       

Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.