Skip to main content

Know when to adapt to next revision

Explanation

Test Configurations are always built upon a single currently loaded Application Revision. The information in that revision is used to determine which objects and object values can exist in the database, and which microflows can be executed. This in turn allows to create the necessary Teststeps that are needed to build a test in MTA. And, when the test is executed, gives some guarantee that these model elements also exist in the Application Instance that the test is running on.

To allow Test Configurations to stay updated with changes done in the Mendix model, they can be adapted to another revision. Note that this does not necessarily have to be a newer revision, it can be any revision on any branch of the App. Downloading a revision can be done in the background by using a Branch Subscription, but adapting must be done manually because adapting can lead to Construction Errors.

Construction Errors in a Test Configuration will block executing it. Executing would lead to an error in the Test Run, because model elements don't match. But, it is not always necessary to adapt to the revision of the Application Instance, in order to Execute the Test Configuration. Below is a list of scenario's, which would lead to an error when executing or not.

Scenario

info

Microflow means any Microflow or Rule
Used? means the entity, attribute or microflow is used in a teststep

Change done in next revisionUsed?Executing when not adapting to next revision
Added entityN/A
Deleted existing entityNo
Deleted existing entityYesError
Added attributeN/A
Deleted existing attributeNo
Deleted existing attributeYesError
Added associationN/A
Deleted existing associationNo
Deleted existing associationYesError
Renamed entityNo
Renamed entityYes
Renamed attributeNo
Renamed attributeYes
Renamed associationNo
Renamed associationYes
Other domain model changeNo
Other domain model changeYes
Added microflowN/A
Deleted existing microflowNo
Deleted existing microflowYesError
Added microflow input parameterNo
Added microflow input parameterYesError
Deleted microflow input parameterNo
Deleted microflow input parameterYesError
Renamed microflow input parameterNo
Renamed microflow input parameterYes
Changed microflow return valueNo
Changed microflow return valueYesError
Other microflow changeNo
Other microflow changeYes
Any other model changeN/A

Feedback?

Missing anything? Let us know!

Last updated 23 October 2024