Monday 28 October 2019

Latest Selenium Interview Questions [Updated 2019]

Selenium Interview Questions and Answer 2019


Selenium is one of the most used automated test packages. Selenium was created to guide and inspire automation tests of practical aspects of web-based applications and also a wide range of browsers and platforms. By being in the open-source community, it has become one of the most accepted tools among detection specialists. Check out more selenium tutorials to learn selenium and automation testing.

Below are some of the latest selenium testing interview questions for experienced and freshers.


selenium interview questions


Selenium Webdriver Interview Questions[Selenium IDE and Selenium Grid]


1. What Operations Can selenium do?
Selenium could be used for the intentional, regression load test of the Internet-based program. The automation tool can be run for post-launch validation with continuous integration tools such as Jenkins, Hudson, Speedy Build or Cruise Control.

2. What are the Automation tests?
The automation test or Check Automation is a procedure to automate the manual procedure to examine the program/program under evaluation. Automation tests include the use of another s / w evaluation device that allows you to generate test programs that can be run over and over again and do not require any manual intervention.

3. What would be the advantages of automation tests?
The advantages of automation tests are:

Performance support for continuous test cases
Supports s / w detection of a large evaluation matrix
Power concurrent execution
Supports execution alone
Improves accuracy, thus reducing the malfunction created individually
Save time and cash.

4. What is the price of the selenium license per host?
Selenium is open-source software, released under the Apache 2.0 license and can be downloaded and used at no cost.

5. What is Selenium IDE?
Selenium IDE IS a Firefox add-on that records clicks, writing and other activities to perform test instances, which QA Tester can play in the Firefox browser or export to Selenium RC. Selenium IDE has the function of registering/reproducing the following attributes, step-by-step debugging and breakpoints, web page abstraction performance, an extensibility capability that allows the use of add-ons or personal extensions that extend the functionality of Selenium SDI

6. What are the limitations of Selenium IDE?
Selenium IDE has several excellent features and is a cost-effective and well-organized test automation application for building verification circumstances, at the same time, Selenium IDE does not have certain vital characteristics of a test program: conditional statements, loops, performance of registration, exception handling, performance reports, database detection, re-execution of failed tests and ability to capture screenshots. Selenium IDE is not compatible with IE, Safari and Opera browsers.

7. What exactly is the Selenium Remote-Control (RC) tool?
R. Selenium Remote Control (RC) is a solid solution for verification cases that need more than simple browser actions and linear execution. Selenium-Remote Control allows the development of complex test scenarios

8. When can I use Selenium IDE?
Selenium IDE is the simplest and simplest of all programs within the S / W program of the Selenium online course. Its reproduction function and documents make it extremely easy to understand with Mal's mini associates to any programming language. Selenium IDE is a great instrument for an innocent consumer.

9. What is Selenese?
Selenese is the vocabulary that will be used to publish test scripts in the Selenium in IDE.

10. Do you know different types of locators in Selenium?
The locator can be named as an address that recognizes a distinctly net component within the web page. Therefore, to recognize the network components correctly and we only have different types of locators in Selenium.
ID
ClassName
Name
TagName
LinkText
PartialLinkText
Xpath
CSS Selector

11. What is an Xpath?
Xpath can be used to find a net component according to its XML path. XML represents the extensible markup vocabulary and can be used to store, organize and transport information at random. Stores information in a set of integral values ​​that can be very similar to HTML tags. Both are dialects of marking and, since they are categorized as an identical umbrella, Xpath can be used to search for HTML components.
Far behind finding components that use Xpath is the bridge between numerous components throughout the site and thus allowing a person to discover a feature with the guidance of another component.

