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

ID | Project | Category | View Status | Date Submitted | Last Update
0006165 | Part 01: TTCN-3 Core Language | New Feature | public | 09-07-2012 15:57 | 16-07-2012 11:39

Reporter | Gyorgy Rethy |
Assigned To |  |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | no change required |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.5.1 (published 2013-04) | Fixed in Version |  |
Clause Reference(s) | new
Source (company - Author) | L.M.Ericsson

Summary | 0006165: Add recof2setof predefined function

Description

Use case: several IMS protocols defined in XSD contain list of structured information elements, where the list is defined by minOccurs and maxOccurs in XSD. So, the list of structures is translated to TTCN-3 as a record of record. The SUT may send the IEs in an arbitray order (SUT dependent, no mandatory order in the spec.). During functional testing most test cases checks the content (which IEs are included and what is the content, but the order is irrelevant), while in a few test cases also the order is checked (if a given structure was the Nth element). Therefore a general replacement of all record of-s with set of-s in the type definition modules is not a solution.
The proposed solution is to add a conversion function to convert record ofs to set ofs before matching the relevant part of a received message with a template. The returned type should be
a) a "mirror" type of the input record of, in which case the result can be returned as a return value and be saved into any compatible set of variable or be piped to e.g. a match predef. function
b) the outpout is returned as an out parameer, in which case the type of the variable passed to the function as the out parameter.
Solution a) is preferred as the purpose of the requests is to pipe the resulted st of to the match function directly.

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

Relationships

related to | 0006008 | closed |  | Match omit Ð¼Ñ‹ undefined value
related to | 0006088 | closed | Ina Schieferdecker | superset/subset/permutation/complement should also be possible with dynamic lists

Attached Files |

Issue History
Date Modified | Username | Field | Change
09-07-2012 15:57 | Gyorgy Rethy | New Issue |
09-07-2012 15:57 | Gyorgy Rethy | Clause Reference(s) | => new
09-07-2012 15:57 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
09-07-2012 16:55 | Ina Schieferdecker | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
09-07-2012 17:12 | Gyorgy Rethy | Note Added: 0010727 |
10-07-2012 09:32 | Ina Schieferdecker | Relationship added | related to 0006008
10-07-2012 11:58 | Gyorgy Rethy | Target Version | => Edition 4.5.1
10-07-2012 11:59 | Gyorgy Rethy | Relationship added | related to 0006088
16-07-2012 11:39 | Gyorgy Rethy | Note Added: 0010938 |
16-07-2012 11:39 | Gyorgy Rethy | Status | new => closed
16-07-2012 11:39 | Gyorgy Rethy | Resolution | open => no change required

Notes

(0010727)
Gyorgy Rethy
09-07-2012 17:12

Actually, if accepting CR 6088 as proposed plus my proposal for the syntax would solve the problem mentioned above and annulate this CR.

(0010938)
Gyorgy Rethy
16-07-2012 11:39

This CR is withdrawn since CR 6088 has been resolved.