Contents
How do you determine which tests need automation and which don t?
A test case should be automated if:
- The task is going to be repeated.
- It’s going to save time.
- The requirements, the test, or the task are low risk, stable, and unlikely to change often.
- The test is subject to human error.
- The test is time consuming.
- The test has significant downtime between steps.
How do you write test cases for automation testing?
Test Automation Best Practices
- Decide what Test Cases to Automate.
- Select the Right Automated Testing Tool.
- Divide your Automated Testing Efforts.
- Create Good, Quality Test Data.
- Create Automated Tests that are Resistant to Changes in the UI.
What type of testing can be done using Selenium?
There are many types of testing that can be done with Selenium. You can do smoke testing, sanity, testing, UI testing, regression testing, and more.
What is the main use of selenium?
The biggest use of selenium is as an additive to glass. Some selenium compounds decolourise glass, while others give a deep red colour. Selenium can also be used to reduce the transmission of sunlight in architectural glass, giving it a bronze tint. Selenium is used to make pigments for ceramics, paint and plastics.
What are the tools required for selenium?
Selenium consists of a number of tools that do different things: Selenium IDE, Selenium WebDriver and Selenium Grid. These tools support a number of browsers, operating systems, and programming languages, so that Selenium essentially fits the needs of many software testers.
Which is an example of a fragile selenium test?
The typical example of a fragile Selenium test occurs because of a context, like tests that depend on certain dates or times. This is true for every kind of test, so it also applies to Selenium tests. When your tests depend on certain dates or times, they might suddenly fail when the conditions (temporarily) don’t apply.
Why did my selenium test fail on leap day?
This is often the case on leap days, but depending on your business logic, other dates may cause your test to fail too. In unit tests, the date and time can easily be mocked out, but it’s often much more difficult in Selenium tests.
Can a clock be mocked out in selenium?
In unit tests, the date and time can easily be mocked out, but it’s often much more difficult in Selenium tests. To make matters worse, you’re dealing with two clocks: the “server” clock (where your back-end application is running) and the browser’s clock.