bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Reply To: Is it possible to mock up backend calls from persistent state objects

E2E Forum Modeling & Development Is it possible to mock up backend calls from persistent state objects Reply To: Is it possible to mock up backend calls from persistent state objects

#783

Jörg
Moderator

This is not directly supported with the E2E Analyzer, but there are two approaches to achieve this nevertheless:

  1.  Set the <<E2ETestable>> stereotype on the PState class, then you will get all the implementation as synchronous operations in the E2E Analyzer and you can apply regression test on these. This is the recommended approach.
  2. You implement the mock-ups directly in the model and you have a parameter (for instance a setting) where you can choose whether you run in regular mode or in test mode with mock-ups.