Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found)
get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777518] Wed, 29 November 2017 21:12 Go to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 102
Registered: October 2011
Location: Berlin, Germany
Senior Member

Hi, I'm running 2.2.0 on Ubuntu 16.04.

Trying to run this:

set-dialog-result File [concat [get-workspace-location]"/com.acme.rcptt/HelloWorld.txt"]


yields the following error:

org/eclipse/core/resources/ResourcesPlugin
	at get-workspace-location (/rcptt-tests/mytest.test:14)


Details below. I've also tried the Variables Plugin variant (substitute-variables "${workspace_loc}") , which throws aNoClassDefFoundError: org/eclipse/core/variables/VariablesPlugin...

Any ideas? I want to use this to inject a file that is present in the test project folder, which I hope to get to from the workspace folder.

Report:
  Test case *mytest* time: 1.249 s
    Result: ERROR, message: get-workspace-location
      Result: ERROR, message: get-workspace-location
        Result: ERROR, message: org/eclipse/core/resources/ResourcesPlugin
          java.lang.Throwable: java.lang.Throwable: java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
          	at org.eclipse.rcptt.ecl.platform.internal.commands.GetWorkspaceLocationService.service(GetWorkspaceLocationService.java:26)
          	at org.eclipse.rcptt.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:83)
          	at org.eclipse.rcptt.ecl.internal.core.Session$1.run(Session.java:48)
          	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

...

Total wait time:
  There were no third-party methods RCPTT was waiting for
Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777660 is a reply to message #1777518] Fri, 01 December 2017 10:15 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
Registered: March 2017
Senior Member
Hi Stephan,

Seems 'org.eclipse.core.resources' and 'org.eclipse.core.variables' plugins are missing.
Try to add one of the plugins to your AUT.
Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777663 is a reply to message #1777660] Fri, 01 December 2017 10:35 Go to previous messageGo to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 102
Registered: October 2011
Location: Berlin, Germany
Senior Member

Thanks Viktoria,

org.eclipse.core.resources is included in the AUT in version 3.11.1.
Is it possible to check OSGi status during an RCPTT test? Could be that the resources plugin isn't started at this point?

Thanks!

p.s.: Otherwise, do you have a suggestion on ho to provide a local file for the test without having to provide the absolute path (test should be portable, i.e., run locally as well as on CI platforms (Jenkins/Travis)? Thanks!

[Updated on: Fri, 01 December 2017 10:37]

Report message to a moderator

Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777671 is a reply to message #1777663] Fri, 01 December 2017 11:30 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
Registered: March 2017
Senior Member
> check OSGi status during an RCPTT test
To do this:
1) add '-debug -console' to application arguments in the AUT launch configuration, start the AUT
2) when AUT will start, type 'ss' in the RCPTT 'Console' view
3) open console output file by clicking on '[Console output redirected to file:...' link
4) at the end of the log you will see all bundles and their statuses

Also, you can check AUT's log for 'Could not resolve module' errors. Maybe dependencies of 'org.eclipse.core.resources' plugin are not resolved


> provide a local file for the test
How do you want to use a local file?
A relative path can be used in some ecl commands, such as 'write-csv-file': https://hudson.eclipse.org/rcptt/job/rcptt-all/ws/releng/doc/target/doc/ecl/index.html#write-csv-file
You can use 'workspace:/' scheme in the path to describe a directory in the workspace
But if you want to put an absolute path into some field, the value should be pre-calculated
Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777672 is a reply to message #1777671] Fri, 01 December 2017 11:34 Go to previous messageGo to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 102
Registered: October 2011
Location: Berlin, Germany
Senior Member

Thanks, I'll try figuring out what's happening with the resources plugin.

I want to pass a local file via a *relative path* to "*set-dialog-result File*", and was trying to calculate the relative path from the workspace root, which should work for both local and remote (Travis) set ups.
Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1777674 is a reply to message #1777672] Fri, 01 December 2017 11:46 Go to previous messageGo to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 102
Registered: October 2011
Location: Berlin, Germany
Senior Member

So, the Resources Plugin *is* active after all:

72	ACTIVE      org.eclipse.core.resources_3.11.1.v20161107-2032


Any further ideas? Thanks!
Re: get-workspace-location: Resources/Variables Plugin error (Resources plugin cannot be found) [message #1780590 is a reply to message #1777674] Wed, 24 January 2018 08:45 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
Registered: March 2017
Senior Member
Hi Stephan,

We've fixed this bug in the latest nightly build
You can download it here: https://www.eclipse.org/rcptt/download/
Previous Topic:Does not support Eclipse RAP 3.4?
Next Topic:Get specific item from canvas using rcptt tool
Goto Forum:
  


Current Time: Sat Aug 18 20:01:01 GMT 2018

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

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

Back to the top