Sei sulla pagina 1di 20

Correct Answer

Question
Option 1
Option 2
Option 3
Option 4

3
[Selenium] What tests can selenium do?
Functional
Regression
Both a and b
None of the above

2
[Selenium] Selenium can be used for Web based and window based testing.
TRUE
FALSE

3
[Selenium] Following is not the type of Selenium.
Selenium Grid
Selenium Core
Tellerium
SIDE

2
[Selenium] Selenium IDE is the add on only for the following browser.
Chrome
Firefox
Safari
Internet Explorer

3
[Selenium] Selenium can be deployed on the following Operating Systems
windows, linux
Solaris,OS X
Both a and b
None of the above

1
[Selenium] What is selenese?
Selenium commands
Selenium keywords
Selenium Class
None of the above

3
[Selenium] How do you execute the tests recorded in Selenium IDE in other browsers?
Selenium 3
Selenium Core
Selenium Remote Control
All of the above

1
[Selenium] Is it possible to start the Remote engine more than once in an instance?
Yes
No

3
[Selenium] Which of the following we use to check the properties of a web page?
Asset Command
Verify Command
Both a and b
None of the above

1
[Selenium] Each testcase of Selenium RC will invokes the browser and closes after
playing back.Justify?
TRUE
FALSE

1
[Selenium] We can set multiple breakpoints in Selenium IDE.Justify
Yes
No

3
[Selenium] The following elemements in your CLASSPATH to run your Junit tests?
The JUnit JAR file.
Location of your JUnit test classes.
Location of testsuites to be tested.
JAR files of class libraries that are required by classes to be tested.

1
[Selenium] The following is not the Junit annotation?
The @DataProvider
the @Test
The @AfterClass
the @BeforeClass

3
[Selenium] How does Jnuit parameterize a class?
Using The @AfterClass Annotation
Using the @Data Annotation
Using the @RunWith Annotation
Using the @Parameterize annotation

4
[Selenium] How do you run the Junit tests from the command line?
java org.junit.runner.<test class name>
Run Junit <test name>
java JUnitCore <test class name>
java org.junit.runner.JUnitCore <test class name>

2
[Selenium] The syntax to compile a Junit Test Class is?
javac -cp junit-4.4.jar HelloTest.java
javac junit-4.4.jar HelloTest.java
javac -cp junit-4.4 HelloTest.java
javac -np junit-4.4.jar HelloTest.java

1
[Selenium_2] What are the front end web driver languages?
Java and C#
Ruby and Python
Javascript and Java
C# and Ruby

1
[Selenium_2] The command to access the alert is
Alert alert = driver.switchTo().alert();
alert = driver.switchTo().alert();
Alert alert = driver.alert();
alert = driver.alert();

1
[Selenium_2] driver= new FirefoxDriver() is the command used to create a new
instance of the browser in Web Driver.Justify
TRUE
FALSE

1
[Selenium_2] Web Driver allows the implementation of listeners.Justify?
TRUE
FALSE

1
[Selenium_2] TestNg will execute the tests in
The order they are found in the Xml file
The order they are found in the @Test annotation
The order in which they are written
None of the above

1
[Selenium_2] Adantage of Page Object
Reusability
Modularity
Portability
All of the above

1
[Selenium_2] The ---------- has a plug-in system that allows you to easy extensin
and customizatin.
Selenium IDE
Selenium WebDriver
Selenium Grid
Selenium COre

3
[Selenium] What is the Selenium IDE plug in to run the Selenium Test Suite?
Flex Pilot
Whit Code Plexer
Test Runner
Test Suite Runner

1
[Selenium] storeFooPresent(variable) does
stores the text of the pop-up in a variable and returns true or false
Stores the text of pop-up into some default variable
stores the text of the pop-up in a variable
Both a and b

1
[Selenium] Does selenium IDE support looping?
TRUE
FALSE

2
[Selenium] Selenium will show some security notifications when handling
Proxy Settings
HTTP Sites
Both a and b
None of the above

4
[Selenium_2] What is the default file type for capturing screenshots?
.jpeg
.jpg
.img
.png

