Forum Discussion

chrisg29's avatar
chrisg29
New Contributor
3 years ago

Reuse desktop objects on different environments

I have a desktop application (using Java forms) that runs on different environments. The functionality is the same, but when I try to run the same test, the object that is needed is slightly different.

 

Here is an example:

 

Env1:

Aliases.jp2launcher.Frame.FndFormsEngine.MDIContainer.EwtComponent.ScrollBox.ScrollBox_1.FormDesktopContainer.ExtendedFrame.LWComponent.EwtComponent.FScrollBox.ScrollBox_1.DrawnPanel.FScrollBox.ScrollBox_1.DrawnPanel.textBoxStatus

 

Env2:
Aliases.jp2launcher.Frame3.FndFormsEngine.MDIContainer.EwtComponent.ScrollBox.ScrollBox_1.FormDesktopContainer.ExtendedFrame.LWComponent.EwtComponent.FScrollBox.ScrollBox_1.DrawnPanel.FScrollBox.ScrollBox_1.DrawnPanel.textBoxStatus

 

The only difference seems to be that it finds a different frame when using a different environment. Is there a way that I can make the object reusable on different environments?

 

I'm currently capturing the objects with the object spy.

6 Replies