12. What are the advantages of selenium over other automation tools?
Selenium is a free and open-source.
It has a large user base and helps communities.
It has cross-browser compatibility (Firefox, Chrome, IE, Safari, etc.)
It has amazing platform compatibility (Windows, Mac OS, Linux, etc.)
It is compatible with numerous programming languages (Java, C #, Ruby, Python, Pearl).
It has clean and regular repository developments.
It supports scattered tests.

13. Explain Selenium Suite?
Selenium Integrated Development Environment (IDE) Selenium IDE is a recording and playback application. It is distributed as a complement to Firefox.
Selenium Remote Control (RC) Selenium RC is a host that allows the user to create test scripts in the desired programming language. In addition, it allows you to run test scripts within the broad spectrum of browsers.
Selenium WebDriver WebDriver is not the same instrument as the many advantages of h-AS over Selenium RC. WebDriver communicates immediately with all browsers and uses its native compatibility to automate.
Selenium Grid Selenium Grid is used to distribute your test run across multiple platforms and environments at the same time.

14. What are the hat tests that Selenium can support?
Selenium supports the following varieties of tests:
Functional testing
Regression tests

15. What are the limitations of selenium?
Selenium supports testing of only Internet-based applications
Cellular applications cannot be examined with selenium
Captcha and barcode readers cannot be analyzed using Selenium
Reports can only be generated using third-party resources such as TestNG or Junit.
As Selenium is a completely free program, there is no ready vendor support, although the user can locate numerous help communities.

16. What is the difference between "/" and "//" in Xpath?
"/" In XPath it is used to produce Xpath with the full path, that is, XPath could be produced to start choosing from the initial file node.
"//": A bar is used twice to generate Xpath with a relative path, that is, the XPath could be produced to start choosing from anywhere in the file.

17. What are the flexibility of the Selenium test suite?
A. The selenium test set is highly adaptable. There are numerous ways to incorporate functionality into the Selenium framework to customize test automation. Compared to other test automation tools, it is the most powerful feature of Selenium. Selenium Remote Control support for various programming languages ​​and scripts allows the test automation engineer to build whatever logic they want in their automated tests and work with a favorite programming or scripting language of their choice. In addition, the Selenium test package is an open-source project where the code can be modified and improvements can be submitted for your contribution.

18. What programming languages ​​can you use in Selenium RC?
C #, Java, Perl, PHP, Python, Ruby

19. What test can selenium do?
Selenium is essentially used for the functional testing of web-based programs. It can be used for detection in the continuous integration environment. It is also really useful for agile tests

20. What are the pros and cons of using Selenium as a test tool?
Advantages: Free, simple and strong DOM (document object model) level tests can be used for continuous integration; Great fit with agile jobs.

Disadvantages: complicated configuration; sad error analysis; cannot test client-server applications.


21. Which browsers are compatible with Selenium Remote-Control?
Test automation can use the Firefox, IE 7/8, Safari and Opera browsers to run tests on Selenium Remote-Control.

22. What exactly is the price of Selenium test-suite?
The selenium test suite is a set of open-source software tools, free of charge.

23. How to start the browser using WebDriver?
This format can be used to set the browser:
WebDriver driver = new FirefoxDriver ();
WebDriver driver = new ChromeDriver ();
WebDriver driver = new InternetExplorerDriver ();

24. What is it possible for the United States to suggest using Selenium 1 and Selenium 2?
The Selenium RC and Selenium WebDriver tutorials, in a mixture, are commonly referred to as Selenium 2. Selenium RC is also only known as Selenium 1.

25. When can I use Selenium Grid?
Selenium Grid allows you to perform the same or different verification programs on several s / w and browsers simultaneously, therefore, to obtain extended evaluation performance, s / w evaluation in different environments and unexpectedly preserve the moment of performance.

26. Describe the specialized problems you had with Selenium Tools.
As with any other form of test automation tool such as Silk Test, HP QTP, Watir, Canoo Webtest Selenium allows you to record, edit and debug test cases. However, there are several problems that seriously affect the ability to maintain the test circumstances recorded, sometimes quality control engineers complain that it takes longer to maintain automated test cases than to perform manual detection, however, This can be a problem with all automatic test programs and most likely related to the poor design of the test frame.

Another problem is the complicated identification of an HTML element. If the IDs are generated automatically, the verification instances of the recorder may fail during playback. The alternative solution would be to use Xpath to discover demanded HTML elements. Selenium is compatible with AJAX without difficulties, but QA Tester must be constantly aware that selenium does not understand when the AJAX action is completed, so Click And Delay will not work. Instead, QA Tester could use the interrupt, but the impact of several pause instructions would really reduce the total test time to prove the circumstances. The best solution will be to use wait for Component.

27. What are the different types of WebDriver instances in selenium?
Firefoxdriver
InternetExplorerDriver
ChromeDriver
Safaridriver
Operadriver
AndroidDriver
IPhoneDriver
HtmlUnitDriver

28. What are the different types of waiting at Selenium?
There are two types of accessible delays Selenium Webdriver
Implicit wait
Wait explicit

Implicit wait: implicit delays are used to provide a predetermined wait time (30 seconds status) between each successive measurement/order of evaluation in all test software. Then, the next evaluation measure could work simply when 30 seconds have passed after executing the previous evaluation measure/order.
Explicit wait: Explicit delays are used to avoid performance until a specific condition is met or the optimal period has elapsed. Unlike implied delays, specific delays are asked for a specific example only.

Sunday 27 October 2019

JAVA Logo: History and Explanation

JAVA Logo: History and Explanation

What is JAVA?


Java is a programming language it is simply one more programming language so what is uncommon about it Java contains broad libraries when you introduce Java or JDK it accompanies classes that can be utilized to accomplish an assortment of things you can utilize Java to make web applications you can likewise utilize it to make work area applications. Java was platform-independent language whose goal was to write code once and run anywhere you don't need to compile your source code, again and again, write once and just use the software's on any machine like Mac Linux Windows or any other operating system.

JAVA History


Java was not initially named as Java it was begun as a green project and began in 1991. Then the task got changed and got his name as oak there's a piece history about this name to the engineers may state that that the designers who initially made the Java were seeing loads of oak tree in their environment and that is the reason the venture was named as oak. Yet again the history got shaped out and the undertaking was named to Java maybe with a great deal of coffee that the designers were drinking and who realizes what the fact of the matter is yet it's being a legend out there and I accept that it's a reality out there then there was a first open discharge in 1995 and this was the first Java that turned out into the world. Therefore java logo is a coffee cup and you can find the logo on the internet with java logo png.



JAVA was initially created at Sun Microsystems in 1991 they needed to build up a programming language for little gadgets like TVs, VCRs, toasters and their objective was to make a compact little programming language initially the language was known as oak. it was discharged as Java in 1995 when Java was first discharged its designers composed a paper a white paper legitimizing another programming language you realize for what reason do we have to become familiar with another programming language and in that white paper they depicted Java as straightforward item arranged disseminated translated strong secure building impartial convenient superior multi-strung and dynamic language.


JAVA VS C++ or C++ VS JAVA



Java is certainly a basic programming language it is unquestionably simple, to begin with. it offers all the usefulness of C++. The once in a while utilized befuddling highlights of C++ the quantity of language builds is little contrasted with most other programming dialects and they chose to evacuate a portion of the highlights of C++ like pointers, structs, type, def. So Java doesn't have a pointers, not the manner in which they are actualized in C++, at any rate, there is no compelling reason to free memory in the event that you need to make an article in Java feel free to do so when you are finished with it you can simply forget about it there is no compelling reason to stress over expelling that item from memory.



Java doesn't bolster different legacy the main significant programming language that supports various legacy in C++ and they found dependent on the exploration that they did that by evacuating these highlights it chops down it might chop down half of the most widely recognized bugs that happen in C++.Java is object-oriented Java is a purely object-oriented programming language unlike C++ which only supports object orientation Java is considered a distributed programming language it has extensive support for TCP/IP and networking capabilities it also contains library routines for HTTP FTP protocols.






Java provides array bounds checking exception handling and bytecode verification all of these features make Java very robust. Java is also secure it's a very secure programming language it does not have any low-level functions file access can be programmatically restricted and when you run the code the interpreter verifies the bytecode.


Saturday 26 October 2019

[UPDATED] Random String generator for 2019

Random String generator

This random string generator will help to generate strings of any length. It would be helpful when task is to generate string of a specific character. Go ahead and generate the random string of any length.

random string generator


Enter the limit for random string






Saturday 19 October 2019

Unit testing Java: What is a unit test?

Unit Testing


Unit testing is mainly focus on the smallest element of software design so that it is focused on the modules or software components is divided into different levels. It takes on the smallest element in the software design and try to test on that smallest unit again after that day it is integrated to the main next level module and again they're tested like that. The unit testing is only focus on the smallest element of the software design so it make heavy use of all the main thing is it makes heavy use of white box testing. White box testing mainly focused on the internal structure of the module means testing is completely done on internal structure internal code or structure.


Testing is such a huge important part of web development in general so that is something which we will be focusing on because there's a lot of different types of testing whether that's integration tests, systems testing, stress testing, performance testing all sorts of stuff. Unit testing can be kind of confusing people see the word thrown out a lot like what is unit test right at the end of the day your code is broken up into units right and you might think of these units as maybe like a function or a class or just various different things in your code that do stuff and we're gonna actually go over a specific function in unit tests here in a second and what a unit test does is it essentially just confirms that that bit of code is doing what it's supposed to be doing and unit tests can certainly save your butt along with a host of other styles of testing.




As mentioned unit test tests a specific unit of your code to make sure that it's working you could think of this in a non web development or non coding things as a door right. Unit tests allow you to make changes and updates to your code in all sorts of areas whether that's the implementation of that particular unit or that unit along with other units or whatever it allows you to make changes to your code and have a understanding that it's going to work without having to actually manually check it.

unit testing


Lets understand unit testing with an example, Suppose we have an Asssignment of creating a calculator which can perform operation such as addition, subtraction, division and multiplication. This system i will be dividing into subsystems means the sub modules so rather than working on complete module I divided the module into units a small units so that i ams sure each module or operation is working as expected. Operations is addition is working properly or not subtraction, multiplication is working or not. This testing is known as unit testing where we have divided the end system into units and testing is performed in individual units rather than waiting for the end product and perform the testing at once. This units will be independent of each other so we testing can be performed in units without any dependency of other modules.

Thursday 17 October 2019

Tosca Automation Tool : What is Tosca tool

Tosca Automation Tool


let me give you a brief introduction about Tosca test suit I'm going to talk what is Tosca suit and comparison of Tosca with other test automation tools like selenium or QTP and also the advantages and disadvantages of Tosca test suit. So let us start about what is Tosca test suit.

So Tosca is a test automation tool automation testing tools developed by TRICENTIS. You must be hearing about Tosca since last three or four years or max five years, so the current version of Tosca is over Central and they have done lot many improvements and also they have added lot many features in the Scottish word so it is a test automation tool where you can automate your almost all kinds of application whether it is your GUI application like your web application or desktop application or your non geo applications such as your XML or any other Jason or might be your SAP application might be run from application whether it is mobile testing whether it is a load testing almost twice a try tricentis is trying to cover all the things in this complete package.

Tosca test suit is a test automation tool where you can perform lot many kind of testing activities. It is a test management tool because normally we use QC as our test management tool where we write our test cases where we execute our test cases on the similar lines of suit can be used to perform your manual testing as well where you can create or record your manual test cases you can execute your manual test cases as well. It is a management tool like till now we were using Quality Center to add our requirement excuse me are nowadays we are using JIRA where we do add our user story and all those things.


Tosca testing tool


In Tosca as well you can do all things like you can do a planning test planning you can do you can add the requirements you can link the requirements to your test cases or you can link the requirements to your test execution list. Linking the requirement gives you the status of the actual current status of the particular requirement. what's the like how many person do the test cases are written for this specific requirement how many number of percentage of test cases are executed for this requirements out of that what is passed percent,fail percentage and everything will be getting because we are we are linking the requirements to a test cases and execution list so that so it is a test management tool as well as the management tool where it it produces a good dashboard to see what an old requirements are covered what's the current status. The biggest advantage is it is a script less test automation tool and it makes the test case more readable. So just like how you read the manually written test cases on the similar line not exactly but a very good way you can read the test cases which are there in two test suit.It supports your manual test cases as well it supports your automated test case whether it is your GUI non-jew way that supports mobile legacy applications

Tosca looks very much better but the thing is only it is a paid tool and bit costly. Most of the organisations go for selenium because for selenium there is a huge what I guess the resources available in the market as well as on Internet and also you can find the useful material and selenium supports many technologies rate. It supports Java, Python and all other languages but though Tosca has its own feature own uniqueness it is a script less and supports it's the complete bundle so you can perform maximum of the activities in single tool itself.

Tosca supports almost all the kinds of the applications qtp supports like your web and desktop application whereas selenium supports only your web application. it is model-based whereas qtp is based which you cannot understand the scripts just by reading it whereas if it is a model based you can easily read the test cases. selenium is again code based you may not be able to read and understand the test cases if you are a non techie scripting required for a task. Today 99% of the scenarios there is no need to do a coding or scripting but in and one percent in very rare scenarios you might need to do according to develop special execution tasks. 


Tuesday 15 October 2019

Selenium Testing Automation - What is selenium

Selenium Testing Automation - What is selenium?



Selenium has become one of the most powerful tool for testing web applications so how does selenium help so we saw all the T merits of manual testing so we can save by automation of test cases one selenium helps in speedy execution of test cases since manual execution is avoided the results are more accurate no human errors since your test cases are automated human resources required to execute automated test cases is far less than manual testing because of that there is a lesser investment in human resources it saves time and you know time is money its cost effective as selenium is an open source it is available free of cost early time to market since you save effort and time on manual execution your clients will be more as you would be able to ship your product pretty fast lastly since your test cases are automated you can rerun them any point of time and as many times as required.

Selenium tool offers so many benefits we definitely want to know more detail about what selenium is selenium enables us to test web applications on all kind of browsers like Internet Explorer Chrome Firefox Safari edge opera and even the headless browser selenium is an open source and it is platform independent the biggest reason why people are preferring this tool is because it is free of cost and the qtp and the rfp which we talked about are chargeable selenium is a set of tools and libraries to facilitate the automation of web application as I said it is not a single tool it has multiple components which we'll be seeing in detail in some time and all these tools together help us test the web application you can run selenium scripts on any platform it is platform independent why because it is primarily developed in JavaScript it's very common for manual testers not to have in-depth programming knowledge so selenium has this record and replay back tool called the selenium IDE which can be used to create a set of actions as a script and you can replay the script back however this is mainly used for demo purposes
only because selenium is such a powerful tool that you should be able to take full advantage of all its features


  • Selenium provides support for different

  • programming languages like Java Python, c-sharp Ruby so you can write your test scripts in any language you like one.

  • Need not know in-depth or advanced knowledge of these languages also

  • Selenium supports different operating systems it has suppose for Windows, Linux and ubuntu.

Selenium is the most popular and widely used automation tools for automating your web applications selenium set of tools.As you know every tool has its own limitation so does selenium has


  • Cannot test mobile applications requires framework like APM.however what selenium provides is a support for integrating this APM tool which is nothing but a mobile application automation tool and using APM and selenium you can still achieve mobile application automation
  • Webdriver we can achieve only sequential execution.
  • selenium webdriver has a limited reporting capability it can create basic reports but what we definitely need us a more so it does support some tools like say extent reports.


selenium automation testing

Programming language it supports to write effective automation scripts. So this you could look at it as an advantage or disadvantage so overall if you look at all this selenium still provides a complete solution for our automation meet and that is why we can still say that selenium is one of the most popular tool used in the industry today for your web application. Automation all right key takeaways so overall in this article we saw the disadvantages of manual testing what pushed us to look at automation and then we saw one of the most powerfull tool available today for automating web application that is selenium.