Monday, 2 February 2015

Top 15 SOAP UI Interview Questions

1) Explain what is SOAP UI?
SOAP UI is a free, open source cross-platform functional testing solution. It enables you to
rapidly and easily create and execute automated regression, compliance, functional and load
tests.
2) Explain what is the role of XML, SOAP, WSDL and UDDI in web services?
Web services are a medium through which web based application can be integrated or
communicated over an internet protocol backbone. Web based application can be integrated
using XML, SOAP, UDDI and WSDL. SOAP is used for transmitting the data; WSDL is used for
describing or relating the services, UDDI is used for listing what services are accessible, XML is
used to tag the data.
3) Mention what SoapUI can do?
SoapUI can-
It can do automated testing like load tests, scenario-based tests and data driven tests
It has got built-in reporting abilities
It has got unique ability to impersonate web services and run functional and load test
against them even before they are executed
4) Mention how SoapUI is used to structure functional tests?
SOAP UI uses three levels to structure functional tests
TestSuite: It is a pool of test cases used for combining functional tests into logical units
TestCase: It is a group of test steps that are bring together to test some specific aspect
of your services. You can augment any number of testcases to test suites
TestSteps: They are “building blocks” of functional tests in SOAPUI. They together
makes TestCase and determines the flow of execution of the service to be tested
5) Mention what is the difference between REST and SOAP?
1 / 5
http://career.guru99.com/
SOAP: Soap stands for Simple Object Access Protocol and it is a protocol used for
receiving and sending data over HTTP as XML
REST: It is a way of designing a web services.
6) Explain what is the properties in SoapUI?
Properties in SOAPUI is used to retrieve and store data. The data is stored as key, value or
format.
7) Explain where you use properties in SoapUI?
We can read the property values into test step endpoint, username, header values, password,
domain, POST, PUT, GET and DELETE method properties.
8) Mention what languages does SoapUI use?
SOAP UI supports two language, Groovy, and JavaScript.
9) Mention what are the default properties in SOAPUI?
By default, SOAPUI has properties at three levels
Project level default or custom properties: User can append any number of
properties at project level and it can be opened from any test steps from any test cases
under any test suites
Test suite level default or custom properties: User can append any number
properties at test suite level and it can be used from any test steps from any test cases
under this test suite
Test case level default or custom properties: At test case level users can add any
number properties at test case level and it can be used from any test steps from this test
case
10) Explain how you can parameterize the endpoints in SOAP UI?
To parameterize the endpoints in SOAP UI is most important as it is the first step in automation
testing. It is more time consuming for changing endpoints manually. In order to do that
Define a project property holding the endpoint
Change the endpoint to use this property via property expansion
2 / 5
http://career.guru99.com/
Ensure that your requests are availing the configured endpoint
When a request is run, the property will inevitably be with its current value. To use a
different value just configure the endpoint in the UI, you can use the P option from the
command line
11) Mention what is the general format for reading the custom or default property value?
The general format for reading the custom or default property value is ${#levelname#key}
12) Inside the SOAPUI where groovy script can be used?
Inside the SOAPUI groovy script can be used in two places
Groovy script test step
Script Assertion- within test step
13) Mention some important functionalities of SOAP UI?
Some important functionalities of SOAP UI are:
It creates a new project using only the web service WSDL link; it will get the information
of all methods and import them automatically
It creates test cases directly from the web method request
It tests web methods in combination or separately. It has a very useful capability which
allows datas and parameters to be passed from one method to another. It enables you
to save data in variables so other methods can access it
It enables creating validations on the web method results through assertions; the
assertion can be created either in X-path or X-query
It helps in creating other types of validations like schema compliance, soap fault,
response time etc.
It enables organizing the test cases in test suites
It enables running all test cases from a test suite and getting fail/pass results for each
test case
It enables parameterization of the test cases request fields so that a test case can avail
different values from a table or database
Using groovy it enables creating complex validation scripts
It has some support for web service load testing
It has some support for testing coverage and requirements management
14) Explain what assertion is in Soap UI is and give some example of assertion possible
in SOAPUI?
In SOAP UI assertion functionality is used to validate the response of request received by the
Test Steps at the time of execution. It is used to compare a part of message to some expected
value.
3 / 5
Assertion types in SOAPUI includes
Simple contains
Schema compliance
Simple not contains
Soap Faults
Response SLA
XPath Match
XQuery Match
WS security status
Script Assertion
WS- Addressing Request or Response Assertion
15) Does SoapUI support SSL Authentication

Yes

Top 15 Selenium RC(Remote Control) Interview Questions

