Created on 26 April 2020
icon_unfollowing
Login to follow
fixture

Fixture

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded on 18 September 2021 by 
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)
Category
Development tools, Testing
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 3 dependencies
Application Objects
Fixture has 0 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.606 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads 
Related assets