Class AccessLogCommentParser

java.lang.Object
com.atlassian.jira.pageobjects.util.AccessLogCommentParser

public class AccessLogCommentParser extends Object
Utility class to extract and parse access log information from HTML comments in page source.

Jira includes performance and request tracking information in HTML comments that look like:

 <!--
      REQUEST ID : 1379x707552x1
      REQUEST TIMESTAMP : [10/Feb/2026:22:59:59 +1100]
      REQUEST TIME : 0.8560
      ASESSIONID : u6x6xb
      CONCURRENT REQUESTS : 4
 -->
 
This class extracts and parses these comments for use in functional tests.
Since:
11.3.0
  • Constructor Details

    • AccessLogCommentParser

      public AccessLogCommentParser(String pageSource)
      Creates a parser for the given page source HTML.
      Parameters:
      pageSource - The HTML page source containing the access log comment
  • Method Details

    • parse

      public AccessLogMetadata parse()
      Parses all access log fields into a structured bean.

      The bean contains:

      • requestId - e.g., "1379x707552x1"
      • requestTimestamp - e.g., "[10/Feb/2026:22:59:59 +1100]"
      • requestTime - e.g., "0.8560" (in seconds)
      • asessionId - e.g., "u6x6xb"
      • concurrentRequests - e.g., "4"
      • nodeId - e.g., "node1" (or "-" if not clustered)
      Returns:
      AccessLogMetadata bean with the parsed values, or a bean with all "-" values if no comment found
    • hasAccessLogComment

      public boolean hasAccessLogComment()
      Checks if the access log comment exists in the page source.
      Returns:
      true if the comment is present, false otherwise