Skip to content
On this page

Empower Your Test Results with AI-Powered Insights ->

getDataTemplate

Gets the data template.

Syntax

js
getDataTemplate(maps)

Usage

โœ… Correct Usage

js
stash.getDataTemplate();

Examples

js
const { stash } = require('pactum');

stash.addDataTemplate({
  'User': {
    "name": "morpheus",
    "job": "leader"
  },
  'Address': {
    "street": "554",
    "city": "NY"
  }
});

const data_templates = stash.getDataTemplate();

Released under the MIT License.