Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:34 Go to next message
Erwan Toux is currently offline Erwan TouxFriend
Messages: 6
Registered: March 2024
Junior Member
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 09:23 Go to previous messageGo to next message
Adam Knapp is currently offline Adam KnappFriend
Messages: 54
Registered: November 2020
Member
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 09:22 Go to previous message
Erwan Toux is currently offline Erwan TouxFriend
Messages: 6
Registered: March 2024
Junior Member
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: Wed Oct 09 13:21:10 GMT 2024

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

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

Back to the top