What are test cases, test scenario and Advantages of writing test cases

What is test case:

Test case is a document which gives all possible scenarios for one particular requirement. Ideally a test case document contains set of test data like preconditions,post conditions, actual results and expected results.

Test Scenario : Is a any functionality or a test condition or a test possibility.

Software Testing Life cycle:

Software Testing Life Cycle

Why to write test case: 

Test Coverage : Test coverage is a measure of testing and to have better test coverage it is required to write all the tested cases for identified scenario. Ideally the following process will be in action.

  1. Customer will give requirement to developer.
  2. Test engineer has to spend enough time to understand the requirement 
  3. Test engineer has to identify all possible scenarios
  4. Test engineer has to write test cases for all identified scenarios.

What are benefits of writing test cases:

  1. Better Consistency :  When test cases are written for a test execution, the test engineer work will be organised better and simplified. Let us consider a scenario as an example.

When a release1.0 is being tested using existing test cases, the same test cases can be quickly executed for the next release 1.0.1, having test cases helps to identify issues which impacting the old release, this way we can achieve better consistency in test execution.

2. Avoid training : To avoid training every new test engineer on the product or requirement. Consider the following situation.

  • Test Engineer write test cases.
  • Test engineer quits the job
  • New test engineer joins

It takes lot of effort to explain every module and it takes lot of time for new tester to understand the complete requirement.

  • But if we write test cases in the beginning, then the newly joined test engineer can test application by looking in to test cases on his own.
  • Here its not necessary to train him on requirement because, if he execute test cases for couple of release on test cycles he can understand the product.

3. No dependency : To depend on process rather than person. Every company will set their own process

EX: when we get the requirement test engineer should do follow the process.

Understand requirement

identify all scenarios and document.

Prepare a test cases for each scenarios and document.

This process of documenting each and everything will remove the dependency on a person

4. Writing test cases will keep track of all the steps for a particular scenario, this is very important because complicated steps to test a scenario might be difficult to remember always.

    Let us consider an example :

          Assume that an UI distortion issue will be produced by following steps in a particular scenario

Step1 : Login into Chrome browser ( Hard to remember the platform some times, issue is only in Chrome)

Step 2: Navigate to Home page 

Step 3: Select profile from menu in the header

Step 4: Edit First name and Last Name details by giving big string

Step 5: Go back to Home page

Step 6: Navigate to Events page ( only navigating to events page will reproduce the issue)

Step 7: Go back to Home page, the header will shift 100px down leaving black pack at the top

Assuming these steps were not recorded in test cases, when build release 1.0 is given, it is hard to reproduce the same issue again quickly. 

If test cases have written, test engineer can easily follow the steps to reproduce and test the issue.

5. Test cases will ensure that complete functional and non functional testing will be done and hence test cases will give complete list of all scenarios to meet the software product quality expectations.

6. The main objective of test case is to exercise every flow in application.

7. To ensure that it satisfies the BRS that is Business Requirement Specification and SRS that is System Requirement Specifications.

8. Test cases will ensure that every functionality working as expected in every possible scenario.

9. Test cases will ensure that all the requirements have been met as per the customer requirement document.

Check an example for Test Case Template

IMPORTANT : LEARN  TO USE JIRA BUG TRACKING 

 Posted By

Vinayak Mudiyappanavar,

Trainee Test Engineer

Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.EntityRegion

Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.EntityRegion

Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.EntityRegion

OR

Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.

 

Solution

  1.  Replace POM dependency for net.sf.ehcache : ehcache-core

  Replace below lines

                
		dependency
			net.sf.ehcache
			ehcache-core
			2.6.11
		/dependency
		

From below lines

		
		dependency
			org.hibernate
			hibernate-ehcache
			4.3.5.Final
		/dependency
		

2. set Factory_class in spring.xml file as given below

Replace below lines

				prop key="hibernate.cache.region.factory_class" net.sf.ehcache.hibernate.EhCacheRegionFactory/prop
				prop key="hibernate.cache.use_query_cache"> true/prop

With below lines

				prop key="hibernate.cache.region.factory_class"> org.hibernate.cache.ehcache.EhCacheRegionFactory /prop
				prop key="hibernate.cache.use_query_cache">true /prop

3.  Then use setCacheable(true); for your queries in hibernate criteria

 

Innovative ideas on Internet Of Things(IOT)

How innovative ideas on Internet Of Things(IOT) Will change the future

This is an era of IOT, your applications, your gadgets and your vehicles are becoming smarter. Almost every tiniest device you own today is connected to cloud. Already several open source frameworks, operating systems, hardware devices have been evolved to support IOT, It is you who should have an idea and change the future by getting your idea into reality.

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

IOT

IOT

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

 

5 Innovative Ideas on IOT

5) Future of Transportation – IOT makes transportation better

The SMA research report estimates that by 2020, there will be 8 billion people on the planet and 50 billion connected items with 5 million apps. The opportunity this represents to create new ways to connect, and give consumers more tools to protect their homes and families, is staggering for all industry sectors, including travel.
There is a lot of room to innovate the travel agency – analyze every bit of data, what people like, how people spend time while they are waiting for the arrival of vehicle, what schedules people prefer where people roam within the airport every data matters to plan for any travel agency.
Travel_IOT

Travel_IOT

 A sensor device within the airplane can analyze what people would like to do? make necessary changes in the seating automatically, changes in food without even asking the person based on his past travel records.

Innovative ideas on Internet Of Things(IOT)

How innovative ideas on Internet Of Things(IOT) Will change the future

This is an era of IOT, your applications, your gadgets and your vehicles are becoming smarter. Almost every tiniest device you own today is connected to cloud. Already several open source frameworks, operating systems, hardware devices have been evolved to support IOT, It is you who should have an idea and change the future by getting your idea into reality.

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

IOT

IOT

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

5 Innovative Ideas on IOT

4) Make your kitchen smarter – The IOT Smarter Hotels

This is for big hotels and may not be suitable for your house, a huge data collected on how each dish will be prepared, how the time is being wasted and how the resources are being wasted, all these data helps you to organize everything very well make your hotel more profitable.

not only that based on the past records of the customer the hotel room will be automatically adjusted to specific room temperature and the coffee maker will automatically set to your favorite flavor. The smart display in hotel room will set your favorite tv shows and these all things happen even if you have not visited the same hotel before !

Smart_Hotels_IOT

Smart_Hotels_IOT

PREVIOUS                                                                                                                       NEXT

Innovative ideas on Internet Of Things(IOT)

How innovative ideas on Internet Of Things(IOT) Will change the future

This is an era of IOT, your applications, your gadgets and your vehicles are becoming smarter. Almost every tiniest device you own today is connected to cloud. Already several open source frameworks, operating systems, hardware devices have been evolved to support IOT, It is you who should have an idea and change the future by getting your idea into reality.

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

IOT

IOT

So let me list out some cool IOT ideas which , these are surely pioneering ideas on Internet of Things. Now we shall call it as Internet Of Everything.

5 Innovative Ideas on IOT

3) Analyzing your Food habits and alerting you for dangerous health issues

Food_Sensor_IOT

Food_Sensor_IOT

Definitely if any such innovations happen which makes human life better is really appreciable, what if a sensor collects data on what you eat and collects data on all the changes happening to your body after every kind of food intake. Next time when you go for the same food, your smart phone alerts you about the dangerous health issues which may occur if you eat this food item regularly.

PREVIOUS                                                                                                                       NEXT

Innovative ideas on Internet Of Things(IOT)

How innovative ideas on Internet Of Things(IOT) Will change the future

This is an era of IOT, your applications, your gadgets and your vehicles are becoming smarter. Almost every tiniest device you own today is connected to cloud. Already several open source frameworks, operating systems, hardware devices have been evolved to support IOT, It is you who should have an idea and change the future by getting your idea into reality.

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

IOT

IOT

So let me list out some cool IOT ideas which , these are surely pioneering ideas on Internet of Things. Now we shall call it as Internet Of Everything.

5 Innovative Ideas on IOT

2) A decisive solution for courts

hearings in court, managing huge set of data of all kind, referring to exact similar cases for giving better decision were all very complex tasks and always a challenging tasks for judges to declare a very accurate decision on any case. Technology has evolved so much that any complicated problem will be solved at a very less period of time.

How an IOT may help to improve the process of courts and how it helps judges and lawyers?

Every courtroom is connected to the cloud with the help of cameras and sound recording systems. Everything will be recorded and automatically converted to transcript. the converted transcript will be analyzed and compared with several similar cases and necessary data and suggestions will be given to judges to finalize the decision.

 

Court and IOT

Court and IOT

PREVIOUS                                                                                                                           NEXT

Innovative ideas on Internet Of Things(IOT)

How innovative ideas on Internet Of Things(IOT) Will change the future

This is an era of IOT, your applications, your gadgets and your vehicles are becoming smarter. Almost every tiniest device you own today is connected to cloud. Already several open source frameworks, operating systems, hardware devices have been evolved to support IOT, It is you who should have an idea and change the future by getting your idea into reality.

No doubt that IOT is gonna change our life style, Several big companies already working on big ideas, SAP is building up their team on IOT, google releasing an OS for IOT, apple already given a hint that they will focus on IOT.

IOT

IOT

So let me list out some cool IOT ideas which , these are surely pioneering ideas on Internet of Things. Now we shall call it as Internet Of Everything.

5 Innovative Ideas on Internet Of Things(IOT)

  1. An eco system that helps to adopt your daily life as per the need.

    Assume that you are very busy person, who is handling a so many things every day, you are traveling daily several places, you are almost forgetting yourself.

