Friday, September 30, 2011

Selenium - Interview Question and Answers

Download Selenium - Interview Question and Answers, Notes, videos, By.www.laxmiroy.blogspot.com/


Selenium - Interview Question and Answers

1. What is Selenium?
Selenium is a set of tools that supports rapid development of test automation scripts for web based applications. Selenium testing tools provides a rich set of testing functions specifically designed to fulfill needs of testing of a web based application.

2. What are the main components of Selenium testing tools?
Selenium IDE, Selenium RC and Selenium Grid

3. What is Selenium IDE?
Selenium IDE is for building Selenium test cases. It operates as a Mozilla Firefox add on and provides an easy to use interface for developing and running individual test cases or entire test suites. Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back.

4. What is the use of context menu in Selenium IDE?
It allows the user to pick from a list of assertions and verifications for the selected location.

5. Can tests recorded using Selenium IDE be run in other browsers?
Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in other browsers by using Selenium RC (Selenium Remote Control) and specifying the name of the test suite in command line.

6. What are the advantage and features of Selenium IDE?
a. Intelligent field selection will use IDs, names, or XPath as needed
b. It is a record & playback tool and the script format can be written in various languages including C#, Java, PERL, Python, PHP, HTML
c. Auto complete for all common Selenium commands
d. Debug and set breakpoints
e. Option to automatically assert the title of every page
f. Support for Selenium user-extensions.js file

7. What are the disadvantage of Selenium IDE tool?
a. Selenium IDE tool can only be used in Mozilla Firefox browser.
b. It is not playing multiple windows when we record it.

8. What is Selenium RC (Remote Control)?
Selenium RC allows the test automation expert to use a programming language for maximum flexibility and extensibility in developing test logic. For example, if the application under test returns a result set and the automated test program needs to run tests on each element in the result set, the iteration / loop support of programming language’s can be used to iterate through the result set, calling Selenium commands to run tests on each item. Selenium RC provides an API and library for each of its supported languages. This ability to use Selenium RC with a high level programming language to develop test cases also allows the automated testing to be integrated with the project’s automated build environment.

9. What is Selenium Grid?
Selenium Grid in the selenium testing suit allows the Selenium RC solution to scale for test suites that must be run in multiple environments. Selenium Grid can be used to run multiple instances of Selenium RC on various operating system and browser configurations.

10. How Selenium Grid works?
Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC, which launch the browser and run the test. Thus, it allows for running tests in parallel with the entire test suite.

11. What you say about the flexibility of Selenium test suite?
Selenium testing suite is highly flexible. There are multiple ways to add functionality to Selenium framework to customize test automation. As compared to other test automation tools, it is Selenium’s strongest characteristic. Selenium Remote Control support for multiple programming and scripting languages allows the test automation engineer to build any logic they need into their automated testing and to use a preferred programming or scripting language of one’s choice.

Also, the Selenium testing suite is an open source project where code can be modified and enhancements can be submitted for contribution.

12. What test can Selenium do?
Selenium is basically used for the functional testing of web based applications. It can be used for testing in the continuous integration environment. It is also useful for agile testing

13. What is the cost of Selenium test suite?
Selenium test suite a set of open source software tool, it is free of cost.

14. What browsers are supported by Selenium Remote Control?
The test automation expert can use Firefox, IE 7/8, Safari and Opera browsers to run tests in Selenium Remote Control.

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

16. What are the advantages and disadvantages of using Selenium as testing tool?
Advantages: Free, Simple and powerful DOM (document object model) level testing, can be used for continuous integration; great fit with Agile projects.

Disadvantages: Tricky setup; dreary errors diagnosis; can not test client server applications.

17. What is difference between QTP and Selenium?
Only web applications can be testing using Selenium testing suite. However, QTP can be used for testing client server applications. Selenium supports following web browsers: Internet Explorer,

Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, QTP is limited to Internet Explorer on Windows.

QTP uses scripting language implemented on top of VB Script. However, Selenium test suite has the flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

18. What is difference between Borland Silk test and Selenium?
Selenium is completely free test automation tool, while Silk Test is not. Only web applications can be testing using Selenium testing suite. However, Silk Test can be used for testing client server applications. Selenium supports following web browsers: Internet Explorer, Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, Silk Test is limited to Internet Explorer and Firefox.

Silk Test uses 4Test scripting language. However, Selenium test suite has the flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

