What is Selenium?
Selenium is the most popular open source automation testing tools.it will be used in the web based application automation testing tools.
Knowledge of Selenium IDE?
Selenium is the ease to use in the simplest Framework. it is use in Firefox Plugin .
WebDriver and RC: It provide the ApIs for a variety of languages like java , .Net, PHP etc with most of the browser webdriver and RC work.
Grid: with the help of grid you can distribute tests on multiple machiness so that test can be run paralled which help in cutting down the time requred for running in browser test suites.
Explain how selenium Grid work?
Selenium Grid send the test to the hub . these tests are redirected to selenium webdriver which lanch the browser and run the test. with entire test suite , it allows for running tests in parallel.
what is selenium 2.0?
web testing tools Selenium RC and webdriver are consolidated in single tool in selenium 2.0.
List out the type that are supported by selenium?
for the web based application testing selenium can be used
It can be supported
a)Functional
b)Regression
For post release validation with continious intergration automation tool can be used..
a)Jenkins
b)Hudson
c)Quick Build
d)CruiseCont
Explain what is assertion in selenium and what are the type of assertion?
Assertion is used as a verification point it verifies that the state of the application conforms to what is expected . the type of assertion are "assert", "verify" and "waitFor".
Framework has the following tools use in the webdriver:
1)Selenium WebDriver
2)TestNG
3)JUnit
4)Maven
5)Cucumber
Selenium WebDriver:
WebDriver is a tool for automating web application testing, and in particular to verify that they work as expected. It aims to provide a friendly API that's easy to explore and understand, easier to use than the Selenium-RC (1.0) API, which will help to make your tests easier to read and maintain.
JUnit:
JUnit is an open source framework designed for the purpose of writing and running tests in the java programming language.JUnit has a graphical user interface GUI, making it possible to write and test source code quickly and easily. JUnit allows the developer to incrementally build test suites to measure progress and detect unintended side effects. Tests can be run continuously.
Maven:
maven is build tool . it will provides dependency management standard project layout and project management.
1)Maven offers consistent and common interface to build the java project.
2)Maven also enforce a standard naming conserven for artifact defined using groupID,artifactID and version.
Cucumber:
cucumber is a tool based on Behavior Driven Development(BDD) framework which is used to write acceptance tests for web application . It is allows automation of functional validation is easily readable and understandable formation(like plugin) to Business Analysis , Developers, Tester.
1)Feature File:
Feature files are essential part of cucumber which is used to write test automation steps or acceptance tests.The steps are the application specification all the feature file end with feature extension.
feature: Login functionality feature
Scenario:
Given
When
Then
API Testing
Now we come on the topic of what is the API Testing. Before understanding the API Testing you need to to understand the Software Architecture.
There are three layers in any Software Architecture
- Presentation Layer: This is the User Interface Layer. This layer provide the translation of task and provide in a mode which can be understandable by user.
- Logic Layer: This layer coordinate the application, process command, make logical decisions and perform calculations. It also move the data between 2 surrounding layers.
- Database Layer: Here is information is stored and retrieve from database or file system. This information first passed to the Logic layer then visible to the users in the Presentation Layer.
API Testing in concentrate over the Logic Layer and not over the
Presentation layer so API Testing is differ from the GUI Testing. In API
Testing you need a software to send call to API so here you need to
Testing Tools to drive API or you should write down his/her own code to
Test the API. Now you know that API Testing the White Box Testing.
Implictit wait: It is used to provide a default waiting time (30 seconds) between each consecutive test steps/ commands across the entire test script thus subsequent test step would only execute when the 30 seconds have elapsed after executing the previous test steps/ commands.
Explicit Wait: Explicit wait are used to halt the execution till the time a paticular condation is met or the maximum time has elapsed unlike Implicit waits are applied for a particular instance only.
what is diffrence between setSleep() and sleep Method?
Thead sleep: It will stop the current (java) thread for the specified period of time Its done only once.
Exe: thread.sleep(2000)
SetSpeed(): For specific amout of time it will stop the execution for every selenium command.
Exe:selenium.setSpeed("2000");
selenium.setSpeed(“2000”)
Data driven testing: DDT is a term used in the testing of computer software to descrive testing done using a table of conditions directly as test input and verifiable outputs as well as the procss where test enviroment settings and control are not hard-coded.
Implictit wait: It is used to provide a default waiting time (30 seconds) between each consecutive test steps/ commands across the entire test script thus subsequent test step would only execute when the 30 seconds have elapsed after executing the previous test steps/ commands.
Explicit Wait: Explicit wait are used to halt the execution till the time a paticular condation is met or the maximum time has elapsed unlike Implicit waits are applied for a particular instance only.
what is diffrence between setSleep() and sleep Method?
Thead sleep: It will stop the current (java) thread for the specified period of time Its done only once.
Exe: thread.sleep(2000)
SetSpeed(): For specific amout of time it will stop the execution for every selenium command.
Exe:selenium.setSpeed("2000");
selenium.setSpeed(“2000”)
Data driven testing: DDT is a term used in the testing of computer software to descrive testing done using a table of conditions directly as test input and verifiable outputs as well as the procss where test enviroment settings and control are not hard-coded.
Graceful written content on this blog Software Testing Services Company is really useful for everyone same as I got to know. Difficult to locate relevant and useful informative blog as I found this one to get more knowledge but this is really a nice one.
ReplyDelete