函数原型

func get404Path() string

举例

name: poc-yaml-test
manual: true
transport: http
set:
  randomPath: get404Path()
rules:
  r0:
    request:
      cache: true
      method: GET
      path: /{{randomPath}}
    expression: response.status == 404
expression: r0()
detail:
  author: test
  links:
    - https://www.test.com

Was this page helpful?