1) What is selenium RC (Remote Control)?
Selenium IDE have limitations in terms of browser support and language support. By using
Selenium RC limitation can be diminished.
On different platforms and different web browser for automating web application
selenium RC is used with languages like Java, C#, Perl, Python
Selenium RC is a java based and using any language it can interact with the web
application
Using server you can bypass the restriction and run your automation script running
against any web application
2) Why Selenium RC is used?
Selenium IDE does not directly support many functions like condition statements, Iteration,
logging and reporting of test results, unexpected error handling and so on as IDE supports only
HTML language. To handle such issues Selenium RC is used it supports the language like
Perl, Ruby, Python, PHP using these languages we can write the program to achieve the IDE
issues.
3) Explain what is the main difference between web-driver and RC ?
The main difference between Selenium RC and Webdriver is that, selenium RC injects
javascript function into browsers when the page is loaded. On the other hand, Selenium
Webdriver drives the browser using browsers built in support
4) What are the advantages of RC?
Advantages of RC are
Can read or write data from/ to .xls, .txt, etc
It can handle dynamic objects and Ajax based UI elements
Loops and conditions can be used for better performance and flexibility
Support many Programming languages and Operating Systems
For any JAVA script enabled browser Selenium RC can be used
1 / 4

5) Explain what is framework and what are the frameworks available in RC?
A collection of libraries and classes is known as Framework and they are helpful when testers
has to automate test cases. NUnit, JUnit, TestNG, Bromine, RSpec, unittest are some of the
frameworks available in RC .
6) How can we handle pop-ups in RC ?
To handle pop-ups in RC , using selectWindow method, pop-up window will be selected and
windowFocus method will let the control from current window to pop-up windows and perform
actions according to script
7) What are the technical limitations while using Selenium RC?
Apart from “same origin policy” restriction from js, Selenium is also restricted from exercising
anything that is outside browser.
8) Can we use Selenium RC to drive tests on two different browsers on one operating
system without Selenium Grid?
Yes, it is possible when you are not using JAVA testing framework. Instead of using Java
testing framework if you are using java client driver of selenium then TestNG allows you to do
this. By using “parallel=test” attribute you can set tests to be executed in parallel and can
define two different tests, each using different browser.
9) Why to use TestNG with Selenium RC ?
If you want full automation against different server and client platforms, You need a way to
2 / 4

invoke the tests from a command line process, reports that tells you what happened and
flexibility in how you create your test suites. TestNG gives that flexibility.
10) Explain how you can capture server side log Selenium Server?
To capture server side log in Selenium Server, you can use command
java –jar .jar –log selenium.log
11) Other than the default port 4444 how you can run Selenium Server?
You can run Selenium server on java-jar selenium-server.jar-port other than its default port
12) How Selenium grid hub keeps in touch with RC slave machine?
At predefined time selenium grid hub keeps polling all RC slaves to make sure it is available for
testing. The deciding parameter is called “remoteControlPollingIntervalSeconds” and is
defined in “grid_configuration.yml”file
13) Using Selenium how can you handle network latency ?
To handle network latency you can use driver.manage.pageloadingtime for network latency
14) To enter values onto text boxes what is the command that can be used?
To enter values onto text boxes we can use command sendkeys()
15) How do you identify an object using selenium?
To identify an object using Selenium you can use
isElementPresent(String locator)

isElementPresent takes a locator as the argument and if found returns a Boolean

Top 12 JENKIN Interview Questions

1) Mention what is Jenkins?
Jenkins is an open source tool with plugin built for continuous integration purpose. The
principle functionality of Jenkins is to keep a track of version control system and to initiate and
monitor a build system if changes occur. It monitors the whole process and provides reports and
notifications to alert.
2) Explain what is continuous integration?
In software development, when multiple developers or teams are working on different segments
of same web application, we need to perform integration test by integrating all modules. In
order to do that an automated process for each piece of code is performed on daily bases so
that all your code get tested.
3) What is the requirement for using Jenkins?
To use Jenkins you require
A source code repository which is accessible, for instance, a Git repository
A working build script, e.g., a Maven script, checked into the repository
4) Mention what are the advantages of Jenkins?
Advantage of Jenkins include
At integration stage, build failures are cached
For each code commit changes an automatic build report notification generates
To notify developers about build report success or failure, it is integrated with LDAP mail
server
Achieves continuous integration agile development and test driven development
With simple steps, maven release project is automated
Easy tracking of bugs at early stage in development environment than production
5) Explain how you can move or copy Jenkins from one server to another?
1 / 4

