Knowledge / Computer Applications / Test tools: Selenium, JMeter and Postman

Test tools: Selenium, JMeter and Postman

Computer Applications (MCA) · Software engineering · free study notes for exams, placements and interviews

In short

Selenium, Apache JMeter and Postman are the three open-source tools that cover the bulk of practical software testing: Selenium drives a real browser to test the user interface, JMeter generates concurrent load to measure performance, and Postman exercises HTTP/REST APIs at the service layer. All three are free (Selenium and JMeter under the Apache License 2.0; Postman is a commercial product with a free tier), which is why Indian service companies (TCS, Infosys, Wipro, Cognizant, Accenture, LTIMindtree, HCLTech) and product firms (Zoho, Freshworks, Razorpay, Flipkart) list them in almost every QA job description. University syllabi examine them under "Software Testing and Automation" / "Software Testing Tools" labs, and placement rounds ask for locators, waits, a thread-group calculation and a collection-with-assertions walkthrough. The examinable skill is not clicking the GUI but knowing what each tool can and cannot test, and the numbers behind a load test.

Explained

Where each tool sits in the test pyramid

Selenium: architecture and components

Selenium: locators, waits and the Page Object Model

Apache JMeter: performance testing

Postman: API testing

Fitting them into CI/CD and the Indian delivery context

Key points

Formulas and examples

Ramp-up rate = Threads / Ramp-up period (users started per second)
Total requests in a run = Threads × Loop count × (samplers per iteration)
Throughput TPS = Total requests / Total test duration (seconds)
Little's law: Concurrent users N = Throughput X × Response time R (X in req/s, R in s)
Required threads for a target throughput: N = X × (R + Z), where Z = think time (s)
Constant Throughput Timer setting = target requests per minute per thread group
Error % = (Failed samples / Total samples) × 100
Apdex = (Satisfied count + 0.5 × Tolerating count) / Total samples (0 to 1; T = target threshold)
Pacing (s per iteration) = Test duration / Iterations per user

Example 1 - Thread group arithmetic. A test plan has 200 threads, ramp-up 100 s, loop count 5, and each iteration fires 4 HTTP requests (login, search, view, logout). The steady-state run lasts 10 minutes.

Example 2 - Little's law sizing for a results portal. A university results page must serve 9,000 page views per minute at peak. Measured server response time is 0.8 s and realistic user think time between pages is 7 s.

Example 3 - Percentiles from a sample. Twenty sorted response times (ms): 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 260, 280, 300, 350, 500, 900, 1,400.

Example 4 - Apdex. 1,000 samples with threshold T = 1.0 s: 820 under 1.0 s (satisfied), 140 between 1.0 s and 4T = 4.0 s (tolerating), 40 above 4.0 s or failed.

Example 5 - Suite cost: why the pyramid. A regression pack of 600 cases: as Selenium UI tests at 45 s each → 600 × 45 = 27,000 s = 7.5 hours sequentially; with Grid at 10 parallel sessions → 45 minutes. The same 600 checks as Postman/Newman API tests at 0.4 s each → 240 s = 4 minutes. Keeping only the 80 true journey tests in Selenium (80 × 45 = 3,600 s = 1 hour sequential, 6 minutes at 10× parallel) and the rest at API level gives a ~10-minute pipeline instead of 7.5 hours.

AspectSeleniumJMeterPostman
Layer testedBrowser UIProtocol (HTTP, JDBC, JMS...)API / service (HTTP)
Primary purposeFunctional, regression, cross-browserPerformance: load, stress, soakFunctional API testing, exploration
LicenceApache 2.0, freeApache 2.0, freeFree tier + paid plans
ScriptingJava, Python, C#, JS, RubyGUI test plan + Groovy (JSR223)JavaScript (pm.*), Newman CLI
ConcurrencyLow (Grid, a few hundred browsers)High (thousands of threads)Not for load
Renders JavaScriptYes (real browser)NoNo
Built-in assertionsNo (TestNG/JUnit)Yes (Assertion elements)Yes (pm.test)
CI integrationMaven/Gradle + Jenkinsjmeter -n CLINewman
Typical reportingExtentReports, AllureHTML dashboard, GrafanaNewman HTML reporter

Where it is used

Interview questions

Common mistakes

Related topics

Software testing: levels, types and test case design · Software quality assurance: metrics, reviews and standards · CI/CD and DevOps pipelines · REST API design and HTTP · Web technologies and the DOM · Software architecture: monoliths and microservices

Open in the Knowledge reader →Find jobs →