19. What is the difference between an assert and a verify with Selenium commands?
Effectively an “assert” will fail the test and abort the current test case, whereas a “verify” will fail the test and continue to run the test case.
  
20. If a Selenium function requires a script argument, what would that argument look like in general terms?
StoreEval(script, variable) and storeExpression(expression, variableName)

21. If a Selenium function requires a pattern argument, what five prefixes might that argument have?
glob, regexp, exact, regexpi

22. What is the regular expression sequence that loosely translates to "anything or nothing?"
(.* i.e., dot star) This two-character sequence can be translated as “0 or more occurrences of any character” or more simply, “anything or nothing.

23. What is the globbing sequence that loosely translates to "anything or nothing?
(*) which translates to “match anything,” i.e., nothing, a single character, or many characters.

24. What does a character class for all alphabetic characters and digits look like in regular expressions?
[0-9] matches any digit
[A-Za-z0-9] matches any alphanumeric character
[A-Za-z] matches any alphabet character

 25. What does a character class for all alphabetic characters and digits look like in globbing?
[0-9] matches any digit
[a-zA-Z0-9] matches any alphanumeric character
[a-zA-Z] matches any alphabet character

26. What must one set within SIDE in order to run a test from the beginning to a certain point within the test?
Set Toggle BreakPoint.

27. What does a right-pointing green triangle at the beginning of a command in SIDE indicate?
Play Entire Test Suite

28. Which wildcards does SIDE support?
*, [ ]

29. What are the four types of regular expression quantifiers which we've studied?
Ans : * quantifier: 0 or more of the preceding character (or group)
+ quantifier: 1 or more of the preceding character (or group)
? quantifier: 0 or 1 of the preceding character (or group)
{1,5} quantifier: 1 through 5 of the preceding character (or group)

30. What regular expression special character(s) means "any character?"
(.*)

31. What distinguishes between an absolute and relative URL in SIDE?
Absolute URL: Its is base url and this represent domain address.
Relative URL: (Absolute URL + Page Path).
Open command uses Base URL (Absolute URL) to navigate web page.

32. How would one access a Selenium variable named "count" from within a JavaScript snippet?
${count}

33. What Selenese command can be used to display the value of a variable in the log file, which can be very valuable for debugging?
echo()

34. If one wanted to display the value of a variable named answer in the log file, what would the first argument to the previous command look like?
echo()

35. Which Selenium command(s) simulates selecting a link?
click, clickandWait, ClickAt, ClickAtandWait, DoubleClick, DoubleClickandWait, doubleClickAt, doubleClickAtandWait

36. Which two commands can be used to check that an alert with a particular message popped up?
The following commands are available within Selenium for processing Alerts:
• getAlert()
• assertAlert()
• assertAlertNotPresent()
• assertAlertPresent()
• storeAlert()
• storeAlertPresent()
• verifyAlert()
• verifyAlertNotPresent()
• verifyAlertPresent()
• waitForAlert()
• waitForAlertNotPresent()
• waitForAlertPresent()
The AlertPresent() and AlertNotPresent() functions check for the existence or not of an alert – regardless of it’s content. The Alert() functions allow the caller to specify a pattern which should be matched. The getAlert() method also exists in Selenium RC, and returns the text from the previous Alert displayed.

Selenium Interview Questions and Answers


Download Selenium Interview Questions and Answers, notes, videos, By.www.laxmiroy.blogspot.com/


  Selenium Interview Questions
 
Q1. What is Selenium?

Ans. Selenium is a set of tools that supports rapid development of test automation scripts for web

based applications. Selenium testing tools provides a rich set of testing functions specifically

designed to fulfil needs of testing of a web based application.



Q2. What are the main components of Selenium testing tools?
Ans. Selenium IDE, Selenium RC and Selenium Grid


Q3. What is Selenium IDE?
Ans. Selenium IDE is for building Selenium test cases. It operates as a Mozilla Firefox add on and provides an easy to use interface for developing and running individual test cases or entire test suites. Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back.


Q4. What is the use of context menu in Selenium IDE?
Ans. It allows the user to pick from a list of assertions and verifications for the selected location.


Q5. Can tests recorded using Selenium IDE be run in other browsers?
Ans. Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in other browsers by using Selenium RC (Selenium Remote Control) and specifying the name of the test suite in command line.

