How Do I Automate Negative Tests - Tuhin Subhra Mitra

13th January 2023
  • Locked
Tuhin's profile
Tuhin

How Do I Automate Negative Tests - Tuhin Subhra Mitra image
Talk Description

Negative Tests are always tricky to automate - it's different than automating a positive/happy path test. Initially, while the negative test is developed often it's productive but over time as the application/testable product changes the negative tests may result in false positives or altogether irrelevant! In this talk, I like to share my experiences using real-life project examples that helped me to come up with concrete negative assertions, assertions that were relevant to the expected behavior of the application. I would share with actual and/or pseudo code examples to demonstrate the assertions. The talk would describe the lessons that I learned over time, resulting in better negative assertions.

Negative testing ensures the application behaves gracefully with invalid user input or unexpected user behavior. It improves product quality and finds it weak points. The difference between +ve and -ve is throwing an exception is not an unexpected behavior for the latter.

Negative testing is the process of applying as much creativity as possible and validating the application against invalid data. This means its intended purpose is to check if the errors are being shown to the user where it’s supposed to, or handling a bad value more gracefully. The application or software’s functional reliability can be quantified only with effectively designed negative scenarios. Negative testing not only aims to bring out any potential flaws that could cause serious impact on the consumption of the product on the whole but can be instrumental in determining the conditions under which the application can crash. Finally, it ensures that there is sufficient error validation present in the software.

What you’ll learn

By the end of this talk, you'll be able to:

  • Describe an example of negative testing
  • Examine features to learn how we handle negative events
  • Describe the value of negative testing
Tuhin's profile'

Tuhin

I am Tuhin, currently working as a Test Engineer in a product development company called Mendix at Rotterdam, Netherlands. I was born and raised in Kolkata, India – started my career as Test Analyst back in 2009 post my graduation. Testing to me is a culmination of thought process and preparations – effective, creative, and fast – that help me to validate the software or application properly, eventually providing a valuable feedback to my team.

Cooking, reading, exploring restaurants, Netflix, running, sports, Spotify, classical music – are the things that help me awake, apart from work, when I am not sleeping.

Suggested Content
DesignWise
The Deadly Sins Of Acceptance Scenarios – Mark Winteringham
You Can Become a Toolsmith Too! - Matthew Bretten
What Is A Test Idea?
Quality Assurance in an AB-Test Driven Company - Antonia Landi
How Does Your Mobile Application Handle Internet Connection Issues? You Might Be Surprised…
With a combination of SAST, SCA, and QA, we help developers identify vulnerabilities in applications and remediate them rapidly. Get your free trial today!
Explore MoT
TestBash Brighton 2024
Thu, 12 Sep 2024, 9:00 AM
We’re shaking things up and bringing TestBash back to Brighton on September 12th and 13th, 2024.
MoT Foundation Certificate in Test Automation
Unlock the essential skills to transition into Test Automation through interactive, community-driven learning, backed by industry expertise

Tags

  • automation
  • test-design