4
[Selenium_2] The attribute which can be used only at the class level is
threadPoolSize
priority
successPercentage
singleThreaded

3
[Selenium_2] The ---------- should be used to run more than one instance of
IEDRiver at a time
Virtual Machines
Remote Web Driver
Both a and b
None of the above

2
[Selenium_2] IS Selenium Web Driver ThreadSafe?
Yes
No

3
[Selenium_2] A ------ is a mechanism that stores all the locators for a test suite
in one place for easy modification
Repository
Object Storer
UI map
None of the above

2
[Selenium_2] The ------------- can be used in instantiating their page objects
factory
PageFactory
Decorators
DecoratorFactory
3
[Selenium_2] The ------------ is pure DHTML/JavaScript
Selenium Web Driver
Selenium Grid
Selenium Core
None of the above

2
[Sel_EasyAutomate]The time to wait for a particular element is in terms of
Seconds
MilliSeconds
MicroSeconds
PicoSeconds

4
[Selenium] Following is not the step to run automation using Selenium
Record the scripts using Selenium IDE
Run the test
Modify the scripts according to the testing needs.
Viewing the results in the format specified.

4
[Selenium] What is Selenium's recording language?
Java
C#
Ruby
Hyper text markup language

1
[Selenium] Justify your answer:
Selenium will record any operation that you do on your computer apart from the
events on the Firefox browser window.
TRUE
FALSE

1
[Selenium] Selenium automates
Browsers
navigators
urls
None of the above

3
[Selenium] Select the diasadvantage of Selenium from the following?
It is simple, easy to install and easy to work.
Run multiple tests at a time.
Does not support file upload from local machine.
The software with which it developed is browser based and agile adpted.

1
[Selenium] Selenium less powerful in creation of scripts because
Many actions are not recorded by IDE and have to be manually entered.
All the actions performed are recorded by IDE.
IDE doesnot record and we have to do complete scripting manually.
All of the above

3
[Selenium] The following is used to run the exported tests in any browser and any
platform?
Selenium 2
Selenium Core
Selenium Remote Control
None of the above

3
[Selenium] Which of the following uses native JavaScript calls.
Selenium Core
Selenium Grid
SIDE
Selenium Web Driver

1
[Selenium] Selenium Core TestRunner is used to
Open up the browser to test runner
open the browser and execute the test script.
Not used to run any kind of tests in Selenium IDE
Both a and b

1
[Selenium] What is the main language that drives Selenium IDE
Java
Python
Ruby
VBScripting

1
[Selenium] Assert and Verify are used for
Validating the elements that are available on the application
under test
Validating the elements only on the current page.
It is not used for validating.
None of the above

2
[Selenium] The following is used to add the assert or verify to the test
Selenium IDE
Context Menu
Slider bar
Base Url tab

2
[Selenium] How do you start Selenium RC?
Start Selenium RC Server
java -jar selenium-server-standalone-<version-number>.jar
Start RC
None of the above

2
[Selenium] How do you identify an object in Selenium?
HTML code
DOM with firebug
CSS
firepath

4
[Selenium] Which are the annotations generated with JUnit 4 tests in Selenium IDE?
@Before public void method()
@Test public void method()
@After public void method()
All of the above

3
[Selenium] How to start selenium rc server with user extensions?
java -jar selenium-server.jar user-extensions.js
java -jar selenium-server.jar -userExtensions.js
java -jar selenium-server.jar -userExtensions user-extensions.js
Start SeleniumServer User-extensions.js

4
[Selenium] How to run Selenium IDE test suite with user extensions using Selenium
Remote Control?
java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite
"*<browser>"
"<Selenium test suite file>" "<results log file>" -timeout <millise>
java -jar selenium-server.jar user-extensions.js -htmlSuite "*<browser>"
"<base URL>" "<Selenium test suite file>" "<results log file>" -timeout <millise>
java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite
"*<browser>" "<base URL>" "<Selenium test suite file>" "<results log file>"
-timeout <millise>
java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite
"*<browser>"
"<base URL>" "<Selenium test suite file>" "<results log file>" -timeout <millise>