Q6. What are the advantage and features of Selenium IDE?
Ans. 1. Intelligent field selection will use IDs, names, or XPath as needed
2. It is a record & playback tool and the script format can be written in various languages including : C#, Java, PERL, Python, PHP, HTML
3. Auto complete for all common Selenium commands
4. Debug and set breakpoints
5. Option to automatically assert the title of every page
6. Support for Selenium user-extensions.js file


Q7. What are the disadvantage of Selenium IDE tool?
Ans. 1. Selenium IDE tool can only be used in Mozilla Firefox browser.
2. It is not playing multiple windows when we record it.


Q8. What is Selenium RC (Remote Control)?
Ans. Selenium RC allows the test automation expert to use a programming language for maximum flexibility and extensibility in developing test logic. For example, if the application under test returns a result set and the automated test program needs to run tests on each element in the result set, the iteration / loop support of programming language’s can be used to iterate through the result set, calling Selenium commands to run tests on each item. Selenium RC provides an API and library for each of its supported languages. This ability to use Selenium RC with a high level programming language to develop test cases also allows the automated testing to be integrated with the project’s automated build environment.


Q9. What is Selenium Grid?
Ans. Selenium Grid in the selenium testing suit allows the Selenium RC solution to scale for test suites that must be run in multiple environments. Selenium Grid can be used to run multiple instances of Selenium RC on various operating system and browser configurations.



Q10. How Selenium Grid works?
Ans. Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC, which launch the browser and run the test. Thus, it allows for running tests in parallel with the entire test suite.


Q 11. What you say about the flexibility of Selenium test suite? [/b]
Ans. Selenium testing suite is highly flexible. There are multiple ways to add functionality to Selenium framework to customize test automation. As compared to other test automation tools, it is Selenium’s strongest characteristic. Selenium Remote Control support for multiple programming and scripting languages allows the test automation engineer to build any logic they need into their automated testing and to use a preferred programming or scripting language of one’s choice. Also, the Selenium testing suite is an open source project where code can be modified and enhancements can be submitted for contribution.


Q12. What test can Selenium do?
Ans. Selenium is basically used for the functional testing of web based applications. It can be used for testing in the continuous integration environment. It is also useful for agile testing



Q13. What is the cost of Selenium test suite?
Ans. Selenium test suite a set of open source software tool, it is free of cost.



Q14. What browsers are supported by Selenium Remote Control?
Ans. The test automation expert can use Firefox, IE 7/8, Safari and Opera browsers to run tests in Selenium Remote Control.



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


Q16. What are the advantages and disadvantages of using Selenium as testing tool?
Ans. Advantages: Free, Simple and powerful DOM (document object model) level testing, can be used for continuous integration; great fit with Agile projects.

Disadvantages: Tricky setup; dreary errors diagnosis; can not test client server applications.



Q17. What is difference between QTP and Selenium?
Ans. Only web applications can be testing using Selenium testing suite. However, QTP can be used for testing client server applications. Selenium supports following web browsers: Internet Explorer, Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, QTP is limited to Internet Explorer on Windows.


QTP uses scripting language implemented on top of VB Script. However, Selenium test suite has the flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.



Q18. What is difference between Borland Silk test and Selenium?
Ans. Selenium is completely free test automation tool, while Silk Test is not. Only web applications can be testing using Selenium testing suite. However, Silk Test can be used for testing client server applications. Selenium supports following web browsers: Internet Explorer, Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, Silk Test is limited to Internet Explorer and Firefox.

Silk Test uses 4Test scripting language. However, Selenium test suite has the flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

Selenium-S29-1 Java Selenium Junit TestNG Selenium WebDriver Testing Sel...

Monday, September 26, 2011

Selenium RC Latest Interview Questions By.www.laxmiroy.blogspot.com/

Download Selenium RC Latest Interview Questions By.www.laxmiroy.blogspot.com/


Selenium RC Latest Interview Questions
Here i listed few latest interview questions asked by different MNCs

1. How do you start Selenium RC?
2. How do you connect Data base from selenium
3. How do you handle Ajax controls using selenium?
Eg. By typing in search engine how do you capture the auto suggestion
4. How do you select the 2nd item in a List box or drop down.
5. How do you identify an object using selenium?
6. How do you capture an element loading after the page load?
7. Brief about your framework

8. What is the difference between assert and Verify Commands?
9. Explain about your reporting method
10.How do you verify an object presented in multiple pages.
11.What are the locators available in Selenium?
12.What is the difference between single and double slash in Xpath.
13.Brief about Selenium Client.
14.Did you write any User Extensions.
15.What are all things can not be done through selenium IDE
16.Brief about Selenium Grid.
17.Is it possible to start the Remote engine more than once in an instance.
18. How to use selenium for performance testing
19. How to start the selenium server from your language class?
20. Is it possible to handle multiple pop ups in selenium?
22. Give the benefits of SQL Stored procedure in selenium?
23.What are the difficulties or challenge you faced in selenium?
24. How do you check a single test method in multiple browser?
25. What is the annotation you use to connect the Spread sheet in Junit.
26.Brief about Junit annotations.
27.How can we speed up the selenium script execution?
28.If the default port of selenium is busy then which port you use?
29.Explain types of SQL joins.
30.How do you handle the secured connection error in HTTPS?
31.How do you compare two strings or values are same.
  • The pre-requisites to run Selenium RC tests with Junit:
  • 1) Jre 1.5 or better version needs to be installed
    2) /jre/bin folder must be added in environment variable "path"
    3) Junit folder path must be added to path or build path in eclipse
    4) Selenium Java Client drivers needs to be added to the path for execution
  • 1) Download eclipse. click here to download the software
    2) Open eclipse -> Workspace Launcher window will open
    3) Create a workspace by giving meaningful name
    3) Click on Workbench
    4) Create a project of type java
    5) Create a package under src folder of the package
    6) Add Junit to the build path
    7) Add selenium rc java client driver to the build path
    8) Now drag and drop your test script (.which is exported from Selenium IDE) to the package created
  • The procedure followed to run the Selenium RC Server is:
    1. Open the command prompt.
    2. Change the folder path to Selenium RC Server
    3. Issue the command "java -jar selenium-server.jar"
    4. For more options on how to start selenium server. Please have a look at Selenium RC Server startup Options
  • You can run the selenium commands in RC slow motion by two ways:
    selenium.setSpeed
    thread.sleep
  • selenium.setSpeed
    1. takes a single argument in string format
    ex: selenium.setSpeed("2000") - will wait for 2 seconds
    2. Runs each command in after setSpeed delay by the number of milliseconds mentioned in setSpeed.
  • thread.sleep
    1. takes a single argument in integer format
    ex: thread.sleep(2000) - will wait for 2 seconds
    2. Waits for only once at the command given at sleep.
  • SeleneseTestCase is the class which is having
  • 1. assertTrue
    2. verifyTrue
    3. assertEquals
    4. verifyEquals
  • We use SeleneseTestCase class to extend the selenium test class file.
  • For Ex: the test class is declared as follows
    public class BookFlightSel1 extends SeleneseTestCase
  • In the above example SeleneseTestCase is the base class and BookFlightSel1 is the derived class. So, we can directly call and use the parent class methods verify and assert without instantiating the class in BookFlightSel1 class.
  • The annotations generated with JUnit 4 tests in Selenium are:
  • 1. @Before public void method() - Will perform the method() before each test. This method can prepare the test
    2. @Test public void method() - Annotation @Test identifies that this method is a test method.environment, e.g. read input data, initialize the class)
    3. @After public void method() - Test method must start with test@Before - this annotation is used for executing a method before
  • The challenges with Selenium RC test suites when running in JUnit
    1. Each test case of Selenium RC test will invoke the browser and closes after playing back
    2. All the Test cases cannot run on a single browser session
    3. If there is any dependency between the test cases, it is very difficult to execute
    4. Running the test suites in junit will be helpful for only independent test cases.
  • Note: The dependent test case related issues can be addressed by using TestNG with junit
  • The basic annotations used to run TestNG tests in Selenium RC:
  • 1. @BeforeClass: The annotated method with @BeforeClass will be run before the first test method in the current class is invoked.
    2. @AfterClass: The annotated method with @AfterClass will be run after all the test methods in the current class have been run.
    3. @BeforeMethod: The annotated method with @BeforeMethod will be run before each test method.
    4. @AfterMethod: The annotated method with @AfterMethod will be run after each test method.
    5. @Test: Marks a class or a method @Test with as part of the test.
  • Test cases in group in Selenium using TestNG will be executed with the below options.
  • If you want to execute the test cases based on one of the group like regressiontest or smoketest
    @Test(groups = {"regressiontest", "smoketest"})
  • For more details please see Use Group in TestNG framework
  • If you want to execute a java file MercTestNgSuite.java which is there in the package com.src.testng. You can use the below mentioned code in a xml file. And the test can be run by right clicking the XML and running as TestNG Suite
  • <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    <suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="MercPrj" junit="false" parallel="false" annotations="JDK">
  • <test verbose="2" name="com.src.testng.MercTestNgSuite" junit="false" annotations="JDK">
  • <classes>
  • <class name="com.src.testng.MercTestNgSuite"/>
  • </classes>
  • </test>
  • </suite> ??
  • Including or excluding of selenium rc test cases using xml in TestNG can be done using the keywords include or exlude
  • For including a test case we need to use <include name="method name"/> under the class whichever the method you want to include
  • For excluding a test case we need to use <exclude name="method name"/> under the class whichever the method you want to include
  • For example if you have a class MercTestNgSuite in package com.src.testng want to include the methods like:
    1. testLogin1
    2. testFindFlights
    3. testSelectFlights
    4. testFillUserDetails
    5. testVerifyFlightConf
  • and exclude
    6. testLogout
  • the xml can be written as mentioned below.
  • <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    <suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="MercPrj" junit="false" parallel="false" annotations="JDK">
  • <test verbose="2" name="com.src.testng.MercTestNgSuite" junit="false" annotations="JDK">
  • <classes>
  • <class name="com.src.testng.MercTestNgSuite"/>
  • <methods>
  • <include name="testLogin1"/>
    <include name="testFindFlights"/>
    <include name="testSelectFlights"/>
    <include name="testFillUserDetails"/>
    <include name="testVerifyFlightConf"/>
    <exclude name="testLogout"/>
  • </methods>
  • </classes>
  • </test>
  • Assume that you have two classes which are having suite of test cases with the below mentioned methods.
  • class1 or suite 1: the class by name MercTestNgSuite in the package com.src.testng with the methods
    1. testLogin1
    2. testFindFlights
    3. testSelectFlights
    4. testFillUserDetails
  • class1 or suite 2:the class by name MercTestNgSuite2 in the package com.src.testng with the methods
    1. testLogin1
    2. testFindFlights
    3. testSelectFlights
    4. testFillUserDetails
    5. testVerifyFlightConf
    6. testLogout
  • The two class suites can be executed as mentioned
  • <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    <suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="MercPrj" junit="false" parallel="false" annotations="JDK">
  • <test verbose="2" name="com.src.testng.*" junit="false" annotations="JDK">
  • <classes>
  • <class name="com.src.testng.MercTestNgSuite"/>
  • <methods>
  • <include name="testLogin1"/>
    <include name="testFindFlights"/>
    <include name="testSelectFlights"/>
    <include name="testFillUserDetails"/>
  • </methods>
  • <class name="com.src.testng.MercTestNgSuite2"/>
  • <methods>
  • <include name="testLogin1"/>
    <include name="testFindFlights"/>
    <include name="testSelectFlights"/>
    <include name="testFillUserDetails"/>
    <include name="testVerifyFlightConf"/>
    <include name="testLogout"/>
  • </methods>
  • </classes>
  • </test>
  • </suite>
  • Read this forum topic for How to run Selenium IDE TestSuite with Selenium Remote Control
  • to run Selenium IDE test suite with user extensions using Selenium Remote Control we need to use the below command.
  • java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite "*<browser>" "<base URL>" "<Selenium test suite file>" "<results log file>" -timeout <millise>
  • The command used is
    java -jar selenium-server.jar -userExtensions user-extensions.js
  • Note: In this case, the java script file user-extensions.js file name should always fixed. If the name or extension is changed the selenium rc server will not start.
  • Refer Selenium RC Server startup Options for more details

