postman-sandbox

WebJar for postman-sandbox

Лицензия

Лицензия

Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

postman-sandbox
Последняя версия

Последняя версия

3.3.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

postman-sandbox
WebJar for postman-sandbox
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/postmanlabs/postman-sandbox

Скачать postman-sandbox

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/postman-sandbox/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>postman-sandbox</artifactId>
    <version>3.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/postman-sandbox/
implementation 'org.webjars.npm:postman-sandbox:3.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/postman-sandbox/
implementation ("org.webjars.npm:postman-sandbox:3.3.1")
'org.webjars.npm:postman-sandbox:jar:3.3.1'
<dependency org="org.webjars.npm" name="postman-sandbox" rev="3.3.1">
  <artifact name="postman-sandbox" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='postman-sandbox', version='3.3.1')
)
libraryDependencies += "org.webjars.npm" % "postman-sandbox" % "3.3.1"
[org.webjars.npm/postman-sandbox "3.3.1"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lodash jar [4.17.15]
org.webjars.npm : tough-cookie jar [3.0.1]
org.webjars.npm : uuid jar [3.3.2]
org.webjars.npm : inherits jar [2.0.4]
org.webjars.npm : uvm jar [1.7.6]

Модули Проекта

Данный проект не имеет модулей.

Postman Sandbox Build Status codecov

Module that unifies execution of third-party JavaScript within Node.js and Browser.

This module is part of Postman Runtime Core and is not intended for independent use.

If you are looking to execute collections, you should bee using Newman

Usage

var Sandbox = require('postman-sandbox'),
    context;

Sandbox.createContext(function (err, ctx) {
    if (err) {
        return console.error(err);
    }

    ctx.execute(`// code here`, {}, {}, function (err) {
        if (err) {
            return console.error(err);
        }
        console.log('executed')
    });
});

Sandbox Environment

The following section outlines the API available inside sandbox scripts

pm

  • pm.globals
  • pm.environment
  • pm.collectionVariables
  • pm.test

pre-request script specials

  • pm.request

test script specials

  • pm.request
  • pm.response

Events fired from Sandbox

  • pong
  • error
  • console
  • execution
  • execution.error
  • execution.error.*
  • execution.request.*
  • execution.result.*
  • execution.cookies.*

Events responded to

  • ping
  • execute
  • execution.abort.*
  • execution.response.*
  • execution.cookies.*
  • execution.console.*

Contributing

Debug in browser

To debug tests in Chrome's DevTools, start tests using npm run test-browser -- --debug and click DEBUG.

org.webjars.npm

Postman Inc.

Версии библиотеки

Версия
3.3.1
3.0.4