3
[Selenium] If the default port of selenium is busy then which port you use?
We need to stop till the port gets free
Need to create our own port from where the script runs
Need to define our own port as java -jar SeleniumServer.jar -port 1111
None of the above

4
[Selenium] When to use proxy injection mode?
When we run the script in the browser where we recorded the test
When we need to activate the proxy for the browser In which the application is open
To inject the proxy for the browser
Used when the script is recorded in one browser and we need to run in some other
browser.

2
[Selenium] Silver light application testing is possible in following type of
selenium?
Selenium Web Driver
Selenium Remote Control
Selenium Grid
Selenium IDE

1
[Selenium] How do you edit the recorded command in IDE?
By selecting the command and choosing the desired value from drop-down.
Edit->Recording Mode
No optionis available
Both a and b

1
[Selenium] What are the three major components of Selenium IDE?
Command, Target, Value
Command, Destination, Value
Command, Target, Input
Order, Target, Value

1
[Selenium] Which is the command used for diaplaying the values of a variable into
the output console or log?
Echo <constant string>
Echo $<constant string>
Echo $<variable name>
None of the above

3
[Selenium] The client libraries of Selenium RC instructs Selenium Server on
How to test the AUT
How to test the AUT by using selenium commands
How to test the AUT by passing it your test scripts Selenium commands
How to test the test scripts Selenium commands

3
[Selenium] Which of the following translates its selenium commands into client
drivers API's finctions?
Selenium2
Selenium Core
SIDE
Selenium Remote Control

4
[Selenium] The following test engine is used for Java programming language?
Junit
TestNG
Nunit
Both a and b

2
[Selenium] How many types of reports can be generated for java in Selenium?
No Count and are still emerging
4
2
Not there

2
[Selenium] Name the Selenium API method that is used to Java script from Selenium
RC?
Exceute Js API
getEval API
Execute .JS <selenium-server.jar>
None of the above

4
[Selenium] Multi mode is the default behaviour for?
Selenium Web Driver
Selenium Core
Selenium Grid
Selenium 1.0

2
[Selenium] Select the command that can be used to record valuable debugging
information reported by the
selenium server to a text file.
the -include log command
the -log command
the -log to text file command
None of the above

1
[Selenium] Which of the following is more useful to the end user than the regular
Selenium Server logs?
the -browserSideLog command
the -browserLog command
the -browsersidelogs command
All of the above

1
[Selenium] The main restriction of Selenium is
Same Origin Policy
Same Origin Policy for all browsers
Same Origin Policy for security issues
Security Restrictions

2
[Selenium] The method that was used by selenium initially to avoid the Same Origin
Policy was
Enable Same Origin Policy
Proxy Injection
Enable Origin Policy for all browsers
None of the above

2
[Selenium] Mechanism that stores all the locators for a test suite in one place for
easy modification when identifiers
or paths to UI elemets changes in the AUT is?
Locator Suite Details
Ui Map
Suite UI elements locators
None of the above

3
[Selenium] Rapid prototyping tool is
Selenium Rc
Selenium Web Driver
SIDE
Selenium Core

4
[Selenium] Which of the following is not the pane of Selenium IDE?
Log
Ui-Element
Reference
TestCase Name

1
[Selenium] The two ways of editing a command or comment is Selenium IDE are?
Table and Source
Table and Target
Command, Target, Input
None of the above
1 or 4
[Selenium] Toggle Breakpoint is used to
set a breakpoint in the test case to cause it to stop on a particular command.
can set a breakpoint in the test case to cause it to stop on a particular command
and
exceute from the scratch
Both a and b
Only 1

3
[Selenium] The three flavours of Selenium Commands are
Command, Target, Value
Assertions, Actions and Ino\puts
Actions, Accessors and Assertions
All of the above

1
[Selenium] The three modes in which we can use the Selenium Assertions are
Assert, Verify and waitFor
Assery, Verify and Assertions
Assert, VerifyAssertion and waitFor
assertAssertions, VerifyAssertions and waitFor

3
[Selenium] Following is not the most commonly used Selenium Command?
Open up the browser to test runner
verifyTitle/assertTitle
windowsMaximize
verifyTable

