def METHOD_NAME():
  """Get the result for the testcase list page."""
  params = dict(request.iterparams())
  page = helpers.cast(request.get('page') or 1, int, "'page' is not an int.")
  query = datastore_query.Query(data_types.Testcase)
  crash_access.add_scope(query, params, 'security_flag', 'job_type',
                         'fuzzer_name_indices')
  add_filters(query, params)
  testcases, total_pages, total_items, has_more = query.fetch_page(
      page=page, page_size=PAGE_SIZE, projection=FIELDS, more_limit=MORE_LIMIT)
  items = []
  for testcase in testcases:
    regression_range = ''
    fixed_range = ''
    if testcase.regression and testcase.regression != 'NA':
      regression_range = testcase.regression
    if testcase.fixed and testcase.fixed != 'NA':
      fixed_range = testcase.fixed
    item = {
        'id': testcase.key.id(),
        'crashType': ' '.join(testcase.crash_type.splitlines()),
        'crashStateLines': testcase.crash_state.strip().splitlines(),
        'jobType': testcase.job_type,
        'isClosed': not testcase.open,
        'isFixed': testcase.fixed and testcase.fixed != 'NA',
        'isReproducible': not testcase.one_time_crasher_flag,
        'isSecurity': testcase.security_flag,
        'isImpactSet': testcase.is_impact_set_flag,
        'impacts': {
            'extendedStable': testcase.impact_extended_stable_version,
            'stable': testcase.impact_stable_version,
            'beta': testcase.impact_beta_version,
            'head': testcase.impact_head_version,
        },
        'regressionRange': regression_range,
        'fixedRange': fixed_range,
        'groupId': testcase.group_id,
        'projectName': testcase.project_name,
        'platform': testcase.platform,
        'issueId': testcase.bug_information or testcase.group_bug_information,
        'showImpacts': testcase.has_impacts(),
        'impactsProduction': testcase.impacts_production()
    }
    if testcase.timestamp:
      item['timestamp'] = utils.utc_datetime_to_timestamp(testcase.timestamp)
    items.append(item)
  helpers.log('Testcases', helpers.VIEW_OPERATION)
  result = {
      'hasMore': has_more,
      'items': items,
      'page': page,
      'pageSize': PAGE_SIZE,
      'totalItems': total_items,
      'totalPages': total_pages,
  }
  return result, params