Sunday, January 3, 2021

Manual Testing Interview Questions.

 

 Manual Testing Interview Questions.

 

 QA Software Testing Interview Questions for Beginners and Experienced Candidates:

 

Q 1) What is the Process for Creating a Test Script?

 Answer: 

Step 1: is to get a thorough understanding of the AUT:

This could be by reading the requirement documents thoroughly.

We can try to understand any point of reference that we have – a previous version of the application or wire-frames or screenshots

Step 2: After understanding the requirements, we make a list of what are the areas in this application that will have to be tested. In other words, we identify the test requirements. The focus in this step is to identify “What” to test. The outcome of this step is a list of Test Scenarios.

Step 3: Once we have the test scenarios, we concentrate next on “How” to test them.  This phase involves writing detailed steps about how to test a particular feature, what data to enter and what is the expected result.

Once these 3 steps are done, we are ready for testing.

 

Q 2) what are the fields in a Bug Report?

Answer:  Following important fields should be included in a good Bug Report:

 A unique ID

Defect Description: a short describing what the bug is.

Steps to Reproduce: details about how to arrive at the error, exact test data, the time at which defect was found(if applicable) environment: any information that will help re-encounter the issue

Module/section of the application (if applicable)

Severity

Screenshot

Q 3) How to test a customer-facing software?

Answer: With any application that we test, we are trying to see if a certain set of requirements are met by the application or not. But when it comes to a user-facing site, apart from concentrating on functionality, we also have to look into a few usability features, maybe performance and security aspects also to a certain extent.

The first level of testing is: Does the site satisfy its functional requirements.

The next level of testing is: how easy is it to use the site, do the options make a logical sense and meet the expectations of the user or not.

For Example, if the user has to be pass 3-4 screens to submit the basic information they are going to be annoyed, so such issues have to be addressed.

Performance Testing to the complete extent might not be in scope but simple situations like, how long does the search results take to be displayed and how much time does it take for the system to retrieve a customer info at the peak hour – these are some example of the kind of things we would want to keep an eye on.

Security – for sites where there is a secure login to access the site, the minimum functionality around it has to be tested. For Example, if I leave the site idle for more than 10 minutes, is it auto logging out or not. Something as basic as that should be focused on.

Q 4) How to overcome the challenge of not having input documentation for testing?

Answer: IF the detailed standard documentation like BRD and FSD are unavailable, the tester will have to depend on some point of reference.

A previous version of the application

Another factor that helps immensely, is to talk to the developers or the business analysts (when available) to get a confirmation on our understanding or clarifications in case of doubts.

When none of these situations works, we can just conceptualize the application based on our previous IT application experience and create the basic set of test scripts. When the testing phase comes up, we can set up a portion of test cycle time and do some test case management (make the already created scripts perfect) so we have the doc for the next phases.

 Q 5) What are the Roles and Responsibilities of an onsite coordinator?

Answer: The onsite coordinator is a point of contact for the offshore team and to the client for any information regarding the testing.

KT from and to offshore and clients

Getting the environment to test all ready

Sanity testing, smoke testing

Testing – the key functionality.

Bug review – found by the offshore team

Bug assigning to the respective dev

Presenting metrics

Providing sign off

Yes, even an onsite coordinator has to test.

 Q 6) Inconsistent bugs- Why onsite can find it, but offshore can’t and vice versa – How to handle this situation?

Answer: Every bug has to be noted and analyzed – whether it is encountered at onsite or offshore, whether repeatable or not. A real value-add to a tester’s job is when we involve ourselves in the Root Cause Analysis process for a bug rather than simply reporting it.

All the onsite and offshore team members should follow a guideline that screenshots had to be taken for every error that we encounter – repeatable or not.

If there are logs, system files or anything like that, that might help us find any evidence of the issue- we should try to find it.

Despite all these steps, if we still can’t tell why and when the problem occurs- we should report it to the developer all the same – with as much information as we can.

 Q 7) Video/audio related testing – What does this include?

Answer: How to test an application having video or audio?

Here are the important points to consider:

Access levels (restricted or not – password controlled)

Different kinds of environments

Browser compatibility

Screen resolutions

Internet connection speeds

The specific options on a video – like play, stop, mute, etc.

Video by size

Response to the videos – comments (limitations on the comment length and number of comments it can take)

Video responses to the videos

Interface with social networking sites – Interoperability

Buffering speed

Embedding the video

 Q 8) Mobile Application Testing – What does it include briefly?

Answer: Mobile App Testing Important Test Scenarios:

Usability of the features on a mobile screen.

Testing it on different mobile platforms – like Android and iOS.

Installations, uninstalling, launching the app with network and without a network, testing functionality.

Network connections –WiFi, 2G, etc.

Logs at iOS iPhone configuration utility for Android Monitor.bat can be used for debugging.

 

 


Wednesday, December 30, 2020

Selenium Important Notes

 

1) What is Selenium and what is composed of?

Selenium is a suite of tools for automated web testing.  It is composed of

• Selenium IDE (Integrated Development Environment) :  It is a tool for recording and playing back.  It is a firefox plugin

• WebDriver and RC:  It provide the APIs for a variety of languages like Java, .NET, PHP, etc. With most of the browsers Webdriver and RC works.

• Grid: With the help of Grid you can distribute tests on multiple machines so that test can be run parallel which helps in cutting down the time required for running in browser test suites.

 

2) What is Selenium 2.0 ?

Web testing tools Selenium RC and Web Driver are consolidated in single tool in Selenium 2.0

3) Mention what is Selenium 3.0?