You may forget to drink enough water, you may forget to nap for a while, you were continuously sitting in an air condition room and keeping yourself away from natural air and sun light, you are driving you car every day and might miss some important meetings due to traffic but you could have made it, if you go by your bike.

a) Assume that your shirt has a sensor which will sense your body temperature and collects data every minute. Based on the data collected your smart phone suggest you when to drink water and how much to drink.

Your vehicle air conditioning system automatically adjusts the temperature by considering your current body temperature.

Car_Air_condition_IOT

Car_Air_condition_IOT

Car_Temperature_Sensors_IOT

b)  The sensor in your shirt collected enough data and suggests you, whether to use Car or Bike, when your body is too much exposed to air conditioning rooms and car, your body might need enough natural air and sun light.

These days they are called as health sensing cloths.

Sensor_in_shirts_IOT

Sensor_in_shirts_IOT

c) You smartphone suggests you to take bike rather than car, because the calendar event says that you have to be at the right time today for meeting and the current traffic data says if you go by Car, you will reach an hour late.

d) The data collected several months shows the pollution level in different area of the city, the app will suggest you to take different routes when you go by bike.

NEXT

How Longitude, Latitude and GPS location services works

How Longitude, Latitude and GPS location services works

This article is to understand the mathematics behind GPS location services, how exactly google maps calculates the distance, how basic mathematics being used behind the screen.

Before going directly to mathematical part of it, let us understand the theory part 🙂 . how it is possible to locate places on the planet earth and calculate the distance? Mathematics has changed the world and is the base for everything. We all know that earth is like sphere, its not exact sphere because earth is spinning on its axis and the equator is flat compared to poles of the earth.

earth as sphere

earthLongitudeLatitude

Earth Longitude Latitude

The image above clearly shows how exactly the earth is, since its flat along the equator the radius at equator is more compared to radius along the poles.

But considering the mean radius of earth we shall assume earth as a perfect sphere. So the radius of the earth is 6371Kms.

Let us consider two locations JP Nagar, and Jayanagar in Bangalore India. If I locate these places on the sphere It looks as below.

Mathematics behind Distance calculation using Locations points

Earth Locations Sphere Calculations

Earth Locations Sphere Calculations

 

Earth Locations Sphere Calculations

Earth Locations Sphere Calculations

There are many methods to calculate the distance between two points, many will prefer the below logic. Note here the first image show all Latitude values vary between [-90,+90] and longitude varies between [-180,+180]

Also Read : An Interesting article one how Facebook trying to connect the world

Calculating Distance between two locations using Longitude and Latitude

                 
                //Earth radius is 
                static final double earthRadius = 6371; //Kilometers
                double dLat = Math.toRadians(lat2 - lat1);
		double dLng = Math.toRadians(lng2 - lng1);
		double sindLat = Math.sin(dLat / 2);
		double sindLng = Math.sin(dLng / 2);
		double a = Math.pow(sindLat, 2)
				+ Math.pow(sindLng, 2) * Math.cos(Math.toRadians(lat1)) *  Math.cos(Math.toRadians(lat2));
		double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
		double dist = earthRadius * c;

		return dist;

The above code gives you the distance between two locations on a sphere.

Also Read : How exactly regular expressions works ?

Also Read :  How animations works internally ?

Highly Advanced Aliens Created US

Highly Advanced Aliens Created US

Imagine the world around you, the planet you are living on, your every relation, sentiments, everything you touch, you feel and everything you see around you is just a space created by some one ? Oh yeah you can call him as God, but scientists say a different story 🙂

Ofcourse not a god but what if it is an alien ? aliens programmed and created everything ? Assume that highly advanced aliens running a huge code using highly advanced super computers and we are living in such a hologram.

Alien created world

Alien created world

You can’t argue with me on this, you can’t just say this is all just imagination because I am completely against you 🙂 I argue that it may be possible. Ofcourse I am open for any discussion, but before raising your question answer yourself for my question – ” If Humans can go to space and create space station where any one can live, then why can’t this is not possible” ? . “If a scientist like Stephen Hawking speaks, small electric pulse can activate human memory cells” then if a computer program can read your brain cells it can also simulate something like life on planet !

Anything is possible you can use optical physics and play with rays of light and make you feel falling down, you can make some one feel sleepy with your illusive act, then it means you can control some one with some action.

 

Think about it 🙂

Also Read : An Interesting Article on how Facebook using aircrafts, laser beam to provide internet to remote areas on earth

Also Read : Interesting Article on How Facebook Using Artificial Intelligence, Facebook identifies you based on your hair style, your dressing, your standing posture

Also Read Windows 10 upgrade is available : See what you have to do if you can’t wait 🙂

Also Read : 8 Ways IOT will change your life .

Also Read : Is Google+ struggling ?

Also Read : How to Configure Amazon EC2 Security group