Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools

Acceptancetest for Cultivate 0.3.*

stepdescriptionwhat to look for
1.initialize environment
1.1.downloads java runtime environment (1.4.2_09) eclipse (R3.1.2) GEF-ALL (3.1.1) SWI-Prolog Cultivate (n20060304)
1.2.1.unzip eclipse
1.2.2.unzip GEF to eclipse folder
1.2.3.unzip Cultivate to eclipse folder
1.2.4.install JRE in jre subdirectory of eclipse folder
1.2.5.install prologWindows: plwin must be accessible from command line (in PATH), try cmd.exe /c start /min plwin from command line eclipse
2.initialize project, classes and settings
2.1.create new java project named “test”
2.2.add the jtransformer nature to the project “test”
2.3.test prolog availability the prolog console view “test: ” in the prolog console as interface“Welcome to the SWI-Prolog server on thread client@localhost” appears in the console
2.4.activate the cultivate nature for the project “test”
2.5.create classes
2.5.1.create class a.A
2.5.2.create class a.A2 extends A
2.5.3.create class b.B extends A
2.5.4.create class c.C extends B
2.5.5.create class d.D extends A
2.6.add method public void x() { ;; new C(); } to class a.A the cultivate perspective
3.test diagrams the project “test” in the package explorer package dependency diagramcycle with red arrows between packages a,b,c - dependency from d to a - d green, b,c yellow, a orange modfied package dependency diagram inheritance diagram
3.4.add legend
3.4.remove legend package dependency diagram
3.6.remove cycle by removing the new C(); from a.A.x()cycle removal and color changes
4.result view
4.1.add nop smell2 results, yellow background, selection in view menu
4.2.double-click resultclass opened with nop selected
4.3.add dit metric
4.4.remove nopsupdate
5.check markers
5.1.add ; to a.A.x() nop smell marker on WARNINGmarker is visible in problem view and in the editor on warning level
5.3.add ; to a.A.x()update of editor and problem view
5.4.switch nop smell marker to ERROR markers are visible in problem view and in the editor on error level
5.5.switch nop smell marker to OFFmarkers not visible any more
6.check user defined metrics
6.1.create file test/ with content:
:- multifile detector_/4.
:- multifile detector_description/4.

detector_description(meinErsterDetektor,'ein kurzer Hilfetext',statement,unrated).

detector_(meinErsterDetektor, occurrence, [(statement, CallID)], []) :- 
    nopT(CallID, _, _). 
6.2.refresh detector definitions (right click on project, refresh detector definitions) the nop smell tests for meinErsterDetector as in 3 and 4
research/cultivate/acceptancetest.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2022