Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wingbot-tests-gsheets

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wingbot-tests-gsheets

Google Sheet Storage for Test Cases

  • 1.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Google Sheet Storage for Test Cases

Fast solution for automated conversation tests

Example testing sheet: https://docs.google.com/spreadsheets/d/1Tl1-NvGO0buR1z1YoB0eYutJ9EdpcXr-DFPuiUxg3Fg/edit#gid=0

Usage

const { ConversationTester } = require('wingbot');
const { TestsGsheet } = require('wingbot-jwt');
const googleToken = require('./my-google-token.json');

function botFactory (forTests = false) {
    const bot = new Router();

    // your bot here

    return bot;
}

const testsStorage = new TestsGsheet('sheet-id', googleToken);
const tester = new ConversationTester(testsStorage, botFactory);

tester.test()
    .then((res) => console.log(res.output))
    .catch((e) => console.error(e));

API

Classes

TestsGsheet

Google sheets storage for test cases

Typedefs

TestCaseStep : object
TestCase : object

TestsGsheet

Google sheets storage for test cases

Kind: global class

new TestsGsheet(sheetId, googleToken)

ParamType
sheetIdstring
googleTokenobject

testsGsheet.getTestCases() ⇒ Promise.<Array.<TestCase>>

Kind: instance method of TestsGsheet

TestCaseStep : object

Kind: global typedef
Properties

NameType
stepnumber
rowNumnumber
actionstring
passedActionstring
textContainsstring
quickRepliesContainsstring
stepDescriptionstring

TestCase : object

Kind: global typedef
Properties

NameType
liststring
namestring
stepsArray.<TestCaseStep>

Keywords

FAQs

Package last updated on 19 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc