ETSI's Bug Tracker - Part 06: TTCN-3 Control Interface
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0008110 | Part 06: TTCN-3 Control Interface | Clarification | public | 17-08-2022 06:57 | 04-01-2023 10:46

Reporter | Matthias Simon |
Assigned To | Tomas Urban |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | Operational semantics
Source (company - Author) | Nokia -- Matthias Simon

Summary | 0008110: When are global constants evaluated?

Description

Consider following example:
module M {
// Constant c is depending on module parameter mpar
const integer c := mpar*2;
// Module parameter is initialized, when a control or testcase is executed.
modulepar integer mpar
control {
execute(tc1());
execute(tc2());
}
testcase tc1() { log(c); }
testcase tc2() { log(c); }
}
Scenario 1: Control part is executed via `tciRootModule M; tciStartControl` operations.
Expected: I'd expect the module parameter mpar will be initialized only once and we'll observe
the same value for c logged twice (once by M.tc1 and once by M.tc2).
Scenario 2: Testcases M.tc1 and M.tc2 are executed sequentally via `tciRootModule M; tciStartTestCase M.tc1; tciStartTestCase M.tc2` operations.
Expected: I'd expect the module parameter mpar will be initialized once by M.tc1 and
later again possibly with a different value by M.tc2. We would observe
different values for c.
Are my expectations accurate? I could not find details about that in the standards.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR-8110.docx (159,893) 06-12-2022 08:01 http://oldforge.etsi.org/mantis/file_download.php?file_id=4082&type=bug

Issue History
Date Modified | Username | Field | Change
17-08-2022 06:57 | Matthias Simon | New Issue |
17-08-2022 10:40 | Jens Grabowski | Assigned To | => Tomas Urban
17-08-2022 10:40 | Jens Grabowski | Status | new => assigned
17-08-2022 10:41 | Jens Grabowski | Project | TTCN-3 Change Requests => Part 06: TTCN-3 Control Interface
17-08-2022 10:41 | Jens Grabowski | Note Added: 0016231 |
06-12-2022 08:01 | Tomas Urban | File Added: CR-8110.docx |
06-12-2022 08:02 | Tomas Urban | Note Added: 0016317 |
06-12-2022 08:02 | Tomas Urban | Assigned To | Tomas Urban => Matthias Simon
06-12-2022 08:02 | Tomas Urban | Status | assigned => confirmed
06-12-2022 10:43 | Matthias Simon | Assigned To | Matthias Simon => Tomas Urban
06-12-2022 10:43 | Matthias Simon | Status | confirmed => assigned
06-12-2022 10:44 | Tomas Urban | Status | assigned => resolved
06-12-2022 10:44 | Tomas Urban | Resolution | open => fixed
04-01-2023 10:46 | Tomas Urban | Note Added: 0016459 |
04-01-2023 10:46 | Tomas Urban | Status | resolved => closed

Notes

(0016231)
Jens Grabowski
17-08-2022 10:41

TTF discussion: Tomas will study the issue.

(0016317)
Tomas Urban
06-12-2022 08:02

Resolution uploaded. Please check.

(0016459)
Tomas Urban
04-01-2023 10:46

Added to the TCI stable draft.