Database Testing - Conceptual Understanding

Have you ever think about what happens when you deposit any amount in your bank account?
when you deposit amount, an event occurs, a program is executed and changes the database values according to event occurred in a corresponding way. It should not only add deposit to one table and not affect other relational tables.
Basic theory is ACID, basic properties of a database transaction:

Automaticity:
An action must be either completed or aborted. The transaction cannot be partially successful. It must do ALL what it supposed to do or NOTHING. If one part of transaction fails entire the database transaction must be aborted.
If the transaction successfully completes it is said to commit. The system is responsible for ensuring that all changes to the database have been saved. If the transaction does not successfully complete, it is said to abort. The system is responsible for undoing, or rolling back, all changes the transaction has made.

Consistency:
The transaction takes the resources from one consistent state to another. Application developer is also responsible who must make sure that all known integrity constraints are enforced by the application level as well. All integrity check, constraints, Rules, and triggers must be applied during transaction.

Isolation:
Transactions execute in sequence. Each one starts after the previous one completes. Execution of one transaction is not affected by the operations of another since they do not overlap in time. The execution of each transaction is isolated from all others. (Serial execution is inadequate from a performance perspective.)

Durability:
Changes made by the committed transaction are permanent, data should be changed permanently.

A tester needs to think about capacity of database; size while deploying the QA box, how much data is there and how system is behaving with different size of data. Data mapping and Default data integrity are also important. (consistency). Now a days, Big business Software developments use OOP (Object Oriented Programming). Front end JAVA, C#, and back end Oracle, SQL Server. Another important aspect of RDBMS and OOP is related ‘object’. Mapping Objects to the relational DB based on relationship is one of the major tedious, but sensitive tasks. (Just a gist of data mapping, I am stopping this topic right here, because data mapping is a heavy weight topic and more relevant to talk within ETL).
Compatibility is another big issue. Tester is not the one to decide about what is compatible with what; it should be more on project level than test level. But, a tester can do parallel testing, migration testing, etc. after migration to new version or after adding new system.

Stored Procedure Testing:
A SP needs to broken into action based on functionality and needs to be tested separately. A tester can write negative and positive test cases based on number of arguments, data types, orders of arguments, and return value and data type of return value being passed. People often consider it is difficult (being white box type) but. If there is an existing document explaining all these, SP test is not that complex. Of course knowledge of SQL language is vital.
Other important aspects of Database testing are data type. Sometime developers mess up using same kind of data-type in front end and back end. A DB tester should make sure about it. Data type, size is also a performance related issue. It always make your marks as good tester if you to bring those issues during meetings. (if you are sure about what kind of Data-type  is right from business, performance and other technical point of view).
Data-Driven Testing is a method to test many data with same script. Creating a script to provide data is an important task of a tester. There are many automation tools to create a capture and playback the script.


Selenium Interview Queations-Answers



For more interview question go to new blog - here


What is Selenium?
Selenium is a widely used automation tool for web based testing. It is easy to learn and use.

What is Selenium 2.x?
The NEXT GEN selenium. It is the Selenium Server-Webdriver replacing Selenium RC

What is required?
Basic knowledge of HTML, web based testing and web technologies is required. No other software development language is required. JAVA Script is nice to have.

From where to download?
Go to Selenium’s official site for all the information about it. You can download different version and mirror from its official site. which is -http://seleniumhq.org/

Getting started with selenium.
Selenium is a very good tool for Acceptance and Cross-Browser testing. It is also very useful for Functional testing. About how - Selenium has different components. Lets download selenium IDE’s latest version. Selenium IDE is a Firefox add-on, version 2+. Once it is download, you can record and play scripts in Firefox. I will talk in detail about how to use it in different section. for now lets download IDE, play around it and get familiar with most commonly used selenium commands. Selenium script is convertible in different development languages such and JAVA, C#, Pearl. With the help of Selenium-RC, user can run it different browsers and language environment.

How to use selenium IDE?
 For now please go to http://seleniumhq.org

What is the selenium's recording language?
HTML

What are the steps to run automation using selenium?
The very basic steps are:
1.  Record the test steps using selenium-IDE
2. Modify the script according to the testing needs. Add validation points, Java Scripts, Time-out etc.
3. Run the test
4. View the result after test run complete analyze.

Automation steps using Selenium C# language
1.Record the Test Steps using selenium-IDE. Test will be recorded in HTML language
2. Modify the script
3. Convert the scripts into c# using selenium IDE
4. Open the Visual Studio and create the test project there. Add a c# file
5. Copy your c# script from Seleniun-IDE and paste into c# file you have created earlier. You can modify your script here as well such as adding if-else. This is the advantage of using other language.Call the Reporting file from here to store the result.
6. Compile the code and debug if error occurs.
7. Add the Compiles DLLs in NUNIT
8. Run the test.
9. Analyze the test result.

What is Selenium Test Suite? how to develop it?
Grouping test cases together as test suite is one of the major concept of software testing. In selenium, it is a HTML file that contains links of test cases. Test Runner is a Selenium IDE plug-in to run the test suite.


