Skip to content

Iptv Assist

Learn More from us

Menu
  • HOW TO
  • Firestick
  • Chromecast
  • PC Apps
  • Lg Smart TV
  • IPTV Services
  • Automation Testing
  • Smart TV
  • Software Testing Tools
  • Contact Us
Menu

How to Classify Positive and Negative Test Scenarios – A Tester’s Cheat Sheet

Posted on March 19, 2023

Best Iptv Service Provider 2023 With 40k+ Channels And 100k+ VOD . 24/7 Suppport . Paypal Supported

You can do something the easy way or the hard way – the important thing is that you do it. There are few simple everyday things, but without confidence, something about them does not quite fit in our minds and the extent of success is a hit or miss.

Best Iptv Service Provider 2023 With 40k+ Channels And 150k+ VOD . Hurry Up

Let’s take one simple example today and find shortcuts that will not only clarify the concepts but also make sure that you will always get it right. 

Recommended IPTV Service Providers

  1. IPTVGREAT – Rating 4.8/5 ( 600+ Reviews )
  2. IPTVRESALE – Rating 5/5 ( 200+ Reviews )
  3. IPTVGANG – Rating 4.7/5 ( 1200+ Reviews )
  4. IPTVUNLOCK – Rating 5/5 ( 65 Reviews )
  5. IPTVFOLLOW -Rating 5/5 ( 48 Reviews )
  6. IPTVTOPS – Rating 5/5 ( 43 Reviews )

 

positive and negative test scenarios

Positive or negative classification of test scenarios/cases

Test design process is 3 fold:

  • Identify requirements
  • Write test scenarios (one line pointers of what to test)
  • Design detailed instructions on how to test (test cases)

When writing test scenarios, we classify them into positive and negative conditions. (When you think about it, is it really important to make this classification? If yes, what purpose does it serve? We have to test them all anyways, isn’t it?) It beats me too, for the most part. But I think it is an attempt to establish adequate coverage and helps to establish that we are testing both the happy and alternate paths the system is supposed to handle. Please comment below, if you know of any other reasons why this is done.

Now, let’s look at a few requirements, write test scenarios and perform the classification.

#1) Login: A user who enters correct credentials gets into the system. If the credentials are incorrect, access is denied and an error message is displayed.

#2) View products: Let’s assume there is an online catalog of all the products available in the system and it displays them all in a list when “View products” link is clicked.

#3) Logout: When clicked on this link, the user is logged out.

I am going to write few Test scenarios for these requirements.

Table A: The right way

Test scenario ID Test scenario description Positive/Negative
TS_login_01 Validate if the user logs in successfully if the credentials entered are correct Positive
TS_login_02 Validate if the user is not allowed access when the credentials entered are incorrect Negative
TS_ViewProduct_01 Validate if all the items are listed when View products link is clicked Positive
TS_logout_01 Validate if the already logged in user is signed out of the system when logout is clicked Positive

However, sometimes I see the Test scenario written like this.

Table B: Entries marked Red are invalid test scenarios.

Test scenario ID Test scenario description Positive/Negative
TS_login_01 Validate if the user logs in successfully if the credentials entered are correct Positive
TS_login_02 Validate if the user is not allowed access when the credentials entered are incorrect Negative
TS_ViewProduct_01 Validate if all the items are listed when View products link is clicked Positive
TS_ViewProduct_02 Validate if the all the items are not listed when view products link is clicked Negative
TS_logout_01 Validate if the already logged in user is signed out of the system when logout is clicked Positive
TS_logout_02 Validate if the user does not log out when logout link is clicked Negative

For login’s successful case, there is an equal and opposite case when it won’t be successful. Not all requirements are supposed to be that way and for them, there is really no compulsion to write a negative scenario.

Bottom line: Not every requirement should have negative cases.

At this point, if you are thinking “How will I know” or “I’m still not sure”, here is a simple cheat sheet that will help.

If there is one generalization we can make about applications is that they are dynamic. The input (data, clicks, etc.) that we provide will cause the application to be a certain way and generate a certain output.

A simple correlation between the input and output variables will make this easy to comprehend.

Let us try the following for login:

Input Output Positive/Negative
Correct (correct login info) Correct (User logged in) Positive
Incorrect (incorrect login info) Correct (An error message) Negative
Correct (correct login info) Incorrect – Login fails Bug/Defect
Incorrect (incorrect login info) Incorrect (system logs them in) – “Oh, the horror!” 🙂 Bug/defect

So, you see from the above table, we can say that we categorize the primary flow as positive and the alternate flow (also the correct behavior of the application) is marked as negative.

The last two cases in red are in fact, bugs. Testing is about validation of requirements and when they don’t work as intended, we find bugs. Since we don’t go validating for defects, the last two cases are invalid.

Following the same line of thought and applying it to logout and view products, here is what you will get.

Input Output Positive/Negative
Logout (click) Correct – Logs out Positive
Logout (click) Incorrect – Stays signed in Bug/defect
View products (click) Correct – Displays products Positive
View products (click) Incorrect (not list or incorrect list display) Bug/defect

As you can see, for these requirements, there isn’t a possibility to supply an incorrect input. Therefore, there need not be negative test scenarios/cases written.

Concluding thoughts:

The system could be subjected to positive or negative input. Either way, the system should generate correct output. The cases that tend to deal with correct input are positive. The ones that are about correct but negative input are negative.

A few pointers:

#1) When an end to end test cases are written for UAT or even system testing, it is always the positive test cases that make it into the flow.

#2) Sometimes, the classification is subjective. For example, if I am deleting something on a site and I receive a confirmation message that asks me “Are you sure you want to delete this entry?” with OK and Cancel options – according to me clicking on cancel is a positive case. But some think, it’s negative as the primary intent of “Delete” option is to delete and not cancel the operation. So, a tester’s judgment also plays a part in the classification.

#3) For every positive case, there isn’t always an equal and opposite negative case.

The above method always guarantees correct classification. Try it yourself and tell me, if it does not. 🙂 “A shortcut is often a wrong cut.”- But then, it may not be in this case!

For a more formal explanation of Negative testing, please check => What is Negative Testing and How to Write Negative Test Cases?

About the author: This article is written by STH team member Swati S. Join her live QA training course here: “The best software testing training you will ever get!“

Please let us know if you have liked this article and want to see any such basic concepts explained easily in the coming articles.

Your comments, questions, feedback and readership is highly appreciated and valued here at STH. Happy testing!

Related

Best Iptv Service Provider 2023 With 40k+ Channels And 150k+ VOD . Hurry Up

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • IPTV List: Best iptv lista 2023
  • IPTV Premium: Best Premium IPTV Service Provider List And Benefits
  • Nikon IPTV Review: Over 10,000 Live Channels for $12/Month
  • Iptvwings. Com Review: +18000 Live IPTV Channels ,+70000 Movies, +40000 TV show For $15/1 month
  • IPTVUNO Review: More Than 16000 Live TV channels, 55,000 Movies & VOD For $15/Month

Recent Comments

  1. IPTV List: Play lista iptv 2022 - Iptv Assist on Best IPTV Player in 2023 for Watching Live TV
  2. Cola IPTV – Over 18,000 Live Channels for $12/Month - Iptv Assist on FileLinked – How to Install on Firestick/Fire TV and Android Devices
  3. Cola IPTV – Over 18,000 Live Channels for $12/Month - Iptv Assist on 50+ Best IPTV Service Providers for Streaming Live TV 2023
  4. XoomsTV IPTV – Over 11,000 Channels & VOD for Under $13/Month on Best VPN for IPTV in 2023 and How to Install on Firestick/Android
  5. Voodoo Streams IPTV Review – Over 12,000 Channels for $11/Month - Iptv Assist on Dynasty TV IPTV Review – Over 6,000 Channels for $10/Month

Archives

  • March 2023

Categories

  • Activate
  • Agile Testing
  • Alternatives
  • Android
  • APK
  • Apple TV
  • Automation Testing
  • Basics of Software Testing
  • Best Apps
  • Breakfast Hours
  • Bug Defect tracking
  • Career in Software Testing
  • Chromebook
  • Chromecast
  • Cross Platform
  • Database Testing
  • Delete Account
  • Discord
  • Error Code
  • Firestick
  • Gaming
  • General
  • Google TV
  • Hisense Smart TV
  • HOW TO
  • Interview Questions
  • iPhone
  • IPTV
  • IPTV Apps
  • Iptv Service SP
  • IPTV Services
  • JVC Smart TV
  • Kodi
  • Lg Smart TV
  • Manual Testing
  • MI TV
  • Mobile Testing
  • Mod APK
  • newestiptv.com
  • News
  • Nintendo Switch
  • Panasonic Smart TV
  • PC Apps
  • Performance Testing
  • Philips Smart TV
  • PS4
  • PS5
  • Python
  • QA Certifications
  • QA Leadership
  • QA Team Skills
  • Quality Assurance
  • Reddit
  • Reviews
  • Roku
  • Samsung Smart TV
  • Screenshot
  • Selenium Tutorials
  • Sharp Smart TV
  • Skyworth Smart TV
  • Smart TV
  • Soft Skills For Testers
  • Software Testing Templates
  • Software Testing Tools
  • Software Testing Training
  • Sony Smart TV
  • Sports
  • Streaming Apps
  • Streaming Devices
  • Tech News
  • Test Management Tools
  • Test Strategy
  • Testing Best Practices
  • Testing Concepts
  • Testing Methodologies
  • Testing News
  • Testing Skill Improvement
  • Testing Tips and Resources
  • Toshiba Smart TV
  • Tutorials
  • Twitch
  • Types of Testing
  • Uncategorized
  • Vizio Smart TV
  • VPN
  • Web Testing
  • What is
  • Xbox
©2023 Iptv Assist | Design: Newspaperly WordPress Theme