bildwelt
E2E FORUM
E2E Bridge E2E Commerce

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

This topic contains 1 reply, has 1 voice, and was last updated by  Jörg 3 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #782

    Jörg
    Moderator

    A question regarding regression testing. We would like to perform/setup regression tests for our pilot project. For that we need to mockup backend calls.

    All integration logic is in the persistent state objects. So the question is:

    Is it possible to mock up backend calls from persistent state objects?

    If yes how to do it?

    #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.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.