1 / 21

Software testing techniques Testing tools

Software testing techniques Testing tools. Presentation on the seminar Kaunas University of Technology. Why do we need testing tools?. Testing is faster Testing is cheaper Testing is more effective We get better quality software for almost the same price. Types of testing tools.

prince
Télécharger la présentation

Software testing techniques Testing tools

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software testing techniquesTesting tools Presentation on the seminar Kaunas University of Technology

  2. Why do we need testing tools? • Testing is faster • Testing is cheaper • Testing is more effective We get better quality software for almost the same price.

  3. Types of testing tools Unit testing tools Model-based testing tools Functional (GUI) testing tools Non-functional testing tools Code analysis testing tools

  4. Unit testing interface Adder { int add(int a, int b); } class AdderImpl implements Adder { int add(int a, int b) { return a + b; } } Unit testing is a method by which individual units of source code are tested to determine if they are fit for use.

  5. Unit testing publicclassTestAdder { publicvoidtestSum() { Adderadder = newAdderImpl(); assert(adder.add(1, 1) == 2); assert(adder.add(1, 2) == 3); assert(adder.add(2, 2) == 4); assert(adder.add(0, 0) == 0); assert(adder.add(-1, -2) == -3); assert(adder.add(-1, 1) == 0); assert(adder.add(1234, 988) == 2222); } }

  6. Unit testing Tools: csUnit, Nunit, NUnitASP, EMTF, CppUnit, Cput, C++test, UnitTest++, Dunit, Jtest, JUnit, TestNG, NUTester, JSUnit, QUnit, jsUnity… Today we have unit testing tools for more than 70 programming languages.

  7. Model-based testing Model-based testing is an approach in which you define the behavior of a system in terms of actions that change the state of the system. Such a model of the system results in a well-defined Finite State Machine (FSM) which helps us to understand and predict the system’s behavior.

  8. Model-based testing Steps: • Build the model; • Generate expected inputs; • Generate expected outputs; • Run tests; • Compare actual outputs with expected outputs; • Decide on further actions (modify the model, generate more tests, stop testing and etc.)

  9. Model-based testing Advantages: • Forces detailed understanding of the system behavior; • Early bug detection (which is much cheaper); • Test suite grows with the product; • Manage the model instead of the cases (useful when features changing constantly); • Can generate endless tests (since test cases are machine generated);

  10. Model-based testing Tools: MaTeLo, SpecExplorer, GraphWalker…

  11. Functional (GUI) testing Functional testing is a type of black box testing that bases its test cases on the specifications of the software component under test. Functions are tested by feeding them input and examining the output, and internal program structure is rarely considered.

  12. Functional (GUI) testing publicvoidtestAddUserFail() throwsException{ solo.sendKey(Solo.MENU);solo.clickOnText(“Add”);Assert.assertTrue(solo.searchText(“Name:”));Assert.assertTrue(solo.searchText(“Surname:”)); solo.clickOnText(“Ok”);Assert.assertTrue(solo.searchText(“Error”));   }

  13. Functional (GUI) testing Tools: Abbot, AutoHotkey, CubicTest, Dogtail, FitNesse, Linux Desktop Testing Project, Maveryx, Qaliber, Selenium, Robotium…

  14. Non-functional testing Non-functional testing is the testing of a software application for its non-functional requirements.

  15. Non-functional testing Non-Functional Testing covers: • Load and Performance Testing • Ergonomics Testing • Stress & Volume Testing • Compatibility & Migration Testing • Data Conversion Testing • Security / Penetration Testing • Operational Readiness Testing • Installation Testing • Security Testing

  16. Non-functional testing Tools: AppLoader, IBM Rational Performance Tester, Jmeter, LoadRunner, Apache Bench, Httpperf, SLAMD…

  17. Code analysis Static code analysis. A methodology of detecting errors in program code based on the programmer's reviewing the code marked by the analyzer in those places where potential errors may occur.

  18. Code analysis The earlier an error is determined, the lower is the cost of its correction. Correction of an error at the testing stage is ten times more expensive than its correction at the construction (coding) stage.

  19. Code analysis Tools: Copy/Paste detector, Sonar, Yasca, FxCop, Gendarme, StyleCop, cppcheck, Checkstyle, FindBugs, Hammurapi, Closure Compiler, JSLint…

  20. Questions?

  21. Questions Why do we need testing tools? List types of testing tools. What is static code analysis? What are the steps of model-based testing? What non-functional testing covers?

More Related