Hundred developers interview question - test part of the answer

Transfer from Zhu Shaomin ID : KerryZhu

First answer here Hundred software developers interview question Test part of the future have time to answer software engineering, software project management and other various parts. The answers to these questions generally do not correct or not, the individual answer is different from just wanted to answer here is relatively good, for your help.

1. What is regression testing? How do you know the new changes introduced to existing function without causing damage?

【Reference】 answer because the software to modify or change , a modified version of the job may affect the scope of the testing is regression testing. The purpose of regression testing are found in the original functional characteristics of the normal emergence of a new problem - regression defects, thereby ensuring that the original or normal characteristics to meet the requirements from the impact of changes in other regions. Regression testing, along with the testing process, unit testing, integration testing and system testing, once has to change or amend, we must undertake the appropriate regression testing.

See through the code or code review, can be fundamental to know whether the newly introduced changes will affect the existing functions, but are not sure, so the need for regression testing.

2. If the business layer and data layer has to rely on the relationship between, you how to write unit tests?

【Reference】 answer

In JAVA, if the business layer and data layer has to rely on the relationship between, that is not a simple business deal, then we generally use Mock objects to simulate the data needed to carry out unit testing. Is easy to say mock model, simulation tests, when necessary the object and test data. This type of testing tools have MockObjects, Xdoclet, EasyMock, MockCreator, MockEJB, ObjcUnit , JMock, etc.

For instance, used the Struts all know, Struts in action-type to run the server must rely on the support, only the server can provide HttpServletRequest, HttpServletResponse object, if we do not restart the server, then there is no way for the action category for unit testing, and with mock , the Action to be completed struts testing.

On the business layer tests can be used to simulate Mock, and how to test the data layer? There are two ways:

Mock objects to test the use of DAO. It shielding specific relational database, and its advantage is the preparation of test code, it can run fast. Disadvantage: too risky, the data layer is too small to test the strength, shielding a lot of database-related issues, such as: objects and mapping between database tables, query syntax is correct.
Directly in the relational database to test. Advantages: the data layer to complete the test. Disadvantage: slow running unit tests, it is necessary to frequently operate on the database

Can also refer to the following article:

3. What are the tools you use to test code quality?

【Reference】 This answer depends on the use of tools , experience, and this experience, more developers. The main tool has suitable Java code Checkstyle , Findbugs , Jalopy , PMD , Parasoft Jtest , Coverity Prevent for Java ; Suitable C + + language, have Parasoft C + + Test , Coverity Prevent for C / C + +

4. At the deployment of Products, you are the most commonly encountered and what types of questions?

【Reference】 answer Products deployed , easy to run into the problem are not on the installation configuration, test environment and the actual operating environment is always different. Secondly, the problems may be system stability problems, performance issues, perhaps because of dirty data, transmission of abnormal data and caused large amounts of data.

5. What is code coverage? How many code coverage?

【Reference】 answer when we want to know the adequacy of testing whether some places has not been tested on the test required of all places have been know , that is, know the extent of test coverage. Tested more fully and a higher level of test coverage, the more the quality of the product can be guaranteed. This level of quantification is to test coverage, test coverage are used to measure the extent of the test is completed, or assessment test activities cover a product code to quantify the results of the quality assessment test, but also indirectly the quality of the product code measurement method. If you use the formula described in words, can be seen as "the testing process has proven regional or collection" and "request was to test the overall regional or collection of" ratio.

Based on code test coverage evaluation is being tested program code statements, code blocks, categories, functions (methods), path, or the conditions of coverage analysis. If the application based on code coverage analysis, required by the general tools (such as IBM Rational PureCoverage, Bullseye Coverage, open-source Clover, EMMA, Cobertura and NoUnit, etc.) to implement.

6. Functional testing and exploratory testing What is the difference? How do you test the site?

【Reference】 answer questions on the subject itself has the "functional test" and "exploratory testing" unreasonable comparison. Functional tests included in the "Test Case has been completed in accordance with or has plans to test the outline, such as testing" and "exploratory testing" and exploratory testing in general is found in order to function in the problem, although the test will be to explore the safety testing, performance testing.

Functional testing methods, including divided into equivalence classes, boundary value analysis, cause and effect diagram, decision table, such as orthogonal test method, including error guessing method, error guessing method also can be classified as exploratory tests.

Exploratory testing, random testing can also be said (ad-hoc test), give full play to the testers biggest Smart and creativity, a variety of conjectures and test, go find some relatively deep relatively hidden or remote software defects. Random (ad-hoc) tests can also be used as an important supplementary means test in order to help testing personnel familiar with the products as soon as possible and found that the lack of test cases, test cases to add or improve. My book "The entire process of software testing" On them to do a full discussion.

Test site, not only to do functional testing, including functional itemized verified negative for functional testing, exploratory testing, but also to carry out security testing, performance testing, UI testing applicability.

7. Test suite, test cases, test plan, which is the difference between what? How do you organize the test?

【Reference】 answer test cases (test case) are found in order to more effectively design deficiencies can be independent to carry out the smallest test unit. Test suite (test suite) is a test in order to complete goals or mission organized collection of a number of test cases. Test plan (test plan) is a pre-planned test activities, including the identification of testing the scope of testing to estimate the workload of testing to identify risks, resources and progress of the arrangements. Test Plan to guide the design of test cases and test suite creation, test suites are constituted by the test cases. Test the implementation of the plan required by test cases, test suite to achieve.

Organization of testing, is easy to say that plans to test the -> the design of test cases -> create a test suite -> run the test suite (test cases for the implementation of transformation) -> the test results analysis and assessment -> adjust the test plan -> ... ... See details "The entire process of software testing"

8. To the e-commerce site to do smoke testing, you will make what type of test?

【Reference】 smoke test answers (smoke test) the name of the origin, perhaps from the circuit boards are tested for. When the circuit board to do a good job because after the first test will be electric, if the board did not smoke during the other test, or else go on the return. Software smoke test is constructed in a day (daily build) package, the basic functions of the system for rapid testing to verify whether the basic functions of normal operation. If you have questions, hit back to the development sector; if the normal operation of that package was successfully constructed, then we can carry out conventional testing or large-scale testing.

Of e-commerce site to do smoke testing, including basic functional testing and performance testing. Basic functional testing can be completed full course of a transaction, that is, from the system log -> merchandise query -> select merchandise -> submit Order -> confirm -> Payment -> settlement.

9. At customer acceptance testing will be found that are not satisfied with things and how to minimize this situation happen?

【Reference】 customers may find the answer to functionality or interface design , and expected him inconsistent, or find that some function is not very convenient to operate, or find some typos and other defects. For different questions, have the corresponding number of ways, be summed up and the client to communicate fully and truly understand the needs of customers, and customer understanding reached. Secondly, during development, but also can invite customers to participate in software design specification, test plans, test cases, such as assessment, when the software was basically normal working hours from start to finish once again invited customers again (product work-through). Finally, that is, developers and testers, the nature of their job to do a good job, build a high-quality software, to carry out adequate testing.

10. You last year in testing and quality assurance aspects of learned what?

【Reference】 answers through their own specific problems encountered to illustrate . For example, a specific defect analysis, so that you know to a certain problem, then find the real reason, and be overcome. Alternatively, the adoption of a quality accident, and enhance the "quality first" awareness, or because of some conflicts to result in a project quality issues, recognizing that "communication", "flow" or "normative

  • 15:10
  • Browser (12)
  • Comments (0)
  • Category: Tech
  • Related recommend

Hundred developers interview question - test part of the answer


  • View: 3325 times
  • Gender:
  • From: Hangzhou
  • Details book
Search this blog
Recent visitors





>> More Visitors

Blog Categories
  • All blog (25)
  • With the mind (1)
  • Java (11)
  • Misc (2)
  • Database (5)
  • Automation (1)
  • Tech (3)
  • Linux (1)
  • C / C + + (1)
Other classification
  • My Favorites (5)
  • My Forum Posts (9)
  • Me the essence of a good paste (0)
  • My problem (5)
Recently joined the circle of
  • Database circle
  • Ubuntu For Fun
  • 2009-03 (2)
  • 2009-02 (4)
  • 2009-01 (2)
  • More archives ...
Latest Comments
  • "Oracle SQL Performance Optimization" Medium ...
    chm file of the word can be turned into a big ah. As browse the Web, like holding down the ctrl key while sliding the mouse wheel can be turned into ...
    - By jake0719
  • "Oracle SQL Performance Optimization" Medium ...
    chm format the font is too small
    - By overyear
  • Tomcat configuration anomalies in SSI solution ...
    - By sunshineparasol
  • Oracle Find and delete duplicate in mind ...
    Halo Really pretty, but the whole of the ! I remember a time when the interview was also asked me this is! Oh did not make out! Know ...
    - By aaron2007
  • "Oracle SQL Performance Optimization" Medium ...
    Optimize good entry-level book.
    - By peter271688
Comments list
  • "Oracle SQL Performance Optimization" Chinese e-books
  • Oracle Find and delete duplicate records brief introduction Ways
  • SSI in Tomcat configuration abnormal solutions
  • Mylyn brief introduction - a good tool for eclipse
  • Hundred developers interview question - test part of the answer

Statement: JavaEye article copyright belong to the author, are protected by law. Without the written permission of the author may not be reproduced. If the consent of the author are reproduced, it is necessary to identify the article hyperlink form original source and authors.
© 2003 -2009 All rights reserved. Shanghai jiong resistant computer software Co., Ltd. [ ICP 05023328 ]

分类:Development 时间:2009-03-23 人气:1029
blog comments powered by Disqus


  • Hundred software developers interview question 2009-03-01

    Hundred software developers interview question Think employed to engage in software development of smart people is not easy. The event of accidentally, it will get a pile of low-energy large baboons. I met last year on this matter. You certainly do n

  • 100 software developers interview asked 2009-08-14

    Employed would like to engage in software development is not easy to smart people. The event of accidentally, it will get a pile of low-energy large baboons. I met last year on this matter. Are you sure you do not want to do. Listen to me, that's rig

  • Software development and progress of implementation of the project management control 2010-10-28

    Information technology and modern management science knowledge and the rapid development and rapid spread, making the government , enterprise IT applications, increasing demand for strong and harsh, but can not ignore the fact that it is "software pr

  • Zen Road project management software (ZenTaoPMS) (change) 2010-02-25

    Zen Road project management software (ZenTaoPMS) is a domestically produced, based on LGPL agreement, open source free project management software, which combines product management, project management, test management in one, and also includes trans

  • Brief description of common project management software 2011-10-08

    Project management software development team is a vital tool, its main mission is to help you manage your daily development work in a variety of complicated tasks and Bug, otherwise you will be submerged in the ocean of the task with Bug unable to ex

  • Zen Road Project Management Software 2010-06-09

    Zen Road project management software is easy to create soft-day management of the Company pursuant to enterprises in the process of confusion, disorder phenomena, developed a set of project management software. It combines product management, project

  • Project Manager Alliance / little-known software project management principles 2010-08-03

    Cruel reality of software development tells us: No rules the software development process could only be brought about unexpected results. Most of us project managers have in their personal resume writes: "With years of rich experience in project mana

  • Project Management Software 2010-06-08

    Foreign project management software with: Primavera's P3 (now upgraded to P6), Artemis Company Artemis Viewer, NIKU's Open WorkBench, Welcom's OpenPlan other software which is suitable for large, complex projects of project management; and Sciforma C

  • Software Development Interview Hundred Questions 2011-07-21

    Text / Jurgen Appelo translation / Li Jian Would like to hire smart people to engage in software development is not easy. If not careful, it got a bunch of low-energy big baboon. I encountered this last year things. You do not want so be it. Listen t

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.035 (s). 14 q(s)