Selenium 3.0 is the latest version of Selenium. It has released 2 beta versions of selenium 3.0 with few of the below changes:

4) How will you find an element using Selenium?

In Selenium every object or control in a web page is referred as an elements, there are different ways to find an element in a web page they are

             ID

             Name

             Tag

             Attribute

             CSS

             Linktext

             PartialLink Text

             Xpath etc

5) List out the test types that are supported by Selenium?

For web based application testing selenium can be used

The test types can be supported are

a) Functional, Learn More about Functional Testing.

b) Regression

For post release validation with continuous integration automation tool could be used

a) Jenkins

b) Hudson

c) Quick Build

d) CruiseCont

6) Explain what is assertion in Selenium and what are the types of assertion?

Assertion is used as a  verification point. It verifies that the state of the application conforms to what is expected.  The types of assertion are “assert” , “verify” and “waitFor”.

7) Mention what is the use of X-path?

X-Path is used to find the WebElement in web pages. It is also useful in identifying the dynamic elements.

Refer Complete Guide on XPath

8) Explain the difference between single and double slash in X-path?

Single slash ‘/ ’

             Single slash ( / ) start selection from the document node

             It allows you to create ‘absolute’ path expressions

Double Slash ‘// ’

             Double slash ( // ) start selection matching anywhere in the document

             It enables to create ‘relative’ path expressions

9) List out the technical challenges with Selenium?

Technical challenges with Selenium are

             Selenium supports only web based applications

             It does not support the Bitmap comparison

             For any reporting related capabilities have to depend on third party tools

             No vendor support for tool compared to commercial tools like HP UFT

             As there is no object repository concept in Selenium, maintainability of objects becomes difficult

10) What is the difference between type keys and type commands ?

TypeKeys() will trigger JavaScript event in most of the cases whereas .type() won’t. Type key populates the value attribute using JavaScript whereas .typekeys() emulates like actual user typing

11) What is the difference between verify and assert commands?

Assert:  Assert allows to check whether an element is on the page or not. The test will stop on the step failed, if the asserted element is not available. In other words, the test will terminate at the point where check fails.

Verify: Verify command will check whether the element is on the page, if it is not then the test will carry on executing.  In verification, all the commands are going to run guaranteed even if any of test fails.

12) What is JUnit Annotations and what are different types of annotations which are useful ?

In JAVA a special form of syntactic meta-data can be added to Java source code, this is know as Annotations.  Variables, parameters, packages, methods and classes are annotated some of the Junit annotations which can be useful are

             Test

             Before

             After

             Ignore

             Before Class

             After Class

             Run With

13) While using click command can you use screen coordinate?

To click on specific part of element, you would need to use clickAT command.  ClickAt command accepts element locator and x, y co-ordinates as arguments- clickAt (locator, cordString)

14)  What are the advantages of Selenium?

             It supports C#, PHP, Java, Perl, Phython

             It supports different OS like Windows, Linux and Mac OS

             It has got powerful methods to locate elements (Xpath, DOM , CSS)

             It has highly developer community supported by Google

15) Why testers should opt for Selenium and not QTP?

Selenium is more popular than QTP as

             Selenium is an open source whereas QTP is a commercial tool

             Selenium is used specially for testing web based applications while QTP can be used for testing client server application also

             Selenium supports Firefox, IE, Opera, Safari  on operating systems like Windows, Mac, Linux etc. however QTP is limited to Internet Explorer on Windows.

             Selenium supports many programming languages like Ruby, Perl, Python whereas QTP supports only VB script

16) What are the four parameter you have to pass in Selenium?

Four parameters that you have to pass in Selenium are

             Host

             Port Number

             Browser

             URL

17) What is the difference between setSpeed() and sleep() methods?

Both will delay the speed of execution.

Thread.sleep () :  It will stop the current (java) thread for the specified period of time.  Its done only once

             It takes a single argument in integer format

Ex: thread.sleep(2000)- It will wait for 2 seconds

             It waits only once at the command given at sleep

SetSpeed () :  For specific amount of time it will stop the execution for every selenium command.

             It takes a single argument in integer format

Ex: selenium.setSpeed(“2000”)- It will wait for 2 seconds

             Runs each command  after setSpeed delay by the number of milliseconds mentioned in set Speed

This command is useful for  demonstration purpose or if you are using a slow web application

18) What is same origin policy? How you can avoid same origin policy?

The “Same Origin Policy” is introduced for security reason, and it ensures that content of your site will never be accessible by a script from another site.  As per the policy, any code loaded within the browser can only operate within that website’s domain.

To avoid “Same Origin Policy” proxy injection method is used, in proxy injection mode the Selenium Server acts as a client configured HTTP proxy , which sits between the browser and application under test and then masks the AUT under a fictional URL

19) What is heightened privileges browsers?

The purpose of heightened privileges is similar to Proxy Injection, allows websites to do something that are not commonly permitted.  The key difference is that the browsers are launced in a special mode called heightened privileges.  By using these browser mode, Selenium core can open the AUT directly and also read/write its content without passing the whole AUT through the Selenium RC server.

20) How you can use “submit” a form using Selenium ?

You can use “submit” method on element to submit form-

element.submit () ;

Alternatively you can use click method on the element which does form submission

21) What are the features of TestNG and list some of the functionality in TestNG which makes it more effective?

TestNG is a testing framework based on JUnit and NUnit to simplify a broad range of testing needs, from Unit Testing to Integration Testing. And the functionality which makes it efficient testing framework are

             Support for annotations

             Support for data-driven testing

             Flexible test configuration

             Ability to re-execute failed test cases