Unit Test Framework : Working with Unit Test Framework : Getting Familiar : Mock
Mock
Mocks provide a means of simulating interaction with resources that are unavailable or the data provided by these resources or systems is not consistent for test purposes. Mocks also have a lifetime that can either be limited to the test case in which they are defined or applied to all of the test cases that follow within a test suite from the point of the definition.
Mock intercept can control the session, user, and server based on the scope setting. If the scope is set to session, the test sessions will be affected by the mock. It is recommended to set the scope to session for most users. If the scope is set to user, all the sessions for the particular user will be affected by the mock. If the scope is set to server, all user sessions will be affected by the mock. Mocks can be enabled or disabled for test case or test suite execution.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback