Thursday, 17 December 2015

Explain how Selenium Grid works?

Selenium Grid sent the tests to the hub. These tests are redirected to Selenium Webdriver, which launch the browser and run the test. With entire test suite, it allows for running tests in parallel.

Can we use Selenium grid for performance testing?

Yes. But not as effectively as a dedicated performance testing tool like Loadrunner.

What is Object Repository ?

An object repository is an essential entity in any UI automations which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.

Explain what is the difference between Borland Silk and Selenium?

Silk Test Tool:

 Borland Silk test is not a free testing tool
Silk test supports only Internet Explorer and Firefox
Silk test uses test scripting language
 Silk test can be used for client server applications

 Selenium Test Tool:

 Selenium is completely free test automation tool
Selenium supports many browsers like Internet Explorer, Firefox, Safari, Opera and so on
 Selenium suite has the flexibility to use many languages like Java, Ruby,Perl and so on
Selenium can be used for only web application

Explain how to assert text of webpage using selenium 2.0 ?

WebElement el = driver.findElement(By.id(“ElementID”))
 //get test from element and stored in text variable
 String text = el.getText();
 //assert text from expected
 Assert.assertEquals(“Element Text”, text);

Explain how you can login into any site if it’s showing any authentication popup for password and username?

Pass the username and password with url
 Syntax-http://username:password@url
ex- http://creyate:tom@www.gmail.com

Explain what is Datadriven framework and Keyword driven?

Datadriven framework: In this framework, the test data is separated and kept outside the Test Scripts, while test case logic resides in Test Scripts. Test data is read from the external files ( Excel Files) and are loaded into the variables inside the Test Script. Variables are used for both for input values and for verification values.
 Keyworddriven framework: The keyword driven frameworks requires the development of data tables and keywords, independent of the test automation. In a keyword driven test, the functionality of the application under test is documented in a table as well as step by step instructions for each test.