1
[Selenium] The two ways of discovering the xpath of an element are ?
Firebug and Xpath Checker
FireBug and FireXpath
Css and Firebug
None of the above

2
[Selenium] Select the locator that can be used to find the most complicated objects
in an intrinsic HTML document?
Xpath
Css
Input
ID

1
[Selenium] Selenium globbing pattern allows only
asterisk and character class.
asterisk and class.
Dollar symbol and character class.
None of the above

4
[Selenium] How do you build a locator that is different from the locator type that
was recorded?
Locator Strategy
Locator Guidance
Locator Selectin Criteria
Locator Assistance
1
[Selenium] java.lang.RuntimeException: Could not contact Selenium Server; have you
started it? Error means
You have not started the Selenium Server
You have started the Selenium Server but the port is busy.
You have to stop the Selenium Server and then need to restart it
All of the above

1 or 4
[Selenium] How to extend the build to additional environments using Ant?
Add depends property
Add Target
Both a and b
Only 2

4
[Selenium] The deafult timeout value of recorded command is
3s-30ms
30s-300ms
300s-3000ms
30s-30000ms

3
[Selenium] Why do we use Selenium Client Drivers?
To interact with the Selenium Server with the scripts created
Create local selenium Web driver script
Both a and b
None of the above

1
[Selenium] Can we control the speed and pause the test execution in Selenium IDE?
IDE provides a slider with slow and fast pointers to control the speed of
execution.
IDE provides an option with slow and fast pointers to control the speed of
execution.
IDE directly allows you to slow and fast pointers to control the speed of
execution.
None of the above

2
[Selenium] Reference Scetion of Selenium IDE is used for?
To view the test execution
Description of the commands
Check for certain text
All of the above

3
[Selenium] How do we add checkpoints manually to our tests in Selenium IDE?
Add Checkpoint Option
Reference Section
Context Menu
Locator Builders

3
[Selenium] storeText
css=input#s
var1
echo
${var1} .
The above code will do?
Used to store the result of an evaluation
Print value in Selenium Ide
To check the stored value in Selenium IDE
To check the value of stored text

1
[Selenium] How can we change the test recorded in Xpath to css locator?
Using the drop down available next to Find in Selenium
Using the css selector available next to Find in Selenium
First enable the css selector and click on find button
Select the element recorded using Xpath, enable the css selector and click on the
Find Button

3
[Selenium] Where do we specify our user javascript extensions in Selenium IDE?
Actions Menu
File Menu
Options Menu
Preference Menu

3
[Selenium] The language of Selenium IDE is?
HTML
Java
Selenese
None of the above

1
[Selenium] The other tool that is available outside Selenium IDE to test the
element locator is?
Firefinder
Firebug
Xpath Getter
None of the above

3
[Selenium] The command used to simulate right click on an element in a web page is?
Locator Command
Direct Right click and simulate the element on the web page
Use contectMenu
All of the above

2
[Selenium] The command that simulates key stroke key by key is
Type
typeKeys
typeAndWait
None of the above

3
[Selenium] Selenium RC is limited to
Java Programming Language
Not restricted to any language
Selenese
Any full fledged programming Language

1
[Selenium] The following are the main components of Selenium RC?
Selenium Server and Client Libraries
Client Liraries and Selenese commands
Both a and b
None of the above

1
[Selenium] I am not using java to program my tests, do I still have to install java
on my system?
Yes
No

2
[Selenium] During the execution of the tests I see two windows , one on the test
application and the other showing commands getting executed.How to limit to a
single window?
Script in the code to a single window
Specify -singleWindow when starting Selenium server
Specify -singleWindow in your script
None of the above

2
[Selenium] How do you handle recovery scenarios in Selenium?
Recovery Scenario method
Exception Handling
Still in progress
None of the above

1
[Selenium] Difference between single and double slash in Xpath
Double--Parent, Single --Child
Double--Child,Single--Parent
Both a and b
None of the above

1
[Selenium] How to handle Ajax controls in Selenium?
Using wait for condition command
Using Wait for Command
Using Wait for pageto load command
None of the above

2
[Selenium] How to use Selenium for Performance Testing?
Integrate Load Runner with Selenium
Integrate Jmeter with selenium
Integrate Jboss with Selenium
All of the above

