Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Capturing only changed preferences from a specific base preferences context
Capturing only changed preferences from a specific base preferences context [message #1621999] Wed, 18 February 2015 02:30 Go to next message
Eclipse UserFriend
Hi again, I have a query regarding preferences contexts. The scenario is: I have a preferences context applied then in the AUT, I did some changes in the preferences. Is it possible to capture only the updated or changed items?

The way capture is behaving is it grabs everything. Which might not bode well when running the tests in different OS platforms.


cheers!

Joseph
Re: Capturing only changed preferences from a specific base preferences context [message #1622588 is a reply to message #1621999] Wed, 18 February 2015 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joseph,

Thank you for sharing ideas.

1) Obviously current RCPTT Context Capture tools (workspace, preferences, etc) are far from ideal, however helpful in many cases. So please do not consider "Capture" as a way to create a Context but only as a tool, which may be useful to create a Context.

2) In many cases preference context may include preferences which do not change during test execution - to ensure that AUT will behave as expected in regard to behavior controlled with preferences. E.g. if my test assume there shall be "$100.00" output to console, I would like to ensure that com.xyz.locale preference set to "en_US" before test execution.

3) Of course and ideally RCPTT shall create Context automatically (!) in the same fashion as it record test scripts. This is definitely doable but need some work. The ideas is very simple - during test recording RCPTT will also track access to Eclipse resources which may be a subject of a context - files, views, preferences, etc... So after test recorded - RCPTT will create all necessarily contexts.

4) Nevertheless (3) looks great and relatively easily to implement not everything looks bright. Ideally contexts shall be a building blocks and units of reuse. So probably we'd need some post-recording mechanism to organize and reuse contexts.

Thank you very much again for sharing thoughts and for using RCPTT

Kind Regards,
Andrey
Re: Capturing only changed preferences from a specific base preferences context [message #1625032 is a reply to message #1622588] Fri, 20 February 2015 00:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andrey,

Thanks for responding. I agree with you there, the capture tool is more of a utility to initially create the contexts. But yeah we have solved our dilemna by initially capturing the preferences and trimming down the things that weren't needed there. It would have been easier to do (via some sort of diff) if the contexts in the file system were plain text files but they seem to be zipped then base64 encoded. It would be nice to have a feature in rcptt to compare applicable contexts with each other.

On another note, how does the import preferences work? I've tried it before but I couldn't seem to get it to work at all.


cheers!

Joseph
Re: Capturing only changed preferences from a specific base preferences context [message #1709675 is a reply to message #1625032] Wed, 30 September 2015 04:49 Go to previous message
Eclipse UserFriend
Hi Joseph,

Did you managed to Export/Import preferences?
You can do it via File/Export/General/Preferences menu.

Kind regards,
Ulyana.
Previous Topic:Code Coverage
Next Topic:Change JRE to JDK When launching the AUT
Goto Forum:
  


Current Time: Fri Jun 13 18:39:36 EDT 2025

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

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

Back to the top