Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1539

Improve logging in automation tests

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Test
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9 Larks
    • Fix Version/s: 1.9 Larks
    • Labels:
      None

      Description

      Each line of logs should contain:

      [datetime][threshold][TestClass][testMethod][ClassThatWritesLogs] - Log Message
      • datetime - already is there, but should not show milliseconds
      • threshold - is already there
      • TestClass - without the package. Example: SignUpTest. Use Slf4j MDC to implement this.
      • testMethod - use Slf4j MDC to implement this
      • ClassThatWritesLogs - same as now, but the amount of letters may be decreased.
      • Log Message - same as now

      Also:

      • thread info should be removed, it doesn't provide useful info right now

      Example:

      [2013-08-04 08:25:28][INFO ][SignUpTest][usernameContainsSlashShouldPassRegistration_JC_4][webdriver.action.Users] - Sign Up User[passwordConfirmation=P_uwsq8dwhpjdft,username=/P_uwsq8d,email=P_uwsq8dwhpj@jtalks.org,password=P_uwsq8dwhpjdft]

        Attachments

          Structure

            Activity

              People

              • Assignee:
                ctapobep Stanislav Bashkyrtsev
                Reporter:
                ctapobep Stanislav Bashkyrtsev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel