Content ITV PRO
This is Itvedant Content department
Learning Outcome
4
Differentiate between IDE, WebDriver, and Grid.
3
Understand the components of the Selenium Suite.
2
Understand the purpose of Selenium in Automation Testing
1
Understand What is Automation Testing
Recall
What is manual testing?
We know:
How to test software applications by manual testing approach?
Automation Testing is a powerful enabler of speed, accuracy, and efficiency in modern software development
To do Testing with:
But
Faster execution of test cases ,
To achieve Reusability
To get Higher accuracy
To Save time & effort Especially for repetitive tasks.
For Better test coverage
Human errors possible
Challenges:
Time-consuming
Repetitive work
Open Gmail → enter credentials → click login → verify inbox
Automation Approach with Selenium (Robot Tester):
Write Selenium script:
Run script on multiple browsers using Selenium Grid
Re-run automatically whenever the app updates
Faster testing
Consistent and accurate results
Tester can focus on more complex tasks like usability or exploratory testing
Outcome:
Why Automation Testing?
Reduces human errors in repetitive testing.
Ensures web apps work on different browsers and devices
Integrates with CI/CD pipelines for faster release cycles.
Saves effort and resources over multiple testing cycles.
Automates repetitive tasks, running tests much faster than humans.
Test scripts can be reused across multiple test cycles.
Handles hundreds or thousands of test cases easily.
Switching between Environments
Once multiple environments are created:
Select the active environment using the dropdown
menu
Postman automatically uses values from that
environment
No need to update each request manually
Development
https://dev.api.com
QA
Production
https://prod.api.com
https://qa.api.com
Chaining API Requests in Postman
API request chaining is a technique where the output of one API request is used as an input for another request and storing them in variables.
These variables can then be used in headers, parameters, or request bodies of other API calls.
This approach makes testing smoother and helps simulate real application flows.
For example :
when a user logs in, the system returns an authentication token
This token is then used in other API requests to access protected resources.
Instead of referring this value manually, Postman allows you to capture it automatically and use it in the next requests
One of the common ways to implement chaining is through test scripts in Postman.
After a request is executed, a script can capture a value from the response using JavaScript and store it as a variable.
let responseData = pm.response.json();
pm.environment.set("userId", responseData.id);The id returned in the response is stored in an environment variable called userId.
This variable can then be used in the next API request like this:
{{userId}}
Identify required values
Extract using scripts
Store as variables
Use in next requests
How it works:
Practical use case - Login token reuse
endpoint
Summary
4
Consists of three main components: IDE, WebDriver, and Grid
3
Selenium is a popular automation tool used for web application testing.
2
Automation Testing is fast, accurate, reusable, and ideal for repetitive tasks
1
Manual Testing is slow and error-prone but useful for exploratory testing.
Quiz
What is the main purpose of using Environments in Postman?
A.Create API request
B.Store variable values that may change across setups
C.Run automated UI tests
D.Design API documentation
What is the main purpose of using Environments in Postman?
A.Create API request
B.Store variable values that may change across setups
C.Run automated UI tests
D.Design API documentation
Quiz-Answer
By Content ITV