33 Testing https://www.guru99.com/automation-testing.html

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Benefits of Automation Testing

70% faster than the manual testing Wider test coverage of application features Reliable in results Ensure Consistency Saves Time and Cost Improves accuracy Human Intervention is not required while execution Increases Efficiency Better speed in executing tests Re-usable test scripts Test Frequently and thoroughly More cycle of execution can be achieved through automation Early time to market

Framework for Automation

A framework is set of automation guidelines which help in Maintaining consistency of Testing Improves test structuring Minimum usage of code Less Maintenance of code Improve re-usability Non Technical testers can be involved in code The training period of using the tool can be reduced Involves Data wherever appropriate

Maintenance

As new functionalities are added to the System Under Test with successive cycles, Automation Scripts need to be added, reviewed and maintained for each release cycle. Maintenance becomes necessary to improve the effectiveness of Automation Scripts.

Test Execution

Automation Scripts are executed during this phase. The scripts need input test data before there are set to run. Once executed they provide detailed test reports.

Planning, Design, and Development

Automation tools selected Framework design and its features In-Scope and Out-of-scope items of automation Automation testbed preparation Schedule and Timeline of scripting and execution Deliverables of Automation Testing

four types of frameworks used in automation software testing:

Data Driven Automation Framework Keyword Driven Automation Framework Modular Automation Framework Hybrid Automation Framework

How to Choose an Automation Tool?

Environment Support Ease of use Testing of Database Object identification Image Testing Error Recovery Testing Object Mapping Scripting Language Used Support for various types of test - including functional, test management, mobile, etc... Support for multiple testing frameworks Easy to debug the automation software scripts Ability to recognize objects in any environment Extensive test reports and results Minimize training cost of selected tools

Rational Functional Tester

It is an Object-Oriented automated Functional Testing tool that is capable of performing automated functional, regression, data-driven testing and GUI testing. The main features of this tool are It supports a wide range of protocols and applications like Java, HTML, NET, Windows, SAP, Visual Basic, etc. It can record and replay the actions on demand It integrates well with source control management tools such as Rational Clear Case and Rational Team Concert integration It allows developers to create keyword associated script so that it can be re-used Eclipse Java Developer Toolkit editor facilitates the team to code test scripts in Java with Eclipse It supports custom controls through proxy SDK (Java/.Net) It supports version control to enable parallel development of test scripts and concurrent usage by geographically distributed team

WATIR

It is an open source testing software for regression testing. It enables you to write tests that are easy to read and maintain. Watir supports only internet explorer on windows while Watir webdriver supports Chrome, Firefox, IE, Opera, etc. It supports multiple browsers on different platforms Rather than using proprietary vendor script, it uses a fully-featured modern scripting language Ruby It supports your web app regardless of what it is developed in

Selenium

It provides the provision to export recorded script in other languages like Java, Ruby, RSpec, Python, C#, etc It can be used with frameworks like JUnit and TestNG It can execute multiple tests at a time Autocomplete for Selenium commands that are common Walkthrough tests Identifies the element using id, name, X-path, etc. Store tests as Ruby Script, HTML, and any other format It provides an option to assert the title for every page It supports selenium user-extensions.js file It allows to insert comments in the middle of the script for better understanding and debugging

Automated software testing is important due to the following reasons:

Manual Testing of all workflows, all fields, all negative scenarios is time and money consuming It is difficult to test for multilingual sites manually Automation does not require Human intervention. You can run automated test unattended (overnight) Automation increases the speed of test execution Automation helps increase Test Coverage Manual Testing can become boring and hence error-prone

mabl

Proprietary machine learning models automatically identify and surface application issues Tests are automatically repaired when UI changes Automated regression insights on every build

QTP (MicroFocus UFT)

QTP is widely used for functional and regression testing, it addresses every major software application and environment. To simplify test creation and maintenance, it uses the concept of keyword driven testing. It allows the tester to build test cases directly from the application. It is easier to use for a non-technical person to adapt to and create working test cases It fix defects faster by thoroughly documenting and replicating defects for developer Collapse test creation and test documentation at a single site Parameterization is easy than WinRunner QTP supports .NET development environment It has better object identification mechanism It can enhance existing QTP scripts without "Application Under Test" is available, by using the active screen

SilkTest

Silk Test is designed for doing functional and regression testing. For e-business application, silk test is the leading functional testing product. It is a product of Segue Software takeover by Borland in 2006. It is an object-oriented language just like C++. It uses the concept of an object, classes, and inheritance. Its main feature includes It consists of all the source script files It converts the script commands into GUI commands. On the same machine, commands can be run on a remote or host machine To identify the movement of the mouse along with keystrokes, Silktest can be executed. It can avail both playback and record method or descriptive programming methods to get the dialogs It identifies all controls and windows of the application under test as objects and determines all of the attributes and properties of each window

Different types of software testing that can be automated

Smoke Testing Unit Testing Integration Testing Functional Testing Keyword Testing Regression Testing Data Driven Testing Black Box Testing

The following category of test cases are not suitable for automation:

Test Cases that are newly designed and not executed manually at least once Test Cases for which the requirements are frequently changing Test cases which are executed on an ad-hoc basis.

Automated Testing Process:

Test tool selection Define the scope of Automation Planning, Design, and Development Test Execution Maintenance

Define the scope of Automation

The features that are important for the business Scenarios which have a large amount of data Common functionalities across applications Technical feasibility The extent to which business components are reused The complexity of test cases Ability to use the same test cases for cross-browser testing

Automation Tool Best Practices

To get maximum ROI of automation, observe the following The scope of Automation needs to be determined in detail before the start of the project. This sets expectations from Automation right. Select the right automation tool: A tool must not be selected based on its popularity, but it's fit to the automation requirements. Choose an appropriate framework Scripting Standards- Standards have to be followed while writing the scripts for Automation. Some of them are- Create uniform scripts, comments, and indentation of the code Adequate Exception handling - How error is handled on system failure or unexpected behavior of the application. User-defined messages should be coded or standardized for Error Logging for testers to understand. Measure metrics- Success of automation cannot be determined by comparing the manual effort with the automation effort but by also capturing the following metrics. Percent of defects found The time required for automation testing for each and every release cycle Minimal Time is taken for release Customer Satisfaction Index Productivity improvement

Automation Testing

means using an automation tool to execute your test case suite.


Ensembles d'études connexes

Adult Quiz 3 exam 4 practice questions

View Set

Chapter 6 Implementation and evaluation

View Set

And Then There Were None Chapters 1-7

View Set

Chapter 5: Operating Systems, 2223 MIS Intro to computers exam 2, Chapter 9, Introduction to Computers Final Exam, CIS Ch.7, MIS Chapter 1, MIS Test 4- know acronyms, Computers Module 12, module 11 quizzes, Module 9 and 10

View Set

Business Math Ch 14: Cost of Installment Buying

View Set

Chapter 7: Suitability and Investment Risks UNIT EXAM

View Set