Contents

Finding log entries by application

@application

As an Indy user I am able to create an instance and find all logs related to a particular application.

Background:

  • Given the following log:
    2000-09-07 14:07:41 INFO  MyApp - Entering application.
    
    2000-09-07 14:07:41 INFO  MyApp - Exiting application.

Scenario: Count of entries for a specific application

  • When searching the log for the application 'MyApp'
  • Then I expect to have found 2 log entries

Scenario: Particular entry for a specific application

  • When searching the log for the application 'MyApp'
  • Then I expect the first entry to be:
    2000-09-07 14:07:41 INFO  MyApp - Entering application.
  • Then I expect the last entry to be:
    2000-09-07 14:07:41 INFO  MyApp - Exiting application.

Scenario: No entries for a specific application

  • When searching the log for the application 'YourApp'
  • Then I expect to have found no log entries

Source: features/application.feature at commit afe23eee, Indy (MIT license).