Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] Parametrized Preferences Context(Parametrized Preferences Context)
[SOLVED] Parametrized Preferences Context [message #1648297] Tue, 03 March 2015 21:32 Go to next message
Hernan Wittemoller is currently offline Hernan WittemollerFriend
Messages: 8
Registered: February 2015
Junior Member
Hi,

For the same set of test cases I need to apply different Preferences contexts to my AUT depending on the OS on which the test run is taking place.

Is there a way to do this? I couldn't find a way to parametrize a Preferences context neither apply them conditionally on a test case.

Thank you

Regards

[Updated on: Mon, 05 October 2015 06:46] by Moderator

Report message to a moderator

Re: Parametrized Preferences Context [message #1649017 is a reply to message #1648297] Wed, 04 March 2015 05:48 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

Thank you for contacting us!

In RCPTT IDE you can create several identical test cases, add different contexts to them. You will have several test cases and the only difference between them is the difference between their contexts. Then unite test cases to test suites and after it you just need to execute appropriate test suite on particular platform.

If you need to add specific context for Linux machines and another for Windows versions, but test case itself should not be different for both the Linux and Windows machines, you can use different projects with the same name and same IDs of contexts, the difference is only in location.
Do the following steps for that purpose:

  1. Move all platform dependent test contexts to a separate project.
  2. Copy project on filesystem (don't use RCPTT IDE during this step. If you import both projects to the one IDE, an error will appear because of the same IDs of contexts. )
  3. Change all contexts to handle another required platform (do not create new contexts, edit them in-place, do not change name of project)
  4. During build supply different context projects using either "Extra projects" option of RCPTT Maven plug-in or directly replacing project with needed version in your build script.

The main idea of this approach is to get two different sets of context with same IDs so that tests reference them in uniform way on every platform.

Also skipping tags might be helpful for you. See more here.

In ECL you can use command get-by-os which returns value depending on current operating system.

Please let me know if it is suitable for you or you have any questions.


Yours sincerely,
Olga.
Re: Parametrized Preferences Context [message #1654626 is a reply to message #1649017] Fri, 06 March 2015 19:39 Go to previous message
Hernan Wittemoller is currently offline Hernan WittemollerFriend
Messages: 8
Registered: February 2015
Junior Member
That worked.

Thank you!
Previous Topic:How do you add compatibility with e4 (v0.17)?
Next Topic:Unchecking table item cleared all checkboxes in table
Goto Forum:
  


Current Time: Fri Apr 26 04:09:59 GMT 2024

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

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

Back to the top