Replies: 1 comment
-
By default, pactum will print the parsed value. I see there was a typo while using data templates. Please use stash.addDataTemplate({
'NewUser': {
"name": faker.person.firstName(),
"job": faker.person.lastName()
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As obvious from the title, I am looking to see what body is being sent in the request when I'm using a data-template. Using the
inpect()
method doesn't give the actual request body - it just shows the template onlySample code :
When I run this test, I get this output
which is not helpful as I cannot see what is the firstname and lastname being sent. Can someone quide me in find this out.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions