Postman Beginner Tutorial 13 | Data Driven Testing | How to get data from CSV and JSON files

Automation Step by Step
7 Jul 202221:13

Summary

TLDRThis tutorial by Raghav introduces data-driven testing with Postman, guiding viewers step-by-step to create API requests, parameterize them with data from CSV and JSON files, and execute data-driven API tests. It also covers referencing data in test scripts, validating JSON data, and running tests with Postman's collection runner, ensuring a comprehensive understanding of the process.

Takeaways

  • 😀 The tutorial is about learning data-driven testing with Postman from scratch.
  • 🔍 Raghav, the instructor, guides through the process of setting up data-driven API requests using Postman.
  • 📝 The script covers how to get data from both CSV and JSON files for testing purposes.
  • 💻 Postman can be accessed either through a browser or a desktop application.
  • 📥 The process includes creating an API request, modifying it, and saving it in a collection for organization.
  • 🔑 Variables are parameterized within the request to refer to data from external files.
  • 📈 Raghav demonstrates how to create and use a CSV file with sample data for the API request.
  • 📊 The tutorial also shows how to create and validate a JSON file for similar purposes.
  • 🔄 Postman's Collection Runner is used to execute API requests with data from the files.
  • 📋 The script explains how to refer to data from the files within test scripts using specific syntax.
  • 🛠 The importance of validating JSON data for correctness is highlighted to avoid errors in testing.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is how to perform data-driven testing with Postman, starting from scratch.

  • What are the data sources mentioned for data-driven testing in Postman?

    -The data sources mentioned for data-driven testing in Postman are CSV and JSON files.

  • How does one create an API request in Postman as shown in the video?

    -In the video, an API request is created by clicking the plus button in Postman, selecting an API from the 'req res dot in' website, copying the endpoint, and pasting the request body as JSON.

  • What is the purpose of saving the API request in a collection?

    -Saving the API request in a collection helps organize and manage the requests, making it easier to run multiple related requests together and maintain a clean structure.

  • How can you parameterize parts of the API request in Postman?

    -Parts of the API request can be parameterized by using double curly brackets and the variable name, such as '{{endpoint}}', '{{email}}', and '{{password}}'.

  • What tool can be used to create a CSV file on a Mac system?

    -On a Mac system, the Numbers application can be used to create a CSV file, which is similar to Excel.

  • How does the video demonstrate the use of a CSV file for data-driven testing?

    -The video demonstrates the use of a CSV file by showing how to create it in Numbers, fill it with data corresponding to the API request parameters, and then use it in the Postman collection runner.

  • What is the significance of the '201 Created' status code mentioned in the script?

    -The '201 Created' status code signifies that a new resource has been successfully created in response to the POST request in the API.

  • How can you verify the validity of JSON data before using it in Postman?

    -You can verify the validity of JSON data by using online JSON formatters or validators, which check the syntax and structure of the JSON file.

  • What is the difference between using data variables in Postman directly and using them in data files?

    -In Postman, using data variables directly involves referencing them with double curly brackets. However, when using data files, you must reference the data with 'data' followed by the variable name or header name in square brackets, such as 'data[email]'.

  • How can you run tests within the API request in Postman?

    -Tests can be run within the API request in Postman by writing test scripts in the 'Tests' tab of the request. These scripts can validate the response, such as checking if the status code is '201'.

  • What is the importance of clearing the console before running a new collection in Postman?

    -Clearing the console before running a new collection in Postman ensures that the output is clean and only displays the results of the latest run, making it easier to analyze and understand the results.

Outlines

00:00

🚀 Introduction to Data-Driven Testing with Postman

Raghav introduces the tutorial on data-driven testing with Postman, outlining the process of learning from scratch. The session includes extracting data from CSV and JSON files and executing API requests with this data. Raghav demonstrates how to create an API request in Postman, using a sample 'register user' POST request from a website, and explains how to modify the request method, URL, and body. He also shows how to save the request in a new or existing collection and how to parameterize the request using variables that will later be populated from data files.

05:00

📝 Creating and Using Data Files for API Testing

This paragraph explains how to create test data files in CSV format using a Mac application similar to Excel or by using a text editor on Windows. Raghav details the steps to input data corresponding to the variables used in Postman, such as endpoint, email, and password, and how to save the file with a '.csv' extension. He also describes how to run a collection in Postman with the data file selected, which automatically updates the iterations based on the number of data sets in the file. The importance of previewing data to ensure proper format and the steps to correct any discrepancies are also covered.

10:02

🔍 Validating and Using JSON Data Files in Postman

Raghav demonstrates how to create and validate JSON data files for use in Postman. He explains the process of manually creating a JSON file using a text editor and emphasizes the importance of validation using online tools like JSON formatters and validators. The tutorial includes a step-by-step guide on how to structure the JSON data with proper syntax and how to download or copy the validated JSON data into a file. Raghav then shows how to select this JSON file in Postman's collection runner and how it updates the iterations for data-driven testing.

15:02

📚 Referencing Data in Test Scripts and Pre-Request Scripts

The paragraph discusses how to reference data from data files within test scripts or pre-request scripts in Postman. Raghav clarifies the difference in syntax required for data references when using data files compared to variables within Postman. He provides an example of creating a test to verify the email in the response body and explains the correct syntax for accessing data from the data file during test execution. The summary includes a demonstration of running the collection with the test script and confirms that the test passes when the email from the data file matches the response.

20:02

🎓 Conclusion and Encouragement for Further Learning

In the concluding paragraph, Raghav wraps up the tutorial by summarizing the process of using data files for data-driven API testing in Postman. He encourages hands-on practice and invites questions from the audience, emphasizing the importance of continuous learning in the field. The paragraph serves as a final reminder of the value of the tutorial and an invitation for further engagement with the content.

Mindmap

Keywords

💡Data-driven testing

Data-driven testing is a method of software testing where test cases are designed to cover a wide range of input data to ensure the application behaves as expected with different inputs. In the video, Raghav teaches how to implement this approach using Postman, a popular API development tool, by getting data from CSV and JSON files to run API requests with different sets of data.

💡Postman

Postman is a collaboration platform for API development used by developers to build, test, and monitor APIs. In the script, Postman is the primary tool used to demonstrate how to create API requests, parameterize them with data from external files, and execute data-driven tests.

💡CSV file

A CSV file, or Comma-Separated Values file, is a simple file format used to store tabular data, such as a spreadsheet or database. In the video, Raghav explains how to create a CSV file, populate it with endpoint, email, and password data, and use it for data-driven API testing in Postman.

💡JSON file

JSON, or JavaScript Object Notation, is a lightweight data-interchange format that is easy for humans to read and write and for machines to parse and generate. The video script describes how to create a JSON file with data for endpoint, email, and password, and integrate it with Postman for data-driven testing.

💡API request

An API request is a message sent from a client to an API server with the purpose of accessing or modifying data. In the context of the video, Raghav shows the process of creating a 'register user' API request in Postman, which is then used for demonstrating data-driven testing.

💡Parameterization

Parameterization in the context of API testing refers to the process of replacing static values in API requests with variables that can be dynamically replaced with data from external sources. The script illustrates how to parameterize parts of an API request in Postman using data from CSV and JSON files.

💡Collection

In Postman, a collection is a group of related API requests that can be organized and run together. Raghav demonstrates saving an API request into a new collection named 'data driven demo' and later running this collection with data from a CSV file.

💡Test scripts

Test scripts in Postman are used to write test cases that can be executed after an API request is sent. The script mentions adding test scripts to verify the status code of the API response and to validate that the email received in the response matches the email sent in the request.

💡Environment variables

Environment variables in Postman are a way to manage different sets of data that can be applied to API requests. Although the script does not focus on environment variables, it mentions the possibility of using global or environment variables for parameterization, which can be an alternative to using data files.

💡Validation

Validation in the context of the video refers to the process of ensuring that the data in the CSV and JSON files is correctly formatted and that the files contain valid data for testing. Raghav shows how to validate JSON data using online tools and emphasizes the importance of this step before using the files in Postman.

💡Console

The console in Postman is a debugging tool that displays the output of API requests, including the request and response bodies. In the script, Raghav uses the console to demonstrate the results of running data-driven tests and to show how the data from the CSV and JSON files is used in the API requests.

Highlights

Introduction to data-driven testing with Postman.

Learning how to get data from a CSV file for testing.

Exploring how to get data from a JSON file for testing.

Running data-driven API requests in Postman.

Referencing values from data files in test scripts.

Creating an API request in Postman.

Using sample APIs from reqres.in for demonstration.

Copying the endpoint and request body for the API request.

Saving the API request in a new or existing collection.

Creating a folder within a collection for organization.

Running the API request to check the response.

Observing response changes with different endpoint inputs.

Parameterizing the API request using variables.

Creating a CSV file for test data using a spreadsheet application.

Ensuring case sensitivity and correct variable names in the CSV file.

Saving the CSV file and preparing it for use in Postman.

Running a collection with a CSV data file in Postman.

Previewing data from the CSV file within Postman.

Addressing issues with extra columns in the CSV file.

Adding tests to check the status code in Postman.

Running the collection with tests to validate the API response.

Using a JSON file as an alternative to a CSV file for data.

Creating a JSON file with valid JSON data using a text editor.

Validating JSON data using an online formatter and validator.

Running a collection with a JSON data file in Postman.

Referring to data from data files in scripts within Postman.

Conclusion and invitation for hands-on practice and questions.

Transcripts

play00:02

hello and welcome i am raghav and today

play00:05

we are going to learn step by step from

play00:07

scratch how can we do data driven

play00:09

testing with postman so this will be

play00:12

very easy and very interesting we will

play00:14

learn how do we get data from a csv file

play00:17

we will also see how to get data from a

play00:19

json file and then we will run our data

play00:21

driven api requests i will also show you

play00:24

how you can refer the values from the

play00:27

data files in the test scripts so let's

play00:30

get started i will discuss some useful

play00:32

tips with you as well during the

play00:33

sessions so here step number one is we

play00:36

will create our api request first so i'm

play00:39

going to my postman i have opened my

play00:42

postman on the browser if you like you

play00:44

can continue on the browser or if you

play00:45

are using a postman on your desktop you

play00:47

can use that

play00:49

so here uh i'll take i'll create a new

play00:52

api request so i'm going to click on

play00:54

this plus button and i will create let

play00:58

us say i take a

play00:59

i go to this req res dot in website and

play01:02

i will select a api request from here

play01:05

it has a lot of sample apis you can use

play01:08

any of your api requests so i have this

play01:11

register user which is a post request i

play01:14

will click on this

play01:15

and

play01:16

here is the

play01:18

end point this is the request body this

play01:20

is the response that we get and the

play01:22

response body so to get the complete url

play01:25

you can click on this url and you will

play01:28

get the complete url here

play01:30

so i'll copy this and first i will

play01:32

change the method to post

play01:35

this is the url and i will go to the

play01:37

body section

play01:38

and click on draw

play01:40

and just copy this

play01:42

body here and this is a json so i will

play01:44

go here and say json

play01:47

and this is done and that's it i will

play01:50

save

play01:51

and here

play01:53

i can save it in a new collection or any

play01:55

of the existing collections first let me

play01:57

give it a name i will say this is

play01:59

register user

play02:01

and here

play02:04

i will go to the

play02:08

let us

play02:09

go to the new collection folder you can

play02:12

use any collection

play02:14

and i will save it

play02:16

so you can see this is saved here

play02:19

and i can also create a new folder

play02:22

inside this new collection i can say

play02:27

add folder

play02:29

and i will name this folder as

play02:31

data driven demo

play02:34

and i'll just put this api inside this

play02:37

folder this is optional i'm just doing

play02:39

this so that

play02:41

we have a clean structure and you can

play02:43

understand it easily you can keep this

play02:44

api in any collection and now this is my

play02:48

api request let us run and check it i

play02:51

will

play02:52

click on send once you have saved your

play02:54

request you can run the request and yes

play02:57

you can see we are getting the response

play03:00

we are also getting

play03:01

the response code 200 okay and

play03:04

everything is fine now one thing i have

play03:06

observed here is if i give

play03:08

some

play03:10

if i add something to this endpoint let

play03:12

us say qa

play03:14

and then i run this

play03:16

in this case in the response

play03:18

i get 201

play03:20

the status quo 201 created and then i

play03:23

also get the email and the password that

play03:25

i have sent in the request so if i go

play03:29

back to the request body this was the

play03:31

email i sent and the same email i have

play03:33

received let us say if i change this

play03:35

email

play03:37

and

play03:38

password

play03:39

and i

play03:40

save and send it again

play03:43

you can see i'm getting the same email

play03:45

and password

play03:46

so i can use this functionality to

play03:48

actually check

play03:50

that i am getting the same

play03:52

values in the response so this will be

play03:54

easy for validation so i can use this we

play03:57

have created a api request now we will

play04:00

create the variables and refer in the

play04:01

request so here

play04:06

i can

play04:07

parameterize wherever i want to refer

play04:10

the data from the data files so if you

play04:13

like like if you want to you can create

play04:16

variables like global variables or

play04:18

environment variables and def then refer

play04:20

them in the request

play04:21

in this case because i want to refer

play04:23

them directly from the data files i will

play04:26

skip the step of creating the variables

play04:29

i can just refer the variables directly

play04:32

within this request so let us say i want

play04:35

to uh get some data for the end point

play04:38

here so let us say this

play04:41

this part should come

play04:42

from a variable

play04:45

or from a data

play04:47

file

play04:48

and this i will name as let us say

play04:50

endpoint so this is how i do it i give

play04:53

double curly brackets and then give the

play04:55

variable name

play04:57

so this is now parameterized similarly

play05:00

let us say the email i want to get it

play05:02

from the data file so i will add a

play05:04

variable here as well and this i will

play05:06

call as email so within double curly

play05:08

brackets you give the variable name and

play05:10

the same goes for

play05:12

let us say password as well and

play05:14

here i will give the variable name as

play05:16

password

play05:17

so now these three variables or these

play05:19

three

play05:20

data endpoint email and password should

play05:23

come from a data file like a csv or a

play05:26

json file so for that we will create a

play05:29

csv file or a json file and add these

play05:32

values so that these can be referred

play05:34

from there so let us do that now

play05:37

we have to go to run collection and then

play05:40

refer the data file so before doing that

play05:42

before going to run collection let us

play05:44

first create the

play05:45

files the test data files so here uh

play05:49

i'm on my mac system so i can go to

play05:53

xlr numbers application to create a csv

play05:56

file if you are on windows you can just

play05:59

open an your

play06:01

excel file

play06:02

or excel worksheet

play06:06

add the data

play06:08

and save as

play06:10

dot csv extension

play06:12

or the other way is you can just

play06:15

open any text editor or notepad on

play06:18

windows and add data

play06:23

in a csv format or comma

play06:26

separated format

play06:28

and then save with dot csv extension

play06:33

let me show you

play06:34

uh

play06:35

i'm here on my mac so i will open

play06:38

numbers which is a application similar

play06:40

to excel

play06:42

and here i can create a csv file so i'm

play06:46

just opening a blank file here

play06:51

so this is like excel

play06:53

and here

play06:55

let me just remove these extra

play06:58

rows and columns

play07:03

i will delete this as well

play07:10

yeah this is fine so this is a excel

play07:12

file so here i will give the same names

play07:15

as the variable names i have given which

play07:17

is endpoint

play07:18

so this is endpoint let me increase this

play07:21

so that you can see this properly

play07:25

endpoint then we have email and make

play07:28

sure this is should be case sensitive so

play07:31

uh make sure that

play07:32

you give the same name exactly how you

play07:34

have given in the

play07:36

postman variables and this is

play07:42

password now here i will start giving

play07:45

the value so this is the header

play07:47

then we will have the data rows so let

play07:50

us say

play07:51

for the

play07:53

end point

play07:54

i will say

play07:58

i'll give the end point here

play08:03

then email

play08:11

and

play08:12

password

play08:14

then

play08:15

again the second

play08:18

data set you can add any number of data

play08:20

sets

play08:21

i will say

play08:28

i'll give some email

play08:31

and give some password

play08:35

and i will save this now

play08:38

here for mac i have option i can go to

play08:40

file and say export to csv

play08:44

in case of windows you just have to save

play08:46

it and then change the extension to csv

play08:48

or save it as a csv file so i will save

play08:52

it as a csv file and

play08:55

i will call this as

play08:57

testdata1.csv

play09:00

and this will go on my documents folder

play09:03

so this is done

play09:05

now

play09:06

i will go to run collection

play09:10

so here

play09:11

i will go to this collection click on

play09:13

these three dots and say run collection

play09:16

and here i am just going to

play09:19

select

play09:20

the api that i want to run which is

play09:22

register user and here we have the

play09:25

option to select the file and once i

play09:27

select the file the iterations will get

play09:29

updated automatically based on the

play09:31

number of data sets we have in our file

play09:34

so i'll click on select file and i will

play09:37

go to my documents folder and this is my

play09:39

csv file i will select the file and you

play09:41

can see it has updated two iterations

play09:44

because there were two data sets in my

play09:46

csv file also if you observe

play09:48

my csv file is added here and that data

play09:51

file type is updated to text csv so

play09:55

there are other options as well

play09:57

application json or undetermined if it

play09:59

is not able to find what format is it

play10:02

but it has found it is a csv format so

play10:03

it has used this and we also have this

play10:06

very good feature that you can preview

play10:08

your data so if i click on preview you

play10:10

can see we are getting all our data and

play10:13

this is what you should see in a proper

play10:16

format you should see these headers

play10:19

which should be same as the variables we

play10:20

have given and your

play10:22

data here in case you do not see this in

play10:24

a proper format then you must change or

play10:27

you you must check your csv file and

play10:29

must update the values now one thing i

play10:32

am seeing here is there is an extra

play10:33

column so i will have to check this i'll

play10:36

go to my file and i don't know if this

play10:39

is

play10:40

something missing or

play10:42

i think it should be fine let me just

play10:44

run and check this

play10:46

so

play10:47

here

play10:48

i will

play10:48

[Music]

play10:50

click on run new collection

play10:53

and let us see

play10:55

if it is able to

play10:57

use

play10:58

our variables or data from the data file

play11:02

so here

play11:03

looks fine you can see it is saying 201

play11:05

created 201 created so this looks fine

play11:08

and here it does not shows us password

play11:10

fail because we do not have any tests in

play11:13

our

play11:14

api so let me add some tests as well i

play11:16

will go back to my api go to the test

play11:19

section and i will just add a test to

play11:21

check status code is

play11:23

201 so i'm clicking here in the snippet

play11:26

and it has added this snippet and i will

play11:28

just

play11:29

change to 1 200 to 201

play11:33

and save it

play11:34

i'll go back to the collection and i

play11:37

will say run again

play11:39

and this time it should also run the

play11:40

tests so you can see the tests are

play11:42

running and everything is passed and i

play11:44

can also go to the console we have

play11:45

learned this in the debugging session if

play11:47

i go to this console here i will clear

play11:50

and run again

play11:52

and we can see all the output on the

play11:54

console so it has done it has done two

play11:56

times if i look at the first run you can

play11:59

see it has taken this api endpoint from

play12:02

our data file and if i check the request

play12:05

body it has taken this email and

play12:07

password from there

play12:08

and then

play12:09

if i see the response body this is how

play12:11

the response looks like and then for the

play12:14

second run

play12:16

this is the second run this is the

play12:19

end point taken and if i check the

play12:22

request body this is the request party

play12:25

email and password taken from that csv

play12:27

file and this is our

play12:29

response so this is working fine and we

play12:31

are able to

play12:32

run with a csv file let us also see how

play12:36

we can use a json file

play12:38

now if you want to create a json file

play12:40

you can use any notepad or text editor

play12:43

and add your json data and then save it

play12:46

as a dot json format

play12:49

so here

play12:52

add json data in any

play12:56

text or

play12:58

notepad file

play13:00

and save as

play13:02

dot json extension now once you do that

play13:05

you should also

play13:06

verify that you have a valid json data

play13:09

and for that we have a lot of

play13:11

options and tools online so if i search

play13:14

for

play13:15

json

play13:19

[Music]

play13:22

beautifier or validator

play13:26

i can

play13:28

use any of the json formatter

play13:37

so let me see

play13:38

if i get some options here

play13:46

yeah this one is fine let me go to this

play13:48

one this is json formatter and validator

play13:51

and this is the url so i can directly

play13:54

create a json here and then i can

play13:56

download it or i can copy it in my json

play13:59

file so to create a json

play14:03

so i'll give a curly bracket here

play14:05

start

play14:13

and stop and within this curly bracket i

play14:15

will add my data so let us say

play14:18

the first thing i want to add is the

play14:21

endpoint

play14:22

i'll say endpoint within quotes

play14:25

and then the value of the endpoint

play14:27

so i'll just copy the value so this is

play14:29

what i want

play14:33

i can also just copy from here as well

play14:41

then i give a comma

play14:43

and then

play14:46

the second value

play14:48

which is

play14:50

email

play14:53

and

play14:55

i give the

play15:02

value of the email

play15:06

then comma

play15:09

and then

play15:10

the third data

play15:12

which is password

play15:18

and the value

play15:20

i'll give the value of the password and

play15:22

that's it now this is one set of data if

play15:24

you want one more set then you give a

play15:26

comma here

play15:27

so i give a comma here and just

play15:31

you can copy the same thing

play15:34

that is

play15:38

from the start of this curly bracket

play15:42

and the end of this curly bracket the

play15:44

same thing

play15:45

and here i can change the values

play15:57

okay

play15:58

and that's it so this is a valid json

play16:01

and

play16:02

you can also click on process to

play16:04

validate it is a valid json or not and

play16:07

here i am going to

play16:10

download it so i will click on download

play16:12

json so it has got downloaded and there

play16:14

are many other tools so uh if you just

play16:15

search for json

play16:17

formatter

play16:19

or beautifier

play16:21

can find a lot of options

play16:26

so let me check

play16:29

if you go to google and search for json

play16:31

beautifier or json formatter you should

play16:34

see all these options here

play16:41

let us just wait

play16:42

for this to give us some options

play16:45

meanwhile we have got our json file

play16:48

downloaded and this you can also do the

play16:51

other way like first you create a json

play16:53

file and then come here and just

play16:55

validate that your json is correct so

play16:57

this is very important to validate that

play16:59

you have got a valid json and for now

play17:02

i'll go back and use the json file in

play17:04

the collection runner

play17:06

so i'll go here let me clear the

play17:09

console logs

play17:12

and i will go back to my collection

play17:15

and say

play17:16

run collection

play17:18

and

play17:19

i'm just running this api and this time

play17:21

i will select a

play17:23

json file so i'm going to the downloads

play17:26

folder

play17:27

and this is my json file

play17:30

and yes everything looks fine

play17:32

uh if i you can see it has

play17:35

it has

play17:36

updated to iterations and this is the

play17:38

file and it has selected application

play17:41

json in the file type and we have got a

play17:43

preview so if i click on preview so

play17:45

everything looks fine here i can now

play17:49

say run new collection

play17:53

and here

play17:54

everything is running fine it has run it

play17:56

two times with two sets of data and the

play17:58

tests are also pass if i look at the

play18:01

console you can see here

play18:03

this is my request body

play18:06

and then

play18:08

this is the first run this is the

play18:11

response body and for the second run

play18:13

this is my

play18:16

request party here

play18:18

and you can see everything is taken from

play18:20

the

play18:21

json file

play18:23

so this is how we can

play18:24

get data from a csv or a json file now

play18:28

in case you want to

play18:30

run this you want to refer data from any

play18:33

of these data files in scripts like a

play18:36

test script or a pre-request scripts in

play18:39

that case you will have to use some

play18:41

different format let me show you if i go

play18:43

to my api

play18:46

i will

play18:49

clear the console

play18:50

and go back to my

play18:52

api and let us say i am going to the

play18:54

tests and i will create

play18:57

a test

play18:58

i will call it as

play19:01

verify email in the response

play19:05

and here

play19:06

i will say

play19:09

response

play19:11

body

play19:13

dot hash

play19:14

and now in case you are referring

play19:17

this from any variable within postman we

play19:20

can just give it like this

play19:22

but this will not work

play19:25

this will not

play19:26

work in case of

play19:27

getting the data from a data file for

play19:30

that we will have to say

play19:33

data

play19:35

dot

play19:38

email so it will get data from the data

play19:40

file or the other way is

play19:44

i can say data

play19:47

and within square brackets

play19:50

i will give the

play19:52

variable name or the header name that is

play19:54

email so this is how

play19:56

we use

play19:58

this if we have to refer data in the

play20:00

scripts this is how we do this

play20:02

and let me save this

play20:04

and i'll run it again just to check this

play20:06

works fine

play20:08

so i'll run the collection i'll go to

play20:10

run collection

play20:12

and i'll select the

play20:14

file

play20:15

you can select csv or json file

play20:18

and

play20:21

i will now run and check

play20:26

so you can see

play20:28

this is all working fine and verify

play20:30

email has also

play20:31

passed if i check the

play20:34

console output you can see

play20:38

this is the request body and here the

play20:40

email is raghav at

play20:42

req dot in and then if i see the

play20:45

response body here as well the email is

play20:48

raghav req dot in and therefore this has

play20:51

passed so this is how you can refer

play20:55

data

play20:56

in apis using data files and i hope this

play21:00

was very useful for you please do some

play21:01

hands-on if you have any questions you

play21:03

can let me know and i will see you in

play21:05

the next session thank you for watching

play21:07

and never stop learning

Rate This

5.0 / 5 (0 votes)

関連タグ
API TestingPostmanData DrivenCSV FilesJSON FilesWeb DevelopmentSoftware TestingRequest HandlingParameterizationTest Automation
英語で要約が必要ですか?