Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE)(When creating a second RCPTT Project on same AUT in Eclipse, it is unusable)
[SOLVED] Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710412] Tue, 06 October 2015 09:33 Go to next message
Eclipse UserFriend
Scenario:

1. Run Eclipse Mars with RCPTT plugins installed and an RCP application project with launch configuration in workspace
2. Create RCPTT project using "Eclipse Application under Test" based on the RCP app's launch configuration
=> new RCPTT project shows up in RCPTT perspective and can be used to record and run test cases on the AUT
3. Create second RCPTT project using the same RCP app's launch configuration as the first one as "Target"

Issue:

Second RCPTT project does NOT show up in RCPTT perspective, not even after a complete restart of Eclipse.
When trying to run the second RCPTT prject configuration in the Configurations Manager (accessed via "Debug configurations"), a NullPointerException occurs (Stack Trace in Eclipse log see below).

This even happens when deleting the first RCPTT project and completely restarting Eclipse with "eclipse -clean".

-- NPE's stack trace in Eclipse log ---
!MESSAGE An internal error occurred during: "Launching RCPTT_Test_Clear_Workspace".
!STACK 0
java.lang.NullPointerException
at org.eclipse.rcptt.launching.internal.target.TargetPlatformHelper.getInstanceContainer(TargetPlatformHelper.java:1248)
at org.eclipse.rcptt.launching.internal.target.TargetPlatformHelper.getTargetPlatformProfilePath(TargetPlatformHelper.java:330)
at org.eclipse.rcptt.internal.launching.ext.Q7TargetPlatformInitializer.getInfo(Q7TargetPlatformInitializer.java:231)
at org.eclipse.rcptt.internal.launching.ext.Q7TargetPlatformInitializer.initialize(Q7TargetPlatformInitializer.java:100)
at org.eclipse.rcptt.launching.configuration.Q7LaunchConfigurationDelegate.preLaunchCheck(Q7LaunchConfigurationDelegate.java:150)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:840)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


[Updated on: Fri, 16 October 2015 03:31] by Moderator

Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710469 is a reply to message #1710412] Tue, 06 October 2015 23:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi Matthias,

Not quite sure what do you mean by "Create second RCPTT project using the same RCP app's launch configuration as the first one as "Target".

Once you've installed RCPTT into Eclipse Mars, please, switch to RCPTT perspective where you can right-click Test Explorer and create as many RCPTT Projects as you need. I'm just wondering, how did you set your AUT launch configuration as a Target for a Project?

Kind regards,
Ulyana.
Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710488 is a reply to message #1710469] Wed, 07 October 2015 03:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Ulyana Skorokhodova wrote on Tue, 06 October 2015 23:02

Not quite sure what do you mean by "Create second RCPTT project using the same RCP app's launch configuration as the first one as "Target".


Sorry, obviously I did not make myself clear enough.

What I did was to follow the steps you adviced me to perform for setting up an RCPTT project for an existing RCP project in Eclipse: https://www.eclipse.org/forums/index.php/t/1070858/

This worked well when I set up the first RCPTT project with the RCP project as the target.
The problems described above, though, occurred when setting up a second RCPTT project that way for the same RCP project.


Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710500 is a reply to message #1710488] Wed, 07 October 2015 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi Matthias,

You should do it (Configure AUT Configuration) just once.
Once you have AUT Configuration appeared in Applications view, please start it and proceed with RCPTT Project/Tests creation.
So you don't need to do anything else in Run Configuration once you successfully created and started your AUT.

Please let me know if it is clear enough.

Kind regards,
Ulyana.
Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710504 is a reply to message #1710500] Wed, 07 October 2015 04:12 Go to previous messageGo to next message
Eclipse UserFriend
Actually, the issue is not in creating the AUT Configuration. That works fine for me and I can see it in the "Applications" view.

The problem is in creating RCPTT test projects then:
when I create the first one, it appears in the "Test Explorer" view as desired and I can create Test cases for it and run them on the AUT.
Issue 1: When creating as second RCPTT test project now, it does NOT appear in the "Test Explorer" view in the RCPTT perspective. Yet, it appears in the project explorer in the standard "Plugin Development" perspective.
Issue 2: When I create a Test case for the second RCPTT project in the standard "Plugin Development" perspective now and run the Test case on the AUT, a NullPointerException occurs (as described in the initial post).



Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710506 is a reply to message #1710504] Wed, 07 October 2015 04:25 Go to previous messageGo to next message
Eclipse UserFriend
Besides, this seems to be similar to the issue recently reported in another thread in this forum: https://www.eclipse.org/forums/index.php/t/1065683/
Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710509 is a reply to message #1710506] Wed, 07 October 2015 04:40 Go to previous messageGo to next message
Eclipse UserFriend
What makes this issue more severe than just low priority in my view is the fact that one is apt to corrupt the workspace this way: after having deleted the first (working) RCPTT project in such a situation, I have never been able to set up a working RCPTT project again. Regardless of what I did (deleting the corrupted RCPTT project also, restarting Eclipse with the "-clean" option, removing and readding the run configuration and the AUT again, even manually deleting the metadata for the RCPTT plugins in the workspace folder), my RCPTT project's test cases always ran into the NullPointerException.

The only solution was to set up a completely new workspace (which can become very time-consuming for a large and complex RCP application).

[Updated on: Wed, 07 October 2015 04:40] by Moderator

Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1710512 is a reply to message #1710506] Wed, 07 October 2015 05:06 Go to previous messageGo to next message
Eclipse UserFriend
Matthias Paul Scholz wrote on Wed, 07 October 2015 04:25
Besides, this seems to be similar to the issue recently reported in another thread in this forum: https://www.eclipse.org/forums/index.php/t/1065683/


After inspecting the thread quoted above, I've updated the RCPTT plugins (which originally were installed from Eclipse Marketplace last week) to the last version (2.0.1.201508201020).

Now the issues described above no longer occur. Smile

Is there a possibility to update Eclipse Marketplace in order it delivering that version of the RCPTT plugins (so people do not run into issues that have been fixed already)?

[Updated on: Wed, 07 October 2015 05:11] by Moderator

Re: Issues when creating second RCPTT Project on same AUT in Eclipse (Not visible, NPE) [message #1711444 is a reply to message #1710512] Fri, 16 October 2015 03:31 Go to previous message
Eclipse UserFriend
Hi Matthias,

Done. RCPTT has 2.0.1 version in Eclipse Marketplace now.

Kind regards,
Ulyana.
Previous Topic:Not able to record login screen using RCPTT
Next Topic:Problem first test with Maven
Goto Forum:
  


Current Time: Tue Jun 24 10:30:30 EDT 2025

Powered by FUDForum. Page generated in 0.25567 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top