|
Home User information: how-to guide Developer information: programmer's guide Test classes explanation Work in progress Run Application Related Links People |
CAIS - Comparative Anatomy Information System for the Foundational Model of Anatomy (FMA) and the Mouse Anatomy Ontology (MOA)Test classes explanation The test classes The knowledgebase currently contains a class called "Test" which is a subclass of the class "Physical Anatomical Entity". I created the "Test" class and its subclasses in order to be able to test the functionality of the application, because the knowledgebase currently does not contain enough anatomical information about the human and the mouse to enable thorough testing. The test classes are by no means exhaustive, and I am convinced that more comprehensive testing will be required before we can be satisfied that the application executes as we need it to. The test classes are really simple and I include them mostly as an example of the application's functionality. Here are some brief explanations about how I used the test cases: 1. Query type: shared and not shared You can perform the shared query with Test 1 and Test 2. The results should tell you that Test 1 has a part called "Part 1 of test 1" that maps to the part of Test 2 called "Part 1 of test 2"., which is what happens if you actually execute the query. If you perform the not shared query with Test 1 and Test 2, the results should tell you that "part 2 of test 1" and "part 3 of test 1" are parts of Test 1 that do not map to any parts of Test 2. Also, "part 2 of test 2" is a part of Test 2 that does not map to any parts of Test 1. If you actually execute the query, you will see that the correct results are displayed. If you increase the recursion level to 1 or 2, you will see that the query is executed down the specified number of levels of the part hierarchy. 2. The subject and object are both sets 3. Either the subject or the object is a member of a set that maps to the other structure These are some of the instances where I found the test cases helpful. I am not sure why I included the test classes "Set containing test 4" and Test 5, but I will leave them in there in case I remember later or find a user for them. More test classes can be added as necessary, and the current test classes can be removed if they are no longer need. |