Automation Testing Framework Using Selenium Web Driver
Why
Test Automation?
Test
automation, as you know is to help speed up testing when it becomes
tedious and time consuming. Automation can help when we test
something repeatedly. Humans are prone to making mistakes while doing
tedious actions.
Automation
disposes of tedium and rehashed undertakings while doing the
accompanying:
- Test similar tests with various arrangements of information.
- Test with same arrangement of information, on each new form, manually.
- Test, discover bugs, fix, relapse, regress – cycle of bug fixing
Advantages
of Test Automation The advantages are:
- It decreases time to do tests, in this manner manual effort will be saved.
- It runs tests paralleled, along these lines reducing manual effort for testing.
- It runs tests with more than one browser, along these lines sparing manual exertion.
- It runs more tests with various arrangements of information, along these lines showing signs of improvement scope.
What
is a Framework?
A
system is only an arrangement of standards and structures, which
makes it simple to get a suite of tests up and testing in negligible
time. For instance, appoint test information in a particular
envelope, store design settings in a particular record and organizer,
name the tests in this layout, make bundles, etc.
The
examples for non specific structure are:
- Linear
- Modular
- Data Driven
- Hybrid – which is a combination of the all three above
A
test automation system essentially encourages you in building up a
suite of tests, associating with the application under test, running
the tests against the "application-under-test" in required
request and extracting test execution results.
What
is the Page Object Model?
The
Page Object Model is a plan example of testing, got from the Object
Oriented Programming ideas. The POM depicts the web application into
the quantity of website pages being utilized, and contains the
components as properties, and activities as strategies. This offers
you low maintenance on the tests created.
For
example, for a nonexclusive sign in page, you would need to:
- "set user name to a String value being breezed through from the test",
- "set password to a String value breezed through from the test",
- "Click on submit"
and,
the over two assignments are finished. To proceed with we would need
to "approve whether landing page is loaded with the set user
name".
Making
the test automation structure
We
will now attempt to direct the client through the creation and
outlining a straightforward test automation structure for running
tests on web applications, utilizing Selenium webdriver, TestNG and
Maven, utilizing Java programming language. This structure should
enable you to run the tests from an Eclipse IDE or an IntelliJ IDE.
Tools
utilized are:
- Apache Maven – Defines the project structure
- Selenium Webdriver – Test Automation tool/library
- Selenium Grid – An element to run tests on various test conditions on a system
- TestNG – Test sprinter and report engine
- Java – Language that interfaces all components

Comments
Post a Comment