Sunday, February 20, 2011

JAVA Topics

Under Construction...

Saturday, February 19, 2011

Selenium Interview Queations-Answers

How do you use javascript into script?
by putting  javascript{} into the target or value box within the Selenium IDE.



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

Name some common commands
click, type, verify, assert, open

What is the purpose of 'verify' and 'assert' commands?
'assert’ or ‘verify’ are used for verification checks. Test case keeps running if verify command fails, test case stops running if assert fails.

What command is used for synchronizing the test execution?
Commands ending with  ‘AndWait’ is useful for synchronization purpose. It makes script to wait until the page or element to be available after the action has been made. To handle ajax,  ‘waitFor’ commands is used.


 






Tuesday, January 12, 2010

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.



Software QA Testing Interview Questions

Why testing? 
Testing helps to, quality of software can be measured. Testing helps to find defects in software product from different point of views. Testing gives confidence about software's quality,

Are you familiar with any Defect Tracking Tool?
In past I have used Quality Center which is a very popular tool from HP. I have used it to plan my testing, to write test cases and loading it to test lab based on testing scenarios. I have experienced using MS Product Studio and MS Team Foundation and One open source tool call Bug Tracker.

Have you ever written a Test Plan?
I have written short UAT test plan in past. This was focused on how to conduct UAT. It had features like UAT Prerequisites, Participant and there Roles and testing responsibilities, Schedule, Featured to be tested, Pass/ Fail Criteria, and signing of activities. And I have contributed in some parts of Master test plan.

Have you ever written Test Case?
I have written different kind of test cases in past based on the requirement and communication with other related team members. I have also written some scenario based User stories as well.


Tell me about your experience on different level of testing .
There are many different ways and levels to test software based on project SDLC. It is always confusing. Tell same this what you have written in resume. But don't miss these
Integration Testing.
System Testing:
System testing one of the major level testing that cannot be bypass. During this level of testing, a QA tests system as a whole and verifies it works as expected. There are some specific types of testing that can be during during system level testing. some are : Recovery testing :( how well the system recovers the failure.) Security Testing : (capability of system to defend itself ), Load & Stress Testing (System is capable to handle maximum load and figure out the extreme load points), Performance Testing (determine the processing speed)Installation Testing (Installation & uninstallation is checked out in the target platform.)
Regression Testing
Acceptance Testing

What is Scenario based Testing ?
A scenario is a hypothetical story, used to help a person think through a complex problem or system. Scenarios are used to describe the functionality and behavior of a (software) system in a user-centered perspective. As scenarios form a kind of abstract level test cases for the system under development.Scenarios cover a number of steps/cases. In Test Director, after completing writing test cases, a tester can create test sets adding possible test case in it to make a test scenerio. Test suites and scenarios can be used in concert for complete system tests. How to create a scenerio; The scenario creation procedure:
Find all actors (roles played by persons/external systems) interacting with the system.
Find all (relevant system external) events.
Determine inputs, results and output of the system.
Determine system boundaries.
Create coarse overview scenarios (instance or type scenarios on business process or task level).
Prioritize scenarios according to importance, assure that the scenarios cover system functionality
Create a step-by-step description of events and actions for each scenario (task level).
Create an overview diagram and a dependency chart.
Have users review and comment on the scenarios and diagrams.
Extend scenarios by refining the scenario description, break down tasks to single working steps.
Model alternative flows of actions, specify exceptions and how to react to exceptions.
Factor out abstract scenarios (sequences of interactions appearing in more than one scenario).
Include non-functional (performance) requirements and qualities in scenarios.(if in scope)
Have users check and validate the scenarios (Formal reviews)
(This answer is enough to answer in interview. To learn more about it go to
Here In this Kaner, has explained in detail.

When Does Testing Stop?
Testing might stop when Deadline has been met.
Testing comes to a halt when the budget has been exhausted.
Testing might stop when all test cases have been run or when a predetermined percentages have been passed
Testing might stop when a cettain coverage % is made.
Testing might stop when bug rate, severity/priority falls to comfortable zone.

What is Test Matrix?
Data collection mechanism. Tt provideas a stricture way of testing the effects of combining variables, events or hardware. Table’s row and columns head describes the test conditions where cells keeps the execution result.

Tell me about test process or fundamental test process.
Test planning:
It starts with Test Planning phase. The main activities in this phase are defining the objectives of test and creating on the high level testing approach.
Test Analysis and design:
General testing objectives and high level design are transformed into detail  test conditions, test cases and test deliverable. Other major tasks during this phase are prioritizing the test, designing detail test cases, gathering required test data, identifying tool, infrastructure required for test, designing and setting up test environment, creating requirement traceability matrix.
Test execution:
Creating, running, and managing test suites based on priority, updating test data, updating test cases, automation scripts creation(if necessary), logging  test results and many more activities.
Exit criteria evaluation and reporting:
Evaluating the pre-defined exit criteria are met or not, assessing if more testing is required for this level of testing and ready to move to next level or not, or any change in exit criteria is necessary. Creating an test summary report.
Test closure :
Usually happens when software is ready for release or certain milestone has been achieved, a test project is completed. Some major test closure activities are: checking the deliverables are ready or not, reviewing and taking appropriate action to open bugs, handling over project to maintenance/production, documenting acceptance test plan, documenting lesson learned for future test purpose.