Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plyee

A Plyee is a test (request/case), or a suite.

Format: #^ eg: c:/ply/ply/test/ply/requests/movie-queries.ply.yaml#moviesByYearAndRating or: /Users/me/ply/ply/test/ply/cases/movieCrud.ply.ts#movie-crud^add new movie or for a suite: /Users/me/ply/ply/test/ply/requests/movie-queries.ply.yaml (TODO: handle caseFile#suite^case)

Hierarchy

  • Plyee

Index

Constructors

  • new Plyee(suite: string, test: Test): Plyee
  • new Plyee(path: string): Plyee

Properties

path: string

Accessors

  • get location(): string
  • get suite(): string
  • get test(): undefined | string

Methods

  • toString(): string
  • cases(paths: string[]): Map<string, Plyee[]>
  • collect(paths: string[], test?: (plyee: Plyee) => boolean): Map<string, Plyee[]>
  • Returns a map of unique suite location to Plyee[]

    Parameters

    • paths: string[]

      test paths

    • Optional test: (plyee: Plyee) => boolean

      (optional) for matching

        • Parameters

          Returns boolean

    Returns Map<string, Plyee[]>

  • flows(paths: string[]): Map<string, Plyee[]>
  • isCase(path: string): boolean
  • isFlow(path: string): boolean
  • isRequest(path: string): boolean
  • requests(paths: string[]): Map<string, Plyee[]>
  • Maps plyee paths to Plyee by Suite.

    Parameters

    • paths: string[]

    Returns Map<string, Plyee[]>

Generated using TypeDoc