Automation

  Home  Testing  Automation


“Automation related Frequently Asked Questions by expert members with professional career as Automation. These list of interview questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts”



108 Automation Questions And Answers

22⟩ Tell us what kind of keyboard operations can be performed in Selenium?

Selenium lets to perform different kinds of keyboard operations, such as:

☛ .pressKey("non-text keys") is used for keys like control, function keys etc that are non-text

☛ .releaseKey("non-text keys") is used in conjunction with key press event to simulate releasing a key from keyboard event

☛ .sendKeys("sequence of characters") is used for passing character sequence to an input or textbox element.

 120 views

24⟩ Tell us what methods of Robot Class do you know?

Some commonly and popularly used methods of Robot Class during web automation:

keyPress(): method with press down arrow key of Keyboard

Example:

keyPress(KeyEvent.VK_DOWN)

keyRelease(): method with release down arrow key of Keyboard:

Example:

robot.keyRelease(KeyEvent.VK_DOWN)

mouseRelease() method will release the right click of your mouse

Example:

mouseRelease(InputEvent.BUTTON3_DOWN_MASK)

mouseMove() method will move mouse pointer to the specified X and Y coordinates.

Example:

robot.mouseMove(point.getX(), point.getY())

mousePress() method will press the right click of your mouse.

Example :

robot.mousePress(InputEvent.BUTTON3_DOWN_MASK)

 144 views

27⟩ Tell me what is the testng.xml file used for?

testng.xml file is used to configure the whole a test suite. Here we can create a test suite, create test groups, mark tests for parallel execution, add listeners and pass parameters to test scripts. It can be used for the further test suite triggering.

 137 views

28⟩ Tell me what are the advantages of Using Git Hub For Selenium?

☛ Members of multiple people team working on the same project can update its details and inform other team members simultaneously

☛ You can build the project from the remote repository regularly by using Jenkins. This helps you to keep track of failed builds.

 139 views

29⟩ Can you explain me what is Object Repository?

Object repository is an essential entity in any UI automation 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.

 166 views

37⟩ Explain me what are the main advantages of Selenium?

☛ Selenium is a free and open source. You don't need to spend any licensing cost to use it.

☛ Cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari etc.)

☛ Multiple programming languages (Java, C#, Ruby, Python, Pearl etc.) support

☛ Compatibility with the main platform (Windows, Mac OS, Linux etc.)

☛ Huge amount user base and helping communities

☛ Automation scripts creating ability for non-programmers as well as for programmers

☛ Testing distribution support

☛ Regular and fresh repository developments

 137 views