Hundred developers interview question - test part of the answer

Transfer from Zhu Shaomin ID : KerryZhu http://blog.csdn.net/KerryZhu/archive/2009/02/28/3945871.aspx

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


Comments


Comment


Hundred developers interview question - test part of the answer

jake0719

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


Recent visitors

dlboy

CaptainCook

dean2088

mlhorizon

>> 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


Archive
  • 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 JavaEye.com. All rights reserved. Shanghai jiong resistant computer software Co., Ltd. [ ICP 05023328 ]

  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Hundred developers interview question - test part of the answer

  • Built environment using appfuse2.0 Express (myeclipse)

    http://blog.csdn.net/ljah/archive/2008/06/06/2516187.aspx Usually we use APPFUSE2.0 project into eclipse, the compiler can not be normal, can only use maven I feel very uncomfortable, after exploring and found that after such a configuration, it will make

  • Unable to load bean: type: struts-derfault.xml abnormal

    Struts2 in the use of a lot of friends from time to time we encountered this anomaly, leading to its main reason is because the wrong package, we have to be xwork-2.1.1.jar and struts2-core-2.1.2.jar, replaced xwork-2.0. 4.jar and struts2-core-2.0.14.jar

  • Real design pattern

    I hate the thought of the time to teach some provide a lot of code, because I think the thought process of acceptance should be a pleasure to read as a novel process, rather than spend a lot of brain power for a certain process details And this world ...

  • Hundred software developers interview question

    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 not wa

  • web test summary

    In the Web engineering process, Web-based system testing, recognition and acceptance is an important and challenging job. Web-based system testing with the traditional software testing different, it will not only need to check and verify whether the desig

  • Maven 2.0: Compile. Test. Deployment. Run

    <url> http://maven.apache.org </ url> <dependencies> <dependency> <groupId> junit </ groupId> <artifactId> junit </ artifactId> <version> 3.8.1 </ version> <scope> test </ scope> <

  • Professional IT management talent required ability Ten

    Technical article ] [IT168 As an IT technical staff, that no one person is willing to Forever in the bottom of the preparation procedure or to do simple maintenance. After a period of technology and the accumulation of experience, a lot of people are ...

  • RoR explained

    ROR is Ruby on Rails. Ruby is a well-known has been very good dynamic language It's dynamic language. Simple and easy. Dynamic languages are interpreted, but the performance may make a discount, but not absolute, because the application is complex, th

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries