Skip to content
Software Testing Journal
Software Testing Journal

Your daily dose of learning!

  • Blog
  • Help Center
  • Video Playlist
  • Podcast & FAQ
  • Privacy Policy
Software Testing Journal

Your daily dose of learning!

To perform data-driven testing- which is better (UI/API)?

Dheeraj Gambhir, 2023-09-012023-09-04

For sure we can do data-driven testing using automated UI tests (Selenium, PlayWright, WebDIO, etc.) but just because it gives us the option, doesn’t mean that we should it for all cases through UI only. Take an example where we visit any website to get a price quote on any policy — let’s say a medical policy, what do we do- we run our test by going through the same page(s) like select value from few dropdowns, select few checkboxes, and enter values in few text fields to get one final output i.e. the “price quote” of your medical policy- here the variation was only the “Test Data” that finally derive a certain output. Don’t you think that to test this business logic, the efficient way would be to perform API testing which is better maintainable and powerful?

Our UI (end to end) should be meant to confirm that user(s) can use our application in the way it’s intended to do so, perform interactions with it without hitting any issues and always work when performing any E2E transaction(s). On the other hand, our Unit and API test should test and cover the business logic part extensively.

If you find this post helpful, please share them with your colleagues and friends.

  • Facebook
  • Twitter
  • LinkedIn
  • Email
Automation TestAutomation

Post navigation

Previous post
Next post
©2025 Software Testing Journal | WordPress Theme by SuperbThemes