Q1. What is Selenium?
Ans. Selenium is a set of tools that supports rapid development of test automation scripts for web
based applications. Selenium testing tools provides a rich set of testing functions specifically
designed to fulfil needs of testing of a web based application.

Q2. What are the main components of Selenium testing tools?
Ans. Selenium IDE, Selenium RC and Selenium Grid

Q3. What is Selenium IDE?
Ans.
Selenium IDE is for building Selenium test cases. It operates as a Mozilla Firefox add on and
provides an easy to use interface for developing and running individual test cases or entire test
suites. Selenium-IDE has a recording feature, which will keep account of user actions as they are
performed and store them as a reusable script to play back.

Q4. What is the use of context menu in Selenium IDE?
Ans. It allows the user to pick from a list of assertions and verifications for the selected location.

Q5. Can tests recorded using Selenium IDE be run in other browsers?
Ans.
Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in
other browsers by using Selenium RC (Selenium Remote Control) and specifying the name of the test
suite in command line.

Q6. What are the advantage and features of Selenium IDE?
Ans. 1. Intelligent field selection will use IDs, names, or XPath as needed
2. It is a record & playback tool and the script format can be written in various languages including
C#, Java, PERL, Python, PHP, HTML
3. Auto complete for all common Selenium commands
4. Debug and set breakpoints
5. Option to automatically assert the title of every page
6. Support for Selenium user-extensions.js file

