Testing Rhapsody Plugin

I am developing a plugin for IBM Rational Rhapsody using this Java API .

This plugin is registered in the help file and works fine as long as I can tell. To have more confidence in my stability, I created a JUnit test suite that I can run through my IDE.

However, this is just a mocking decision, and I was wondering if there is a way to create a test integration package that starts with Rhapsody.

I would really like to be able to automate the execution of my plugin in the list of test models that evaluate its good behavior

I cannot find a link to this on the Internet, so other ideas are welcome.

+5
source share
1 answer

The way I implemented the integration test suite:

I did to create a Rhapsody model containing N components. Then, in Java using JUnit, I implemented a basic test case that, given the model name, launches a new Rhapsody application and opens it.

Once Rhapsody is open, I can use the Java API to select the correct component that simulates a mouse click on its name, and then I can run my plug-in functions just like it was launched for the right-click event on an element.

, , , . , (, 10 Rhapsody).

+4

Source: https://habr.com/ru/post/1693729/


All Articles