Give us feedback
fixture
Service icon

Fixture

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded on 18 September 2021 by 
0.0
 (0 ratings)
fixture

Fixture

Details
This component is a test fixture for OutSystems. It makes it easy to create a tenant for testing and register/discard test data.
Read more

Fixture will automatically create a tenant for testing. Test tenants are created using the platform's multi-tenant mechanism. Data for tenants for testing and other tenants are separated by the platform, so you can safely test without affecting or affecting other tenants. This also allows you to test in your development environment without having to deploy your application to a test environment.

Fixture also imports test data to the test tenant. Input the YAML test data into the Fixture_Setup action. Please refer to the following usage sample and execution result.


Usage sample


Execution result



Because YAML is just text, you have the flexibility to create test data as follows:

  • Use a function like CurrDateTime()
  • Create dynamically by looping
  • Use foreign key values with YAML anchors and aliases


Anchor and alias usage sample
Specify a value for User_Role.User_Id by using an alias to User.Id.

Usage sample

Execution result


Actions

The following is a summary of the actions provided by this component. See the "Documentation" page for more information on actions.

  • Fixture_Setup: Create test tenant and import test data
  • Fixture_Teardown: Delete test data


Release notes (1.0.1)
  • Updated references to Platform 11.13.0 (Build 31107).
  • Updated references to ardoJSON 1.10.5.
  • Updated references to TenantCleaner 1.0.1.
Reviews (0)
Related assets
More from Hiroyuki Yamagami