3
[Selenium] How to check single test method in multiple browsers?
Selenium IDE
Selenium Core
Selenium Grid
Selenium Web Driver

3
[Selenium] How do you run selenium commands in Slow motion in Selenium RC?
selenium.setSpeed()
thread.sleep()
Both a and b
None of the above

4
[Selenium] The annotations generated with Junit 4 tests in Selenium IDE are
The @Before public void method()
The @After public void method()
The @Test public void method()
All of the above

1
[Selenium] Can we include Selenium RC testcases using XMl in TestNG.Justify?
TRUE
FALSE

4
[Selenium] What is selenium server default port number?
1111
2222
3333
4444

4
[Selenium] The text pattern types in Selenium are
globbing
regular expressions
exact
All of the above

2
[Selenium] The input for Client libraries is
Selenium Commands
Selenese Commands
Selenium Grid
None of the above

1
[Selenium] Switching between the multiple instances of the different browsers is
not possible.Justify?
TRUE
FALSE

1
[Selenium] How to execute the set of testscripts continuosly in Junit
Parameterization
Prioritizing the tests
Both a and b
None of the above

1
[Selenium] The plug in for Selenium Ide that stores the screen shots automatically
on script failure is
ScreenShot on Fail plug in
Capture Screen Shot Plugin
Failed Screen shot Plug in
None of the above

3
[Selenium] The sequence of evaluation and flow controlis done in Selenium IDE using
Looping Constructs
Conditional Statements
User Extensions
All of the above

4
[Selenium] The Selenium command to print the two variables in the same line is
StoreVars
PutVars
GetVars
echo

3
[Selenium] Selenium IDE generates commands using
Keywords
Selenium Commands
Selenese
All of the above

2
[Selenium] Selenium can be integrated with QC using
HP QC ALM11
BlumbleBee
Ant
Maven

1
[Selenium] Junit comes in built with Eclipse. Justify?

TRUE
FALSE

2
[Selenium] The following framework is an instance of the xUnit architecture for
unit testing frameworks
TestNG
Junit
Hybrid
Nunit

2
[Selenium] Does Junit aupport methos dependency?
Yes
No

4
[Selenium] How do you run the Junit tests from the command line?
java org.junit.runner.<test class name>
Run Junit <test name>
java JUnitCore <test class name>
java org.junit.runner.JUnitCore <test class name>

1
[Selenium] What is the name of the package that you use for Junit
import org.junit.*;
import junit.*;
import package.junit.*;
None of the above

2
[Selenium] The syntax to compile a Junit Test Class is?
javac -cp junit-4.4.jar HelloTest.java
javac junit-4.4.jar HelloTest.java
javac -cp junit-4.4 HelloTest.java
javac -np junit-4.4.jar HelloTest.java

1
[Selenium] How do you mark the test method as Junit test method?
Using the JUnit annotation @org.junit.Test.
JUnit annotation: @org.Test.
JUnit annotation: $org.junit.Test.
None of the above

3
[Selenium] How does the runner class access the junit test method?
By decalring the Junit method as protected
By decalring the Junit method as private
By decalring the Junit method as public
By decalring the Junit method as default

3
[Selenium] All junit Test methods must be declared as
Private
Protected
Public
None of the above

1
[Selenium] Junit reports which one of the failed assertions in a single test?
First Failed Assertions
Last Failed Assertions
All Failed Assertions
None of the above

1
[Selenium] The Exception: "No runnable methods" occurs when
if you use the JUnit 4.4 core runner to execute a class that has no "@Test" method
if you use the JUnit 3.4 core runner to execute a class that has no "@Test" method
if you use the Junit 4 core runner to execute a class that has no "@Test" method
All of the above

3
[Selenium] The following error will pop up if we mix the Junit 3 Testsuite with
Junit 4 test classes?
Assertion Failed error
No tests found in the test suite
Both 1 and 2
only

4
[Selenium] The following is not the interface of Junit?
Protectable
Test
TestListener
TestFailure

