
As an Amazon Associate and affiliate partner, Menrva Books earns from qualifying purchases. Learn more
Compared to traditional testing methods like Junit and Jmock, "testing based on sequence diagram" can be more efficiently applied to test the interaction traces between system under test (SUT) and the environment running the SUT. Mock objects come out in order to set up the compatible test environment. Besides that, through the tailor-made mock objects in this project - LiMock, the interaction of different objects within System under test (SUT) becomes possible to be detected to some extent. Although this kind of specific testing method is not considered mature, it would be popular for its easily edited xml input and handy testcase definition. And most important is that the practical interaction can be tested applied anytime during the software development. Case Census-Voter is the demonstated model. It verifies the advantanges of LiMock comparing Jmock and Junit. As a result, it is convienced that sequence based "Java Interaction Test" could present its potential specifically in the area of development of software interaction testing.
This book investigates the application of sequence diagram-based testing for Java interaction testing, proposing LiMock as a novel tool for detecting object interactions within a System Under Test (SUT). Authored by Xuan Li, this work details a testing methodology that contrasts with traditional approaches like JUnit and JMock, emphasizing efficiency in testing interaction traces between the SUT and its environment. The project introduces LiMock, a custom mock object framework designed to facilitate the detection of internal object interactions, a capability not fully addressed by existing tools. While acknowledging the immaturity of this specific testing approach, the author highlights its potential due to easily editable XML input, straightforward test case definition, and the critical advantage of testing practical interactions at any stage of software development.
The book presents a specific approach to software testing, focusing on interaction traces and utilizing custom mock objects. The author positions this method as an efficient alternative to traditional testing frameworks, particularly for detecting internal object interactions within a System Under Test. The described advantages include ease of use through XML input and test case definition, suggesting a practical application during the software development lifecycle. The work aims to demonstrate the potential of sequence-based Java interaction testing, using a specific case study to validate its benefits over existing tools like JUnit and JMock.
Page Count:
100
Publication Date:
2011-05-01
Publisher:
Lap Lambert Academic Publishing GmbH KG
ISBN-10:
384433288X
ISBN-13:
9783844332889
No comments yet. Be the first to share your thoughts!