Unit 05 Devops
Unit 05 Devops
• Manual Testing
• Automation Testing
•
Automated Testing has the following disadvantages:
1.Automated testing is very much expensive than the manual testing.
2.It also becomes inconvenient and burdensome as to decide who
would automate and who would train.
3.It has limited to some organizations as many organizations not
prefer test automation.
4.Automated testing would also require additionally trained and skilled
people.
5.Automated testing only removes the mechanical execution of testing
process, but creation of test cases still required testing professionals.
B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
What is Selenium?
•Selenium IDE provides a playback and record feature for authoring tests without the
need to learn a test scripting language.
•It can be considered as the leading cloud-based testing platform which helps testers to
record their actions and export them as a reusable script with a simple-to-understand
and easy-to-use interface.
B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
• Selenium supports various operating systems, browsers and programming languages. Following is the list:
• Programming Languages: C#, Java, Python, PHP, Ruby, Perl, and JavaScript
• Operating Systems: Android, iOS, Windows, Linux, Mac, Solaris.
• Browsers: Google Chrome, Mozilla Firefox, Internet Explorer, Edge, Opera, Safari, etc.
• It also supports parallel test execution which reduces time and increases the efficiency of tests.
• Selenium can be integrated with frameworks like Ant and Maven for source code compilation.
• Selenium can also be integrated with testing frameworks like TestNG for application testing and generating reports.
• Selenium requires fewer resources as compared to other automation test tools.
• WebDriver API has been indulged in selenium whichis one of the most important modifications done to selenium.
• Selenium web driver does not require server installation, test scripts interact directly with the browser.
• Selenium commands are categorized in terms of different classes which make it easier to understand and
implement.
• Selenium Remote Control (RC) in conjunction with WebDriver API is known as Selenium 2.0. This version was built to
support the vibrant web pages and Ajax.
B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
JavaScript testing
• JavaScript testing frameworks play a significant role in testing web user interfaces (UIs)
of various products. Here are a few noteworthy frameworks:
1.Karma: Karma is a test runner specifically designed for running unit tests written in
JavaScript. It helps execute these tests in different browsers and environments, ensuring
consistent results across platforms.
2.Jasmine: Jasmine is a behavior testing framework that resembles Cucumber. It allows
developers to write tests in a more descriptive and readable format. Jasmine helps verify
the expected behavior of JavaScript code.
3.Protractor: Protractor is a testing framework primarily used for AngularJS applications.
While it utilizes the underlying Selenium web driver, Protractor is optimized for testing
AngularJS-specific features. It simplifies locating controllers within the testing code,
leveraging its understanding of the Angular framework.
• All the systems we work with in this chapter support this idea in different ways. Puppet has an
extensive system that allows machines to have different roles that in turn imply a set of packages and
configurations. Ansible and Salt have these systems as well. The container-based Docker system has an
emerging infrastructure for describing sets of containers connected together and Docker hosts that can
accept and deploy such cluster descriptors.
• Cloud systems such as AWS also have methods and descriptors for cluster deployments.
• Cluster descriptors are normally also used to describe the application layer.
• This is an example scenario of a dialogue between a Puppet client and aPuppet master:
1. The Puppet client decides that it's time to check in with the Puppet master to discover any new configuration
changes. This can be due to a timer or manual intervention by an operator at the client. The dialogue
between thePuppet client and master is normally encrypted using SSL.
2. The Puppet client presents its credentials so that the Puppet master can know exactly which client is
calling. Managing the client credentials is aseparate issue.
3. The Puppet master figures out which configuration the client should have by compiling the Puppet catalogue
and sending it to the client. This involvesa number of mechanisms, and a particular setup doesn't need to
utilize
• all possibilities.
• It is pretty common to have both a role-based and concrete configuration for a Puppet client. Role-based
configurations can be inherited.
4 .The Puppet master runs the necessary code on the client side such that the
• configuration matches the one decided on by the Puppet master.
• B.MAHESH (YOUTUBE CHANNEL :: SV TECH KNOWLEDGE )
• In this sense, a Puppet configuration is declarative. You declare what
configuration a machine should have, and Puppet figures out how to get from the
current to the desired client state.
•
There are both pros and cons of the Puppet ecosystem:
• Puppet has a large community, and there are a lot of resources on the Internet
for Puppet. There are a lot of different modules, and if you don't have a really
strange component to deploy, there already is, with all likelihood, an existing
module written for your component that you can modify according to your
needs.
• Puppet requires a number of dependencies on the Puppet client machines.
Sometimes, this gives rise to problems. The Puppet agent will require a Ruby
runtime that sometimes needs to be ahead of the Ruby version available in your
distribution's repositories. Enterprise distributions often lag behind
• in versions.
• Puppet configurations can be complex to write and test.