Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WACADEMY and version 24.0

 

The modeling phase of the extended Web service has been completed. Now, you can compile and deploy the UML model. Then, you can test the deployed xUML service with the E2E Model Debugger.

Image Modified

Two UML model files are displayed in the Deployment View of the Model Compiler window.

Image Modified

Expand the file lesson2.xml to compile the xUML service EducationLesson2.

Image Modified

While E2E Builder for MagicDraw is compiling, the Working… window will be displayed.

It could be possible that the example was not compiled without errors. In this case, the xUML Service EducationLesson2 would have turned red. In the following chapter, it will be explained, how to solve such a problem.

Solving Errors

If the Model Compiler reports an error, it tells you what problem was found. It will also guide you to the location in the containment tree, where the error occurred.

The Model Compiler shows all error messages in the E2E Messages window and in the tree of the deployment view below the deployment of the xUML service. Refer to Solving Errors in lesson 1 for a detailed explanation of how to trace errors.

If you find no way to fix possible problems in your lesson 2 model, you can use the solution model of lesson 2 as a reference. Click the link to download the Builder project Education Solution to your computer and unzip it to a folder of your choice. The solution project contains the solutions of all three lessons.

Image Modified

Select Open E2E Builder Project from the E2E Builder Menu.

Image Modified

Locate the the Builder project Education Solution, select it and click OK.

Image Modified

If you have not opened this project before, the E2E Builder File Chooser pops up. Select the file lesson2.xml in sub folder uml, which contains all reference models of this course with complete solutions.

If you already studied the solution models in lesson1, the builder will automatically open the model file last used, in this case probably lesson1.xml.

Image Modified

Close the project lesson1.xml.

Image Modified

Open the E2E Builder menu and select Open E2E Model > lesson2.xml.

You can compare the solution model with your model to find the error. Switch between open project files using the Opened Projects toolbar of Magic Draw.

Note
iconfalse

By loading lesson2.xml from Builder Project Education Solution your own project Education is no longer the active Builder project, though your own XMI file lesson2.xml is held open within MagicDraw. Wanting to continue working with Education, you will have to reopen the project.

Image Modified

Finally, return to your own model. Close the solution project using the MagicDraw menu items File > Close Project (select the solution model first).

Remember, that in MagicDraw a project is a model file and should not be mixed up with a Builder project.

Image Modified

Switch the Builder project again. Select E2E Builder > Reopen and choose your Builder project (Education) from the list.

Image Modified

Note the change in the MagicDraw title bar. The Builder project name has changed back to Education.

As an alternative, you can continue your studies with the solution model by importing the solution into your own Builder project.

Image Modified

Select the menu item Import > XMI File from the Compiler Window's menu.

Image Modified

The File Chooser pops up. Change to the Builder project Education Solution and double-click the folder uml.

Image Modified

Choose lesson2.xml, as you want to import the solution model of lesson 2 and click OK.

Image Modified

Now define the destination of the imported model. The default folder is the uml folder of the current Builder project. Change the file name to e.g. lesson2_solution.xml and click OK.

Image Modified
The imported model is listed in the deployment view of the Model Compiler window. You could compile this model and continue with it to the end of lesson 2.
moveon
Panel
Link

Image Added

Testing with E2E Interactive Debugger Lesson 2 MD18

LinkTextTesting with E2E Interactive Debugger OtpFloatingfalse
Panel
titleOn this Page:

Table of Contents