Slide a job from one installation of Jenkins to another by copying the related job
directory
Make a copy of an already existing job by making clone of a job directory by a different
name
Renaming an existing job by renaming a directory.
6) Mention what are the commands you can use to start Jenkins manually?
To start Jenkins manually, you can use either of the following
(Jenkins_url)/restart: Forces a restart without waiting for builds to complete
(Jenkin_url)/safeRestart: Allows all running builds to complete
7) Mention some of the useful plugins in Jenkin?
Some of the important plugins in Jenkin includes
Maven 2 project
Amazon EC2
HTML publisher
Copy artifact
Join
Green Balls
8) Explain how you can deploy a custom build of a core plugin?
To deploy a custom field of a core plugin, you have to do following things
Stop Jenkins
Copy the custom HPI to $Jenkins_Home/plugins
Delete the previously expanded plugin directory
Make an empty file called .hpi.pinned
Start Jenkins
2 / 4
9) Explain how can create a backup and copy files in Jenkins?
Jenkins saves all the setting, build artifacts and logs in its home directory, to create a back-up of
your Jenkins setup, just copy this directory. You can also copy a job directory to clone or
replicate a job or rename the directory.
10) Explain how you can clone a Git repository via Jenkins?
To clone a Git repository via Jenkins, you have to enter the e-mail and user name for your
Jenkins system. For that, you have to switch into your job directory and execute the “git config”
command.
11) Explain how you can set up Jenkins job?
To create a project that is handled via jobs in Jenkins. Select New item from the menu, once
this done enter a name for the job and select free-style job. Then click OK to create new job in
Jenkins. The next page enables you to configure your job.
12) Mention what are the two components Jenkins is mainly integrated with?
Jenkin is mainly integrated with two components
Version Control system like GIT, SVN

And build tools like Apache Maven.

Top 11 JUnit interview questions


1) Explain what is JUnit?
JUnit is a testing framework for unit testing. It uses Java as a programming platform, and it is
an Open Source Software managed by the JUnit.org community.
2) Explain what is Unit Test Case?
Unit Test Case is a part of the code that ensures that the another part of code (method)
behaves as expected. For each requirement, there must be at least two test cases one negative
test and one positive test.
3) Explain how you can write a simple JUnit test case?
Determine a subclass of TestCase
To initialize object(s) under test, override the setup() method
To release object(s) under test override the teardown() method
Determine one or more public test XYZ() methods that exercise the objects under test and
assert expected results.
4) Mention what are parameterized tests?
Parameterized tests enable developer to perform the same test over and again using different
values.
5) Mention what is the difference between JUnit and TestNG?
JUnit TestNG
In JUnit the naming convention for
annotation is a bit complicated for,
e.g., “Before”, “After” and
“Expected”
In JUnit, for a method declaration
you have to follow a specific style
like using “@BeforeClass” and
In TestNG it is easier to understand
annotations like “BeforMethod”,
“AfterMethod” and
“ExpectedException”
In TestNG, there is no restriction
like you have to declare methods in
a specific format
1 / 4
http://career.guru99.com/
“@AfterClass”.
In JUnit method name constraint is
present
JUnit framework does not have
“Parameterized Test” or
“Dependency Test” feature
In JUnit grouping of test cases are
not available
JUnit does not support parallel
execution on Selenium test cases
It cannot re-run the failed cases
In TestNG method name constraint
is not present, and you can
determine any test method names
TestNG use “dependOnMethods”
to implement the dependency
testing
In TestNG, grouping of test cases is
available
In TestNG Parallel execution of
Selenium test cases are possible
It can rerun the failed tests
6) Mention different methods of exception handling in JUnit?
There are different methods of exception handling in JUnit
Try catch idiom
With JUnit rule
With @Test annotation
With catch exception library
With customs annotation
7) Explain what is ignore test in JUnit?
When your code is not ready, and it would fail if executed then you can use @Ignore
annotation.
It will not execute a test method annotated with @Ignore
It will not execute any of the test methods of test class if it is annotated with @Ignore
8) List out some useful JUnit extensions?
JUnit extensions include
2 / 4
http://career.guru99.com/
Cactus
JWebUnit
XMLUnit
MockObject
9) Explain who should use JUnit - a developer or tester? Why you use JUnit to test your
code?
JUnit is more often used by developers to implement unit tests in JAVA. It is designed for unit
testing that is more a coding process and not a testing process. However, many testers and QA
engineers use JUnit for unit testing.
JUnit is used because
It test early and does automate testing
JUnit tests can be compiled with the build so that at unit level, regression testing can be
done
It allows test code re-usage
JUnit tests behave as a document for the unit tests when there is a transfer
10) Explain what is JUnitCore Class?
JUnitCore class is an inbuilt class in JUnit package; it is based on Façade design pattern, this
class is used to run only definite test classes only.
11) Explain how you can run JUnit from the command window?
To run JUnit from the command window, you have to follow the steps
Set the CLASSPATH
Invoke the runner:

Java org.junit.runner.JUnitCore