Scientech Easy Automation Testing: Basic and easily Understandable Tutorial | Scientech Easy

Saturday, June 2, 2018

Automation Testing: Basic and easily Understandable Tutorial

automation testing, testing,test automation,manual testing,automated testing,automation testing tools,automation testing interview questions,automation testing tutorial for beginners,selenium,automation testing interview questions and answers

 What is Automation Testing?

 Automation Testing is the process of automating the manual process to test the application or the system.
      Automation testing uses a separate testing tool in which test script is created and executed repeatedly. Simply, in other words, we can say that automation testing means using an automation tool to execute your test cases.

First of all, let's understand Why should do testing? Why testing is required? Why is testing important? and How to test?

Why should we do testing?  or  Why is testing required?  or  Why is testing important?

Testing is done/required because we all make mistakes. Some of those mistakes are not important but some of them are expensive or dangerous. Therefore we need to check everything after making product or application because humans make mistakes all the time. Since we assume that our work may have mistakes, hence we all need to check our own work. However, mistakes can happen due to wrong assumptions.

Testing is very important because of the following reasons: 
➙ To free errors and defects for making a superior product.
➙ To give Quality Assurance product to the client.
➙ To cut down costs.
➙ To Optimize the speed and efficiency. 

How to test?

Testing can be done in the following ways:
➙ Manually
➙ Automation by using Selenium, WinRunner, LoadRunner, QTP.
➙ Combination of Manual and Automation.
Now we hope you understand the importance of  Testing. but here a question arises why Automation Testing is required? whereas we can also do manually.

Why is Automation Testing required?

Automation Testing is required due to the following reasons:
➙ Manual Testing is not accurate at all times due to human error. Hence it is less reliable.
➙ Manual Testing is time and money consuming.
➙ Automation does not require Human intervention. You can run the automated test without attending. 
➙ Automation improves accuracy and reduces the human-generated error.
➙ Automation increases the speed of test execution.
➙ It supports the execution of repeated test cases.

Which test cases should be automated?

There is the following criterion from which test cases can be selected to automate.
➙ High Risk and Critical test cases.
➙ When there is repetition or a need to run the test cases number of times in a test cycle.
➙ Test cases which are very tedious and difficult to perform manually.
➙ When test cases are a lot of time-consuming then you should automate your test cases.
Automated testing is also the best way to complete the testing efficiently when it comes to load testing.

➙ When you need to run the same test cases with multiple data then Data-driven automation testing framework is the best way to use for minimizing your effort and time. The data is fetched from external sources such as excel sheet and pass the multiple data to each test cases. but in the manual test case, you get bored of testing same functionality and chances to get error will be increased.

➙ When there is a requirement of running the test cases in the different order then in this scenarios, you can design the scripts for getting the order but in manual testing, you will have to remember the order, or you will write the order in some other files(.doc, .txt, excel).

➙ Automation testing is very useful if you want to generate the test report. Mostly all automated testing tools generate test reports automatically when test cycle completed. This will make the job easy of identifying defects.

 Keeping these points in mind, you can find the best approach in any given testing situation and can achieve quality output in your project.

The test cases which are not suitable for automation:
When test cases are newly designed and not executed manually at least once then it is not suitable for automation.
➙ When the requirements of test cases are often changing then it is suitable for automation.

What are the advantages of Automation Testing?

The advantages of Automation Testing are:
➙ Automation Testing is 75% faster than manual testing. So you will get better speed in the execution of test cases.
➙ It supports the execution of repeated Test cases.
➙ It supports parallel execution. 
➙ Improves Accuracy and reduces the human-generated error.
➙ It saves time and money.
Human intervention is not required during execution of test cases.
➙ It Increases the efficiency.
➙ The test script can be reused.

Automation Testing vs Manual Testing:

Both manual and automated testing offer benefits and disadvantages. In manual testing, test cases are executed manually by a human without any support from tools or scripts.
But with automated testing, test cases are executed with the help of tools, scripts, and software.
     In manual testing, Different methods are available such as Black box testing, White box testing, Integration testing, System testing, Acceptance testing, Performance testing and Load testing. Some of these methods are better suited for manual testing and some are best performed through automation.
Let's understand a brief comparison between automation testing and manual testing:
                       
                         Manual Testing                                                                Automated Testing                                                
➙ Manual testing is not accurate all time                        ➙ Since Automation testing is performed by 
    due to human error. Therefore, it is less                          tools or scripts. so it is more reliable.
     reliable
Manual testing is time-consuming, taking                  ➙ Automated testing is performed by software tools.
     up human resources.                                                                So, it is faster than any manual approach.
Investment is required for human resources.           ➙ Investment is required for testing tools.
➙ To execute the test cases the first time,                      ➙ Automation testing is very much useful where the code 
     manual testing will be very much useful.                         changes frequently.
     But it is not sure that defects will not come
     when any change occurs, later on, changing
     requirements.
Manual testing will be useful when the test                ➙ Automation testing will be usefull to execute the set of test 
     cases only need to run once or twice.                                cases frequently.
To execute the test cases ever time tester                 ➙ After making the Automation test suites fewer tester
     requires the same amount of time.                                      required to execute the test cases.
➙ Using manual testing, testing on different                   ➙ Automation testing can also be done on different
     the machine with the different OS platform                    machine with different OS platform combination, 
     combination is not possible concurrently.                      concurrently.
     To execute such task different testers are 
     required
➙ Manual testing requires less cost than                         ➙ Initial cost of automation testing is more than
     automation.                                                                                  manual testing but useful always.

Final words:
I hope this article will help you to understand easily about the basic of Automation Testing tutorial in Selenium. Every point is very important for testing and Interview. You can also remember Interview question from this article.


Popular