1
[Selenium] The @Test (expected = Exception.class) means
Fails, if the method does not throw the named exception.
Fails, if the method throws the named exception.
Passes , if the method does not throw the named exception.
Passes, if the method throws the named exception.

4
[Selenium] The Assert method of junit allows you to specify
The error message
The Actual Result
The Expected Result
All of the above

3
[Selenium] By setting up the instances of object which can be used and configured
in your test methods, Junit can b e
Secure
portable
Flexible
Modular

4
[Selenium] The following is the use of the annotation in Junit?
Information for the compiler
Runtime processing
Compiler-time and deployment-time processing
All of the above

1
[Selenium] Junit comes in built with Eclipse. Justify?
TRUE
FALSE

2
[Selenium] The following framework is an instance of the xUnit architecture for
unit testing frameworks
TestNG
Junit
Hybrid
Nunit

1
[Selenium] Does Junit aupport methos dependency?
Yes
No

1
[Selenium] What is the name of the package that you use for Junit
import org.junit.*;
import junit.*;
import package.junit.*;
None of the above
3
[Selenium] The following elemements in your CLASSPATH to run your Junit tests?
The JUnit JAR file.
Location of your JUnit test classes.
Location of testsuites to be tested.
JAR files of class libraries that are required by classes to be tested.

1
[Selenium] How do you mark the test method as Junit test method?
Using the JUnit annotation @org.junit.Test.
JUnit annotation: @org.Test.
JUnit annotation: $org.junit.Test.
None of the above

3
[Selenium] How does the runner class access the junit test method?
By decalring the Junit method as protected
By decalring the Junit method as private
By decalring the Junit method as public
By decalring the Junit method as default

3
[Selenium] All junit Test methods must be declared as
Private
Protected
Public
None of the above

1
[Selenium] Junit reports which one of the failed assertions in a single test?
First Failed Assertions
Last Failed Assertions
All Failed Assertions
None of the above

1
[Selenium] The Exception: "No runnable methods" occurs when
if you use the JUnit 4.4 core runner to execute a class that has no "@Test" method
if you use the JUnit 3.4 core runner to execute a class that has no "@Test" method
if you use the Junit 4 core runner to execute a class that has no "@Test" method
All of the above

3
[Selenium] The following error will pop up if we mix the Junit 3 Testsuite with
Junit 4 test classes?
Assertion Failed error
No tests found in the test suite
Both 1 and 2
only

4
[Selenium] The following is not the interface of Junit?
Protectable
Test
TestListener
TestFailure

1
[Selenium] The following is not the Junit annotatio?
The @DataProvider
the @Test
The @AfterClass
the @BeforeClass

1
[Selenium] The @Test (expected = Exception.class) means
Fails, if the method does not throw the named exception.
Fails, if the method throws the named exception.
Passes , if the method does not throw the named exception.
Passes, if the method throws the named exception.

4
[Selenium] The Assert method of junit allows you to specify
The error message
The Actual Result
The Expected Result
All of the above

3
[Selenium] By setting up the instances of object which can be used and configured
in your test methods, Junit can b e
Secure
portable
Flexible
Modular

4
[Selenium] The following is the use of the annotation in Junit?
Information for the compiler
Runtime processing
Compiler-time and deployment-time processing
All of the above

1
[Selenium] Name the mechanism by which you integrate Selenium or junit tests to QC?
Bumblebee
Jenkins
Hudson
All the above

2
[Selenium] The locator that can be used to find the most complicated objects in an
intrinsic HTML document is?
Xpath
CSS
ID
Form

3
[Selenium] What are reference libraries in Selenium?
Selenium 2.20.0
Libs
Both a and b
None of the above

2
[Selenium] Can we prioritize tests in Junit?
Yes
No

4
[Selenium] Junit generates the HTML results report using
Ant
Maven
Grood
One or two

1
[Selenium] We cannot do the following if we use Junit Framework with our Selenium 1
or Selenium 2 scripts
We will not be able to define our own reporting format
We can define many reporting formats inour own way
Both a and b
None of the above

1
[Selenium] With Junit the programmer has the disadvantage to
Repeat the test designs
Generate the test reports in our own way
Generate the logs
Generate the keywords

Potrebbero piacerti anche