Skip to main content
Jump to: navigation, search

Difference between revisions of "VIATRA/Query/DeveloperDocumentation/FeatureSetAndTesting/Testingframework"

Line 1: Line 1:
 +
__TOC__
 +
 
=== Testing framework ===
 
=== Testing framework ===
  

Revision as of 05:04, 22 April 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.)

Savesnapshot.png

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
Newsnapshot.png


Existing .eiqsnaphot:

  • at this time, the query match result will be added to an existing result
Existingsnapshot.png



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


Snapshoteditor.png

Back to the top