DevOps Edition for Continuous Integration 10.5 | Unit Test Framework | Unit Test Framework | Terms and Concepts | 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-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.