ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0000417 | Part 01: TTCN-3 Core Language | New Feature | public | 24-11-2006 14:36 | 12-12-2008 07:27

Reporter | Stephan Schulz |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | feature | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.1.1 (published 2005-06) |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | -
Source (company - Author) | dr. György Réthy, Ericsson

Summary | 0000417: Assignment notation in actual parameter lists

Description

This CR is closely related to the CR on "Formal parameter default values (non-mandatory parameters)". In testing of telecom systems we often face the long parameter list problem. When accepting CR 406, parameter lists may contain numerous parameters with default values. When the user wants to change the actual value of one or few last parameters in the list, he has to "dash-out" all other parameters preceding the one(s) with actual value(s). This is inconvenient and may easily lead to errors like miscalculating the number of dashes (especially if the parameter to which we pass the actual value erroneously is of the same time as the parameter to which we wanted to pass it - this kind of error may remain covered and causing misbehaviour).
In the case of allowing assignment notation for formal parameters ? except mandatory ones - only non-mandatory parameters with an actual value should be listed. Each parameter present can be identified by the name of the corresponding formal parameter. Value list and assignment notations can be mixed within an actual parameter list with the following restriction: once an assignment notation is used, actual parameters in the same list following this one shall use the assignment notation.
NOTE: This feature causes that the call of a template/function/altstep or testcase becomes dependent on the formal parameter names used.
Example of various invocations of the function defined in the previous example code:
var integer v_int := 10;
template charstring tmpl_str := pattern "a??";
f_MyFunction("abc");
f_MyFunction("abc", par_3:= 5);

Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

related to | 0000411 | closed | Jens Grabowski | Part 04: TTCN-3 Operational Semantics | Formal parameter default values (non-mandatory parameters)

Attached Files |

Issue History
Date Modified | Username | Field | Change
24-11-2006 14:36 | Stephan Schulz | New Issue |
24-11-2006 14:36 | Stephan Schulz | Clause Reference(s) | => -
24-11-2006 14:36 | Stephan Schulz | Source (company - Author) | => dr. György Réthy, Ericsson
24-11-2006 14:37 | Stephan Schulz | Relationship added | related to 0000411
15-06-2007 19:15 | Stephan Schulz | Status | new => assigned
15-06-2007 19:15 | Stephan Schulz | Assigned To | => Ina Schieferdecker
13-10-2007 19:23 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => developer_u
15-10-2007 12:54 | Ina Schieferdecker | Note Added: 0003610 |
17-10-2007 11:48 | Ina Schieferdecker | Note Edited: 0003610 |
17-10-2007 11:48 | Ina Schieferdecker | Note Edited: 0003610 |
17-10-2007 12:41 | user10 | Assigned To | developer_u => Thomas DeiÃŸ
18-10-2007 12:12 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
18-10-2007 12:12 | Ina Schieferdecker | Description Updated |
09-12-2008 18:15 | Ina Schieferdecker | Note Added: 0007612 |
09-12-2008 18:15 | Ina Schieferdecker | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
09-12-2008 18:15 | Ina Schieferdecker | Status | assigned => resolved
09-12-2008 18:15 | Ina Schieferdecker | Resolution | open => fixed
12-12-2008 07:27 | Ina Schieferdecker | Status | resolved => closed
12-12-2008 07:27 | Ina Schieferdecker | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0003610)
Ina Schieferdecker
15-10-2007 12:54 (edited on: 17-10-2007 11:48)

to be considered only in relation with the CR 411 on default values for formal parameters - deferred to 2008

(0007612)
Ina Schieferdecker
09-12-2008 18:15

Assignment notation fixed in part 1 along the CR411 resolution.