Q7. What are the disadvantage of Selenium IDE tool?
Ans.
1. Selenium IDE tool can only be used in Mozilla Firefox browser.
2. It is not playing multiple windows when we record it.

Q8. What is Selenium RC (Remote Control)?
Ans.
Selenium RC allows the test automation expert to use a programming language for maximum
flexibility and extensibility in developing test logic. For example, if the application under test returns
a result set and the automated test program needs to run tests on each element in the result set, the
iteration / loop support of programming language’s can be used to iterate through the result set,
calling Selenium commands to run tests on each item.

Selenium RC provides an API and library for each of its supported languages. This ability to use
Selenium RC with a high level programming language to develop test cases also allows the automated
testing to be integrated with the project’s automated build environment.

Q9. What is Selenium Grid?
Ans. Selenium Grid in the selenium testing suit allows the Selenium RC solution to scale for test suites
that must be run in multiple environments. Selenium Grid can be used to run multiple instances of
Selenium RC on various operating system and browser configurations.

Q10. How Selenium Grid works?
Ans. Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC,
which launch the browser and run the test. Thus, it allows for running tests in parallel with the entire
test suite.

Q 11. What you say about the flexibility of Selenium test suite?
Ans.
Selenium testing suite is highly flexible. There are multiple ways to add functionality to Selenium
framework to customize test automation. As compared to other test automation tools, it is
Selenium’s strongest characteristic. Selenium Remote Control support for multiple programming and
scripting languages allows the test automation engineer to build any logic they need into their
automated testing and to use a preferred programming or scripting language of one’s choice.
Also, the Selenium testing suite is an open source project where code can be modified and
enhancements can be submitted for contribution.

Q12. What test can Selenium do?
Ans.
Selenium is basically used for the functional testing of web based applications. It can be used for
testing in the continuous integration environment. It is also useful for agile testing

Q13. What is the cost of Selenium test suite?
Ans.
Selenium test suite a set of open source software tool, it is free of cost.

Q14. What browsers are supported by Selenium Remote Control?
Ans.
The test automation expert can use Firefox, IE 7/8, Safari and Opera browsers to run tests in
Selenium Remote Control.

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

Q16. What are the advantages and disadvantages of using Selenium as testing tool?
Ans.
Advantages: Free, Simple and powerful DOM (document object model) level testing, can be used
for continuous integration; great fit with Agile projects.

Disadvantages: Tricky setup; dreary errors diagnosis; can not test client server applications.

Q17. What is difference between QTP and Selenium?
Ans.
Only web applications can be testing using Selenium testing suite. However, QTP can be used for
testing client server applications. Selenium supports following web browsers: Internet Explorer,
Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, QTP is limited to
Internet Explorer on Windows.

QTP uses scripting language implemented on top of VB Script. However, Selenium test suite has the
flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

Q18. What is difference between Borland Silk test and Selenium?
Ans.
Selenium is completely free test automation tool, while Silk Test is not. Only web applications
can be testing using Selenium testing suite. However, Silk Test can be used for testing client server
applications. Selenium supports following web browsers: Internet Explorer, Firefox, Safari, Opera or
Konqueror on Windows, Mac OS X and Linux. However, Silk Test is limited to Internet Explorer and
Firefox.

Silk Test uses 4Test scripting language. However, Selenium test suite has the flexibility to use many
languages like Java, .Net, Perl, PHP, Python, and Ruby.

Basic SQA / testing interview questions By,www.laxmiroy.blogspot.com/

Download Basic SQA / testing interview questions By,www.laxmiroy.blogspot.com/



71 basic SQA / testing interview questions

