Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "VIATRA/Query/DeveloperDocumentation/FeatureSetAndTesting/Testingframework"
Line 11: | Line 11: | ||
New .eiqsnapshot: | New .eiqsnapshot: | ||
+ | * a new EMF instance model is created | ||
+ | |||
[[File:newsnapshot.png|700px|center]] | [[File:newsnapshot.png|700px|center]] | ||
Existing .eiqsnaphot: | Existing .eiqsnaphot: | ||
+ | * at this time, the query match result will be added to an existing result | ||
+ | |||
[[File:existingsnapshot.png|700px|center]] | [[File:existingsnapshot.png|700px|center]] | ||
Revision as of 05:28, 30 March 2015
Testing framework
With Testing Framework, you can define EMF instance models from your query results. You can also modify these models.
Creating snaphot (You can create an .eiqsnapshot file in Query Explorer: right click on a pattern result or the root of the patterns - Save EMF-IncQuery snapshot. Important: this file contains relative path to the instance model, so if you move this file to another folder, you need to check the path.)
You can create your own new .eiqsnapshot or you can add it to an existing one.
New .eiqsnapshot:
- a new EMF instance model is created
Existing .eiqsnaphot:
- at this time, the query match result will be added to an existing result
EIQ Snapshot Editor
You can modify your .eiqsnapshotmodel here:
- Create new child
- Create new sibling
- Validate
- Load resource
- Refresh (model)
- Show properties view (more information, depends on context)
- pattern qualified name
- role
- derived value
- parameter name
- value