Postman Tutorial - Generate Random Data With Dynamic Variables In Postman

Postman Tutorial - Generate Random Data With Dynamic Variables In Postman

QASCRIPT

3 года назад

19,356 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Melissa Jesnowski
Melissa Jesnowski - 24.08.2023 02:14

Great tutorial! thank you so much!

Ответить
VINAY
VINAY - 28.09.2022 21:19

automation thru postman explained very nicely. Appreciate your efforts for making this series of usefull videos.

I have a challange where I need to send checksum in every request. And check sum calculated on payload size. How I can send this checksum value automatically in every request.

The payload is in json format. Example payload:
I have logic to generate checksum, but I need to calculate and replace it before sending the request. Can I automate this calculation in postman??


{
"type": "people",
"id": "42",
"attributes": {
"name": "John"
}
"user-limit": 4,
"checksum": 211856345
}

Here checksum calculated for the below json payload first, and then added checksum.

{
"type": "people",
"id": "42",
"attributes": {
"name": "John"
}
"user-limit": 4
}

Ответить
cristhian carlos chauca mariaca
cristhian carlos chauca mariaca - 16.08.2022 06:19

excellent

Ответить
Temirlan Utegenov
Temirlan Utegenov - 25.03.2022 11:42

It was very helpful. thank you!

Ответить
Blue clouds
Blue clouds - 20.03.2022 11:16

Good work bro 👍

Ответить
鬱Y
鬱Y - 10.08.2021 09:15

Thank you! I hardly got it in pre-request script, not in body.

Ответить
Bharat Varshney
Bharat Varshney - 11.05.2021 15:10

Hi Sir,
Please share the collection for the same

Ответить
vamshi krishna
vamshi krishna - 01.12.2020 02:07

Helpful Thanks.
How to generate multiple random unique numbers for the array.

"phoneNumber": [
{{randomNumer_1}} ,------------------n
]

Ответить
Sukanya Sykam
Sukanya Sykam - 24.08.2020 02:24

Was helpful, Thanks for the detailed explanation
(I just noticed the below
var repositoryName = "Sample-API-" + pm.variables.replaceIn('{{randomInt}}');
$ missing in description )

Ответить