1. What is the Difference between Project and Product testing? What difference you have observed while testing the Clint/Server application and web server application
2.What are the differences between interface and integration testing? Are system specification and functional specification the same? What are the differences between system and functional testing?
3.What is Multi Unit testing?
4.What are the different types, methodologies, approaches, methods in software testing
5. What is the difference between test techniques and test methodology?
6.What is meant by test environment,… what is meant by DB installing and configuring and deploying skills?
7. What is logsheet? And what are the components in it?
8.     What is Red Box testing? What is Yellow Box testing? What is Grey Box testing?
9.What is business process in software testing?
10.  What is the difference between Desktop application testing and Web testing?
11.   Find the values of each of the alphabets. N O O N S O O N + M O O N J YOU N E
12.  With multiple testers how does one know which test cases are assigned to them? • Folder structure • Test process
13.  What kind of things does one need to know before starting an automation project?
14.  What is difference between a Test Plan, a Test Strategy, A Test Scenario, and A Test Case? What’s is their order of succession in the STLC?
15.   How many functional testing tools are available? What is the easiest scripting language used?
16.  Which phase is called as the Blackout or Quite Phase in SDLC?
17.   When an application is given for testing, with what initial testing the testing will be started and when are all the different types of testing done following the initial testing?
18.  What is difference between test plan and use case?
19.  In an application if I enter the delete button it should give an error message “Are you sure you want to delete” but the application gives the message as “Are you sure”. Is it a bug? And if it is how would you rate its severity?
20. Who are the three stake holders in testing?
21.  What is meant by bucket testing?
22. What is test case analysis?
23. The recruiter asked if I have Experience in Pathways. What is this?
24. What is the difference between GUI testing and black box testing
25.  What are the main things we have to keep in mind while writing the test cases? Explain with format by giving an example
26. How we can write functional and integration test cases? Explain with format by giving examples.
27.  Explain the water fall model and V- model of software development life cycles with block diagrams.
28. For notepad application can any one write the functional and system test cases?
29. Can you give me the exact answer for Test Bug?
30. What is the difference between Use Case and test case?
31.  What is installation shield in testing
32. What is one key element of the test case?
33. What are the management tools we have in testing?
34. Can we write Functional test case based on only BRD or only Use case?
35.  What’s main difference between smoke and sanity testing? When are these performed?
36. What Technical Environments have you worked with?
37.  Have you ever converted Test Scenarios into Test Cases?
38. What is the ONE key element of ‘test case’?
39. What is the ONE key element of a Test Plan?
40. What is SQA testing? tell us steps of SQA testing
41.  How do you promote the concept of phase containment and defect prevention?
42. Which Methodology you follow in your test case?
43. What are the test cases prepared by the testing team
44. During the start of the project how will the company come to an conclusion that tool is required for testing or not?
45.  Define Bug Life Cycle? What is Metrics
46. What is a Test procedure?
47.  What is the difference between SYSTEM testing and END-TO-END testing?
48. What is Traceability Matrix? Is there any interchangeable term for Traceability Matrix? Are Traceability Matrix and Test Matrix same or Different?
49. What is the difference between an exception and an error?
50. Correct bug tracking process - Reporting, Re-testing, Debugging, …..?
51.   What is the difference between bug and defect?
52.  How much time is/should be allocated for testing out of total Development time based on industry standards?
53.  What are test bugs?
54.  Define Quality - bug free, Functionality working or both?
55.  What is the purpose of software testing’s - Bug removal, System’s functionality working, quality or all?
56.  What is the major difference between Web services & client server environment?
57.  Is there any tool to calculate how much time should be allocated for testing out of total development?
58. What is Scalability testing? Which tool is used?
59.  Define Reliability?
60. Best to solve defects - requirements, plan, design, code / testing phase?
61.  Cost of solving a bug from requirements phase to testing phase - increases slowly, decreases, increases steeply or remains constant?
62. What is scalability testing? What are the phases of the scalability testing?
63. What is the difference between end to end testing and system testing.
64. What kind of things does one need to know before starting an automation project?
65.  Have you worked with data pools and what is your opinion on them? Give me an example as to how a script would handle the data pool.
66. What is difference between a Test Plan, a Test Strategy, A Test Scenario, and A Test Case? What’s is their order of succession in the STLC?
67.  How many functional testing tools are available? What is the easiest scripting language used?
68. If we found the bug in SRS or FRS, how to categorize that bug?
69. What is the difference between end to end testing and system testing.
70. What is the difference between a defect and an enhancement?
71.   Project is completed. Completed means that UAT testing is going. In that situation as a tester what will you do?