Capturing only changed preferences from a specific base preferences context [message #1621999] |
Wed, 18 February 2015 02:30  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04263 seconds