What is SIDE?
Selenium IDE


How to run test case recorded using Selenium IDE in other browsers?
With the help of Selenium -Remote Control


What are three major parts, components of IDE?
Command, Target, and Value


How do you edit the recorded command in IDE?
By selecting them and choosing the desired value from drop-down.

What is the command to run selenium server from command prompt?
Open the command prompt, CD to the folder (CD Command) having selenium server and run    command : java -jar selenium-server.jar

What is the Selenium server default port number?
 4444

How to run Selenium server, other than the default port 4444?
 java -jar selenium-server.jar -port





QA HR Interview Questions

Tell me about yourself
Click for answer

Why are you looking for another job?
Again, be positive. "I have to say that I really enjoyed my years at Corporation. There are a lot of good people over there. But I am looking for a more progressive organization with greater opportunities for growth, and recognition. I am looking for a team to join where I can make real contributions and advance my career."

Why QA?
I always had an interest and desire to know about how all computer related technology works together. I always had a curiosity why certain application such and such features? Is there a way that I can break it? That’s the major things which drag my attention to QA Testing.


What do you know about our company?
Before interview, spent some time to know the company. Find out as much as you can and make a note. So you can answer some other question related to it like Why do you want to work for us? Go online and Google about company. Also review other job posting from the same company. It will give you a lot idea about what type of person they are looking for QA position. For example, a job positing for a .NET developer from same company can give you some idea that they are using .NET framework and you can prepare about it in advance.
Also find out about products, size, income, reputation, image, skills, history and philosophy. If they ask about why do you like you can answer something ..always want to work for well reputed company like ...


Where do you see yourself in 1-2-4 year?
Doing something meaning in software testing field, working together with great professional… I see myself technically more knowledgeable, more efficient in my work and a dependable pillar of organization or team I will work for.


What are your career goals?
Short term - "I want to be the best in my current position, while learning additional responsibilities. This, in itself, will assure my commitment to the firm and raise me to the next level of responsibility and promotion. I see myself wanting to stay technical but learn the necessary skills to lead people and projects."
Long term - "After proving my abilities, I see myself in a firm with the possibility of moving into a level of management that allows me to keep my skills sharp."

What is your strength?
(Always have answer before interview)Dependability, willingness to work hard, eagerness, fast-learner, technical skills, politeness, and promptness, expressed in concrete terms and good examples.


What is your weakness?
Always prepare an answer for this question before interview. You can should make interviewer to realize that you know your mistake and you are working to improve it. 
example answer: Based on the job requirement, I believe I am an outstanding match. This position requires expertise on ...., which is one of my great strength and subject of interest. However I had a small concern about my ability to..... But I feel I have improved a lot in this area in my past job and won't cause any problem to perform my job.


Why have you been out of the work for so long?
Give an honest reason if you have one such as family change, relocation, pursuing degree or something else. You do not need to think much if you have one. 
One good example answer is : My area of interest is ....(interest should be this number 1 job requirement, for example if they are looking for a load tester, say my interest is load testing) and really want to focus on this area at this point of my career. Which automatically has limited my job search. So rather than jumping into next opportunity, I have decided to consider only the right opportunity. Fortunately this job requirement is the one i am looking for.

Do you prefer to work alone or as a part of a team?
Both. Describe two examples working as a team player and working individually and conclude with you have been been successful in both work situations.
 
What do you know about our company?
Before interview, spent some time to know the company. Find out as much as you can and make a note. So you can answer some other question related to it like Why do you want to work for us? Go online and Google about company. Also review other job posting from the same company. It will give you a lot idea about what type of person they are looking for QA position. For example, a job positing for a .NET developer from same company can give you some idea that they are using .NET framework and you can prepare about it in advance.
Also find out about products, size, income, reputation, image, skills, history and philosophy. If they ask about why do you like you can answer something ..always want to work for well reputed company like ...

What if dev-team is not ready to accept your bug?
There is very less chance of this to happen if bug is written with full detail information for a developer to reproduce the incident. In case if it happens, and  a developer is not ready to trust your outcome, a constrictive way of communication can helps a lot to avoid such bad feeling between developers and testers. In the time being, mutual trust can be developed with collaboration rather than battles, communication bugs with facts without criticizing anyone and being neutral. Sometime it is more psychological rather. But believe and I have experience from past that, a good developer never takes a bug as a personal criticism on him, he rater thinks information provided will help him to improve his own work. Anyway,as a software testers, I should be fair to and supportive of my colleagues, and promote cooperation with software developers.

You have family commitments and baby, how can you focus on your work?

Everybody has multiple commitments, family. That does not mean you are occupied by it all the time. At least not me. When I commit my time to someone/something- lets say 'JOB'- that time belongs to that specific job. I have to focus on that job no matter what else is happening. 



Can you work under pressure?

A person’s real power, knowledge and efficiency are tested under pressure. You may not like the pressure at that moment but different ideas, constructive thoughts, and solutions always emerges when you are under pressure. So in long run it is a pleasure than pressure.



What are your interests?

Cooking, cycling,…I love hiking sometime with my friend