TechAIDBlogToolsHow to design Good Manual Tests for any feature ?
By Mike Arias 05/07/2019 0

How to design Good Manual Tests for any feature ?

negative testing

Picture this, you’re in a team working on a new product and you need to design a test plan for it. It’s the first time this product goes through any sort of QA process. Automation isn’t a top priority at the moment. The Product Owners wants quality out of his product, and the team needs a way to assess if the app is doing what it’s supposed to do. So, what do you do? R/ Manual Tests.

In this article, we’ll go over what, for me, is the best approach to tackle a new functionality in an application.

FIRST, YOU NEED TO KNOW THE PRODUCT

Before writing any test, or start with the manual tests, you should focus on getting to know the product. Get familiar with the business rules, know what the goal of the app is. Depending on the team and the methodologies being used, the documentation can be very useful for this. But if for some reason the documentation is not good enough, a meeting with the team is always helpful to get those tiny little details that make or break the application.

As soon as you feel familiar with the app, you can start designing a test plan for it. Usually, when dealing with this I try to follow a more or less standard approach.

HAPPY PATH TESTS

The first thing I always look for in functionality that I’m about to test is the Happy Path. A Happy Path is the sum of steps the user is expected to take for a given functionality. Knowing the Happy Path will help us define how to variate from it in our tests.

Let’s say, for example, that we’re working for Instagram and they ask us to test the posting functionality. In this case, what would be the happy path?

Well, in this case, the user would likely be expected to use a supported device/OS, use a normal photo taken with their phone’s camera with up to 16:9 aspect ratio.

Happy Path for posting an image to Instagram.

Every time we’re testing Happy Path scenarios, we should expect the app to work as specified and nothing else. This is the way most users will probably use the app and it should be working pretty much flawlessly.

POSITIVE TESTS

When we start to deviate from the Happy Path, we’ll start to encounter several scenarios. These might not be exactly what we expect our users to do, but are totally valid and should work as well.

Going back to “posting a photo to Instagram”, the Happy Path would be to do all the process from within the app… But, Instagram also allows us to post photos from the gallery app on our phone. This is not the Happy Path and is not what most users would do, but is a totally valid action that should be supported and handled gracefully.

NEGATIVE TESTS

After exploring our positive scenarios, we’ll know most of the things we should be able to do with our app. But this won’t give us the test coverage we need. We also need to know what our app can’t do and how it should behave in those situations.

Again taking a look at our “posting a photo to Instagram” use case, what comes to your mind that shouldn’t be possible? What about unsupported file types? Should the app support photos with huge file sizes? What about funky aspect ratios like 21:9?

These are a mix of scenarios where the app shouldn’t allow us at all to proceed, and scenarios where the app should adjust what we input to something that’s valid. This should all be documented and tested against.

NON-FUNCTIONAL TESTS

After clearing all the functional tests, we can dive deep into the non-functional side of things. The non-functional testing is a pretty deep rabbit-hole that can go as deep as the team is willing to. The type of non-functional tests applied to a product is completely up to the team, their priorities, and budget. My favorites are Compatibility and Stress testing. Let’s take a look at each of them.

COMPATIBILITY TESTING

When doing compatibility testing, all we are doing is checking how our system behaves with other systems. Things like the OS version of our app, version of our browser, the browser itself, or even the device we’re using at the time can affect our application.

Testing a mobile application in an iPhone is definitely not the same as doing it in a Samsung. But at the same time, testing it in a Samsung is not the same as testing it in a Google Pixel. So these are all things that need to go into consideration when designing your test plan. Usually, the best bet is to go for what your user base uses the most to ensure that your product works as expected for the majority of your clients.

STRESS TESTING

In stress testing, the goal is to test how robust our application is. This type of testing is even more important in “mission-critical” apps where a crash could mean a huge loss for the company or for the user. This type of testing puts emphasis on how the app responds to heavy load, the availability of it and how does it handle errors when they do come up.

Ideally, a system should never stop and if an error does happen, the app needs to handle it gracefully and give the user an option to keep using it. This type of testing is usually confused with Load Testing. The key difference is that with Load Testing, the goal is to test how the application handles the normal expected workload in an environment that simulates the real-world usage it will get. While with Stress Testing, the tester goes beyond this point to test the absolute limit under sub-optimal conditions.

In future articles, we’ll go over how to mix and match these types of testing to build a good Test Plan.

 

This article was written by Mike Arias
Senior Software Testing Engineer of TechAID.
Twitter: @theqaboy
Blog: qaboy.com/

GO BACK TO Tools

Leave a Reply

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

OTHER POSTS YOU MIGHT LIKE

How to run tests remotely in BrowserStack with Selenium

By Mike Arias 08/18/2019 0

BrowserStack is one of several services that can be used to run a test remotely. Imagine the possibility of testing your system with absolutely any environment. Having that chance is the holy grail of testing since it takes a lot of the guessing game out…

XPATH. With Great Power Comes Great Responsibility

By Mike Arias 04/11/2019 0

Picture this. You’re writing a test script that needs to click a link to verify its functionality, but that button doesn’t have an ID or a Class that identifies it. How do you find it?   First, you have to decide if you’ll use a…