Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Scripts #45

Closed
mishushakov opened this issue Sep 29, 2022 · 1 comment
Closed

Proposal: Scripts #45

mishushakov opened this issue Sep 29, 2022 · 1 comment
Labels
idea New feature proposal

Comments

@mishushakov
Copy link
Member

mishushakov commented Sep 29, 2022

Pre-request, teardown and checks script support

Example:

version: "1.1"
name: Status Check
tests:
  example:
    scripts:
      example: |
        console.log("hello")
      example2:
        file: script.js
    steps:
      - http:
          url: https://example.com
          method: GET
          hooks:
            beforeRequest:
              - example
            afterRequest:
              - example2
          check:
            status: /^20/
            custom:
              name: example2
@mishushakov mishushakov changed the title Custom JS Hooks Sep 30, 2022
@mishushakov

This comment was marked as off-topic.

@mishushakov mishushakov changed the title Hooks Proposal: Scripts Oct 21, 2022
@mishushakov mishushakov transferred this issue from stepci/runner Oct 21, 2022
@mishushakov mishushakov added the idea New feature proposal label Oct 21, 2022
@stepci stepci locked and limited conversation to collaborators Oct 21, 2022
@mishushakov mishushakov converted this issue into discussion #47 Oct 21, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
idea New feature proposal
Projects
None yet
Development

No branches or pull requests

1 participant