Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » Launching execute from config file with different parameters
Launching execute from config file with different parameters [message #1864748] Fri, 05 April 2024 12:34 Go to next message
Eclipse UserFriend
Hello all,

I was wondering if it was possible to run a command (or build the config file) in such a way that you would be able to start the same ttcn scenario with different module parameter values.

Say I have a module parameter charstring "char_value".
My testcase simply runs log("Hello", char_value).

What I would like to do is something that would look like

./ETS ETSconfig1.cfg ETSconfig2.cfg
,

where ETSconfig1.cfg is


[MODULE_PARAMETERS]
ETSchar_value := "world !"

[EXECUTE]
ETS.control


and ETSconfig2.cfg is


[MODULE_PARAMETERS]
ETSchar_value := "titan !"

[EXECUTE]
ETS.control




Another way would be to run ./ETS ETSconfig.cfg with:



[MODULE_PARAMETERS]
ETSchar_value := "world !"

[EXECUTE]
ETS.control

[MODULE_PARAMETERS]
ETSchar_value := "titan !"

[EXECUTE]
ETS.control



I've browsed through the User Guide but did not find something fitting my need.
Is there a way to accomplish this ?

Thank you all in advance!
Best,
Erwan
Re: Launching execute from config file with different parameters [message #1864762 is a reply to message #1864748] Mon, 08 April 2024 05:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Why don't you just run the ETS twice with different configs?
Re: Launching execute from config file with different parameters [message #1864804 is a reply to message #1864762] Wed, 10 April 2024 05:22 Go to previous message
Eclipse UserFriend
Hello,

This is because I would like to have a single test running, but I might end up doing that in the end because this is much easier to do.
Previous Topic:Support for WebSocket in Eclipse Titan
Next Topic:Templates with variable bindings support
Goto Forum:
  


Current Time: Sun Aug 31 10:58:51 EDT 2025

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

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

Back to the top