====== Results ====== ===== A brief review of the case-study ===== PlatoonSystem is an Kmelia application about intelligent system embedded on new generation of vehicle. Here we similate an set of 3 vehicles. The driver, the mid and the last. The first is control by pilot (a man) and the other two without pilot. they are connected to the first via an intelligent system which allows control of the over vehicles from the first. This system allows the driver to convey both vehicle without a pilot to an prefixed destination with maintaining a distance of safety calculated dynamically depending on the speed of the vehicle predecessor. \\ \\ {{ :costo:test:results:platoonscared.jpg?600&500 |}} \\ \\ ===== A brief review of the service under test "computSpeed ===== The computSpeed service is the center of real-time calculation of the current distance between a vehicle and its predecessor. It takes as input a standard safety distance in addition to the position and speed of the predecessor vehicle and provide a new speed for the current vehicle based on the calculated distance. \\ \\ {{ :costo:test:results:computspeed.jpg?400&300 |}} \\ \\ ===== Control Flow Graph of computSpeed Service ===== {{ :costo:test:results:graphefinal.png?400&300 |}} \\ Analysis of this graph highlights nine(9) execution paths. Five (5) of whom are valid. This five(5) paths are : \\ * e1Ae2Ef * e1Ae2Ff * e1Be2Df * e1Be2Ff * e1Ce2Ff \\ Unit testing of computSpeed service required test data. In order to covert these five (5) paths we calculated and produced a set of data relevant to each path. \\ These data were summarized in a single file {{:costo:test:results:data.zip|data.zip}}. === Use data.xml file to launch computSpeed unit test === ---- - Follow the two firts step of the screenshot tutoriel from [[costo:test:userguide:costotestuginstall|User Installation Guide of Costo Test]] page. \\ - At the end of the tutorial second step, if you have done all things well, you will get a pop up menu asking you about how many test data you want to build. \\ {{ :costo:test:userguide:25.png?800&800 |}} \\ Clique on "Cancel" button. \\ \\ - Download data.zip archive above, unzip it and go inside the folder obtained \\ - Copy the file data.xml and paste it into the data folder of your PlatoonTestIntention directory in your Eclipse. - Now unfold your src directory and run the class LauncherTH_PlatoonTestIntention as java application. Look in the console for monitoring the implementation.\\ - Go inside the data folder of your PlatoonTestIntention directory in your Eclipse and refresh it. \\ - You will find an output file {{:costo:test:results:data_res.zip|data_res.xml}} that contains the test Result. \\ === Analysis of the results === ----